:root {
  --forest: #1f5d3a;
  --forest-dark: #17482d;
  --forest-soft: #f1f7f2;
  --ink: #17201a;
  --muted: #738078;
  --line: #e7ece8;
  --line-strong: #d7e4dc;
  --panel: #ffffff;
  --page: #f8faf8;
  --red: #bc2f3a;
  --green: #18864f;
  --amber: #a77516;
  --shadow: 0 16px 40px rgba(20, 42, 29, 0.08);
  --shadow-soft: 0 1px 2px rgba(20, 42, 29, 0.06);
  --shadow-lift: 0 14px 34px rgba(20, 42, 29, 0.1);
  --asset-accent-soft: #f1f7f2;
}

/* Avi assistant */
.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.avi-top-button {
  border-color: #9cc8ac;
  color: #174e31;
  background: #edf8f0;
  font-size: 11px;
  white-space: nowrap;
}

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

.account-voice-setting {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  border: 1px solid #e0e7e1;
  border-radius: 16px;
  padding: 14px 16px;
  background: #fff;
}

.account-voice-setting span {
  display: grid;
  gap: 3px;
}

.account-voice-setting small {
  color: #718078;
  font-weight: 500;
}

.account-voice-setting select {
  min-width: 108px;
  border: 1px solid #cfdbd3;
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--forest);
  background: #fff;
  font-weight: 800;
}

.avi-panel {
  width: min(620px, 100%);
  grid-template-rows: auto auto minmax(180px, 1fr) auto auto;
  border-left-color: #9cc8ac;
  background: linear-gradient(180deg, #f8fcf8 0%, #eef7f0 100%);
}

.app-shell.family-mode .topbar-status-stack {
  display: grid;
}

.app-shell.family-mode .alerts-top-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.avi-proposed-action {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  border: 1px solid #bdd8c5;
  border-radius: 12px;
  padding: 11px;
  color: var(--ink);
  background: #f3faf5;
}

.avi-proposed-action small {
  margin: 0;
  color: var(--muted);
}

.avi-proposed-action button {
  justify-self: start;
}

/* Final Avi layout layer: keep content in flow after all theme overrides. */
.avi-drawer .drawer-panel.avi-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.avi-drawer .avi-panel > .drawer-header,
.avi-drawer .avi-panel > .avi-next-step,
.avi-drawer .avi-panel > .avi-form,
.avi-drawer .avi-panel > .avi-privacy-note {
  flex: 0 0 auto;
}

.avi-drawer .avi-panel > .avi-action-review {
  flex: 0 1 auto;
  max-height: 44vh;
  overflow: auto;
}

.avi-drawer .avi-panel > .avi-messages {
  flex: 1 1 0;
  min-height: 120px;
  max-height: none;
  overflow: auto;
}

.avi-drawer .avi-next-step {
  align-content: start;
  min-height: 0;
  padding: 9px 11px;
}

.avi-drawer .avi-next-step p {
  font-size: 12px;
}

.avi-title-row {
  flex-wrap: wrap;
}

.avi-mode-capsule,
#avi-field-help-start {
  min-height: 30px;
  border: 1px solid #9cc8ac;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--forest);
  background: #fff;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.avi-mode-capsule.is-active {
  border-color: var(--forest);
  color: #fff;
  background: var(--forest);
}

.avi-mode-capsule:disabled {
  color: var(--forest);
  background: var(--forest-soft);
  opacity: 0.78;
}

.avi-page-context {
  display: inline-flex;
  width: fit-content;
  margin: 7px 0 0;
  border-radius: 999px;
  padding: 4px 8px;
  color: #536159;
  background: rgba(255, 255, 255, 0.76);
  font-size: 10px;
  font-weight: 800;
}

.avi-drawer.is-helper-mode .drawer-panel.avi-panel {
  right: auto;
  width: min(350px, calc(100vw - 20px));
  height: auto;
  max-height: min(500px, calc(100vh - 20px));
  gap: 8px;
  overflow: auto;
  border: 1px solid #9cc8ac;
  border-radius: 15px;
  padding: 11px;
}

.avi-drawer.is-helper-mode .avi-drag-handle {
  cursor: grab;
}

.avi-drawer.is-helper-mode .avi-panel.is-dragging .avi-drag-handle {
  cursor: grabbing;
}

.avi-drawer.is-helper-mode .drawer-header {
  gap: 7px;
}

.avi-drawer.is-helper-mode .drawer-header .eyebrow {
  font-size: 9px;
}

.avi-drawer.is-helper-mode .drawer-header h2 {
  font-size: 19px;
}

.avi-drawer.is-helper-mode .avi-page-context {
  margin-top: 4px;
  padding: 3px 7px;
  font-size: 9px;
}

.avi-drawer.is-helper-mode .avi-field-help-controls {
  gap: 5px;
  margin-top: 5px;
}

.avi-drawer.is-helper-mode .avi-field-help-controls span,
.avi-drawer.is-helper-mode .avi-field-help-controls button,
.avi-drawer.is-helper-mode .avi-voice-toggle,
.avi-drawer.is-helper-mode .icon-button,
.avi-drawer.is-helper-mode .avi-composer button,
.avi-drawer.is-helper-mode .avi-action-review-actions button {
  min-width: 0;
  min-height: 25px;
  padding: 3px 7px;
  font-size: 10px;
}

.avi-drawer.is-helper-mode .icon-button {
  width: 27px;
  height: 27px;
  font-size: 17px;
}

.avi-drawer.is-helper-mode .avi-panel > .avi-messages {
  flex: 0 1 auto;
  min-height: 70px;
  max-height: 140px;
}

.avi-drawer.is-helper-mode .avi-panel > .avi-action-review {
  max-height: 260px;
}

.avi-drawer.is-helper-mode .avi-message {
  padding: 8px 10px;
  font-size: 12px;
}

.avi-drawer.is-helper-mode .avi-form,
.avi-drawer.is-helper-mode .avi-form label {
  gap: 5px;
}

.avi-drawer.is-helper-mode .avi-composer textarea {
  min-height: 48px;
  max-height: 90px;
  padding: 8px 9px;
  font-size: 12px;
}

@media (max-width: 560px) {
  .avi-drawer.is-helper-mode .drawer-panel.avi-panel {
    width: calc(100vw - 12px);
    max-height: calc(100vh - 12px);
    padding: 10px;
  }
}

/* Persistent account avatar in the lower-left sidebar. */
.app-shell .sidebar-footer #user-initial.avatar {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #5b50f2;
  box-shadow: none;
}

.app-shell .sidebar-footer #user-initial .avatar-person-icon {
  display: block;
  width: 21px;
  height: 21px;
  fill: currentColor;
}

/* Add Document drawer - Family Documents reference */
.app-shell.family-mode .family-management-drawer.family-document-upload-drawer {
  display: grid;
  grid-template-rows: 74px minmax(0, 1fr) 66px;
  width: min(620px, calc(100vw - 34px));
  height: 100dvh;
  overflow: hidden;
  border-left: 1px solid #e1e4eb;
  padding: 0;
  color: #1c1e26;
  background: #f4f5f8;
  box-shadow: -20px 0 54px rgba(20, 23, 40, 0.18);
}

.app-shell.family-mode .family-document-upload-drawer .family-document-drawer-header {
  position: relative;
  top: auto;
  z-index: 2;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 30px;
  gap: 13px;
  align-items: center;
  margin: 0;
  border-bottom: 1px solid #e1e4eb;
  padding: 15px 20px;
  background: #fff;
  backdrop-filter: none;
}

.app-shell.family-mode .family-document-drawer-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #7c55ee);
  font-size: 17px;
  line-height: 1;
}

.app-shell.family-mode .family-document-drawer-title {
  min-width: 0;
}

.app-shell.family-mode .family-document-drawer-title h2 {
  margin: 0;
  color: #1c1e26;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.3px;
}

.app-shell.family-mode .family-document-drawer-title p {
  margin: 4px 0 0;
  color: #6b7280;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
}

.app-shell.family-mode .family-document-drawer-close {
  display: grid;
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px !important;
  place-items: center;
  border: 1px solid #e1e4eb;
  border-radius: 9px !important;
  padding: 0;
  color: #6b7280;
  background: #fff;
  box-shadow: none;
  font-size: 25px;
  font-weight: 300;
  line-height: 1;
}

.app-shell.family-mode .family-document-drawer-close:hover,
.app-shell.family-mode .family-document-drawer-close:focus-visible {
  border-color: #c7ccfb !important;
  color: #4338ca !important;
  background: #eef0fe !important;
  box-shadow: none !important;
  transform: none !important;
}

button.drawer-close-button.drawer-close-button {
  display: flex !important;
  flex: 0 0 30px !important;
  width: 30px !important;
  min-width: 30px !important;
  max-width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: start;
  border: 1px solid #e9ebf0 !important;
  border-radius: 8px !important;
  padding: 0 !important;
  color: #6b7280 !important;
  background: #fff !important;
  box-shadow: none !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  text-align: center !important;
  transform: none !important;
}

button.drawer-close-button.drawer-close-button:hover,
button.drawer-close-button.drawer-close-button:focus-visible,
button.drawer-close-button.drawer-close-button.is-interactive-hover {
  border-color: #c7ccfb !important;
  color: #4338ca !important;
  background: #eef0fe !important;
  box-shadow: none !important;
  transform: none !important;
}

.app-shell.family-mode .family-document-upload-drawer .family-document-drawer-body {
  display: grid;
  align-content: start;
  gap: 25px;
  overflow-y: auto;
  border: 0;
  border-radius: 0;
  padding: 21px 20px 30px;
  background: #f4f5f8;
  box-shadow: none;
}

.app-shell.family-mode .family-document-upload-drawer .family-document-drawer-intro {
  margin: 0;
  color: #6b7280;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.4;
}

.app-shell.family-mode .family-document-upload-drawer .family-document-controls-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.app-shell.family-mode .family-document-upload-drawer .family-document-controls-grid label {
  display: grid;
  gap: 7px;
  color: #9aa1ad;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.35px;
  text-transform: uppercase;
}

.app-shell.family-mode .family-document-upload-drawer .family-document-controls-grid select {
  width: 100%;
  height: 44px;
  margin: 0;
  border: 1.5px solid #e1e4eb;
  border-radius: 11px;
  padding: 0 13px;
  color: #1c1e26;
  background: #fff;
  font-size: 13.5px;
  font-weight: 400;
  text-transform: none;
}

.app-shell.family-mode .family-document-upload-drawer .family-library-document-dropzone {
  display: grid;
  min-height: 102px;
  place-items: center;
  border: 2px dashed #d3d7e0;
  border-radius: 13px;
  padding: 18px;
  color: #1c1e26;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.app-shell.family-mode .family-document-upload-drawer .family-library-document-dropzone:hover,
.app-shell.family-mode .family-document-upload-drawer .family-library-document-dropzone:focus-visible,
.app-shell.family-mode .family-document-upload-drawer .family-library-document-dropzone.is-dragging {
  border-color: #aeb5f8 !important;
  background: #eef0fe !important;
  box-shadow: none !important;
}

.app-shell.family-mode .family-document-upload-drawer .family-library-document-dropzone strong {
  color: #1c1e26;
  font-size: 14px;
  font-weight: 700;
}

.app-shell.family-mode .family-document-upload-drawer .family-library-document-dropzone span {
  max-width: 100%;
  margin-top: 6px;
  overflow-wrap: anywhere;
  color: #9aa1ad;
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.4;
}

.app-shell.family-mode .family-document-upload-drawer .family-document-upload-actions {
  display: grid;
  margin-top: -8px;
}

.app-shell.family-mode .family-document-upload-drawer .family-document-upload-actions label {
  display: grid;
  width: 100%;
  min-height: 36px !important;
  place-items: center;
  border: 1px solid #e1e4eb;
  border-radius: 10px !important;
  padding: 7px 14px;
  color: #1c1e26;
  background: #fff;
  box-shadow: none;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.app-shell.family-mode .family-document-upload-drawer .family-document-upload-actions label:hover,
.app-shell.family-mode .family-document-upload-drawer .family-document-upload-actions label:focus-within {
  border-color: #c7ccfb;
  color: #4338ca;
  background: #eef0fe;
  box-shadow: none;
}

.app-shell.family-mode .family-document-upload-drawer .family-document-upload-hint {
  margin: -7px 0 0;
  color: #9aa1ad;
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.45;
}

.app-shell.family-mode .family-document-drawer-footer {
  display: flex;
  gap: 11px;
  align-items: center;
  border-top: 1px solid #e1e4eb;
  padding: 13px 20px;
  background: #fff;
}

.app-shell.family-mode .family-document-drawer-footer button {
  min-height: 40px !important;
  border: 1px solid #e1e4eb;
  border-radius: 10px !important;
  padding: 9px 16px;
  color: #1c1e26;
  background: #fff;
  box-shadow: none;
  font-size: 13px;
  font-weight: 700;
}

.app-shell.family-mode .family-document-drawer-footer #family-library-document-save {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.22);
}

.app-shell.family-mode .family-document-drawer-footer #family-library-document-save:disabled {
  color: #fff;
  background: #a8a5ed;
  box-shadow: none;
  opacity: 0.65;
}

.app-shell.family-mode .family-document-drawer-footer #family-library-document-clear:hover,
.app-shell.family-mode .family-document-drawer-footer #family-library-document-clear:focus-visible {
  border-color: #c7ccfb !important;
  color: #4338ca !important;
  background: #eef0fe !important;
  box-shadow: none !important;
  transform: none !important;
}

@media (max-width: 640px) {
  .app-shell.family-mode .family-management-drawer.family-document-upload-drawer {
    width: calc(100vw - 12px);
  }
}

/* Asset Protection wireframe alignment */
.app-shell.family-mode #family-asset-iq-view .family-protection-page {
  gap: 16px;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-stat-grid {
  gap: 14px;
  margin-bottom: 0;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-stat-grid .mini-stat {
  display: grid;
  min-height: 104px;
  align-content: center;
  gap: 6px;
  border: 1px solid #e9ebf0;
  border-radius: 16px;
  padding: 14px 16px;
  color: #1d1f29;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 23, 40, 0.07);
  text-align: left;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-stat-grid .mini-stat > span {
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-stat-grid .mini-stat > strong {
  margin: 0;
  color: #ef4444;
  font-size: 24px;
  line-height: 1;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-stat-grid .mini-stat > small {
  color: #7b8190;
  font-size: 11px;
  line-height: 1.25;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-stat-grid .family-protection-score-stat {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #514cf0, #6366f1 55%, #8959ee);
  box-shadow: 0 14px 28px rgba(79, 70, 229, 0.24);
}

.app-shell.family-mode #family-asset-iq-view .family-protection-stat-grid .family-protection-score-stat > span,
.app-shell.family-mode #family-asset-iq-view .family-protection-stat-grid .family-protection-score-stat > strong,
.app-shell.family-mode #family-asset-iq-view .family-protection-stat-grid .family-protection-score-stat > small {
  color: #fff;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-stat-grid .family-protection-score-stat > strong {
  font-size: 30px;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-page > .family-protection-layer-grid,
.app-shell.family-mode #family-asset-iq-view .family-protection-page > .family-protection-layout {
  gap: 14px;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-overview-layout,
.app-shell.family-mode #family-asset-iq-view .family-protection-insurance-layout,
.app-shell.family-mode #family-asset-iq-view .family-protection-policy-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app-shell.family-mode #family-asset-iq-view .family-protection-overview-layout {
  align-items: stretch;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-overview-layout > .panel {
  height: 100%;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-page .panel {
  border: 1px solid #e9ebf0;
  border-radius: 18px;
  padding: 20px 22px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(20, 23, 40, 0.065);
}

.app-shell.family-mode #family-asset-iq-view .family-protection-page .panel-header {
  gap: 12px;
  margin-bottom: 14px;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-page .panel-header h2 {
  color: #1d1f29;
  font-size: 18px;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-page .eyebrow {
  color: #514cf0;
  font-size: 10px;
  letter-spacing: 0.15em;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-page .panel-pill {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  border-color: #dedff0;
  border-radius: 999px;
  padding: 5px 10px;
  color: #676d7b;
  background: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-layer-card {
  gap: 11px;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-layer-card .panel-header {
  margin-bottom: 0;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-layer-card > p {
  min-height: 38px;
  color: #6b7280;
  font-size: 12.5px;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-meter {
  background: #eceef4;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-meter span {
  background: linear-gradient(90deg, #514cf0, #8959ee);
}

.app-shell.family-mode #family-asset-iq-view .family-protection-layer-review-button:hover,
.app-shell.family-mode #family-asset-iq-view .family-protection-layer-review-button:focus-visible {
  border-color: #c7ccfb;
  color: #514cf0;
  background: #eef0fe;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.app-shell.family-mode #family-asset-iq-view .family-protection-layer-review-button.is-active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #514cf0, #8059ed);
}

.app-shell.family-mode #family-asset-iq-view .family-protection-count-button {
  border-color: #e2e5eb;
  color: #6b7280;
  background: #fff;
  box-shadow: none;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-count-button.is-strong strong {
  color: #059669;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-count-button.is-review strong {
  color: #d97706;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-count-button.is-gap strong {
  color: #dc2626;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-matrix-panel .panel-header {
  align-items: flex-start;
  margin-bottom: 0;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-filter-row {
  justify-content: flex-start;
  gap: 6px;
  margin: 10px 0 14px;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-tracked-count {
  margin: 14px 0 0;
  color: #6b7280;
  font-size: 12px;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-filter-row .compact-button {
  min-height: 26px !important;
  border-radius: 999px !important;
  padding: 4px 9px;
  border-color: #e2e5eb;
  color: #6b7280;
  background: #fff;
  font-size: 10px;
  font-weight: 650;
  line-height: 1;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-filter-row .compact-button:hover,
.app-shell.family-mode #family-asset-iq-view .family-protection-filter-row .compact-button:focus-visible {
  border-color: #c7ccfb;
  color: #514cf0;
  background: #eef0fe;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-filter-row .compact-button.is-active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #514cf0, #8059ed);
}

.app-shell.family-mode #family-asset-iq-view .family-protection-matrix-list {
  gap: 0;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-page .family-protection-matrix-row {
  display: block;
  max-width: 100%;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid #e9ebf0;
  border-radius: 0;
  padding: 14px 0 15px;
  background: transparent;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-page .family-protection-matrix-row:last-child {
  border-bottom: 0;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-page .family-protection-layer-cell {
  grid-template-rows: auto auto auto;
  align-content: start;
  gap: 6px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-layer-label {
  color: #9aa1af;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-status {
  display: flex;
  width: 100%;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-status.is-strong {
  border-color: #bce8d1;
  color: #047857;
  background: #dff7ec;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-status.is-review,
.app-shell.family-mode #family-asset-iq-view .family-protection-status.is-unknown {
  border-color: #f1d7a1;
  color: #b45309;
  background: #fff1d6;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-status.is-gap {
  border-color: #f4c8c8;
  color: #b91c1c;
  background: #fee7e7;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-asset-cell {
  align-content: start;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-asset-cell > strong {
  font-size: 13px;
  line-height: 1.3;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-asset-cell > span {
  font-size: 11px;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-asset-cell > small,
.app-shell.family-mode #family-asset-iq-view .family-protection-layer-cell > small {
  font-size: 10px;
  line-height: 1.3;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-attention-list {
  gap: 8px;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-alert-stack {
  gap: 8px;
  margin-top: 8px;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-alert-stack .family-asset-alert-list {
  display: grid;
  gap: 8px;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-attention-list .advisor-note,
.app-shell.family-mode #family-asset-iq-view .family-protection-alert-stack .advisor-note {
  border: 0;
  border-left: 3px solid #8059ed;
  border-radius: 0 11px 11px 0;
  padding: 13px 14px;
  background: #f7f8fa;
  box-shadow: none;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-attention-list .advisor-note.is-critical,
.app-shell.family-mode #family-asset-iq-view .family-protection-alert-stack .advisor-note.is-risk {
  border-left-color: #ef4444;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-attention-list .advisor-note > strong,
.app-shell.family-mode #family-asset-iq-view .family-protection-alert-stack .advisor-note > strong {
  color: #1d1f29;
  font-size: 12px;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-attention-list .advisor-note.is-critical > strong,
.app-shell.family-mode #family-asset-iq-view .family-protection-alert-stack .advisor-note.is-risk > strong {
  color: #c12b23;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-attention-list .advisor-note > p,
.app-shell.family-mode #family-asset-iq-view .family-protection-alert-stack .advisor-note > p {
  margin: 4px 0 7px;
  color: #6b7280;
  font-size: 11px;
  line-height: 1.4;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-alert-stack .advisor-note > p {
  margin-bottom: 0;
}

.app-shell.family-mode
  #family-asset-iq-view
  .family-protection-attention-panel
  .advisor-note.is-actionable {
  cursor: pointer;
  transition:
    border-color 140ms ease,
    background 140ms ease;
}

.app-shell.family-mode
  #family-asset-iq-view
  .family-protection-attention-panel
  .advisor-note.is-actionable:hover,
.app-shell.family-mode
  #family-asset-iq-view
  .family-protection-attention-panel
  .advisor-note.is-actionable:focus-visible,
.app-shell.family-mode
  #family-asset-iq-view
  .family-protection-attention-panel
  .advisor-note.is-actionable.is-interactive-hover {
  outline: none;
  border-left-color: #514cf0 !important;
  color: inherit !important;
  background: #eef0fe !important;
  box-shadow: inset 0 0 0 1px #c7ccfb !important;
  transform: none !important;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-page .family-insurance-document-dropzone {
  min-height: 104px;
  max-height: none;
  border: 2px dashed #d5d9e2;
  border-radius: 12px;
  padding: 16px 20px;
  color: #9aa1af;
  background: #fff;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-page .family-insurance-document-dropzone strong {
  color: #1d1f29;
  font-size: 13px;
  line-height: 1.2;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-page .family-insurance-document-dropzone span {
  max-width: 440px;
  margin-top: 7px;
  color: #9aa1af;
  font-size: 10px;
  line-height: 1.4;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-page .family-insurance-document-dropzone:hover,
.app-shell.family-mode #family-asset-iq-view .family-protection-page .family-insurance-document-dropzone:focus-visible,
.app-shell.family-mode #family-asset-iq-view .family-protection-page .family-insurance-document-dropzone.is-dragging {
  border-color: #8059ed;
  background: #eef0fe;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-insurance-layout {
  align-items: stretch;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-insurance-layout > .panel {
  height: 100%;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-page .family-insurance-upload-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-page .family-insurance-upload-actions > label {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  justify-self: start;
  border-color: #e2e5eb;
  border-radius: 9px;
  padding: 7px 14px;
  color: #1d1f29;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-page .family-insurance-upload-actions > label:hover,
.app-shell.family-mode #family-asset-iq-view .family-protection-page .family-insurance-upload-actions > label:focus-within,
.app-shell.family-mode #family-asset-iq-view .family-protection-page .family-insurance-upload-actions > label.is-interactive-hover,
.app-shell.family-mode #family-asset-iq-view .family-protection-page .family-insurance-upload-actions > label[data-fr33dom-hovered="true"] {
  border-color: #c7ccfb !important;
  color: #4338ca !important;
  background: #eef0fe !important;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1) !important;
  transform: none !important;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-page .family-insurance-upload-actions > .muted {
  color: #6b7280;
  font-size: 11px;
  line-height: 1.45;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-page .family-insurance-asset-list,
.app-shell.family-mode #family-asset-iq-view .family-document-row-list {
  gap: 0;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-page .family-insurance-asset-row,
.app-shell.family-mode #family-asset-iq-view .family-protection-page .family-document-row {
  border: 0;
  border-bottom: 1px solid #e9ebf0;
  border-radius: 0;
  padding: 13px 0;
  background: transparent;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-page .family-insurance-asset-row:last-child,
.app-shell.family-mode #family-asset-iq-view .family-protection-page .family-document-row:last-child {
  border-bottom: 0;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-page .family-insurance-asset-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-page .family-insurance-asset-row > div:first-child {
  min-width: 0;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-page .family-insurance-asset-row > div:first-child > strong {
  color: #1d1f29;
  font-size: 13px;
  line-height: 1.25;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-page .family-insurance-asset-row > div:first-child > span {
  margin-top: 3px;
  color: #6b7280;
  font-size: 10px;
  line-height: 1.3;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-page .family-insurance-asset-row > div:last-child {
  display: grid;
  grid-template-columns: minmax(72px, auto) auto;
  gap: 12px;
  align-items: center;
  justify-content: end;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-page .family-insurance-asset-row > div:last-child > strong {
  color: #514cf0;
  font-size: 15px;
  line-height: 1;
  text-align: right;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-page .family-insurance-asset-row button {
  min-height: 28px !important;
  border-color: #e2e5eb;
  border-radius: 8px !important;
  padding: 5px 10px;
  color: #1d1f29;
  background: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.app-shell.family-mode #family-asset-iq-view .family-protection-page .family-insurance-asset-row button:hover,
.app-shell.family-mode #family-asset-iq-view .family-protection-page .family-insurance-asset-row button:focus-visible {
  border-color: #c7ccfb;
  color: #4338ca;
  background: #eef0fe;
}

/* Value Watch wireframe alignment */
.app-shell.family-mode #family-asset-iq-view .family-opportunity-page {
  display: grid;
  gap: 16px;
}

.app-shell.family-mode #family-asset-iq-view .family-opportunity-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 0;
}

.app-shell.family-mode #family-asset-iq-view .family-opportunity-stat-grid .mini-stat {
  display: grid;
  min-height: 104px;
  align-content: center;
  gap: 6px;
  border: 1px solid #e9ebf0;
  border-radius: 16px;
  padding: 14px 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 23, 40, 0.07);
}

.app-shell.family-mode #family-asset-iq-view .family-opportunity-stat-grid .mini-stat > span {
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
}

.app-shell.family-mode #family-asset-iq-view .family-opportunity-stat-grid .mini-stat > strong {
  margin: 0;
  color: #1d1f29;
  font-size: 24px;
  line-height: 1;
}

.app-shell.family-mode #family-asset-iq-view .family-opportunity-stat-grid .mini-stat:nth-child(2) > strong {
  color: #4338ca;
}

.app-shell.family-mode #family-asset-iq-view .family-opportunity-stat-grid .mini-stat > small {
  color: #9aa1af;
  font-size: 11px;
  line-height: 1.3;
}

.app-shell.family-mode #family-asset-iq-view .family-opportunity-stat-grid .family-opportunity-hero-stat {
  border-color: transparent;
  background: linear-gradient(135deg, #514cf0, #6366f1 55%, #8959ee);
  box-shadow: 0 14px 28px rgba(79, 70, 229, 0.24);
}

.app-shell.family-mode #family-asset-iq-view .family-opportunity-stat-grid .family-opportunity-hero-stat > span,
.app-shell.family-mode #family-asset-iq-view .family-opportunity-stat-grid .family-opportunity-hero-stat > strong,
.app-shell.family-mode #family-asset-iq-view .family-opportunity-stat-grid .family-opportunity-hero-stat > small {
  color: #fff;
}

.app-shell.family-mode #family-asset-iq-view .family-opportunity-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  margin-bottom: 0;
}

.app-shell.family-mode #family-asset-iq-view .family-opportunity-page .panel {
  border: 1px solid #e9ebf0;
  border-radius: 18px;
  padding: 20px 22px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(20, 23, 40, 0.065);
}

.app-shell.family-mode #family-asset-iq-view .family-opportunity-layout > .panel {
  height: 100%;
}

.app-shell.family-mode #family-asset-iq-view .family-opportunity-page .panel-header {
  align-items: flex-start;
  margin-bottom: 14px;
}

.app-shell.family-mode #family-asset-iq-view .family-opportunity-page .panel-header .eyebrow {
  color: #514cf0;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.app-shell.family-mode #family-asset-iq-view .family-opportunity-page .panel-header h2 {
  margin-top: 3px;
  color: #1d1f29;
  font-size: 18px;
  line-height: 1.2;
}

.app-shell.family-mode #family-asset-iq-view .family-opportunity-page .panel-subtitle {
  margin-top: 8px;
  color: #6b7280;
  font-size: 11px;
  line-height: 1.45;
}

.app-shell.family-mode #family-asset-iq-view .family-opportunity-manual-scan {
  min-height: 32px !important;
  margin: 0 0 14px;
  border-color: #e2e5eb;
  border-radius: 9px !important;
  padding: 6px 12px;
  color: #1d1f29;
  background: #fff;
  font-size: 11px;
}

.app-shell.family-mode #family-asset-iq-view .family-opportunity-editing-pill {
  display: inline-flex;
  margin: 0 0 14px;
}

.app-shell.family-mode #family-asset-iq-view .family-opportunity-form {
  gap: 12px;
}

.app-shell.family-mode #family-asset-iq-view .family-opportunity-form label {
  gap: 6px;
  color: #9aa1af;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.app-shell.family-mode #family-asset-iq-view .family-opportunity-form input,
.app-shell.family-mode #family-asset-iq-view .family-opportunity-form select,
.app-shell.family-mode #family-asset-iq-view .family-opportunity-form textarea {
  border: 1px solid #e2e5eb;
  border-radius: 11px;
  color: #1d1f29;
  background: #fff;
  font-size: 12px;
  font-weight: 500;
}

.app-shell.family-mode #family-asset-iq-view .family-opportunity-form input,
.app-shell.family-mode #family-asset-iq-view .family-opportunity-form select {
  min-height: 40px;
}

.app-shell.family-mode #family-asset-iq-view .family-opportunity-form textarea {
  min-height: 68px;
  line-height: 1.4;
}

.app-shell.family-mode #family-asset-iq-view .family-opportunity-hint {
  border-color: #dfe2fd;
  border-radius: 12px;
  padding: 12px 14px;
  color: #6b7280;
  background: #eef0fe;
  font-size: 11px;
  line-height: 1.45;
}

.app-shell.family-mode #family-asset-iq-view .family-opportunity-hint strong {
  color: #4338ca;
}

.app-shell.family-mode #family-asset-iq-view .family-opportunity-form-actions button[type="submit"] {
  min-height: 34px !important;
  border-color: transparent !important;
  border-radius: 10px !important;
  padding: 8px 16px;
  color: #fff !important;
  background: linear-gradient(135deg, #514cf0, #4338ca) !important;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.24);
  font-size: 11px;
}

.app-shell.family-mode #family-asset-iq-view .family-opportunity-rule-list {
  gap: 10px;
}

.app-shell.family-mode #family-asset-iq-view .family-opportunity-page .family-opportunity-rule-card {
  gap: 10px;
  border: 1px solid #e9ebf0;
  border-radius: 12px;
  padding: 14px;
  background: #f7f8fa;
  box-shadow: none;
}

.app-shell.family-mode #family-asset-iq-view .family-opportunity-rule-card-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.app-shell.family-mode #family-asset-iq-view .family-opportunity-rule-card-header > div {
  min-width: 0;
}

.app-shell.family-mode #family-asset-iq-view .family-opportunity-rule-card h3 {
  margin: 0;
  color: #1d1f29;
  font-size: 14px;
  line-height: 1.3;
}

.app-shell.family-mode #family-asset-iq-view .family-opportunity-rule-card-header > div > span {
  display: block;
  margin-top: 3px;
  color: #6b7280;
  font-size: 10px;
  font-weight: 500;
  text-transform: none;
}

.app-shell.family-mode #family-asset-iq-view .family-opportunity-signal-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 9px;
  color: #fff;
  background: #9ca3af;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.app-shell.family-mode #family-asset-iq-view .family-opportunity-signal-badge.is-good {
  background: #10b981;
}

.app-shell.family-mode #family-asset-iq-view .family-opportunity-rule-card > p {
  color: #6b7280;
  font-size: 11px;
  line-height: 1.45;
}

.app-shell.family-mode #family-asset-iq-view .family-opportunity-rule-actions {
  gap: 7px;
}

.app-shell.family-mode #family-asset-iq-view .family-opportunity-rule-actions button {
  min-height: 28px !important;
  border-color: #e2e5eb;
  border-radius: 8px !important;
  padding: 5px 10px;
  color: #1d1f29;
  background: #fff;
  font-size: 10px;
}

.app-shell.family-mode #family-asset-iq-view .family-opportunity-results {
  gap: 0;
}

.app-shell.family-mode #family-asset-iq-view .family-opportunity-page .family-opportunity-run-list {
  gap: 10px;
}

.app-shell.family-mode #family-asset-iq-view .family-opportunity-page .family-opportunity-run-card {
  gap: 9px;
  border: 1px solid #e9ebf0;
  border-radius: 12px;
  padding: 14px;
  background: #fff;
  box-shadow: none;
}

.app-shell.family-mode #family-asset-iq-view .family-opportunity-run-header {
  align-items: center;
}

.app-shell.family-mode #family-asset-iq-view .family-opportunity-run-card h3 {
  margin: 0;
  color: #1d1f29;
  font-size: 14px;
  line-height: 1.3;
}

.app-shell.family-mode #family-asset-iq-view .family-opportunity-run-header > div:first-child > span {
  display: block;
  margin-top: 3px;
  color: #6b7280;
  font-size: 10px;
}

.app-shell.family-mode #family-asset-iq-view .family-opportunity-score {
  min-width: 0;
}

.app-shell.family-mode #family-asset-iq-view .family-opportunity-score strong {
  border-radius: 999px;
  padding: 4px 9px;
  color: #fff;
  background: #10b981;
  font-size: 9px;
  font-weight: 750;
  line-height: 1;
}

.app-shell.family-mode #family-asset-iq-view .family-opportunity-run-card > p {
  color: #6b7280;
  font-size: 11px;
  line-height: 1.45;
}

.app-shell.family-mode #family-asset-iq-view .family-opportunity-run-details {
  display: none;
  gap: 10px;
  border-top: 1px solid #e9ebf0;
  padding-top: 10px;
}

.app-shell.family-mode #family-asset-iq-view .family-opportunity-run-card.is-expanded .family-opportunity-run-details {
  display: grid;
}

/* Legacy Planning wireframe alignment */
.app-shell.family-mode #family-asset-iq-view .family-inheritance-page {
  display: grid;
  gap: 16px;
}

.app-shell.family-mode #family-asset-iq-view .family-inheritance-stat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 0;
}

.app-shell.family-mode #family-asset-iq-view .family-inheritance-stat-grid .mini-stat {
  display: grid;
  min-height: 104px;
  align-content: center;
  gap: 6px;
  border: 1px solid #e9ebf0;
  border-radius: 16px;
  padding: 16px 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 23, 40, 0.07);
}

.app-shell.family-mode #family-asset-iq-view .family-inheritance-stat-grid .mini-stat > span {
  color: #6b7280;
  font-size: 12px;
  font-weight: 500;
}

.app-shell.family-mode #family-asset-iq-view .family-inheritance-stat-grid .mini-stat > strong {
  margin: 0;
  color: #1d1f29;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.8px;
}

.app-shell.family-mode #family-asset-iq-view .family-inheritance-stat-grid .mini-stat:nth-child(2) > strong {
  color: #4338ca;
}

.app-shell.family-mode #family-asset-iq-view .family-inheritance-stat-grid .mini-stat:nth-child(3) > strong {
  color: #ef4444;
}

.app-shell.family-mode #family-asset-iq-view .family-inheritance-stat-grid .mini-stat > small {
  color: #9aa1af;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.3;
}

.app-shell.family-mode #family-asset-iq-view .family-inheritance-stat-grid .family-inheritance-hero-stat {
  border-color: transparent;
  background: linear-gradient(135deg, #514cf0, #6366f1 55%, #8959ee);
  box-shadow: 0 14px 28px rgba(79, 70, 229, 0.24);
}

.app-shell.family-mode #family-asset-iq-view .family-inheritance-stat-grid .family-inheritance-hero-stat > span,
.app-shell.family-mode #family-asset-iq-view .family-inheritance-stat-grid .family-inheritance-hero-stat > strong,
.app-shell.family-mode #family-asset-iq-view .family-inheritance-stat-grid .family-inheritance-hero-stat > small {
  color: #fff;
}

.app-shell.family-mode #family-asset-iq-view .family-inheritance-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  margin-bottom: 0;
}

.app-shell.family-mode #family-asset-iq-view .family-inheritance-page .panel {
  border: 1px solid #e9ebf0;
  border-radius: 18px;
  padding: 20px 22px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(20, 23, 40, 0.065);
}

.app-shell.family-mode #family-asset-iq-view .family-inheritance-layout > .panel {
  height: 100%;
}

.app-shell.family-mode #family-asset-iq-view .family-inheritance-page .panel-header {
  align-items: flex-start;
  margin-bottom: 16px;
}

.app-shell.family-mode #family-asset-iq-view .family-inheritance-page .panel-header .eyebrow {
  color: #514cf0;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.app-shell.family-mode #family-asset-iq-view .family-inheritance-page .panel-header h2 {
  margin-top: 3px;
  color: #1d1f29;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.4px;
}

.app-shell.family-mode #family-asset-iq-view .family-inheritance-page .panel-pill {
  min-height: 26px;
  padding: 4px 11px;
  border-color: #e2e5eb;
  color: #6b7280;
  background: #fff;
  font-size: 11px;
  font-weight: 600;
}

.app-shell.family-mode #family-asset-iq-view .family-beneficiary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.app-shell.family-mode #family-asset-iq-view .family-inheritance-page .family-beneficiary-card {
  min-height: 94px;
  border: 1px solid #e9ebf0;
  border-radius: 12px;
  padding: 14px;
  background: #f7f8fa;
  box-shadow: none;
}

.app-shell.family-mode #family-asset-iq-view .family-inheritance-page .family-beneficiary-card.is-active {
  border: 2px solid #514cf0;
  padding: 13px;
  background: #f7f8fa;
  box-shadow: none;
}

.app-shell.family-mode #family-asset-iq-view .family-inheritance-page .family-beneficiary-card.is-joint {
  grid-column: 1 / -1;
}

.app-shell.family-mode #family-asset-iq-view .family-inheritance-page .family-beneficiary-select {
  min-height: 0 !important;
  border: 0;
  border-radius: 0 !important;
  padding: 0;
  background: transparent;
}

.app-shell.family-mode #family-asset-iq-view .family-inheritance-page .family-beneficiary-select:hover,
.app-shell.family-mode #family-asset-iq-view .family-inheritance-page .family-beneficiary-select:focus-visible,
.app-shell.family-mode #family-asset-iq-view .family-inheritance-page .family-beneficiary-select.is-interactive-hover {
  border: 0 !important;
  color: inherit !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

.app-shell.family-mode #family-asset-iq-view .family-inheritance-page .family-beneficiary-select span {
  color: #1d1f29;
  font-size: 14px;
  font-weight: 700;
}

.app-shell.family-mode #family-asset-iq-view .family-inheritance-page .family-beneficiary-select strong {
  margin-top: 6px;
  color: #4338ca;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.6px;
}

.app-shell.family-mode #family-asset-iq-view .family-inheritance-page .family-beneficiary-select small {
  margin-top: 3px;
  color: #6b7280;
  font-size: 11.5px;
  font-weight: 500;
}

.app-shell.family-mode #family-asset-iq-view .family-inheritance-page .family-beneficiary-edit-button {
  width: 26px;
  min-height: 26px !important;
  height: 26px;
  border-color: #e2e5eb;
  color: #514cf0;
  background: #fff;
  opacity: 0;
  transition: opacity 120ms ease;
}

.app-shell.family-mode #family-asset-iq-view .family-inheritance-page .family-beneficiary-card:hover .family-beneficiary-edit-button,
.app-shell.family-mode #family-asset-iq-view .family-inheritance-page .family-beneficiary-card:focus-within .family-beneficiary-edit-button {
  opacity: 1;
}

.app-shell.family-mode #family-asset-iq-view .family-inheritor-profile-section {
  margin-top: 12px;
  border-top: 1px solid #e9ebf0;
  padding-top: 10px;
}

.app-shell.family-mode #family-asset-iq-view .family-inheritor-profile-section > summary {
  width: fit-content;
  color: #514cf0;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.app-shell.family-mode #family-asset-iq-view .family-inheritor-profile-section[open] > summary {
  margin-bottom: 12px;
}

.app-shell.family-mode #family-asset-iq-view .family-inheritor-profile-form {
  gap: 10px;
  border: 0;
  padding: 0;
  background: transparent;
}

.app-shell.family-mode #family-asset-iq-view .family-inheritor-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app-shell.family-mode #family-asset-iq-view .family-inheritance-page .family-planning-checklist {
  gap: 10px;
}

.app-shell.family-mode #family-asset-iq-view .family-inheritance-page .family-planning-checklist > div {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid #e9ebf0;
  border-radius: 12px;
  padding: 12px 14px;
  background: #f7f8fa;
}

.app-shell.family-mode #family-asset-iq-view .family-inheritance-page .family-planning-checklist > div > strong {
  flex: 1;
  color: #1d1f29;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.app-shell.family-mode #family-asset-iq-view .family-inheritance-page .family-planning-checklist > div > span {
  color: #514cf0;
  font-size: 11.5px;
  font-weight: 600;
}

.app-shell.family-mode
  #family-asset-iq-view
  .family-inheritance-page
  .family-planning-review-button {
  flex: 0 0 auto;
  min-width: 0;
  min-height: 0 !important;
  border: 0 !important;
  border-radius: 8px !important;
  padding: 4px 7px !important;
  color: #514cf0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.2;
  transform: none !important;
}

.app-shell.family-mode
  #family-asset-iq-view
  .family-inheritance-page
  .family-planning-review-button:hover,
.app-shell.family-mode
  #family-asset-iq-view
  .family-inheritance-page
  .family-planning-review-button:focus-visible,
.app-shell.family-mode
  #family-asset-iq-view
  .family-inheritance-page
  .family-planning-review-button.is-interactive-hover {
  border-color: transparent !important;
  color: #4338ca !important;
  background: #eef0fe !important;
  box-shadow: none !important;
  transform: none !important;
}

.app-shell.family-mode #family-asset-iq-view .family-inheritance-executor-list,
.app-shell.family-mode #family-asset-iq-view .family-inheritance-bottom-list {
  display: grid;
  gap: 0;
  margin-bottom: 0;
}

.app-shell.family-mode #family-asset-iq-view .family-inheritance-page .family-inheritance-asset-list {
  gap: 0;
}

.app-shell.family-mode #family-asset-iq-view .family-inheritance-page .family-inheritance-asset-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid #e9ebf0;
  border-radius: 0;
  padding: 12px 0;
  background: transparent;
}

.app-shell.family-mode #family-asset-iq-view .family-inheritance-page .family-inheritance-asset-row:last-child {
  border-bottom: 0;
}

.app-shell.family-mode #family-asset-iq-view .family-inheritance-page .family-inheritance-asset-row > div:first-child > strong {
  color: #1d1f29;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
}

.app-shell.family-mode #family-asset-iq-view .family-inheritance-page .family-inheritance-asset-row > div:first-child > span {
  margin-top: 3px;
  color: #6b7280;
  font-size: 11.5px;
  line-height: 1.35;
}

.app-shell.family-mode #family-asset-iq-view .family-inheritance-page .family-inheritance-asset-row > div:last-child {
  display: grid;
  grid-template-columns: minmax(78px, auto) auto;
  gap: 12px;
  align-items: center;
  justify-content: end;
}

.app-shell.family-mode #family-asset-iq-view .family-inheritance-page .family-inheritance-asset-row > div:last-child > strong {
  color: #4338ca;
  font-size: 14px;
  font-weight: 800;
  text-align: right;
}

.app-shell.family-mode #family-asset-iq-view .family-inheritance-page .family-inheritance-asset-row > div:last-child > strong.is-unassigned {
  color: #ef4444;
  font-size: 13px;
  font-weight: 700;
}

.app-shell.family-mode #family-asset-iq-view .family-inheritance-page .family-inheritance-asset-row button {
  min-height: 28px !important;
  border-color: #e2e5eb;
  border-radius: 8px !important;
  padding: 6px 12px;
  color: #1d1f29;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
}

.app-shell.family-mode #family-asset-iq-view .family-inheritance-page .family-inheritance-asset-row button.is-primary-action {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #514cf0, #4338ca);
}

.app-shell.family-mode #family-asset-iq-view .family-inheritance-bottom-list .family-inheritance-asset-list {
  gap: 10px;
}

.app-shell.family-mode #family-asset-iq-view .family-inheritance-bottom-list .family-inheritance-asset-row {
  border: 1px solid #e9ebf0;
  border-radius: 12px;
  padding: 13px 15px;
  background: #f7f8fa;
}

.app-shell.family-mode #family-asset-iq-view .family-inheritance-bottom-list .family-inheritance-asset-row:last-child {
  border-bottom: 1px solid #e9ebf0;
}

.app-shell.family-mode #family-asset-iq-view .family-inheritance-bottom-list .family-inheritance-asset-row > div:first-child > strong {
  font-size: 14px;
}

.app-shell.family-mode #family-asset-iq-view .family-inheritance-bottom-list .family-inheritance-asset-row > div:first-child > span {
  font-size: 11.5px;
}

.app-shell.family-mode #family-asset-iq-view .family-inheritance-bottom-list .family-inheritance-asset-row > div:last-child > strong {
  font-size: 16px;
}

.app-shell.family-mode #family-asset-iq-view .family-inheritance-bottom-list .family-inheritance-asset-row button {
  padding: 6px 13px;
}

@media (max-width: 1100px) {
  .app-shell.family-mode #family-asset-iq-view .family-inheritance-layout {
    grid-template-columns: 1fr;
  }
}

/* Family Documents wireframe alignment */
.app-shell.family-mode #family-asset-iq-view .family-documents-page {
  display: grid;
  gap: 16px;
}

.app-shell.family-mode #family-asset-iq-view .family-document-dashboard-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 0;
}

.app-shell.family-mode #family-asset-iq-view .family-document-dashboard-grid .mini-stat {
  display: grid;
  min-height: 104px;
  align-content: center;
  gap: 6px;
  border: 1px solid #e9ebf0;
  border-radius: 16px;
  padding: 16px 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 23, 40, 0.07);
}

.app-shell.family-mode #family-asset-iq-view .family-document-dashboard-grid .mini-stat > span {
  color: #6b7280;
  font-size: 12px;
  font-weight: 500;
}

.app-shell.family-mode #family-asset-iq-view .family-document-dashboard-grid .mini-stat > strong {
  margin: 0;
  color: #1c1e26;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.8px;
}

.app-shell.family-mode #family-asset-iq-view .family-document-dashboard-grid .mini-stat:nth-child(3) > strong {
  color: #ef4444;
}

.app-shell.family-mode #family-asset-iq-view .family-document-dashboard-grid .mini-stat > small {
  color: #9aa1ad;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.3;
}

.app-shell.family-mode #family-asset-iq-view .family-document-dashboard-grid .family-documents-hero-stat {
  border-color: transparent;
  background: linear-gradient(135deg, #4f46e5, #6366f1 55%, #8b5cf6);
  box-shadow: 0 10px 26px rgba(79, 70, 229, 0.32);
}

.app-shell.family-mode #family-asset-iq-view .family-document-dashboard-grid .family-documents-hero-stat > span,
.app-shell.family-mode #family-asset-iq-view .family-document-dashboard-grid .family-documents-hero-stat > strong,
.app-shell.family-mode #family-asset-iq-view .family-document-dashboard-grid .family-documents-hero-stat > small {
  color: #fff;
}

.app-shell.family-mode #family-asset-iq-view .family-documents-page .panel {
  border: 1px solid #e9ebf0;
  border-radius: 18px;
  padding: 20px 22px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(20, 23, 40, 0.065);
}

.app-shell.family-mode #family-asset-iq-view .family-documents-page .panel-header {
  align-items: flex-start;
  margin-bottom: 16px;
}

.app-shell.family-mode #family-asset-iq-view .family-documents-page .panel-header .eyebrow {
  color: #4f46e5;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.app-shell.family-mode #family-asset-iq-view .family-documents-page .panel-header h2 {
  margin-top: 3px;
  color: #1c1e26;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.4px;
}

.app-shell.family-mode #family-asset-iq-view .family-documents-page .panel-pill {
  min-height: 0;
  border-color: #e9ebf0;
  padding: 4px 11px;
  color: #6b7280;
  background: #fff;
  font-size: 11px;
  font-weight: 600;
}

.app-shell.family-mode #family-asset-iq-view .family-document-library-layout {
  margin-bottom: 0;
}

.app-shell.family-mode #family-asset-iq-view .family-document-control-panel {
  gap: 0;
}

.app-shell.family-mode #family-asset-iq-view .family-document-control-panel .panel-header-end-action {
  gap: 10px;
}

.app-shell.family-mode #family-asset-iq-view .family-document-control-panel [data-family-document-drawer-open] {
  min-height: 34px !important;
  border-color: transparent;
  border-radius: 10px !important;
  padding: 7px 13px;
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.26);
  font-size: 12px;
  font-weight: 600;
}

.app-shell.family-mode #family-asset-iq-view .family-document-filter-buttons {
  gap: 7px;
  margin-bottom: 16px;
}

.app-shell.family-mode #family-asset-iq-view .family-document-filter-buttons .ghost-button {
  min-height: 30px !important;
  border-color: #e9ebf0;
  border-radius: 999px !important;
  padding: 6px 12px;
  color: #6b7280;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
}

.app-shell.family-mode #family-asset-iq-view .family-document-filter-buttons .ghost-button.is-active {
  border-color: #4f46e5;
  color: #fff;
  background: #4f46e5;
  box-shadow: none;
}

.app-shell.family-mode #family-asset-iq-view .family-document-search-row {
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 14px;
}

.app-shell.family-mode #family-asset-iq-view .family-document-search-row label {
  gap: 6px;
  color: #9aa1ad;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.app-shell.family-mode #family-asset-iq-view .family-document-search-row input,
.app-shell.family-mode #family-asset-iq-view .family-document-search-row select {
  height: 44px;
  border: 1.5px solid #e9ebf0;
  border-radius: 11px;
  padding: 0 13px;
  color: #1c1e26;
  background: #fff;
  font-size: 13.5px;
  font-weight: 400;
  text-transform: none;
}

.app-shell.family-mode #family-asset-iq-view .family-document-search-summary {
  margin: 0 0 -6px;
  color: #6b7280;
  font-size: 12.5px;
  font-weight: 400;
}

.app-shell.family-mode #family-asset-iq-view .family-document-list-panel {
  padding: 8px 22px;
}

.app-shell.family-mode #family-asset-iq-view .family-document-library-list {
  display: grid;
}

.app-shell.family-mode #family-asset-iq-view .family-document-library-row {
  position: relative;
  display: grid;
  border-bottom: 1px solid #e9ebf0;
}

.app-shell.family-mode #family-asset-iq-view .family-document-library-row:last-child {
  border-bottom: 0;
}

.app-shell.family-mode #family-asset-iq-view .family-document-library-open {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) minmax(118px, auto) minmax(118px, auto);
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 12px 0;
  color: inherit;
  background: transparent !important;
  box-shadow: none !important;
  text-align: left;
  transform: none !important;
}

.app-shell.family-mode #family-asset-iq-view .family-document-library-open:hover,
.app-shell.family-mode #family-asset-iq-view .family-document-library-open:focus-visible {
  color: inherit !important;
  background: transparent !important;
  box-shadow: none !important;
}

.app-shell.family-mode #family-asset-iq-view .family-document-library-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #e9ebf0;
  border-radius: 8px;
  color: #6b7280;
  background: #f7f8fa;
  font-size: 15px;
}

.app-shell.family-mode #family-asset-iq-view .family-document-library-info {
  min-width: 0;
}

.app-shell.family-mode #family-asset-iq-view .family-document-library-info strong,
.app-shell.family-mode #family-asset-iq-view .family-document-library-info small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell.family-mode #family-asset-iq-view .family-document-library-info strong {
  color: #1c1e26;
  font-size: 13px;
  font-weight: 700;
}

.app-shell.family-mode #family-asset-iq-view .family-document-library-info small {
  margin-top: 2px;
  color: #6b7280;
  font-size: 11.5px;
  font-weight: 400;
}

.app-shell.family-mode #family-asset-iq-view .family-document-library-type {
  color: #6b7280;
  font-size: 11.5px;
  font-weight: 600;
  text-align: right;
}

.app-shell.family-mode #family-asset-iq-view .family-document-library-status {
  color: #9aa1ad;
  font-size: 11.5px;
  font-weight: 600;
  text-align: right;
}

.app-shell.family-mode #family-asset-iq-view .family-document-library-status.is-reviewed {
  color: #10b981;
}

.app-shell.family-mode #family-asset-iq-view .family-document-library-actions {
  position: absolute;
  top: 50%;
  right: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity 120ms ease;
}

.app-shell.family-mode #family-asset-iq-view .family-document-library-row:hover .family-document-library-actions,
.app-shell.family-mode #family-asset-iq-view .family-document-library-row:focus-within .family-document-library-actions {
  opacity: 1;
  pointer-events: auto;
}

.app-shell.family-mode #family-asset-iq-view .family-document-library-actions button {
  min-height: 28px !important;
  padding: 5px 10px;
  font-size: 10px;
}

.app-shell.family-mode #family-asset-iq-view .family-document-estate-layout,
.app-shell.family-mode #family-asset-iq-view .family-documents-bottom-grid,
.app-shell.family-mode #family-asset-iq-view .family-estate-analysis-panel {
  margin: 0;
}

.app-shell.family-mode #family-asset-iq-view .family-documents-bottom-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.app-shell.family-mode #family-asset-iq-view .family-documents-page .family-estate-asset-row,
.app-shell.family-mode #family-asset-iq-view .family-documents-page .family-document-row,
.app-shell.family-mode #family-asset-iq-view .family-documents-page .family-asset-compact-row,
.app-shell.family-mode #family-asset-iq-view .family-documents-page .family-estate-analysis-card {
  border: 1px solid #e9ebf0;
  border-radius: 12px;
  background: #f7f8fa;
  box-shadow: none;
}

.app-shell.family-mode #family-asset-iq-view .family-documents-page .family-estate-asset-row > div:first-child > strong,
.app-shell.family-mode #family-asset-iq-view .family-documents-page .family-document-row strong,
.app-shell.family-mode #family-asset-iq-view .family-documents-page .family-asset-compact-row strong,
.app-shell.family-mode #family-asset-iq-view .family-documents-page .family-estate-analysis-card header strong {
  color: #1c1e26;
  font-size: 13.5px;
  font-weight: 700;
}

.app-shell.family-mode #family-asset-iq-view .family-documents-page .family-estate-asset-row span,
.app-shell.family-mode #family-asset-iq-view .family-documents-page .family-document-row span,
.app-shell.family-mode #family-asset-iq-view .family-documents-page .family-asset-compact-row span,
.app-shell.family-mode #family-asset-iq-view .family-documents-page .family-estate-analysis-card header span {
  color: #6b7280;
  font-size: 11.5px;
}

.app-shell.family-mode #family-asset-iq-view .family-documents-page .family-estate-analysis-card > p {
  color: #6b7280;
  font-size: 12.5px;
  line-height: 1.45;
}

@media (max-width: 1100px) {
  .app-shell.family-mode #family-asset-iq-view .family-document-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell.family-mode #family-asset-iq-view .family-documents-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .app-shell.family-mode #family-asset-iq-view .family-document-dashboard-grid,
  .app-shell.family-mode #family-asset-iq-view .family-document-search-row {
    grid-template-columns: 1fr;
  }

  .app-shell.family-mode #family-asset-iq-view .family-document-library-open {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .app-shell.family-mode #family-asset-iq-view .family-document-library-type,
  .app-shell.family-mode #family-asset-iq-view .family-document-library-status {
    grid-column: 2;
    text-align: left;
  }
}

/* Value Watch · sell-side owned-asset studio (value-watch-wireframe_9.html) */
.app-shell.family-mode.family-value-watch-active { grid-template-columns: 210px minmax(0, 1fr); background: #f3f4f7; }
.app-shell.family-mode.family-value-watch-active .workspace { max-width: 1480px; padding: 26px 30px 60px; }
.family-value-watch-page {
  --vw-bg: #f3f4f7;
  --vw-panel: #fff;
  --vw-ink: #141428;
  --vw-muted: #6b7280;
  --vw-faint: #9ca3af;
  --vw-line: #e7e8ee;
  --vw-line2: #eef0f4;
  --vw-indigo: #5b4fe0;
  --vw-indigo2: #7c6bf0;
  --vw-purple-a: #6d5ef5;
  --vw-purple-b: #a855f7;
  --vw-green: #0fae7f;
  --vw-greenbg: #e7f7f0;
  --vw-amber: #c47f12;
  --vw-amberbg: #fbf1dd;
  color: var(--vw-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.family-value-watch-page * { box-sizing: border-box; }
.family-value-watch-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.family-value-watch-page .vw-metric { min-width: 0; min-height: 134px; margin: 0; border: 1px solid var(--vw-line); border-radius: 16px; padding: 18px 20px; color: var(--vw-ink); background: var(--vw-panel); box-shadow: none; text-align: left; cursor: pointer; }
.family-value-watch-page .vw-metric span { display: block; margin-bottom: 8px; color: var(--vw-muted); font-size: 13px; font-weight: 700; }
.family-value-watch-page .vw-metric strong { display: block; margin-bottom: 8px; color: var(--vw-ink); font-size: 30px; line-height: 1; letter-spacing: -0.035em; }
.family-value-watch-page .vw-metric small { display: block; color: var(--vw-muted); font-size: 12px; line-height: 1.35; }
.family-value-watch-page .vw-metric.featured { border-color: transparent; color: #fff; background: linear-gradient(135deg, var(--vw-purple-a), var(--vw-purple-b)); }
.family-value-watch-page .vw-metric.featured span,
.family-value-watch-page .vw-metric.featured strong,
.family-value-watch-page .vw-metric.featured small { color: #fff; }
.family-value-watch-monitor { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; border: 1px solid var(--vw-line); border-radius: 14px; padding: 15px 20px; background: #fff; }
.family-value-watch-monitor > div { min-width: 0; }
.family-value-watch-monitor strong { display: block; margin-bottom: 2px; font-size: 13px; }
.family-value-watch-monitor > div span { display: block; color: var(--vw-muted); font-size: 12px; }
.family-value-watch-page .vw-monitor-count { margin-left: auto; border-radius: 20px; padding: 4px 9px; color: var(--vw-indigo); background: #efeffe; font-size: 11px; font-weight: 700; }
.family-value-watch-page .vw-switch { position: relative; display: inline-flex; width: 38px; height: 22px; cursor: pointer; }
.family-value-watch-page .vw-switch input { position: absolute; opacity: 0; }
.family-value-watch-page .vw-switch i { width: 100%; border-radius: 14px; background: #ccd0d9; transition: background .16s ease; }
.family-value-watch-page .vw-switch i::after { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(20,20,40,.2); content: ""; transition: transform .16s ease; }
.family-value-watch-page .vw-switch input:checked + i { background: var(--vw-indigo); }
.family-value-watch-page .vw-switch input:checked + i::after { transform: translateX(16px); }
.family-value-watch-page .vw-link-button { min-height: 0; margin: 0; border: 0; padding: 3px 0; color: var(--vw-indigo); background: transparent; box-shadow: none; font-size: 12px; font-weight: 700; }
.family-value-watch-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 22px; align-items: start; }
.family-value-watch-page .vw-card { min-width: 0; border: 1px solid var(--vw-line); border-radius: 16px; padding: 22px; background: #fff; }
.family-value-watch-page .vw-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.family-value-watch-page .vw-section-head p { margin: 0 0 5px; color: var(--vw-indigo); font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.family-value-watch-page .vw-section-head h2 { margin: 0 0 5px; color: var(--vw-ink); font-size: 20px; line-height: 1.15; letter-spacing: -.02em; }
.family-value-watch-page .vw-section-head span { color: var(--vw-muted); font-size: 12px; line-height: 1.4; }
.family-value-watch-page .vw-btn { min-height: 34px; margin: 0; border: 1px solid #dfe1e8; border-radius: 9px; padding: 7px 12px; color: #333646; background: #fff; box-shadow: none; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.family-value-watch-page .vw-btn.primary { border-color: var(--vw-indigo); color: #fff; background: var(--vw-indigo); }
.family-value-watch-page .vw-btn.ghost { border-color: #dcd9fb; color: var(--vw-indigo); background: #f7f6ff; }
.family-value-watch-page .vw-btn.danger { border-color: #f0cbc8; color: #c33f3a; background: #fff7f6; }
.family-value-watch-page .vw-count { flex-shrink: 0; border-radius: 20px; padding: 4px 9px; color: var(--vw-indigo) !important; background: #efeffe; font-size: 11px !important; font-weight: 700; }
.family-value-watch-page .vw-subhead { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 9px; }
.family-value-watch-page .vw-subhead strong { font-size: 12px; }
.family-value-watch-page .vw-subhead span { color: var(--vw-faint); font-size: 10.5px; }
.family-value-watch-page .vw-suggestions { margin-bottom: 18px; }
.family-value-watch-page .vw-suggestion { display: grid; grid-template-columns: 24px 34px minmax(0,1fr) auto auto; gap: 9px; width: 100%; min-height: 0; align-items: center; margin: 0 0 7px; border: 1px solid var(--vw-line2); border-radius: 10px; padding: 10px 11px; color: var(--vw-ink); background: #fbfbfd; box-shadow: none; text-align: left; }
.family-value-watch-page .vw-suggestion.selected { border-color: var(--vw-indigo); background: #f8f7ff; }
.family-value-watch-page .vw-rank { display: flex; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 7px; color: var(--vw-indigo); background: #eeedfe; font-size: 10px; font-weight: 800; }
.family-value-watch-page .vw-asset-dot { display: flex; flex: 0 0 auto; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 9px; color: #fff; background: linear-gradient(135deg, var(--vw-purple-a), var(--vw-purple-b)); font-size: 13px; font-style: normal; font-weight: 800; text-transform: uppercase; }
.family-value-watch-page .vw-suggestion-copy { min-width: 0; }
.family-value-watch-page .vw-suggestion-copy strong,
.family-value-watch-page .vw-suggestion-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.family-value-watch-page .vw-suggestion-copy strong { font-size: 12px; }
.family-value-watch-page .vw-suggestion-copy small { margin-top: 2px; color: var(--vw-muted); font-size: 10.5px; font-weight: 500; }
.family-value-watch-page .vw-reasons { display: flex; gap: 4px; }
.family-value-watch-page .vw-reasons i { border-radius: 12px; padding: 3px 6px; color: var(--vw-indigo); background: #efeffe; font-size: 9px; font-style: normal; font-weight: 700; }
.family-value-watch-page .vw-suggestion > b { color: var(--vw-green); font-size: 11.5px; }
.family-value-watch-page .family-opportunity-form { border-top: 1px solid var(--vw-line2); padding-top: 17px; }
.family-value-watch-page .vw-selected-asset { display: flex; align-items: center; gap: 11px; margin-bottom: 15px; border: 1px solid #dcd9fb; border-radius: 13px; padding: 12px 13px; background: #f8f7ff; }
.family-value-watch-page .vw-selected-asset > div { min-width: 0; }
.family-value-watch-page .vw-selected-asset small,
.family-value-watch-page .vw-selected-asset strong,
.family-value-watch-page .vw-selected-asset span { display: block; }
.family-value-watch-page .vw-selected-asset small { color: var(--vw-indigo); font-size: 9.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.family-value-watch-page .vw-selected-asset strong { margin: 2px 0; font-size: 13px; }
.family-value-watch-page .vw-selected-asset span { color: var(--vw-muted); font-size: 10.5px; }
.family-value-watch-page .vw-selected-asset button { min-height: 0; margin-left: auto; border: 0; padding: 3px; color: var(--vw-indigo); background: transparent; box-shadow: none; font-size: 11px; font-weight: 700; }
.family-value-watch-page .vw-select-required { margin-bottom: 14px; border: 1px dashed #d7d9e2; border-radius: 12px; padding: 18px; color: var(--vw-muted); background: #fafbfc; font-size: 12px; text-align: center; }
.family-value-watch-page .vw-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.family-value-watch-page .family-opportunity-form label,
.family-value-watch-page .vw-modal-form label,
.family-value-watch-page .vw-inventory-tools label { display: block; color: #343746; font-size: 11px; font-weight: 700; }
.family-value-watch-page label > span { display: block; margin-bottom: 6px; }
.family-value-watch-page :is(input, select, textarea) { width: 100%; border: 1px solid #dfe2e9; border-radius: 9px; padding: 9px 10px; color: var(--vw-ink); background: #fff; font: inherit; font-size: 12px; outline: none; }
.family-value-watch-page :is(input, select, textarea):focus { border-color: var(--vw-indigo); box-shadow: 0 0 0 3px rgba(91,79,224,.1); }
.family-value-watch-page .vw-class-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; border: 1px solid var(--vw-line2); border-radius: 12px; padding: 13px; background: #f8f9fb; }
.family-value-watch-page .vw-class-fields > div { grid-column: 1 / -1; }
.family-value-watch-page .vw-class-fields > div strong,
.family-value-watch-page .vw-class-fields > div span { display: block; }
.family-value-watch-page .vw-class-fields > div strong { font-size: 11.5px; }
.family-value-watch-page .vw-class-fields > div span { margin-top: 2px; color: var(--vw-muted); font-size: 10.5px; }
.family-value-watch-page .vw-notes { margin-top: 12px; }
.family-value-watch-page .vw-check { display: flex !important; align-items: center; gap: 7px; margin-top: 12px; color: var(--vw-muted) !important; font-weight: 600 !important; }
.family-value-watch-page .vw-check input { width: 15px; }
.family-value-watch-page .vw-check span { margin: 0; }
.family-value-watch-page .family-opportunity-form-actions { display: flex; gap: 8px; margin-top: 15px; }
.family-value-watch-page .vw-watch-list { display: grid; gap: 10px; }
.family-value-watch-page .vw-watch-item { border: 1px solid var(--vw-line2); border-radius: 14px; padding: 16px; background: #fff; }
.family-value-watch-page .vw-watch-item.ready_to_sell { border-color: #bfe7d8; background: #fcfffd; }
.family-value-watch-page .vw-watch-item > header { display: flex; align-items: center; gap: 10px; }
.family-value-watch-page .vw-watch-item > header > div { min-width: 0; }
.family-value-watch-page .vw-watch-item h3 { margin: 0; overflow: hidden; color: var(--vw-ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.family-value-watch-page .vw-watch-item header small { display: block; margin-top: 2px; color: var(--vw-muted); font-size: 10.5px; }
.family-value-watch-page .vw-status { margin-left: auto; border-radius: 16px; padding: 4px 8px; color: var(--vw-amber); background: var(--vw-amberbg); font-size: 9.5px; font-weight: 800; }
.family-value-watch-page .ready_to_sell .vw-status { color: #08795b; background: var(--vw-greenbg); }
.family-value-watch-page .legacy_hold .vw-status { color: #64748b; background: #eef1f6; }
.family-value-watch-page .vw-money { display: grid; grid-template-columns: 1fr auto 1fr 1fr; gap: 10px; align-items: center; margin: 13px 0 10px; border-radius: 11px; padding: 10px 12px; background: #f7f8fa; }
.family-value-watch-page .vw-money div span,
.family-value-watch-page .vw-money div strong { display: block; }
.family-value-watch-page .vw-money div span { margin-bottom: 2px; color: var(--vw-faint); font-size: 9px; text-transform: uppercase; }
.family-value-watch-page .vw-money div strong { font-size: 12px; }
.family-value-watch-page .vw-money > b { color: var(--vw-faint); font-size: 11px; }
.family-value-watch-page .vw-money .gain strong { color: var(--vw-green); }
.family-value-watch-page .vw-target > span { display: block; height: 5px; overflow: hidden; border-radius: 4px; background: #eceef2; }
.family-value-watch-page .vw-target > span i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--vw-purple-a), var(--vw-purple-b)); }
.family-value-watch-page .vw-target small { display: block; margin-top: 5px; color: var(--vw-muted); font-size: 9.5px; }
.family-value-watch-page .vw-watch-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.family-value-watch-page .vw-more { width: 30px; min-width: 30px; min-height: 30px; margin: 0 0 0 auto; border: 0; border-radius: 8px; padding: 0; color: var(--vw-muted); background: #f2f3f6; box-shadow: none; font-size: 12px; }
.family-value-watch-page .vw-empty { border: 1px dashed #d7dae2; border-radius: 13px; padding: 28px 18px; color: var(--vw-muted); text-align: center; }
.family-value-watch-page .vw-empty strong { color: var(--vw-ink); font-size: 13px; }
.family-value-watch-page .vw-empty p { margin: 5px 0 0; font-size: 11.5px; line-height: 1.45; }
.family-value-watch-page .vw-muted { margin: 10px 0; color: var(--vw-muted); font-size: 12px; }

.family-value-watch-page .vw-overlay { position: fixed; z-index: 90; inset: 0; display: flex; align-items: flex-start; justify-content: center; overflow: auto; padding: 40px 20px; background: rgba(20,20,40,.42); backdrop-filter: blur(2px); }
.family-value-watch-page .vw-modal { width: 560px; max-width: 100%; overflow: hidden; border-radius: 20px; background: #fff; box-shadow: 0 24px 60px rgba(20,20,50,.25); }
.family-value-watch-page .vw-modal.wide { width: 620px; }
.family-value-watch-page .vw-modal > header { display: flex; align-items: flex-start; gap: 12px; border-bottom: 1px solid var(--vw-line2); padding: 20px 24px; }
.family-value-watch-page .vw-modal-icon { display: flex; flex: 0 0 auto; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 11px; color: var(--vw-indigo); background: #eef0fe; font-size: 20px; }
.family-value-watch-page .vw-modal > header h2 { margin: 0; color: var(--vw-ink); font-size: 17px; }
.family-value-watch-page .vw-modal > header p { margin: 3px 0 0; color: var(--vw-muted); font-size: 12.5px; }
.family-value-watch-page .vw-modal > header button { flex: 0 0 auto; width: 30px; min-width: 30px; height: 30px; min-height: 0; margin: 0 0 0 auto; border: 0; border-radius: 9px; padding: 0; color: #6b7280; background: #f2f3f6; box-shadow: none; font-size: 16px; }
.family-value-watch-page .vw-modal-body { max-height: 64vh; overflow: auto; padding: 20px 24px; }
.family-value-watch-page .vw-modal > footer { display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--vw-line2); padding: 16px 24px; background: #fbfbfd; }
.family-value-watch-page .vw-inventory-tools { display: grid; grid-template-columns: 1fr 180px; gap: 12px; margin-bottom: 14px; }
.family-value-watch-page .vw-inventory-list { display: grid; gap: 7px; }
.family-value-watch-page .vw-inventory-row { display: grid; grid-template-columns: 34px minmax(0,1fr) auto 58px; gap: 10px; width: 100%; min-height: 0; align-items: center; margin: 0; border: 1px solid var(--vw-line2); border-radius: 10px; padding: 10px 11px; color: var(--vw-ink); background: #fff; box-shadow: none; text-align: left; }
.family-value-watch-page .vw-inventory-row.selected { border-color: var(--vw-indigo); background: #f8f7ff; }
.family-value-watch-page .vw-inventory-row:disabled { opacity: .58; cursor: default; }
.family-value-watch-page .vw-inventory-row > span:nth-child(2) { min-width: 0; }
.family-value-watch-page .vw-inventory-row strong,
.family-value-watch-page .vw-inventory-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.family-value-watch-page .vw-inventory-row strong { font-size: 12px; }
.family-value-watch-page .vw-inventory-row small { margin-top: 2px; color: var(--vw-muted); font-size: 10px; font-weight: 500; }
.family-value-watch-page .vw-inventory-row > b { font-size: 11px; }
.family-value-watch-page .vw-inventory-row > i { color: var(--vw-indigo); font-size: 9.5px; font-style: normal; font-weight: 700; text-align: right; }
.family-value-watch-page .vw-modal-label { margin: 0 0 9px; color: var(--vw-purple-a); font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.family-value-watch-page .vw-modal-label:not(:first-child) { margin-top: 20px; }
.family-value-watch-page .vw-threshold-table { border: 1px solid var(--vw-line2); border-radius: 11px; overflow: hidden; }
.family-value-watch-page .vw-threshold-table > div { display: grid; grid-template-columns: minmax(0,1fr) 110px 145px; gap: 10px; align-items: center; border-bottom: 1px solid var(--vw-line2); padding: 9px 11px; }
.family-value-watch-page .vw-threshold-table > div:last-child { border-bottom: 0; }
.family-value-watch-page .vw-threshold-table .head { color: var(--vw-faint); background: #f8f9fb; font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.family-value-watch-page .vw-threshold-table strong { font-size: 11px; }
.family-value-watch-page .vw-threshold-table label { display: flex; align-items: center; gap: 4px; color: var(--vw-muted); font-size: 11px; }
.family-value-watch-page .vw-threshold-table input,
.family-value-watch-page .vw-threshold-table select { padding: 7px 8px; }
.family-value-watch-page .vw-override-list { display: grid; gap: 6px; }
.family-value-watch-page .vw-override-list > label { display: grid; grid-template-columns: minmax(0,1fr) 70px auto 16px auto; gap: 7px; align-items: center; border: 1px solid var(--vw-line2); border-radius: 10px; padding: 9px 10px; }
.family-value-watch-page .vw-override-list span strong,
.family-value-watch-page .vw-override-list span small { display: block; }
.family-value-watch-page .vw-override-list span strong { font-size: 11px; }
.family-value-watch-page .vw-override-list span small { margin-top: 2px; color: var(--vw-muted); font-size: 9.5px; }
.family-value-watch-page .vw-override-list input[type="checkbox"] { width: 15px; }
.family-value-watch-page .vw-override-list em,
.family-value-watch-page .vw-override-list b { color: var(--vw-muted); font-size: 9.5px; font-style: normal; font-weight: 600; }
.family-value-watch-page .vw-finding-summary { margin-bottom: 18px; border-radius: 12px; padding: 15px; background: #f7f8fb; }
.family-value-watch-page .vw-finding-summary h3 { margin: 10px 0 14px; font-size: 13px; line-height: 1.5; }
.family-value-watch-page .vw-finding-summary > div { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.family-value-watch-page .vw-finding-summary > div span { color: var(--vw-muted); font-size: 9.5px; text-transform: uppercase; }
.family-value-watch-page .vw-finding-summary > div strong { display: block; margin-top: 3px; color: var(--vw-ink); font-size: 12px; text-transform: none; }
.family-value-watch-page .family-opportunity-analysis-list { margin-top: 14px; border: 1px solid var(--vw-line2); border-radius: 10px; padding: 12px; }
.family-value-watch-page .family-opportunity-analysis-list > strong,
.family-value-watch-page .family-opportunity-comps > strong,
.family-value-watch-page .family-opportunity-sources > strong { font-size: 11px; }
.family-value-watch-page .family-opportunity-analysis-list ul { margin: 7px 0 0; padding-left: 18px; color: var(--vw-muted); font-size: 11px; line-height: 1.5; }
.family-value-watch-page .family-opportunity-comps,
.family-value-watch-page .family-opportunity-sources { display: grid; gap: 6px; margin-top: 14px; }
.family-value-watch-page .family-opportunity-comps > div,
.family-value-watch-page .family-opportunity-sources > div { border: 1px solid var(--vw-line2); border-radius: 9px; padding: 9px 10px; }
.family-value-watch-page .vw-modal-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.family-value-watch-page .vw-modal-form .wide,
.family-value-watch-page .vw-modal-form .vw-check { grid-column: 1 / -1; }
.family-value-watch-page .vw-sale-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.family-value-watch-page .vw-sale-options button { min-height: 0; margin: 0; border: 1px solid var(--vw-line); border-radius: 12px; padding: 14px; color: var(--vw-ink); background: #fff; box-shadow: none; text-align: left; }
.family-value-watch-page .vw-sale-options button.selected { border-color: var(--vw-indigo); background: #f8f7ff; }
.family-value-watch-page .vw-sale-options span,
.family-value-watch-page .vw-sale-options strong,
.family-value-watch-page .vw-sale-options small { display: block; }
.family-value-watch-page .vw-sale-options strong { margin: 8px 0 4px; font-size: 12px; }
.family-value-watch-page .vw-sale-options small { color: var(--vw-muted); font-size: 10.5px; line-height: 1.4; }
.family-value-watch-page .vw-sale-note { margin-top: 14px; border-radius: 11px; padding: 12px 14px; color: #4b5563; background: #eef0fe; font-size: 11px; line-height: 1.5; }
.family-value-watch-page .vw-sale-note strong,
.family-value-watch-page .vw-sale-note span { display: block; }
.family-value-watch-page .vw-confirm-copy { margin: 0; color: var(--vw-muted); font-size: 13px; line-height: 1.55; }
.family-value-watch-page .vw-metric-list { display: grid; gap: 7px; }
.family-value-watch-page .vw-metric-list button { display: flex; width: 100%; min-height: 0; align-items: center; justify-content: space-between; gap: 12px; margin: 0; border: 1px solid var(--vw-line2); border-radius: 10px; padding: 11px 12px; color: var(--vw-ink); background: #fff; box-shadow: none; text-align: left; }
.family-value-watch-page .vw-metric-list strong,
.family-value-watch-page .vw-metric-list small { display: block; }
.family-value-watch-page .vw-metric-list strong { font-size: 12px; }
.family-value-watch-page .vw-metric-list small { margin-top: 2px; color: var(--vw-muted); font-size: 10px; }
.family-value-watch-page .vw-metric-list b { color: var(--vw-indigo); font-size: 12px; }

.app-shell.family-mode:not(.mobile-demo-active) #family-asset-iq-view .family-value-watch-page :is(button, .vw-btn):hover,
.app-shell.family-mode:not(.mobile-demo-active) #family-asset-iq-view .family-value-watch-page :is(button, .vw-btn):focus-visible { transform: none !important; box-shadow: none !important; }
.app-shell.family-mode:not(.mobile-demo-active) #family-asset-iq-view .family-value-watch-page .vw-btn:hover,
.app-shell.family-mode:not(.mobile-demo-active) #family-asset-iq-view .family-value-watch-page .vw-btn:focus-visible { border-color: #dfe1e8 !important; color: #333646 !important; background: #fff !important; }
.app-shell.family-mode:not(.mobile-demo-active) #family-asset-iq-view .family-value-watch-page .vw-btn.primary:hover,
.app-shell.family-mode:not(.mobile-demo-active) #family-asset-iq-view .family-value-watch-page .vw-btn.primary:focus-visible { border-color: var(--vw-indigo) !important; color: #fff !important; background: var(--vw-indigo) !important; }

@media (max-width: 1100px) {
  .family-value-watch-columns { grid-template-columns: minmax(0,1fr); }
  .family-value-watch-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .app-shell.family-mode.family-value-watch-active { grid-template-columns: minmax(0,1fr); }
  .app-shell.family-mode.family-value-watch-active .workspace { padding: 20px 18px 44px; }
  .family-value-watch-metrics,
  .family-value-watch-page .vw-form-grid,
  .family-value-watch-page .vw-class-fields,
  .family-value-watch-page .vw-inventory-tools,
  .family-value-watch-page .vw-sale-options,
  .family-value-watch-page .vw-modal-form { grid-template-columns: minmax(0,1fr); }
  .family-value-watch-monitor { align-items: flex-start; flex-wrap: wrap; }
  .family-value-watch-page .vw-monitor-count { margin-left: 0; }
  .family-value-watch-page .vw-suggestion { grid-template-columns: 24px 34px minmax(0,1fr) auto; }
  .family-value-watch-page .vw-reasons { display: none; }
  .family-value-watch-page .vw-modal > footer { align-items: stretch; flex-direction: column; }
  .family-value-watch-page .vw-modal > footer .vw-btn { width: 100%; }
}

/* Inheritance Planning — exact shared-pool fairness wireframe */
.app-shell.family-mode.family-inheritance-active {
  grid-template-columns: 210px minmax(0, 1fr);
  background: #f3f4f7;
}
.app-shell.family-mode.family-inheritance-active .sidebar {
  width: 210px;
  border-right: 1px solid #e7e8ee;
  background: #fff;
  box-shadow: none;
}
.app-shell.family-mode.family-inheritance-active .sidebar-brand { padding: 22px 16px 0; }
.app-shell.family-mode.family-inheritance-active .family-sidebar-wordmark {
  color: #141428;
  font: 800 19px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: -0.3px;
}
.app-shell.family-mode.family-inheritance-active .family-sidebar-wordmark span { color: #6d5ef5; }
.app-shell.family-mode.family-inheritance-active .family-sidebar-tagline {
  margin-top: 2px;
  color: #9ca3af;
  font: 500 11px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}
.app-shell.family-mode.family-inheritance-active .family-nav-list { gap: 2px; margin-top: 26px; padding: 0 16px; }
.app-shell.family-mode.family-inheritance-active .family-nav-list .nav-item {
  min-height: 0;
  border: 0 !important;
  border-radius: 10px;
  padding: 9px 12px;
  color: #4b5563 !important;
  background: transparent !important;
  box-shadow: none !important;
  font: 400 13.5px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}
.app-shell.family-mode.family-inheritance-active .family-nav-list .nav-item:hover,
.app-shell.family-mode.family-inheritance-active .family-nav-list .nav-item:focus-visible { color: #4b5563 !important; background: #f6f7fa !important; }
.app-shell.family-mode.family-inheritance-active .family-nav-list .nav-item.is-active { color: #5b4fe0 !important; background: #eef0fe !important; font-weight: 600; }
.app-shell.family-mode.family-inheritance-active .family-nav-list .support-nav-item { margin-top: 14px; border-top: 1px solid #e7e8ee !important; border-radius: 0 0 10px 10px; padding-top: 23px; }
.app-shell.family-mode.family-inheritance-active .nav-item-mobile-demo,
.app-shell.family-mode.family-inheritance-active .sidebar-footer { display: none !important; }
.app-shell.family-mode.family-inheritance-active .workspace {
  width: 100%;
  max-width: 1520px;
  padding: 26px 30px 60px;
  background: #f3f4f7;
}
.app-shell.family-mode.family-inheritance-active .topbar {
  display: grid !important;
  gap: 18px !important;
  margin: 0 0 22px !important;
  border: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.app-shell.family-mode.family-inheritance-active .topbar .eyebrow {
  margin: 0 !important;
  color: #6d5ef5 !important;
  font: 700 11px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif !important;
  letter-spacing: 0.14em !important;
}
.app-shell.family-mode.family-inheritance-active .topbar h1 {
  margin: 2px 0 0 !important;
  color: #141428 !important;
  font: 700 27px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif !important;
  letter-spacing: -0.5px !important;
}
.app-shell.family-mode.family-inheritance-active .alerts-top-button,
.app-shell.family-mode.family-inheritance-active .family-global-search-shortcut,
.app-shell.family-mode.family-inheritance-active .family-global-search-voice { display: none !important; }
.app-shell.family-mode.family-inheritance-active .family-command-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; }
.app-shell.family-mode.family-inheritance-active .family-global-search-form {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  min-height: 0;
  border: 1px solid #e7e8ee;
  border-radius: 12px;
  padding: 12px 16px;
  background: #fff;
  box-shadow: none;
}
.app-shell.family-mode.family-inheritance-active .family-global-search-icon { color: #141428; }
.app-shell.family-mode.family-inheritance-active .family-global-search-form input { color: #141428; font-size: 13.5px; }
.app-shell.family-mode.family-inheritance-active .family-global-search-form input::placeholder { color: #9ca3af; }
.app-shell.family-mode.family-inheritance-active .council-top-button,
.app-shell.family-mode.family-inheritance-active .avi-top-button { min-height: 0; border-radius: 10px; padding: 10px 16px; font-size: 13px; font-weight: 600; }
.app-shell.family-mode.family-inheritance-active .council-top-button,
.app-shell.family-mode.family-inheritance-active .council-top-button:hover,
.app-shell.family-mode.family-inheritance-active .council-top-button:focus-visible { border: 1px solid #dcd9fb !important; color: #5b4fe0 !important; background: #f6f5ff !important; box-shadow: none !important; }
.app-shell.family-mode.family-inheritance-active .avi-top-button,
.app-shell.family-mode.family-inheritance-active .avi-top-button:hover,
.app-shell.family-mode.family-inheritance-active .avi-top-button:focus-visible { border: 1px solid #b8933f !important; color: #6f5310 !important; background: #f6edd8 !important; box-shadow: none !important; }

.family-inheritance-planning-page {
  --ip-bg: #f3f4f7;
  --ip-panel: #fff;
  --ip-ink: #141428;
  --ip-muted: #6b7280;
  --ip-faint: #9ca3af;
  --ip-line: #e7e8ee;
  --ip-line-2: #eef0f4;
  --ip-indigo: #5b4fe0;
  --ip-indigo-2: #7c6bf0;
  --ip-purple-a: #6d5ef5;
  --ip-purple-b: #a855f7;
  --ip-green: #0fae7f;
  --ip-green-bg: #e7f7f0;
  --ip-amber: #c47f12;
  --ip-amber-bg: #fbf1dd;
  --ip-red: #d9534f;
  --ip-red-bg: #fdeceb;
  color: var(--ip-ink);
  font: 400 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}
.family-inheritance-planning-page *,
.family-inheritance-planning-page *::before,
.family-inheritance-planning-page *::after { box-sizing: border-box; }
.app-shell.family-mode.family-inheritance-active #family-asset-iq-content,
.app-shell.family-mode.family-inheritance-active .family-inheritance-planning-page { padding: 0; }
.family-inheritance-planning-page .metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.family-inheritance-planning-page .m { position: relative; overflow: hidden; border: 1px solid var(--ip-line); border-radius: 16px; padding: 18px 20px; background: #fff; box-shadow: none; }
.family-inheritance-planning-page .m.feat { border: 0; color: #fff; background: linear-gradient(135deg, var(--ip-purple-a), var(--ip-purple-b)); }
.family-inheritance-planning-page .m .lab { color: var(--ip-muted); font-size: 12px; font-weight: 600; }
.family-inheritance-planning-page .m.feat .lab,
.family-inheritance-planning-page .m.feat .sub { color: rgba(255,255,255,.85); }
.family-inheritance-planning-page .m .big { margin: 8px 0 2px; color: inherit; font-size: 29px; font-weight: 800; line-height: 1.2; letter-spacing: -1px; }
.family-inheritance-planning-page .m .sub { color: var(--ip-faint); font-size: 12px; }
.family-inheritance-planning-page .m .pill { display: inline-block; margin-top: 8px; border-radius: 20px; padding: 2px 8px; font-size: 11px; font-weight: 700; }
.family-inheritance-planning-page .warn { color: var(--ip-amber); background: var(--ip-amber-bg); }
.family-inheritance-planning-page .up { color: var(--ip-green); background: var(--ip-green-bg); }
.family-inheritance-planning-page .cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; margin-bottom: 22px; }
.family-inheritance-planning-page .card,
.family-inheritance-planning-page .tablecard { margin: 0; border: 1px solid var(--ip-line); border-radius: 16px; padding: 22px; background: #fff; box-shadow: none; }
.family-inheritance-planning-page .tablecard { margin-bottom: 22px; }
.family-inheritance-planning-page .sechead { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.app-shell.family-mode.family-inheritance-active #family-asset-iq-view .family-inheritance-planning-page .eyebrow { color: var(--ip-purple-a); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.family-inheritance-planning-page .sechead h2 { margin: 2px 0 0; color: var(--ip-ink); font-size: 18px; font-weight: 700; letter-spacing: 0; }
.family-inheritance-planning-page .count { border: 1px solid var(--ip-line); border-radius: 20px; padding: 3px 10px; color: var(--ip-faint); font-size: 11.5px; white-space: nowrap; }
.family-inheritance-planning-page .btiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.family-inheritance-planning-page .btile { display: block; min-height: 0; border: 1px solid var(--ip-line); border-radius: 13px; padding: 15px 16px; color: var(--ip-ink); background: #fff; box-shadow: none; text-align: left; cursor: pointer; transition: .15s; }
.family-inheritance-planning-page .btile:hover,
.family-inheritance-planning-page .btile:focus-visible { border-color: var(--ip-indigo-2) !important; color: var(--ip-ink) !important; background: #fff !important; box-shadow: 0 0 0 2px #eef0fe !important; transform: none !important; }
.family-inheritance-planning-page .btile .bn { display: block; font-size: 13.5px; font-weight: 700; }
.family-inheritance-planning-page .btile .bv { display: block; margin: 6px 0 2px; color: var(--ip-indigo); font-size: 22px; font-weight: 800; line-height: 1.2; letter-spacing: -.5px; }
.family-inheritance-planning-page .btile .bc { display: block; color: var(--ip-faint); font-size: 11.5px; }
.family-inheritance-planning-page .btile .brk { display: block; margin-top: 7px; color: var(--ip-faint); font-size: 11px; line-height: 1.4; }
.family-inheritance-planning-page .poolsec { margin-top: 16px; border-top: 1px solid var(--ip-line-2); padding-top: 15px; }
.family-inheritance-planning-page .poolsec .ph { margin-bottom: 11px; color: var(--ip-faint); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.family-inheritance-planning-page .pooltile { display: block; width: 100%; min-height: 0; border: 1px solid var(--ip-line); border-radius: 13px; padding: 14px 16px; color: var(--ip-ink); background: #fbfbfe; box-shadow: none; text-align: left; cursor: pointer; transition: .15s; }
.family-inheritance-planning-page .pooltile:hover,
.family-inheritance-planning-page .pooltile:focus-visible { border-color: var(--ip-indigo-2) !important; color: var(--ip-ink) !important; background: #fbfbfe !important; box-shadow: 0 0 0 2px #eef0fe !important; transform: none !important; }
.family-inheritance-planning-page .pooltile .pn { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 700; }
.family-inheritance-planning-page .pooltile .pv { display: block; margin: 6px 0 2px; color: var(--ip-indigo); font-size: 20px; font-weight: 800; line-height: 1.2; }
.family-inheritance-planning-page .pooltile .pc { display: block; color: var(--ip-faint); font-size: 11.5px; }
.family-inheritance-planning-page .tag.shared { border-radius: 20px; padding: 2px 9px; color: var(--ip-indigo); background: #eef0fe; font-size: 10px; font-weight: 700; letter-spacing: .02em; }
.family-inheritance-planning-page .addbene { display: inline-block; min-height: 0; margin-top: 14px; border: 0; padding: 0; color: var(--ip-indigo); background: transparent; box-shadow: none; font-size: 13px; font-weight: 600; cursor: pointer; }
.family-inheritance-planning-page .addbene:hover,
.family-inheritance-planning-page .addbene:focus-visible { color: var(--ip-indigo) !important; background: transparent !important; box-shadow: none !important; transform: none !important; }

.family-inheritance-planning-page .note { display: flex; align-items: center; gap: 14px; margin-bottom: 11px; border: 1px solid var(--ip-line-2); border-radius: 12px; padding: 14px 16px; background: #f8f9fb; }
.family-inheritance-planning-page .note:last-child { margin-bottom: 0; }
.family-inheritance-planning-page .note > div { flex: 1; min-width: 0; }
.family-inheritance-planning-page .note p { margin: 0; color: #3f4654; font-size: 13px; }
.family-inheritance-planning-page .src { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--ip-faint); font-size: 11px; }
.family-inheritance-planning-page .src.council { color: #7a5b12; }
.family-inheritance-planning-page .btn { min-height: 0; border: 1px solid var(--ip-line); border-radius: 10px; padding: 10px 16px; color: var(--ip-ink); background: #fff; box-shadow: none; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.family-inheritance-planning-page .btn.sm { padding: 7px 12px; font-size: 12.5px; }
.family-inheritance-planning-page .btn.ghost { border-color: #dcd9fb; color: var(--ip-indigo); background: #f6f5ff; }
.family-inheritance-planning-page .btn.primary { border-color: var(--ip-indigo); color: #fff; background: var(--ip-indigo); }
.app-shell.family-mode:not(.mobile-demo-active) #family-asset-iq-view .family-inheritance-planning-page .btn:hover,
.app-shell.family-mode:not(.mobile-demo-active) #family-asset-iq-view .family-inheritance-planning-page .btn:focus-visible { border-color: var(--ip-line) !important; color: var(--ip-ink) !important; background: #fff !important; box-shadow: none !important; transform: none !important; }
.app-shell.family-mode:not(.mobile-demo-active) #family-asset-iq-view .family-inheritance-planning-page .btn.ghost:hover,
.app-shell.family-mode:not(.mobile-demo-active) #family-asset-iq-view .family-inheritance-planning-page .btn.ghost:focus-visible { border-color: #dcd9fb !important; color: var(--ip-indigo) !important; background: #f6f5ff !important; }
.app-shell.family-mode:not(.mobile-demo-active) #family-asset-iq-view .family-inheritance-planning-page .btn.primary:hover,
.app-shell.family-mode:not(.mobile-demo-active) #family-asset-iq-view .family-inheritance-planning-page .btn.primary:focus-visible { border-color: var(--ip-indigo) !important; color: #fff !important; background: var(--ip-indigo) !important; }
.family-inheritance-planning-page .filterrow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.family-inheritance-planning-page .fchip { min-height: 0; border: 1px solid var(--ip-line); border-radius: 20px; padding: 6px 13px; color: #5b6472; background: #fff; box-shadow: none; font-size: 12px; font-weight: 600; cursor: pointer; }
.family-inheritance-planning-page .fchip.on { border-color: var(--ip-indigo); color: #fff; background: var(--ip-indigo); }
.family-inheritance-planning-page .fchip:hover,
.family-inheritance-planning-page .fchip:focus-visible { border-color: var(--ip-line) !important; color: #5b6472 !important; background: #fff !important; box-shadow: none !important; transform: none !important; }
.family-inheritance-planning-page .fchip.on:hover,
.family-inheritance-planning-page .fchip.on:focus-visible { border-color: var(--ip-indigo) !important; color: #fff !important; background: var(--ip-indigo) !important; }
.family-inheritance-planning-page .inheritance-table-wrap { overflow-x: auto; }
.family-inheritance-planning-page .tbl { width: 100%; border-collapse: collapse; }
.family-inheritance-planning-page .tbl thead th { border-bottom: 1px solid var(--ip-line-2); padding: 0 14px 11px; color: var(--ip-faint); font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.family-inheritance-planning-page .tbl thead th.n { text-align: right; }
.family-inheritance-planning-page .tbl thead th .i { display: inline-flex; width: 14px; height: 14px; align-items: center; justify-content: center; margin-left: 5px; border-radius: 50%; color: #fff; background: #c9cdd6; font-size: 9px; font-style: normal; }
.family-inheritance-planning-page .tbl tbody td { border-bottom: 1px solid var(--ip-line-2); padding: 14px; vertical-align: middle; }
.family-inheritance-planning-page .tbl tbody tr:last-child td { border-bottom: 0; }
.family-inheritance-planning-page .tbl tbody tr:hover { background: #fafbfc; }
.family-inheritance-planning-page .tbl tbody tr.clik { cursor: pointer; }
.family-inheritance-planning-page .asset { display: flex; align-items: center; gap: 13px; }
.family-inheritance-planning-page .asset .th { display: flex; flex: 0 0 auto; width: 44px; height: 44px; align-items: center; justify-content: center; overflow: hidden; border-radius: 9px; background: #f0f1f6; font-size: 22px; }
.family-inheritance-planning-page .asset .th img { width: 100%; height: 100%; object-fit: cover; }
.family-inheritance-planning-page .asset .an { display: block; color: var(--ip-ink); font-size: 14px; font-weight: 700; }
.family-inheritance-planning-page .asset .at { display: block; color: var(--ip-faint); font-size: 12px; }
.family-inheritance-planning-page .tval { color: var(--ip-indigo); font-size: 14px; font-weight: 700; text-align: right; white-space: nowrap; }
.family-inheritance-planning-page .inheritance-market-trend { font-size: 13px; font-weight: 700; text-align: right; white-space: nowrap; }
.family-inheritance-planning-page .loc { color: #4b5563; font-size: 13px; }
.family-inheritance-planning-page .pills { display: flex; flex-wrap: wrap; gap: 6px; }
.family-inheritance-planning-page .st { border-radius: 20px; padding: 4px 9px; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.family-inheritance-planning-page .st.assigned { color: var(--ip-indigo); background: #eeecfe; }
.family-inheritance-planning-page .st.unassigned { color: var(--ip-red); background: var(--ip-red-bg); }
.family-inheritance-planning-page .st.appr { color: #5b6472; background: #f0f1f5; }
.family-inheritance-planning-page .st.cov { color: var(--ip-amber); background: var(--ip-amber-bg); }
.family-inheritance-planning-page .rowacts { display: flex; justify-content: flex-end; gap: 8px; }
.family-inheritance-planning-page .emptybox { border: 1.5px dashed #cdd0da; border-radius: 13px; padding: 26px; color: var(--ip-muted); background: #fafbfc; text-align: center; }
.family-inheritance-planning-page .emptybox b { display: block; margin-bottom: 4px; color: var(--ip-ink); font-size: 15px; }

.family-inheritance-planning-page .overlay { position: fixed; z-index: 80; inset: 0; display: flex; align-items: flex-start; justify-content: center; overflow: auto; padding: 40px 20px; background: rgba(20,20,40,.42); backdrop-filter: blur(2px); }
.family-inheritance-planning-page .modal { width: 680px; max-width: 100%; overflow: hidden; border-radius: 20px; background: #fff; box-shadow: 0 24px 60px rgba(20,20,50,.25); }
.family-inheritance-planning-page .modal.sm { width: 460px; }
.family-inheritance-planning-page .mhead { display: flex; align-items: flex-start; gap: 12px; border-bottom: 1px solid var(--ip-line-2); padding: 20px 24px; }
.family-inheritance-planning-page .mhead .mic { display: flex; flex: 0 0 auto; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 11px; color: var(--ip-indigo); background: #eef0fe; font-size: 20px; font-weight: 800; }
.family-inheritance-planning-page .mhead h3 { margin: 0; color: var(--ip-ink); font-size: 17px; font-weight: 700; }
.family-inheritance-planning-page .mhead p { margin: 3px 0 0; color: var(--ip-muted); font-size: 12.5px; }
.family-inheritance-planning-page .mclose { flex: 0 0 auto; width: 30px; min-width: 30px; height: 30px; min-height: 0; margin-left: auto; border: 0; border-radius: 9px; padding: 0; color: #6b7280; background: #f2f3f6; box-shadow: none; font-size: 16px; cursor: pointer; }
.family-inheritance-planning-page .mclose:hover,
.family-inheritance-planning-page .mclose:focus-visible { color: #6b7280 !important; background: #f2f3f6 !important; box-shadow: none !important; transform: none !important; }
.family-inheritance-planning-page .mbody { max-height: 64vh; overflow: auto; padding: 20px 24px; }
.family-inheritance-planning-page .mbody.nopad { padding: 8px 12px; }
.family-inheritance-planning-page .mfoot { display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--ip-line-2); padding: 16px 24px; background: #fbfbfd; }
.family-inheritance-planning-page .msum { display: flex; gap: 26px; margin-bottom: 8px; border: 1px solid var(--ip-line-2); border-radius: 12px; padding: 14px 16px; background: #f7f8fb; }
.family-inheritance-planning-page .msum > div { min-width: 0; }
.family-inheritance-planning-page .msum .k { color: var(--ip-faint); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.family-inheritance-planning-page .msum .v { margin-top: 3px; color: var(--ip-ink); font-size: 19px; font-weight: 800; line-height: 1.25; }
.family-inheritance-planning-page .pool-split-value { font-size: 14px !important; }
.family-inheritance-planning-page label { display: block; margin: 0 0 6px; color: #6b7280; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.family-inheritance-planning-page .fld { margin-bottom: 14px; }
.app-shell.family-mode.family-inheritance-active #family-asset-iq-view .family-inheritance-planning-page :is(input, select, textarea) { width: 100%; border: 1px solid var(--ip-line); border-radius: 10px; padding: 11px 12px; color: var(--ip-ink); background: #fff; box-shadow: none; font-family: inherit; font-size: 13.5px; font-weight: 400; line-height: 1.45; }
.family-inheritance-planning-page textarea { min-height: 60px; resize: vertical; }
.family-inheritance-planning-page .k2 { margin: 18px 0 11px; color: var(--ip-purple-a); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.family-inheritance-planning-page .k2:first-child { margin-top: 2px; }
.family-inheritance-planning-page .noteline { display: flex; align-items: center; gap: 7px; margin: 10px 0 4px; color: var(--ip-muted); font-size: 12px; }
.family-inheritance-planning-page .facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin-top: 2px; }
.family-inheritance-planning-page .fact { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--ip-line-2); padding: 11px 0; font-size: 13px; }
.family-inheritance-planning-page .fact .fk { color: var(--ip-muted); }
.family-inheritance-planning-page .fact .fv { font-weight: 600; text-align: right; }
.family-inheritance-planning-page .docrow { display: flex; align-items: center; gap: 9px; padding: 8px 0; color: #3f4654; font-size: 12.5px; }
.family-inheritance-planning-page .docrow .di { font-size: 15px; }
.family-inheritance-planning-page .calcbox { border: 1px solid var(--ip-line-2); border-radius: 12px; padding: 16px; color: #2f3542; background: #f7f8fb; font-size: 15px; font-weight: 700; letter-spacing: -.2px; text-align: center; }
.family-inheritance-planning-page .calcbox small { display: block; margin-top: 6px; color: var(--ip-faint); font-size: 11.5px; font-weight: 600; letter-spacing: 0; }
.family-inheritance-planning-page .eqrow { margin-bottom: 16px; }
.family-inheritance-planning-page .eqtop { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 7px; }
.family-inheritance-planning-page .eqtop .nm { font-size: 13.5px; font-weight: 600; }
.family-inheritance-planning-page .eqtop .dl { font-size: 12.5px; font-weight: 700; }
.family-inheritance-planning-page .dl.over { color: var(--ip-amber); }
.family-inheritance-planning-page .dl.under { color: var(--ip-indigo); }
.family-inheritance-planning-page .dl.even { color: var(--ip-green); }
.family-inheritance-planning-page .eqtrack { position: relative; height: 11px; border-radius: 6px; background: #eef0f4; }
.family-inheritance-planning-page .eqtrack i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--ip-purple-a), var(--ip-purple-b)); }
.family-inheritance-planning-page .eqmark { position: absolute; top: -3px; bottom: -3px; width: 2px; border-radius: 2px; background: #141428; }
.family-inheritance-planning-page .eqval2 { margin-top: 5px; color: var(--ip-faint); font-size: 11.5px; }
.family-inheritance-planning-page .legend { display: flex; align-items: center; gap: 7px; margin-top: 2px; color: var(--ip-muted); font-size: 11.5px; }
.family-inheritance-planning-page .legend-mark { width: 2px; height: 13px; border-radius: 2px; background: #141428; }
.family-inheritance-planning-page .sugg { display: flex; gap: 11px; margin-bottom: 9px; border: 1px solid var(--ip-line); border-radius: 12px; padding: 12px 14px; }
.family-inheritance-planning-page .sugg .sn { display: flex; flex: 0 0 auto; width: 22px; height: 22px; align-items: center; justify-content: center; margin-top: 1px; border-radius: 50%; color: var(--ip-indigo); background: #eef0fe; font-size: 12px; font-weight: 800; }
.family-inheritance-planning-page .sugg b { font-size: 13px; }
.family-inheritance-planning-page .sugg .sd { margin-top: 2px; color: var(--ip-muted); font-size: 12px; }
.family-inheritance-planning-page .review-source { margin-top: 14px; }
.family-inheritance-planning-page .balgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 4px 0 6px; }
.family-inheritance-planning-page .balcard { border: 1px solid var(--ip-line); border-radius: 12px; padding: 12px 14px; }
.family-inheritance-planning-page .balcard .bn { font-size: 12.5px; font-weight: 700; }
.family-inheritance-planning-page .balcard .bt { margin: 5px 0 2px; font-size: 18px; font-weight: 800; letter-spacing: -.5px; }
.family-inheritance-planning-page .balcard .bd { font-size: 11.5px; font-weight: 700; }
.family-inheritance-planning-page .bd.over { color: var(--ip-amber); }
.family-inheritance-planning-page .bd.under { color: var(--ip-indigo); }
.family-inheritance-planning-page .bd.even { color: var(--ip-green); }
.family-inheritance-planning-page .balcard .brk { margin-top: 4px; color: var(--ip-faint); font-size: 11px; }
.family-inheritance-planning-page .minibar { position: relative; height: 8px; margin-top: 9px; border-radius: 5px; background: #eef0f4; }
.family-inheritance-planning-page .minibar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--ip-purple-a), var(--ip-purple-b)); }
.family-inheritance-planning-page .minibar .mk { position: absolute; top: -2px; bottom: -2px; width: 2px; border-radius: 2px; background: #141428; }
.app-shell.family-mode.family-inheritance-active #family-asset-iq-view .family-inheritance-planning-page .assignsel { width: 210px; padding: 8px 10px; font-size: 12.5px; }
.family-inheritance-planning-page .workbench-calc { margin-bottom: 14px; }
.family-inheritance-planning-page .modal-asset-table .asset .th,
.family-inheritance-planning-page .workbench-table .asset .th { width: 36px; height: 36px; font-size: 18px; }
.family-inheritance-planning-page .inheritor-profile-panel { border: 0; padding: 0; background: transparent; box-shadow: none; }
.family-inheritance-planning-page .inheritor-profile-panel > summary { display: none; }
.family-inheritance-planning-page .inheritor-profile-editor { margin: 0; }

@media (max-width: 1150px) {
  .family-inheritance-planning-page .cols { grid-template-columns: minmax(0, 1fr); }
  .family-inheritance-planning-page .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .app-shell.family-mode.family-inheritance-active { grid-template-columns: minmax(0, 1fr); }
  .app-shell.family-mode.family-inheritance-active .workspace { padding: 20px 18px 44px; }
  .family-inheritance-planning-page .metrics,
  .family-inheritance-planning-page .btiles,
  .family-inheritance-planning-page .facts { grid-template-columns: minmax(0, 1fr); }
  .family-inheritance-planning-page .mfoot,
  .family-inheritance-planning-page .msum { align-items: stretch; flex-direction: column; }
  .family-inheritance-planning-page .mfoot .btn { width: 100%; }
}

.family-story-capture {
  display: grid;
  gap: 0.85rem;
  margin: 0.3rem 0 0.65rem;
  padding: 1rem;
  border: 1px solid #dfe4ff;
  border-radius: 16px;
  background: linear-gradient(145deg, #fafaff 0%, #f5f7ff 100%);
}

.family-story-capture-heading,
.family-story-composer-heading,
.family-story-audio-ready,
.family-story-recorder,
.family-story-item-actions,
.family-story-archive > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.family-story-capture-heading > div {
  display: grid;
  gap: 0.18rem;
}

.family-story-capture-heading strong {
  font-size: 1rem;
}

.family-story-capture-heading small,
.family-story-recorder span {
  color: var(--muted);
  line-height: 1.4;
}

.family-story-count {
  flex: 0 0 auto;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: #e8eaff;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
}

.family-story-capture-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.family-story-capture-actions button {
  min-width: 0;
  min-height: 42px;
  padding: 0.55rem 0.7rem;
  white-space: normal;
}

.family-story-composer {
  display: grid;
  gap: 0.8rem;
  padding: 0.9rem;
  border: 1px solid #d7dcff;
  border-radius: 14px;
  background: #fff;
}

.family-story-recorder {
  justify-content: flex-start;
  padding: 0.75rem;
  border-radius: 12px;
  background: #f5f6fc;
}

.family-story-recorder button.is-recording {
  border-color: #b4232d;
  background: #b4232d;
  color: #fff;
}

.family-story-audio-ready {
  flex-wrap: wrap;
  padding: 0.7rem;
  border-radius: 12px;
  background: #edf8f1;
  color: #185c39;
  font-size: 0.82rem;
  font-weight: 700;
}

.family-story-empty {
  margin: 0;
}

.family-story-item-actions {
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.family-story-version-list {
  display: grid;
  flex-basis: 100%;
  gap: 0.3rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.family-story-version-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.family-story-version-list > div > span {
  display: flex;
  gap: 0.35rem;
}

.family-story-archive {
  padding-top: 0.25rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.family-story-archive > div {
  margin-top: 0.55rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.access-asset-stories article small {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
}

.access-asset-stories article button {
  margin-top: 0.6rem;
}

@media (max-width: 760px) {
  .family-story-capture-actions {
    grid-template-columns: 1fr;
  }

  .family-story-capture-heading,
  .family-story-recorder,
  .family-asset-story-list article {
    align-items: stretch;
    flex-direction: column;
  }

  .family-story-count {
    align-self: flex-start;
  }

  .family-story-item-actions {
    justify-content: flex-start;
  }
}

/* Quinn assistant framework: compact dock and expanded rail */
.avi-drawer {
  --quinn-champ: #b8873e;
  --quinn-champ-deep: #8a6222;
  --quinn-champ-soft: #f7efe1;
  --quinn-champ-line: #e6d3ac;
  --quinn-champ-text: #6e4e1c;
  --quinn-ink: #12131a;
  --quinn-ink-2: #3a3d47;
  --quinn-ink-soft: #6b7280;
  --quinn-ink-faint: #9aa1ad;
  --quinn-line: #e9ebf0;
  z-index: 150;
  pointer-events: none;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.avi-drawer .drawer-overlay {
  display: none !important;
}

.avi-drawer:not(.is-helper-mode) .drawer-panel.avi-panel {
  position: fixed;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--quinn-line);
  padding: 0;
  color: var(--quinn-ink);
  background: #fbfaf7;
  pointer-events: auto;
  transform: none;
  transition:
    width 280ms ease,
    height 280ms ease,
    border-radius 280ms ease,
    box-shadow 280ms ease;
}

.avi-drawer.is-compact:not(.is-helper-mode) .drawer-panel.avi-panel {
  top: auto;
  right: 20px;
  bottom: 20px;
  left: auto;
  width: 344px;
  height: auto;
  max-height: min(560px, calc(100dvh - 40px));
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(20, 23, 40, 0.18);
}

.avi-drawer.is-expanded:not(.is-helper-mode) .drawer-panel.avi-panel {
  top: var(--quinn-top, 0);
  right: 0;
  bottom: 0;
  left: auto;
  width: 362px;
  height: calc(100dvh - var(--quinn-top, 0px));
  max-height: none;
  border-width: 0 0 0 1px;
  border-radius: 0;
  box-shadow: none;
}

.avi-drawer:not(.is-helper-mode) .drawer-header {
  position: static;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--quinn-line);
  padding: 12px 14px;
  background: transparent;
  cursor: default;
  touch-action: auto;
}

.avi-drawer.is-compact:not(.is-helper-mode) .drawer-header {
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.avi-drawer.is-compact:not(.is-helper-mode) .avi-panel.is-dragging .drawer-header {
  cursor: grabbing;
}

.avi-drawer.is-expanded:not(.is-helper-mode) .drawer-header {
  gap: 11px;
  padding: 13px 15px;
}

.quinn-bloom-box {
  position: relative;
  display: flex;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
}

.avi-drawer.is-expanded .quinn-bloom-box {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
}

.quinn-bloom {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150px;
  height: 150px;
  transform: translate(-50%, -50%) scale(0.25);
}

.avi-drawer.is-expanded .quinn-bloom {
  transform: translate(-50%, -50%) scale(0.26);
}

.quinn-petal {
  position: absolute;
  bottom: 50%;
  left: 50%;
  width: 40px;
  height: 64px;
  margin-left: -20px;
  border-radius: 50% 50% 46% 46% / 62% 62% 38% 38%;
  opacity: 0.55;
  transform-origin: 50% 100%;
  animation: quinn-bloom 4.6s infinite ease-in-out;
}

.quinn-petal.is-purple {
  background: linear-gradient(180deg, #ddd6fe, #a78bfa);
}

.quinn-petal.is-blue {
  background: linear-gradient(180deg, #bae6fd, #38bdf8);
}

.quinn-petal.is-indigo {
  background: linear-gradient(180deg, #c7d2fe, #818cf8);
}

.quinn-petal.is-green {
  background: linear-gradient(180deg, #bbf7d0, #4ade80);
}

.quinn-pearl {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff, #e0e7ff 60%, #a5b4fc);
  box-shadow: 0 3px 14px rgba(99, 102, 241, 0.4);
  transform: translate(-50%, -50%);
  animation: quinn-pearl 4.6s infinite ease-in-out;
}

@keyframes quinn-pearl {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.13); }
}

@keyframes quinn-bloom {
  0%, 100% {
    opacity: 0.32;
    transform: rotate(calc(var(--quinn-angle) * 0.16)) scale(0.86);
  }
  50% {
    opacity: 0.6;
    transform: rotate(var(--quinn-angle)) scale(1);
  }
}

.quinn-identity {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.25;
}

.avi-drawer:not(.is-helper-mode) .quinn-identity h2 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.quinn-status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--quinn-champ-deep);
  font-size: 11px;
  font-weight: 600;
}

.quinn-wave {
  display: none;
  height: 11px;
  align-items: center;
  gap: 2px;
}

.quinn-status.is-active .quinn-wave {
  display: inline-flex;
}

.quinn-wave i {
  width: 2px;
  height: 4px;
  border-radius: 2px;
  background: var(--quinn-champ);
  animation: quinn-wave 0.9s infinite ease-in-out;
}

.quinn-wave i:nth-child(2) { animation-delay: 0.15s; }
.quinn-wave i:nth-child(3) { animation-delay: 0.3s; }
.quinn-wave i:nth-child(4) { animation-delay: 0.45s; }
.quinn-wave i:nth-child(5) { animation-delay: 0.6s; }

@keyframes quinn-wave {
  0%, 100% { height: 4px; }
  50% { height: 11px; }
}

.quinn-header-spacer {
  flex: 1 1 auto;
}

.quinn-icon-button,
.quinn-composer-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid var(--quinn-line) !important;
  color: var(--quinn-ink-soft) !important;
  background: #fff !important;
  box-shadow: none !important;
}

.quinn-icon-button {
  width: 27px;
  min-width: 27px !important;
  height: 27px;
  min-height: 27px !important;
  border-radius: 8px !important;
  padding: 0 !important;
}

.quinn-icon-button svg,
.quinn-composer-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quinn-expanded-tools {
  display: none;
}

.avi-drawer.is-expanded .quinn-expanded-tools {
  display: block;
  flex: 0 0 auto;
  padding: 10px 15px 0;
}

.avi-drawer:not(.is-helper-mode) .quinn-expanded-tools .avi-title-row,
.avi-drawer:not(.is-helper-mode) .quinn-expanded-tools .avi-access-note,
.avi-drawer:not(.is-helper-mode) .quinn-expanded-tools .avi-field-help-controls {
  display: none !important;
}

.avi-drawer:not(.is-helper-mode) .avi-page-context {
  display: inline-flex;
  width: fit-content;
  margin: 0;
  border: 1px solid var(--quinn-line);
  border-radius: 999px;
  padding: 5px 11px;
  color: var(--quinn-ink-soft);
  background: #fff;
  font-size: 10.5px;
  font-weight: 700;
}

.avi-drawer:not(.is-helper-mode) .avi-onboarding {
  margin: 10px 15px 0;
}

.avi-drawer:not(.is-helper-mode) .avi-messages {
  display: flex;
  min-height: 0;
  max-height: none;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 13px 14px;
}

.avi-drawer.is-expanded:not(.is-helper-mode) .avi-messages {
  gap: 11px;
  padding: 14px 15px;
}

.avi-drawer.is-compact:not(.is-helper-mode) .avi-message:not(:last-child) {
  display: none;
}

.avi-drawer:not(.is-helper-mode) .avi-message {
  width: auto;
  max-width: 88%;
  margin: 0;
  border: 1px solid var(--quinn-line);
  border-radius: 12px 12px 12px 4px;
  padding: 11px 13px;
  color: var(--quinn-ink-2);
  background: #fff;
  box-shadow: none;
}

.avi-drawer:not(.is-helper-mode) .avi-message-user {
  align-self: flex-end;
  border: 0;
  border-radius: 12px 12px 4px 12px;
  color: var(--quinn-champ-text);
  background: var(--quinn-champ-soft);
}

.avi-drawer:not(.is-helper-mode) .avi-message > span {
  display: block;
  margin-bottom: 4px;
  color: var(--quinn-champ-deep);
  font-size: 10.5px;
  font-weight: 800;
}

.avi-drawer:not(.is-helper-mode) .avi-message-user > span {
  display: none;
}

.avi-drawer:not(.is-helper-mode) .avi-message p {
  margin: 0;
  color: inherit;
  font-size: 12.5px;
  line-height: 1.5;
}

.avi-drawer:not(.is-helper-mode) .avi-message small {
  display: block;
  margin-top: 6px;
  color: var(--quinn-ink-faint);
  font-size: 10px;
}

.avi-drawer:not(.is-helper-mode) .avi-form {
  display: block;
  flex: 0 0 auto;
  border-top: 1px solid var(--quinn-line);
  padding: 12px 14px;
}

.avi-drawer.is-compact:not(.is-helper-mode) .avi-form {
  border-top: 0;
  padding-top: 0;
}

.avi-drawer:not(.is-helper-mode) .avi-composer {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--quinn-line);
  border-radius: 12px;
  padding: 8px 9px;
  background: #fff;
}

.avi-drawer:not(.is-helper-mode) .avi-composer textarea {
  min-width: 0;
  min-height: 29px;
  max-height: 86px;
  flex: 1 1 auto;
  resize: none;
  overflow-y: auto;
  border: 0 !important;
  border-radius: 0;
  padding: 5px 2px;
  color: var(--quinn-ink);
  background: transparent !important;
  box-shadow: none !important;
  font: inherit;
  font-size: 12.5px;
  line-height: 19px;
}

.avi-drawer:not(.is-helper-mode) .avi-composer textarea::placeholder {
  color: var(--quinn-ink-faint);
}

.quinn-composer-button {
  width: 29px;
  min-width: 29px !important;
  height: 29px;
  min-height: 29px !important;
  border-radius: 9px !important;
  padding: 0 !important;
}

.quinn-composer-button.is-send {
  border-color: var(--quinn-champ) !important;
  color: #fff !important;
  background: var(--quinn-champ) !important;
}

.quinn-composer-button.is-active {
  border-color: var(--quinn-champ-line) !important;
  color: var(--quinn-champ-deep) !important;
  background: var(--quinn-champ-soft) !important;
}

.quinn-composer-button.is-busy svg {
  animation: quinn-send-busy 0.8s linear infinite;
}

@keyframes quinn-send-busy {
  to { transform: rotate(360deg); }
}

.avi-drawer:not(.is-helper-mode) .avi-privacy-note {
  flex: 0 0 auto;
  margin: -5px 14px 12px;
  color: var(--quinn-ink-faint);
  font-size: 10.5px;
  text-align: center;
}

.avi-drawer.is-compact:not(.is-helper-mode) .avi-privacy-note,
.avi-drawer.is-compact:not(.is-helper-mode) .avi-onboarding,
.avi-drawer.is-compact:not(.is-helper-mode) .avi-action-review {
  display: none !important;
}

.quinn-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  clip-path: inset(50%) !important;
}

.quinn-start-state {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quinn-greeting {
  border: 1px solid var(--quinn-line);
  border-radius: 14px 14px 14px 4px;
  padding: 11px 13px;
  background: #fff;
}

.quinn-greeting > span {
  display: block;
  margin-bottom: 4px;
  color: var(--quinn-champ-deep);
  font-size: 10.5px;
  font-weight: 800;
}

.quinn-greeting p {
  margin: 0;
  color: var(--quinn-ink-2);
  font-size: 12.5px;
  line-height: 1.5;
}

.quinn-start-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: var(--quinn-ink-faint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.quinn-start-label b {
  border-radius: 999px;
  padding: 1px 6px;
  color: #fff;
  background: var(--quinn-champ);
  font-size: 9px;
}

.quinn-starter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.quinn-starter-grid button,
.quinn-attention-row {
  margin: 0;
  border: 1px solid var(--quinn-champ-line);
  color: var(--quinn-ink);
  background: #fff;
  box-shadow: none;
  text-align: left;
}

.quinn-starter-grid button {
  display: flex;
  min-height: 0;
  align-items: center;
  gap: 8px;
  border-radius: 11px;
  padding: 10px 11px;
  font-size: 12px;
  font-weight: 700;
}

.quinn-starter-grid button span {
  color: var(--quinn-champ-deep);
  font-size: 15px;
}

.quinn-starter-grid button:hover {
  background: var(--quinn-champ-soft) !important;
}

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

.quinn-attention-row {
  display: flex;
  min-height: 0;
  align-items: center;
  gap: 10px;
  border-color: var(--quinn-line);
  border-radius: 11px;
  padding: 9px 11px;
}

.quinn-attention-row:hover {
  border-color: var(--quinn-champ-line) !important;
  background: #fff !important;
}

.quinn-attention-icon {
  display: flex;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 13px;
}

.quinn-attention-icon.is-now { color: #ef4444; background: #fdecec; }
.quinn-attention-icon.is-soon { color: var(--quinn-champ-deep); background: #fef3e2; }
.quinn-attention-icon.is-later { color: var(--quinn-ink-soft); background: #f7f8fa; }

.quinn-attention-copy {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
}

.quinn-attention-copy strong,
.quinn-attention-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quinn-attention-copy strong {
  font-size: 12px;
  font-weight: 700;
}

.quinn-attention-copy span {
  margin-top: 2px;
  color: var(--quinn-ink-soft);
  font-size: 10.5px;
}

.quinn-attention-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 2px 8px;
  color: #fff;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.quinn-attention-badge.is-now { background: #ef4444; }
.quinn-attention-badge.is-soon { background: var(--quinn-champ); }
.quinn-attention-badge.is-later { background: #cdd0d6; }

.avi-drawer.is-compact .quinn-start-label,
.avi-drawer.is-compact .quinn-starter-grid,
.avi-drawer.is-compact .quinn-attention-list {
  display: none;
}

.app-shell .view-section {
  transition: margin-right 280ms ease;
}

.app-shell.has-quinn-rail .view-section {
  margin-right: 362px;
}

@media (max-width: 760px) {
  .app-shell.has-quinn-rail .view-section {
    margin-right: 0;
  }

  .avi-drawer.is-compact:not(.is-helper-mode) .drawer-panel.avi-panel {
    right: 12px;
    bottom: 12px;
    width: min(344px, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
  }

  .avi-drawer.is-expanded:not(.is-helper-mode) .drawer-panel.avi-panel {
    top: var(--quinn-top, 0);
    width: 100vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quinn-petal,
  .quinn-pearl,
  .quinn-wave i,
  .quinn-composer-button.is-busy svg {
    animation: none;
  }
}

/* Council of Experts drawer alignment and voice controls */
.council-drawer.asset-council-theme {
  z-index: 145;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.council-drawer.asset-council-theme .drawer-panel {
  display: grid;
  width: min(620px, 100%);
  height: 100dvh;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  align-content: start;
  gap: 14px;
  overflow-y: auto;
  border-left: 1px solid var(--paloist-line);
  padding: 20px;
  background: #f4f5f8;
}

.council-drawer.asset-council-theme .drawer-header {
  position: static;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--paloist-line);
  border-radius: 18px;
  padding: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.council-drawer.asset-council-theme .drawer-header .eyebrow {
  margin: 0;
  color: var(--paloist-copper);
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.council-drawer.asset-council-theme .drawer-header h2 {
  margin: 6px 0 0;
  color: var(--paloist-charcoal);
  font-size: 28px;
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.council-drawer.asset-council-theme .council-context-label {
  display: inline-flex;
  width: fit-content;
  margin-top: 12px;
  border: 1px solid #cfd3fb;
  border-radius: 999px;
  padding: 6px 11px;
  color: var(--paloist-copper);
  background: #eef0fe;
  font-size: 11px;
  font-weight: 800;
}

.council-drawer.asset-council-theme .drawer-close-button {
  display: inline-flex;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--paloist-line);
  border-radius: 11px;
  padding: 0;
  color: var(--paloist-taupe);
  background: #fff;
  box-shadow: none;
}

.council-drawer.asset-council-theme .drawer-close-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.council-drawer.asset-council-theme .council-form {
  display: grid;
  gap: 12px;
  border: 1px solid var(--paloist-line);
  border-radius: 18px;
  padding: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.council-drawer.asset-council-theme .council-form label {
  gap: 8px;
  color: var(--paloist-charcoal);
  font-size: 13px;
  font-weight: 800;
}

.council-drawer.asset-council-theme .voice-textarea-wrap {
  margin: 0;
}

.council-drawer.asset-council-theme .voice-textarea-wrap textarea {
  min-height: 142px;
  margin: 0;
  border: 1px solid var(--paloist-line);
  border-radius: 14px;
  padding: 14px 62px 14px 14px;
  color: var(--paloist-charcoal);
  background: #fff;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.45;
}

.council-drawer.asset-council-theme .voice-textarea-wrap textarea::placeholder {
  color: #9298a6;
}

.council-drawer.asset-council-theme .council-form .voice-input-button,
.app-shell.family-mode #family-asset-iq-view .voice-input-button {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid #cfd3fb;
  border-radius: 12px;
  padding: 0;
  color: var(--paloist-copper);
  background: #eef0fe;
  box-shadow: none;
}

.council-drawer.asset-council-theme .voice-input-button svg,
.app-shell.family-mode #family-asset-iq-view .voice-input-button svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.council-drawer.asset-council-theme .council-form .voice-input-button:hover,
.council-drawer.asset-council-theme .council-form .voice-input-button:focus-visible,
.council-drawer.asset-council-theme .council-form .voice-input-button.is-listening,
.app-shell.family-mode #family-asset-iq-view .voice-input-button:hover,
.app-shell.family-mode #family-asset-iq-view .voice-input-button:focus-visible,
.app-shell.family-mode #family-asset-iq-view .voice-input-button.is-listening {
  border-color: var(--paloist-copper);
  color: #fff;
  background: var(--paloist-copper);
  box-shadow: 0 0 0 4px var(--asset-accent-shadow);
}

.council-drawer.asset-council-theme .council-form .voice-input-button:disabled,
.app-shell.family-mode #family-asset-iq-view .voice-input-button:disabled {
  cursor: not-allowed;
  border-color: var(--paloist-line);
  color: var(--paloist-taupe);
  background: #f7f8fa;
  opacity: 0.62;
  box-shadow: none;
}

.council-drawer.asset-council-theme .voice-input-status {
  min-height: 0;
  margin: 0;
  color: var(--paloist-taupe);
  font-size: 11px;
}

.council-drawer.asset-council-theme #council-submit-button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 11px 20px;
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #635bdf 58%, #8b5cf6);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.18);
  font-size: 13px;
  font-weight: 850;
}

.council-drawer.asset-council-theme .council-voice-controls,
.app-shell.family-mode #family-asset-iq-view .family-asset-council-voice-controls {
  display: flex;
  min-height: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 0;
  padding: 0 2px;
  background: transparent;
  box-shadow: none;
}

.council-voice-label {
  margin-right: 2px;
  color: var(--paloist-taupe, #6b7280);
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.council-drawer.asset-council-theme .voice-tool-button,
.app-shell.family-mode #family-asset-iq-view .voice-tool-button {
  min-height: 34px;
  border: 1px solid #cfd3fb;
  border-radius: 999px;
  padding: 7px 13px;
  color: var(--paloist-copper-dark);
  background: #fff;
  box-shadow: none;
  font-size: 11px;
  font-weight: 800;
}

.council-drawer.asset-council-theme .voice-tool-button.is-active,
.app-shell.family-mode #family-asset-iq-view .voice-tool-button.is-active {
  border-color: var(--paloist-copper);
  color: #fff;
  background: var(--paloist-copper);
}

.council-drawer.asset-council-theme .voice-tool-button:disabled,
.app-shell.family-mode #family-asset-iq-view .voice-tool-button:disabled {
  border-color: var(--paloist-line);
  color: #9aa1ad;
  background: #f7f8fa;
  opacity: 0.72;
}

.council-drawer.asset-council-theme .voice-playback-status {
  width: 100%;
  min-height: 0;
  color: var(--paloist-taupe);
  font-size: 11px;
}

.council-drawer.asset-council-theme .council-result {
  display: grid;
  min-height: 150px;
  align-content: start;
  gap: 12px;
  overflow: visible;
  border: 1px solid var(--paloist-line);
  border-radius: 18px;
  padding: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.council-drawer.asset-council-theme .council-result > .muted:only-child {
  margin: 0;
  color: var(--paloist-taupe);
  font-size: 12.5px;
  line-height: 1.5;
}

@media (max-width: 620px) {
  .council-drawer.asset-council-theme .drawer-panel {
    width: 100%;
    padding: 12px;
  }

  .council-drawer.asset-council-theme .drawer-header,
  .council-drawer.asset-council-theme .council-form,
  .council-drawer.asset-council-theme .council-result {
    border-radius: 14px;
    padding: 14px;
  }
}

/* Asset Reports wireframe alignment */
.app-shell.family-mode #family-asset-iq-view .family-reports-page {
  display: grid;
  gap: 16px;
}

.app-shell.family-mode #family-asset-iq-view .family-report-dashboard-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 0;
}

.app-shell.family-mode #family-asset-iq-view .family-report-dashboard-grid .mini-stat {
  display: grid;
  min-height: 104px;
  align-content: center;
  gap: 6px;
  border: 1px solid #e9ebf0;
  border-radius: 16px;
  padding: 16px 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 23, 40, 0.07);
}

.app-shell.family-mode #family-asset-iq-view .family-report-dashboard-grid .mini-stat > span {
  color: #6b7280;
  font-size: 12px;
  font-weight: 500;
}

.app-shell.family-mode #family-asset-iq-view .family-report-dashboard-grid .mini-stat > strong {
  margin: 0;
  color: #1c1e26;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.8px;
}

.app-shell.family-mode #family-asset-iq-view .family-report-dashboard-grid .mini-stat > small {
  color: #9aa1ad;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.3;
}

.app-shell.family-mode #family-asset-iq-view .family-report-dashboard-grid .family-reports-hero-stat {
  border-color: transparent;
  background: linear-gradient(135deg, #4f46e5, #6366f1 55%, #8b5cf6);
  box-shadow: 0 10px 26px rgba(79, 70, 229, 0.32);
}

.app-shell.family-mode #family-asset-iq-view .family-report-dashboard-grid .family-reports-hero-stat > span,
.app-shell.family-mode #family-asset-iq-view .family-report-dashboard-grid .family-reports-hero-stat > strong,
.app-shell.family-mode #family-asset-iq-view .family-report-dashboard-grid .family-reports-hero-stat > small {
  color: #fff;
}

.app-shell.family-mode #family-asset-iq-view .family-report-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.app-shell.family-mode #family-asset-iq-view .family-reports-page .panel {
  border: 1px solid #e9ebf0;
  border-radius: 18px;
  padding: 20px 22px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(20, 23, 40, 0.065);
}

.app-shell.family-mode #family-asset-iq-view .family-report-builder-panel,
.app-shell.family-mode #family-asset-iq-view .family-report-guide-panel {
  align-content: start;
  gap: 0;
  height: 100%;
}

.app-shell.family-mode #family-asset-iq-view .family-reports-page .panel-header {
  align-items: flex-start;
  margin-bottom: 16px;
}

.app-shell.family-mode #family-asset-iq-view .family-reports-page .panel-header .eyebrow {
  color: #4f46e5;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.app-shell.family-mode #family-asset-iq-view .family-reports-page .panel-header h2 {
  margin-top: 3px;
  color: #1c1e26;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.4px;
}

.app-shell.family-mode #family-asset-iq-view .family-reports-page .panel-pill {
  min-height: 0;
  border-color: #e9ebf0;
  padding: 4px 11px;
  color: #6b7280;
  background: #fff;
  font-size: 11px;
  font-weight: 600;
}

.app-shell.family-mode #family-asset-iq-view .family-report-control-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}

.app-shell.family-mode #family-asset-iq-view .family-report-control-grid > label:not(.family-report-checkbox),
.app-shell.family-mode #family-asset-iq-view .family-report-static-control {
  gap: 6px;
  margin-bottom: 14px;
  color: #9aa1ad;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.app-shell.family-mode #family-asset-iq-view .family-report-control-grid select {
  width: 100%;
  height: 44px;
  margin: 0;
  border: 1.5px solid #e9ebf0;
  border-radius: 11px;
  padding: 0 12px;
  color: #1c1e26;
  background: #fff;
  font-size: 13.5px;
  font-weight: 400;
  text-transform: none;
}

.app-shell.family-mode #family-asset-iq-view .family-reports-page .family-report-checkbox {
  grid-column: span 2;
  min-height: 44px;
  gap: 10px !important;
  margin-bottom: 14px;
  border: 1px solid #e9ebf0;
  border-radius: 11px;
  padding: 12px 14px;
  color: #1c1e26;
  background: #f7f8fa;
  font-size: 13px;
  font-weight: 500;
}

.app-shell.family-mode #family-asset-iq-view .family-report-checkbox input {
  width: 18px !important;
  height: 18px;
  margin: 0;
  accent-color: #4f46e5;
}

.app-shell.family-mode #family-asset-iq-view .family-reports-page .family-report-static-control {
  min-height: 44px;
  border-color: #e9ebf0;
  border-radius: 11px;
  padding: 8px 12px;
  background: #f7f8fa;
}

.app-shell.family-mode #family-asset-iq-view .family-reports-page .family-report-static-control strong {
  color: #1c1e26;
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
}

.app-shell.family-mode #family-asset-iq-view .family-report-actions {
  gap: 11px;
}

.app-shell.family-mode #family-asset-iq-view .family-report-actions button {
  min-height: 38px !important;
  border: 1px solid #e9ebf0;
  border-radius: 10px !important;
  padding: 9px 16px;
  color: #1c1e26;
  background: #fff;
  box-shadow: none;
  font-size: 13px;
  font-weight: 600;
}

.app-shell.family-mode #family-asset-iq-view .family-report-actions button.is-primary-action {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.26);
}

.app-shell.family-mode #family-asset-iq-view .family-report-builder-panel > .muted {
  margin: 14px 0 0;
  color: #6b7280;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.45;
}

.app-shell.family-mode #family-asset-iq-view .family-report-guide-list {
  gap: 10px;
}

.app-shell.family-mode #family-asset-iq-view .family-reports-page .family-report-guide-list > div {
  gap: 3px;
  border: 1px solid #e9ebf0;
  border-radius: 12px;
  padding: 14px 16px;
  background: #fff;
}

.app-shell.family-mode #family-asset-iq-view .family-report-guide-list strong {
  color: #1c1e26;
  font-size: 14px;
  font-weight: 700;
}

.app-shell.family-mode #family-asset-iq-view .family-report-guide-list span {
  color: #6b7280;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

.app-shell.family-mode #family-asset-iq-view .family-report-preview-shell {
  border: 1px solid #e9ebf0;
  border-radius: 14px;
  padding: 34px 38px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(20, 23, 40, 0.065);
}

.app-shell.family-mode #family-asset-iq-view .family-report-document {
  color: #111;
  background: #fff;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-shell.family-mode #family-asset-iq-view .family-report-document-header {
  display: block;
  border-bottom: 0;
  padding: 0;
  margin: 0;
}

.app-shell.family-mode #family-asset-iq-view .family-report-document-kicker {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 2px solid #111;
  padding-bottom: 10px;
}

.app-shell.family-mode #family-asset-iq-view .family-report-document-kicker span,
.app-shell.family-mode #family-asset-iq-view .family-report-document-kicker strong {
  margin: 0;
  color: #111;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.2;
  text-transform: uppercase;
}

.app-shell.family-mode #family-asset-iq-view .family-report-document-header h2 {
  margin: 12px 0 0;
  color: #111;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.6px;
}

.app-shell.family-mode #family-asset-iq-view .family-report-document-header > p {
  margin: 2px 0 0;
  color: #444;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}

.app-shell.family-mode #family-asset-iq-view .family-report-meta-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 24px;
  margin: 14px 0 4px;
  border-top: 2px solid #111;
  padding-top: 10px;
}

.app-shell.family-mode #family-asset-iq-view .family-report-meta-grid > div {
  border: 0;
  padding: 0;
  background: transparent;
}

.app-shell.family-mode #family-asset-iq-view .family-report-meta-grid dt {
  color: #555;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.app-shell.family-mode #family-asset-iq-view .family-report-meta-grid dd {
  margin: 3px 0 0;
  color: #111;
  font-size: 15px;
  font-weight: 700;
}

.app-shell.family-mode #family-asset-iq-view .family-report-section {
  margin-top: 16px;
}

.app-shell.family-mode #family-asset-iq-view .family-report-section > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
  border: 0;
  border-radius: 3px;
  padding: 9px 16px;
  color: #fff;
  background: #111;
}

.app-shell.family-mode #family-asset-iq-view .family-report-section > header h3,
.app-shell.family-mode #family-asset-iq-view .family-report-section > header strong {
  margin: 0;
  color: #fff;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.2;
}

.app-shell.family-mode #family-asset-iq-view .family-report-section-detail {
  margin: 7px 2px 2px;
  color: #333;
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.35;
}

.app-shell.family-mode #family-asset-iq-view .family-report-asset-grid {
  grid-template-columns: 1fr;
  gap: 0;
}

.app-shell.family-mode #family-asset-iq-view .family-report-asset-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  margin: 14px 0;
  border: 1px solid #111;
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}

.app-shell.family-mode #family-asset-iq-view .family-report-asset-photo {
  width: 96px;
  height: 96px;
  border: 1px solid #333;
  border-radius: 8px;
  color: #555;
  background: #e5e7eb;
  font-size: 34px;
}

.app-shell.family-mode #family-asset-iq-view .family-report-asset-card h4 {
  color: #111;
  font-size: 15px;
  font-weight: 700;
}

.app-shell.family-mode #family-asset-iq-view .family-report-asset-card p {
  margin-top: 3px;
  color: #333;
  font-size: 12.5px;
  font-style: italic;
  line-height: 1.4;
}

.app-shell.family-mode #family-asset-iq-view .family-report-asset-card dl {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 30px;
  margin-top: 10px;
}

.app-shell.family-mode #family-asset-iq-view .family-report-asset-card dt {
  color: #666;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.app-shell.family-mode #family-asset-iq-view .family-report-asset-card dd {
  margin-top: 2px;
  color: #111;
  font-size: 13.5px;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .app-shell.family-mode #family-asset-iq-view .family-report-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell.family-mode #family-asset-iq-view .family-report-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .app-shell.family-mode #family-asset-iq-view .family-report-dashboard-grid,
  .app-shell.family-mode #family-asset-iq-view .family-report-control-grid,
  .app-shell.family-mode #family-asset-iq-view .family-report-meta-grid {
    grid-template-columns: 1fr;
  }

  .app-shell.family-mode #family-asset-iq-view .family-report-checkbox {
    grid-column: auto;
  }

  .app-shell.family-mode #family-asset-iq-view .family-report-preview-shell {
    padding: 24px 20px;
  }

  .app-shell.family-mode #family-asset-iq-view .family-report-document-kicker,
  .app-shell.family-mode #family-asset-iq-view .family-report-section > header {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .app-shell.family-mode #family-asset-iq-view .family-report-asset-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .app-shell.family-mode #family-asset-iq-view .family-opportunity-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .app-shell.family-mode #family-asset-iq-view .family-protection-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .app-shell.family-mode #family-asset-iq-view .family-protection-layer-grid {
    grid-template-columns: 1fr;
  }

  .app-shell.family-mode #family-asset-iq-view .family-protection-overview-layout {
    grid-template-columns: 1fr;
  }

  .app-shell.family-mode #family-asset-iq-view .family-protection-page .family-protection-matrix-row {
    grid-template-columns:
      minmax(0, 1.14fr)
      repeat(3, minmax(0, 0.92fr));
    gap: 7px;
  }
}

@media (max-width: 860px) {
  .app-shell.family-mode #family-asset-iq-view .family-protection-stat-grid,
  .app-shell.family-mode #family-asset-iq-view .family-protection-overview-layout,
  .app-shell.family-mode #family-asset-iq-view .family-protection-insurance-layout,
  .app-shell.family-mode #family-asset-iq-view .family-protection-policy-layout {
    grid-template-columns: 1fr;
  }

  .app-shell.family-mode #family-asset-iq-view .family-protection-page .family-protection-matrix-row {
    grid-template-columns: 1fr;
  }

  .app-shell.family-mode #family-asset-iq-view .family-protection-page .family-protection-layer-cell {
    padding: 8px 0;
  }
}

/* Shared FamilyAssetIQ page header. Mobile Demo intentionally remains headerless. */
.app-shell.family-mode .topbar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 20px !important;
  margin: 0 -34px 20px !important;
  border-bottom: 0 !important;
  padding: 14px 20px 12px !important;
  background: rgba(244, 245, 248, 0.98) !important;
  box-shadow: none !important;
}

.app-shell.family-mode.mobile-demo-active .topbar {
  display: none !important;
}

.app-shell.family-mode .family-topbar-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.app-shell.family-mode .topbar .eyebrow {
  margin: 0 0 7px !important;
  color: #4f46e5 !important;
  font-size: 10px !important;
  font-weight: 850 !important;
  letter-spacing: 0.15em !important;
  line-height: 1.2;
  text-transform: uppercase;
}

.app-shell.family-mode .topbar h1 {
  margin: 0 !important;
  color: #1c1e26 !important;
  font-size: clamp(25px, 2.2vw, 28px) !important;
  font-weight: 850 !important;
  line-height: 1.02 !important;
  letter-spacing: -0.035em !important;
}

.app-shell.family-mode .family-command-row {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 132px 100px;
  gap: 10px;
  align-items: stretch;
}

.app-shell.family-mode .family-global-search-form {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto 36px;
  gap: 9px;
  align-items: center;
  min-height: 46px;
  border: 1px solid #e5e7ef;
  border-radius: 12px;
  padding: 5px 7px 5px 13px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(30, 33, 54, 0.08);
}

.app-shell.family-mode .family-global-search-icon,
.app-shell.family-mode .family-global-search-voice {
  display: grid;
  place-items: center;
  color: #5b50ef;
}

.app-shell.family-mode .family-global-search-icon svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.6;
}

.app-shell.family-mode .family-global-search-form input {
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0;
  color: #1c1e26;
  background: transparent;
  font: inherit;
  font-size: clamp(13px, 1.25vw, 15px);
}

.app-shell.family-mode .family-global-search-form input::placeholder {
  color: #a9afbf;
  opacity: 1;
}

.app-shell.family-mode .family-global-search-shortcut {
  border: 1px solid #e4e6ed;
  border-radius: 6px;
  padding: 5px 6px;
  color: #9299a9;
  background: #fff;
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
}

.app-shell.family-mode .family-global-search-voice {
  width: 36px;
  height: 36px;
  border: 1px solid #e3e6ee;
  border-radius: 8px;
  padding: 0;
  background: #f7f8fb;
}

.app-shell.family-mode .family-global-search-voice:hover,
.app-shell.family-mode .family-global-search-voice:focus-visible {
  border-color: #c9c7ff !important;
  color: #5046df !important;
  background: #f1f0ff !important;
}

.app-shell.family-mode .family-global-search-voice svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.app-shell.family-mode .alerts-top-button {
  position: relative;
  display: grid;
  width: 39px;
  min-width: 39px;
  height: 39px;
  min-height: 39px;
  place-items: center;
  overflow: visible;
  border: 1px solid #e3e6ed !important;
  border-radius: 10px;
  padding: 0;
  color: #6e7583 !important;
  background: #fff !important;
  box-shadow: 0 5px 14px rgba(30, 33, 54, 0.1) !important;
}

.app-shell.family-mode .alerts-top-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.app-shell.family-mode .alerts-top-button .alerts-count-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  min-height: 18px;
  margin: 0;
  border: 2px solid #f4f5f8;
  padding: 0 5px;
  color: #fff;
  background: #ef4444;
  font-size: 9px;
  font-weight: 850;
}

.app-shell.family-mode .council-top-button,
.app-shell.family-mode .avi-top-button {
  display: inline-flex;
  min-width: 0;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.app-shell.family-mode .council-top-button,
.app-shell.family-mode .council-top-button:hover,
.app-shell.family-mode .council-top-button:focus-visible {
  border: 2px solid #c9c7ff !important;
  color: #5046df !important;
  background: #fff !important;
}

.app-shell.family-mode .avi-top-button,
.app-shell.family-mode .avi-top-button:hover,
.app-shell.family-mode .avi-top-button:focus-visible {
  border: 2px solid #ead4a5 !important;
  color: #1c1e26 !important;
  background: #f8efe0 !important;
}

@media (max-width: 1050px) {
  .app-shell.family-mode .family-command-row {
    grid-template-columns: minmax(280px, 1fr) 132px 100px;
  }

  .app-shell.family-mode .family-global-search-form {
    grid-column: auto;
  }
}

@media (max-width: 680px) {
  .app-shell.family-mode .topbar {
    gap: 16px !important;
    margin-right: -18px !important;
    margin-left: -18px !important;
    padding: 14px 18px 12px !important;
  }

  .app-shell.family-mode .family-command-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .app-shell.family-mode .family-global-search-form {
    grid-column: 1 / -1;
    min-height: 46px;
    grid-template-columns: 18px minmax(0, 1fr) 36px;
    padding-left: 13px;
  }

  .app-shell.family-mode .family-global-search-shortcut {
    display: none;
  }

  .app-shell.family-mode .council-top-button,
  .app-shell.family-mode .avi-top-button {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 8px 12px;
    font-size: 12px;
  }
}

/* Asset Management list, card, and detail reference alignment */
.family-asset-management-page {
  gap: 14px;
}

.family-asset-management-panel {
  min-width: 0;
}

.family-management-list-head {
  align-items: flex-end;
  margin-bottom: 22px;
}

.family-management-list-title h2 {
  font-size: 26px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.family-management-list-title .panel-subtitle {
  color: #70798b;
  font-size: 13px;
}

.family-management-toolbar {
  gap: 14px;
}

.family-management-toolbar label {
  gap: 6px;
  color: #9ca4b2;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.family-management-toolbar label:first-child {
  width: min(260px, 25vw);
}

.family-management-toolbar input,
.family-management-toolbar select,
.family-management-view-toggle {
  height: 42px;
  border-color: #dde1e9;
  border-radius: 11px;
}

.family-management-view-toggle button {
  min-width: 72px;
  min-height: 40px !important;
  border-radius: 0 !important;
  color: #697184;
  font-size: 13px;
  font-weight: 750;
}

.family-management-view-toggle button.is-active {
  color: #4938d4;
  background: #f0efff;
}

.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-management-add-button {
  min-height: 44px !important;
  border-radius: 12px !important;
  padding: 0 19px !important;
}

.family-management-column-head,
.family-management-list-row {
  grid-template-columns:
    minmax(210px, 1.45fr) minmax(110px, 0.72fr) minmax(100px, 0.62fr)
    minmax(150px, 1.2fr) minmax(160px, 1.1fr) 132px;
  gap: 12px;
}

.family-management-column-head {
  padding: 0 14px 6px;
  color: #9aa2b1;
  background: transparent;
  font-size: 10.5px;
  letter-spacing: 0.07em;
}

.family-management-column-head > span {
  display: inline-flex;
  align-items: center;
}

.family-management-list {
  gap: 10px;
}

.family-management-list-row {
  min-height: 78px;
  border-color: #dfe3ea;
  border-radius: 14px;
  padding: 11px 14px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(28, 32, 45, 0.03);
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.family-management-list-row:hover,
.family-management-list-row:focus-visible {
  border-color: #cdd1de;
  outline: none;
  box-shadow: 0 10px 28px rgba(29, 34, 52, 0.09);
  transform: translateY(-1px);
}

.family-management-list-asset {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.family-management-list-name strong {
  color: #171920;
  font-size: 14px;
  font-weight: 800;
}

.family-management-list-name span {
  margin-top: 2px;
  font-size: 11.5px;
}

.family-management-list-value {
  color: #323745;
  font-size: 14px;
  font-weight: 800;
}

.family-management-list-row > span {
  color: #454b5a;
  font-size: 13px;
}

.family-management-list-status,
.family-management-card-status,
.family-management-detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.family-management-list-status > span,
.family-management-card-status > span,
.family-management-detail-chips > span {
  border: 1px solid #dfe3ea;
  border-radius: 999px;
  padding: 5px 10px;
  color: #687184;
  background: #f7f8fa;
  font-size: 10.5px;
  font-weight: 750;
  line-height: 1.1;
  white-space: nowrap;
}

.family-management-list-status > span.is-ok,
.family-management-card-status > span.is-ok,
.family-management-detail-chips > span.is-ok {
  border-color: #b8e7cc;
  color: #1c8a56;
  background: #eaf8f0;
}

.family-management-list-status > span.is-bad,
.family-management-card-status > span.is-bad,
.family-management-detail-chips > span.is-bad {
  border-color: #f4c4bf;
  color: #c23d31;
  background: #fff0ef;
}

.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-management-row-actions
  button {
  min-height: 34px !important;
  border: 1.5px solid #dfe3ea !important;
  border-radius: 9px !important;
  padding: 6px 13px !important;
  color: #1c1f28 !important;
  background: #fff !important;
  font-size: 12.5px;
  font-weight: 750;
  box-shadow: none !important;
  transform: none !important;
}

.family-management-market-trend {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}

.family-management-market-trend.is-up {
  color: #17915a;
}

.family-management-market-trend.is-down {
  color: #c34236;
}

.family-management-market-trend.is-flat {
  color: #70798a;
}

.family-management-market-info {
  position: relative;
  display: inline-grid;
  width: 16px;
  min-width: 16px !important;
  height: 16px;
  min-height: 16px !important;
  margin-left: 4px;
  place-items: center;
  border: 0 !important;
  border-radius: 50% !important;
  padding: 0 !important;
  color: #fff !important;
  background: #8e96a5 !important;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  vertical-align: 1px;
  box-shadow: none !important;
  transform: none !important;
}

.family-management-market-info::after {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 210;
  width: 270px;
  border: 1px solid #dfe3ea;
  border-radius: 11px;
  padding: 11px 13px;
  color: #495163;
  background: #fff;
  box-shadow: 0 14px 35px rgba(27, 32, 48, 0.2);
  content: attr(data-tooltip);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.45;
  text-align: left;
  text-transform: none;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -3px);
  transition:
    opacity 120ms ease,
    transform 120ms ease;
}

.family-management-market-info:hover::after,
.family-management-market-info:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.family-management-card-grid {
  gap: 18px;
}

.family-management-card {
  min-height: 178px;
  border-color: #dfe3ea;
  border-radius: 17px;
  cursor: pointer;
  transition:
    box-shadow 150ms ease,
    transform 150ms ease;
}

.family-management-card:hover,
.family-management-card:focus-visible {
  outline: none;
  box-shadow: 0 16px 38px rgba(28, 33, 50, 0.12);
  transform: translateY(-2px);
}

.family-management-card .family-management-thumb {
  flex-basis: 148px;
  min-height: 178px;
}

.family-management-card-body {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  padding: 16px 18px;
}

.family-management-card-values {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  margin: 16px 0 10px;
}

.family-management-card-values > div:last-child {
  text-align: right;
}

.family-management-card-values span,
.family-management-card-values strong {
  display: block;
}

.family-management-card-values > div > span {
  display: flex;
  align-items: center;
  color: #9aa2b1;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.family-management-card-values > div:last-child > span {
  justify-content: flex-end;
}

.family-management-card-values strong {
  margin-top: 3px;
  color: #3930bf;
  font-size: 21px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.family-management-card-location {
  margin: 0 0 11px !important;
  color: #4c5361 !important;
  font-size: 12px !important;
}

.family-management-card-status {
  margin-top: auto;
}

.family-management-detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 170;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(25, 29, 42, 0.5);
  backdrop-filter: blur(2px);
}

.family-management-detail {
  display: flex;
  width: min(900px, 96vw);
  max-height: 92vh;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d9dde6;
  border-radius: 22px;
  color: #171920;
  background: #fff;
  box-shadow: 0 38px 90px rgba(22, 26, 40, 0.42);
}

.family-management-detail-head {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto auto 36px;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #e4e7ed;
  padding: 17px 20px;
}

.family-management-detail-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #8b5cf6);
  font-size: 23px;
  font-weight: 850;
}

.family-management-detail-heading {
  min-width: 0;
}

.family-management-detail-heading > span {
  color: #5546df;
  font-size: 9.5px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.family-management-detail-heading h2 {
  overflow: hidden;
  margin: 2px 0 0;
  font-size: 19px;
  font-weight: 850;
  letter-spacing: -0.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.family-management-detail-heading p {
  overflow: hidden;
  margin: 2px 0 0;
  color: #7a8291;
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.family-management-detail-value {
  text-align: right;
}

.family-management-detail-value > span,
.family-management-detail-value > strong,
.family-management-detail-value > small {
  display: block;
}

.family-management-detail-value > span {
  color: #9aa2b1;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.family-management-detail-value > strong {
  margin-top: 2px;
  color: #4338ca;
  font-size: 20px;
  letter-spacing: -0.04em;
}

.family-management-detail-value > small {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 4px;
  color: #9aa2b1;
  font-size: 9.5px;
  font-weight: 750;
}

.family-management-detail-value .family-management-market-trend {
  font-size: 12px;
}

.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-management-detail-edit,
.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-management-detail-close {
  min-height: 36px !important;
  border-radius: 9px !important;
  padding: 7px 13px !important;
}

.family-management-detail-edit {
  border: 1.5px solid #5147dc !important;
  color: #493fd1 !important;
  background: #fff !important;
}

.family-management-detail-close {
  width: 36px;
  min-width: 36px;
  border: 1px solid #dfe3ea !important;
  color: #70798a !important;
  background: #fff !important;
  font-size: 19px;
}

.family-management-detail-body {
  overflow-y: auto;
  padding: 16px 22px 24px;
}

.family-management-detail-hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(300px, 1.1fr);
  gap: 24px;
  align-items: start;
}

.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-management-detail-photo {
  display: grid;
  width: 100%;
  min-height: 240px !important;
  max-height: 320px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #dfe3ea !important;
  border-radius: 14px !important;
  padding: 0 !important;
  color: #4f46e5 !important;
  background: #eef0f4 !important;
  font-size: 72px;
  font-weight: 850;
  box-shadow: none !important;
  transform: none !important;
}

.family-management-detail-photo img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}

.family-management-detail-quick {
  display: grid;
  gap: 0;
}

.family-management-detail-chips {
  justify-content: flex-end;
  margin-bottom: 10px;
}

.family-management-detail-field {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  border-bottom: 1px solid #e7e9ef;
  padding: 9px 2px;
}

.family-management-detail-field span {
  color: #9aa2b1;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.family-management-detail-field strong {
  min-width: 0;
  overflow: hidden;
  color: #252832;
  font-size: 12.5px;
  font-weight: 750;
  text-align: right;
  text-overflow: ellipsis;
}

.family-management-detail-field.is-ok strong {
  color: #198b56;
}

.family-management-detail-field.is-warn strong {
  color: #a96e13;
}

.family-management-detail-field.is-bad strong {
  color: #bd3f34;
}

.family-management-detail-body > h3 {
  margin: 18px 0 8px;
  color: #5147da;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.family-management-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 24px;
}

.family-management-detail-documents {
  display: grid;
  gap: 8px;
}

.family-management-detail-documents > div {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #e1e4eb;
  border-radius: 10px;
  padding: 10px 12px;
  background: #f8f9fb;
  font-size: 12px;
}

.family-management-detail-documents > div span {
  color: #737b8c;
}

.family-management-detail-documents p {
  margin: 0;
  color: #7a8291;
  font-size: 12.5px;
}

@media (max-width: 1180px) {
  .family-management-column-head,
  .family-management-list-row {
    min-width: 900px;
  }
}

@media (max-width: 780px) {
  .family-management-detail-head {
    grid-template-columns: 46px minmax(0, 1fr) 36px;
  }

  .family-management-detail-mark {
    width: 46px;
    height: 46px;
  }

  .family-management-detail-value,
  .family-management-detail-edit {
    grid-column: 1 / -1;
  }

  .family-management-detail-value {
    text-align: left;
  }

  .family-management-detail-value > small {
    justify-content: flex-start;
  }

  .family-management-detail-close {
    grid-column: 3;
    grid-row: 1;
  }

  .family-management-detail-hero,
  .family-management-detail-grid {
    grid-template-columns: 1fr;
  }

  .family-management-detail-chips {
    justify-content: flex-start;
    margin-top: 12px;
  }
}

/* Global FamilyAssetIQ rollover: actionable controls only; static labels stay inert. */
.app-shell.family-mode:not(.mobile-demo-active)
  button:not(:disabled):not(.danger-button):hover,
.app-shell.family-mode:not(.mobile-demo-active)
  button:not(:disabled):not(.danger-button):focus-visible,
.app-shell.family-mode:not(.mobile-demo-active)
  [role="button"]:not([aria-disabled="true"]):hover,
.app-shell.family-mode:not(.mobile-demo-active)
  [role="button"]:not([aria-disabled="true"]):focus-visible,
.app-shell.family-mode:not(.mobile-demo-active)
  label.ghost-button:hover,
.app-shell.family-mode:not(.mobile-demo-active)
  label.ghost-button:focus-within,
.app-shell.family-mode:not(.mobile-demo-active)
  label.ghost-button.is-interactive-hover {
  border-color: #c7ccfb !important;
  color: #4338ca !important;
  background: #eef0fe !important;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1) !important;
}

.app-shell.family-mode:not(.mobile-demo-active)
  .is-interactive-control:hover,
.app-shell.family-mode:not(.mobile-demo-active)
  .is-interactive-control:focus-visible,
.app-shell.family-mode:not(.mobile-demo-active)
  .is-interactive-control.is-interactive-hover,
.app-shell.family-mode:not(.mobile-demo-active)
  [data-fr33dom-hovered="true"] {
  border-color: #c7ccfb !important;
  color: #4338ca !important;
  background: #eef0fe !important;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1) !important;
}

.app-shell.family-mode:not(.mobile-demo-active)
  span.panel-pill:not([role="button"]) {
  pointer-events: none !important;
  cursor: default !important;
  box-shadow: none !important;
  transform: none !important;
  transition: none !important;
}

.app-shell.family-mode:not(.mobile-demo-active)
  span.panel-pill:not([role="button"]) * {
  cursor: default !important;
}

.app-shell.family-mode:not(.mobile-demo-active)
  .family-nav-list
  .nav-item:not(.is-active):hover,
.app-shell.family-mode:not(.mobile-demo-active)
  .family-nav-list
  .nav-item:not(.is-active):focus-visible,
.app-shell.family-mode:not(.mobile-demo-active)
  .family-nav-list
  .nav-item:not(.is-active).is-interactive-hover,
.app-shell.family-mode:not(.mobile-demo-active)
  .family-nav-list
  .nav-item:not(.is-active)[data-fr33dom-hovered="true"] {
  border-color: transparent !important;
  color: #1c1e26 !important;
  background: #f7f8fa !important;
  box-shadow: none !important;
  transform: none !important;
}

.app-shell.family-mode:not(.mobile-demo-active)
  button.danger-button:not(:disabled):hover,
.app-shell.family-mode:not(.mobile-demo-active)
  button.danger-button:not(:disabled):focus-visible {
  border-color: #b84542 !important;
  color: #fff !important;
  background: #b84542 !important;
  box-shadow: 0 0 0 3px rgba(184, 69, 66, 0.12) !important;
}

/* Selected controls within desktop page content use the purple gradient state. */
.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  button.is-active,
.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  button[aria-pressed="true"],
.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  [role="button"].is-active,
.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  [role="tab"][aria-selected="true"] {
  border-color: transparent !important;
  color: #fff !important;
  background: linear-gradient(120deg, #514cf0 0%, #8059ed 100%) !important;
  box-shadow: 0 7px 16px rgba(91, 76, 232, 0.2) !important;
}

.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  button.is-active
  *,
.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  button[aria-pressed="true"]
  *,
.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  [role="button"].is-active
  *,
.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  [role="tab"][aria-selected="true"]
  * {
  color: inherit !important;
}

/* Avi guided onboarding and explicit approval review */
.avi-onboarding,
.avi-action-review {
  display: grid;
  gap: 12px;
  border: 1px solid #bdd8c5;
  border-radius: 16px;
  padding: 14px;
  color: var(--ink);
  background: #f3faf5;
}

.avi-onboarding-heading,
.avi-action-review-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.avi-onboarding-heading > div,
.avi-action-review-heading {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.avi-onboarding-heading span,
.avi-action-review-heading span,
.avi-action-review-field > span {
  color: var(--forest);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.avi-onboarding-heading small {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.avi-onboarding p,
.avi-action-review-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.avi-onboarding-progress {
  display: grid;
  grid-template-columns: repeat(6, minmax(12px, 1fr));
  gap: 5px;
}

.avi-onboarding-progress span {
  height: 6px;
  border-radius: 999px;
  background: #d9dfdc;
}

.avi-onboarding-progress span.is-current {
  background: #d8a936;
}

.avi-onboarding-progress span.is-complete {
  background: var(--forest);
}

.avi-onboarding-progress span.is-skipped {
  background: #8d9691;
}

.avi-onboarding-actions,
.avi-action-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.avi-onboarding-actions button,
.avi-action-review-actions button {
  width: auto;
  min-height: 34px;
  white-space: nowrap;
  font-size: 12px;
}

.avi-action-review-field {
  display: grid;
  gap: 7px;
}

.avi-action-review-field small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.avi-action-current-value,
.avi-action-review-field textarea {
  border: 1px solid #cfd9d2;
  border-radius: 11px;
  padding: 10px 11px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.avi-action-current-value {
  min-height: 40px;
  color: var(--muted);
}

.avi-action-review-field textarea:focus {
  border-color: var(--forest);
  outline: 3px solid rgba(31, 93, 58, 0.14);
}

.avi-action-parameter-list {
  display: grid;
  gap: 7px;
  margin: 0;
}

.avi-action-parameter-list > div {
  display: grid;
  grid-template-columns: minmax(100px, 0.7fr) minmax(0, 1.3fr);
  gap: 10px;
  border-bottom: 1px solid #dce8df;
  padding-bottom: 7px;
}

.avi-action-parameter-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.avi-action-parameter-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
}

@media (max-width: 560px) {
  .avi-onboarding-heading,
  .avi-action-review-heading {
    display: grid;
  }

  .avi-action-parameter-list > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

/* Avi full conversation and movable field-helper modes */
.drawer-panel.avi-panel {
  display: flex;
  flex-direction: column;
  grid-template-rows: none;
  align-content: stretch;
}

.avi-panel .avi-messages {
  flex: 1 1 180px;
  min-height: 160px;
  max-height: 42vh;
}

.avi-panel .avi-action-review {
  flex: 0 0 auto;
  max-height: 48vh;
  overflow: auto;
}

.avi-field-help-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
}

.avi-field-help-controls span {
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff;
  background: var(--forest);
  font-size: 11px;
  font-weight: 850;
}

.avi-field-help-controls button,
#avi-field-help-start {
  min-height: 30px;
  padding: 5px 9px;
  white-space: nowrap;
  font-size: 11px;
}

.avi-drawer.is-open.is-helper-mode {
  pointer-events: none;
}

.avi-drawer.is-helper-mode .drawer-overlay {
  display: none;
}

.avi-drawer.is-helper-mode .avi-panel {
  right: auto;
  width: min(390px, calc(100vw - 24px));
  height: min(620px, calc(100vh - 24px));
  gap: 12px;
  overflow: auto;
  border: 1px solid #9cc8ac;
  border-radius: 18px;
  padding: 16px;
  pointer-events: auto;
  box-shadow: 0 22px 60px rgba(20, 55, 33, 0.2);
  transform: none;
  transition: box-shadow 160ms ease;
}

.avi-drawer.is-helper-mode .avi-panel.is-dragging {
  box-shadow: 0 28px 70px rgba(20, 55, 33, 0.28);
  user-select: none;
}

.avi-drawer.is-helper-mode .avi-drag-handle {
  cursor: move;
  touch-action: none;
}

.avi-drawer.is-helper-mode .avi-title-row {
  flex-wrap: wrap;
}

.avi-drawer.is-helper-mode .avi-panel .avi-messages {
  min-height: 110px;
  max-height: 190px;
}

.avi-drawer.is-helper-mode .avi-panel .avi-action-review {
  max-height: 310px;
}

.avi-drawer.is-helper-mode .avi-next-step,
.avi-drawer.is-helper-mode .avi-onboarding,
.avi-drawer.is-helper-mode .avi-access-note,
.avi-drawer.is-helper-mode .avi-privacy-note {
  display: none !important;
}

.avi-drawer.is-helper-mode .avi-message {
  width: 96%;
  padding: 10px 12px;
  font-size: 13px;
}

.avi-drawer.is-helper-mode .avi-composer textarea {
  min-height: 58px;
  max-height: 120px;
}

@media (max-width: 560px) {
  .avi-drawer.is-helper-mode .avi-panel {
    width: calc(100vw - 16px);
    height: min(560px, calc(100vh - 16px));
    border-radius: 14px;
    padding: 13px;
  }
}

.avi-messages {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: auto;
  padding: 4px 3px;
}

.avi-message {
  width: min(88%, 470px);
  border: 1px solid #d7e5da;
  border-radius: 18px 18px 18px 5px;
  padding: 13px 15px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(24, 65, 39, 0.06);
}

.avi-message-user {
  justify-self: end;
  border-radius: 18px 18px 5px 18px;
  color: #fff;
  background: var(--forest);
}

.avi-message span,
.avi-message small {
  display: block;
  font-size: 11px;
  font-weight: 800;
}

.avi-message p {
  margin: 5px 0 0;
  line-height: 1.5;
  white-space: pre-wrap;
}

.avi-message small {
  margin-top: 9px;
  color: var(--muted);
  font-weight: 600;
}

.avi-message-user span,
.avi-message-user small {
  color: rgba(255, 255, 255, 0.78);
}

.avi-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avi-access-note {
  max-width: 390px;
  margin: 8px 0 0;
  color: var(--forest);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.4;
}

.avi-voice-toggle {
  min-width: 82px;
  border: 1px solid #a92f3b;
  border-radius: 999px;
  padding: 6px 11px;
  color: #fff;
  background: var(--red);
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.avi-voice-toggle.is-active {
  border-color: #157243;
  background: var(--green);
}

.avi-voice-toggle.is-inactive:hover,
.avi-voice-toggle.is-inactive:focus-visible {
  border-color: #8f2530 !important;
  color: #fff !important;
  background: var(--red) !important;
}

.avi-voice-toggle.is-active:hover,
.avi-voice-toggle.is-active:focus-visible {
  border-color: #12663b !important;
  color: #fff !important;
  background: var(--green) !important;
}

.avi-voice-toggle:focus-visible {
  outline: 3px solid rgba(31, 93, 58, 0.22);
  outline-offset: 2px;
}

.avi-privacy-note {
  color: var(--muted);
  font-size: 12px;
}

.avi-form,
.avi-form label {
  display: grid;
  gap: 8px;
}

.avi-form label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.avi-composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
  align-items: end;
}

.avi-composer textarea {
  min-height: 76px;
  resize: vertical;
  border: 1px solid #cadbcf;
  border-radius: 14px;
  padding: 12px;
  font: inherit;
}

.avi-composer button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: #fff;
  background: var(--forest);
  font-weight: 850;
}

.avi-privacy-note {
  margin: 0;
  text-align: center;
}

@media (max-width: 640px) {
  .access-view-actions {
    gap: 6px;
  }

  .avi-top-button {
    padding-inline: 10px;
  }

  .account-voice-setting,
  .avi-composer {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--page);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.35;
}

button,
input,
select,
textarea {
  font: inherit;
  min-width: 0;
}

button {
  cursor: pointer;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
}

button:active:not(:disabled) {
  transform: translateY(1px);
}

button:not(:disabled):hover,
button:not(:disabled):focus-visible,
[role="button"]:not([aria-disabled="true"]):hover,
[role="button"]:not([aria-disabled="true"]):focus-visible,
a[href]:hover,
a[href]:focus-visible,
summary:hover,
summary:focus-visible {
  border-color: #111218;
  box-shadow: 0 0 0 3px rgba(17, 18, 24, 0.12);
}

[role="button"],
a[href],
summary,
select:not(:disabled),
input[type="checkbox"]:not(:disabled),
input[type="radio"]:not(:disabled),
input[type="file"]:not(:disabled),
input[type="date"]:not(:disabled),
.drawer-overlay,
.clickable-card,
.quote-card,
.metric-info-button,
.scenario-preset,
.settings-tab-button,
.mini-stat-button,
.family-asset-category-card,
.family-asset-type-button,
.family-protection-layer-review-button,
.family-protection-count-button {
  cursor: pointer;
}

.family-management-drawer-backdrop,
.family-slide-drawer-backdrop,
.family-asset-management-drawer-backdrop,
.family-document-upload-drawer-backdrop {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled,
[aria-disabled="true"],
.is-disabled {
  cursor: not-allowed;
}

a[href]:focus-visible,
summary:focus-visible,
[role="button"]:focus-visible {
  outline: none;
}

input[type="file"] {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

textarea {
  min-height: 44px;
  resize: vertical;
}

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

.auth-loading-view {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px;
  background: #f6f7fb;
}

.auth-loading-panel {
  width: min(440px, 100%);
  padding: 40px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(30, 41, 59, 0.12);
}

.auth-loading-panel h1 {
  margin: 8px 0 12px;
}

.auth-loading-panel p {
  color: var(--muted);
}

.auth-loading-mark {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: #4f46e5;
  font-size: 24px;
  font-weight: 800;
}

.auth-loading-spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  margin-top: 12px;
  border: 3px solid #dfe3ef;
  border-top-color: #4f46e5;
  border-radius: 50%;
  animation: auth-loading-spin 0.8s linear infinite;
}

@keyframes auth-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.login-view {
  min-height: 100vh;
  padding: clamp(24px, 4vw, 56px);
  background:
    radial-gradient(circle at 12% 8%, rgba(31, 93, 58, 0.12), transparent 30%),
    linear-gradient(145deg, #f8fbf8 0%, #eef4ef 52%, #f8f4ec 100%);
}

.login-landing-shell {
  display: grid;
  width: min(1180px, 100%);
  min-height: calc(100vh - clamp(48px, 8vw, 112px));
  margin: 0 auto;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px);
}

.login-welcome {
  width: min(820px, 100%);
  margin: 0 auto;
  text-align: center;
}

.login-brand-logo {
  display: block;
  width: min(330px, 74vw);
  height: auto;
  margin: 0 auto 18px;
}

.login-welcome .eyebrow {
  margin-bottom: 10px;
  letter-spacing: 0.08em;
}

.login-welcome h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.login-welcome > p:last-child {
  max-width: 700px;
  margin: 18px auto 0;
  color: #536159;
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.65;
}

.login-landing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: clamp(24px, 4vw, 52px);
}

.login-hero-figure {
  position: relative;
  min-height: 500px;
  height: min(58vh, 660px);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background: #dce5dd;
  box-shadow: 0 28px 70px rgba(20, 42, 29, 0.2);
}

.login-hero-figure::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(180deg, transparent, rgba(13, 30, 20, 0.8));
  pointer-events: none;
}

.login-hero-figure > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.login-hero-figure figcaption {
  display: grid;
  position: absolute;
  z-index: 1;
  right: 28px;
  bottom: 26px;
  left: 28px;
  gap: 5px;
  color: #fff;
}

.login-hero-figure figcaption span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-hero-figure figcaption strong {
  max-width: 440px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(21px, 2.4vw, 30px);
  font-weight: 600;
  line-height: 1.2;
}

.login-panel {
  width: min(460px, 100%);
  justify-self: end;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(31, 93, 58, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 60px rgba(20, 42, 29, 0.12);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: grid;
  position: relative;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.24), transparent 28%),
    linear-gradient(145deg, var(--forest), var(--forest-dark));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.brand-mark::before {
  content: "$";
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.brand-mark::after {
  content: "";
  position: absolute;
  width: 21px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  transform: rotate(-18deg);
}

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

.login-panel h2,
.topbar h1,
.panel h2,
.drawer-header h2 {
  margin: 0;
}

.login-panel h2 {
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.035em;
}

.login-copy {
  margin: 10px 0 26px;
  color: var(--muted);
}

.login-security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.login-security-note span {
  color: var(--green);
  font-size: 9px;
}

.login-create-household {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.login-create-household button,
.login-secondary-button {
  border: 1px solid var(--forest);
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--forest);
  background: #fff;
  font-weight: 800;
}

.household-setup-shell {
  display: grid;
  min-height: calc(100vh - clamp(48px, 8vw, 112px));
  place-items: center;
}

.household-setup-panel {
  width: min(560px, 100%);
  justify-self: center;
}

.household-setup-panel h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.035em;
}

.household-setup-panel .login-brand-logo {
  width: min(260px, 70vw);
  margin-bottom: 26px;
}

.household-owner-notice {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(31, 93, 58, 0.18);
  border-radius: 10px;
  padding: 14px;
  color: var(--forest-dark);
  background: var(--forest-soft);
  font-size: 12px;
  line-height: 1.45;
}

.household-owner-notice strong {
  font-size: 13px;
}

.household-setup-panel .login-secondary-button {
  width: 100%;
  margin-top: 8px;
}

.login-form,
.council-form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

label small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

input[type="date"] {
  cursor: pointer;
  color-scheme: light;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  width: 18px;
  height: 18px;
  cursor: pointer;
  opacity: 0.75;
}

input[type="date"]:hover::-webkit-calendar-picker-indicator,
input[type="date"]:focus::-webkit-calendar-picker-indicator {
  opacity: 1;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px var(--forest-soft);
}

input:user-invalid,
select:user-invalid,
textarea:user-invalid {
  border-color: #efd2d5;
}

.login-form button,
.council-form button {
  border: 1px solid var(--forest);
  border-radius: 8px;
  padding: 12px 16px;
  color: #fff;
  background: var(--forest);
  font-weight: 800;
}

.login-form button:hover,
.login-form button:focus-visible,
.council-form button:hover,
.council-form button:focus-visible {
  border-color: var(--forest-dark);
  background: var(--forest-dark);
  box-shadow: 0 0 0 3px var(--forest-soft);
}

.password-input-wrap {
  display: block;
  position: relative;
}

.password-input-wrap input {
  padding-right: 46px;
}

.login-form .password-visibility-toggle {
  display: grid;
  position: absolute;
  top: 50%;
  right: 7px;
  width: 34px;
  height: 34px;
  transform: translateY(-50%);
  place-items: center;
  border: 0;
  border-radius: 50%;
  padding: 0;
  color: #69756d;
  background: transparent;
  box-shadow: none;
}

.login-form .password-visibility-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.login-form .password-visibility-toggle:hover,
.login-form .password-visibility-toggle:focus-visible,
.login-form .password-visibility-toggle[aria-pressed="true"] {
  color: var(--forest) !important;
  background: var(--forest-soft) !important;
  box-shadow: none !important;
  transform: translateY(-50%) !important;
}

.council-form button {
  font-size: 13px;
  white-space: nowrap;
}

.form-error {
  min-height: 20px;
  color: var(--red);
}

.app-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 280px 1fr;
  align-items: start;
  background: #fff;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  min-height: 100vh;
  flex-direction: column;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: #fff;
}

.sidebar-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

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

.sidebar-brand-main > div:last-child {
  min-width: 0;
}

.desktop-brand-logo {
  display: block;
  width: min(178px, 100%);
  height: auto;
}

.sidebar-brand strong {
  display: block;
}

.sidebar-brand span,
.sidebar-footer span,
.muted {
  color: var(--muted);
}

.market-session-indicator {
  display: inline-flex;
  max-width: 100%;
  gap: 5px;
  align-items: center;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--muted);
  background: #fff;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.market-session-indicator strong,
.market-session-indicator small {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.market-session-indicator strong {
  font-weight: 850;
}

.market-session-indicator small {
  overflow: hidden;
  max-width: 78px;
  text-overflow: ellipsis;
}

.market-session-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 13%, transparent);
}

.market-session-indicator.is-open {
  border-color: #b9dbc9;
  color: var(--green);
  background: #eef8f2;
}

.market-session-indicator.is-closed,
.market-session-indicator.is-unavailable {
  border-color: #f0cfd3;
  color: var(--red);
  background: #fff5f6;
}

.market-session-indicator.is-pre-market,
.market-session-indicator.is-after-hours,
.market-session-indicator.is-loading {
  border-color: #ead9b8;
  color: var(--amber);
  background: #fff9ed;
}

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

.nav-item {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--muted);
  background: transparent;
  text-align: left;
  font-weight: 750;
  white-space: nowrap;
}

.nav-item:hover,
.nav-item:focus-visible {
  border-color: var(--line-strong);
  color: var(--forest);
  background: #fbfdfb;
}

.nav-item.is-active {
  border-color: #dbe8df;
  color: var(--forest);
  background: var(--forest-soft);
}

.nav-item.family-asset-entry {
  color: #8f4f2e;
}

.nav-item.family-asset-entry:hover,
.nav-item.family-asset-entry:focus-visible {
  border-color: #d7b99d;
  color: #8f4f2e;
  background: #fbefe4;
}

.panel-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.app-shell.family-mode .sidebar {
  border-right-color: #d7e4f2;
}

.app-shell.family-mode .sidebar-brand {
  border-bottom-color: #d7e4f2;
}

.app-shell.family-mode .family-sidebar-logo {
  flex: 1;
  width: auto;
  min-width: 0;
}

.family-sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 0;
  background: transparent;
  cursor: default;
}

.family-nav-list .nav-item.is-active {
  border-color: #d7e4f2;
  color: #1f4f86;
  background: #f1f6fb;
}

.app-shell.family-mode .avatar {
  background: #1f4f86;
}

.app-shell.family-mode .family-asset-top-button,
.app-shell.family-mode .global-research-top-button {
  display: none;
}

.app-shell.family-mode .topbar-status-stack,
.app-shell.family-mode .alerts-top-button,
.app-shell.family-mode .usage-top-button {
  display: none;
}

.sidebar-footer {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: auto;
  padding: 18px 24px;
  border-top: 1px solid var(--line);
}

.avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--forest);
  font-weight: 800;
}

#account-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  margin-top: 6px;
  border: 1px solid rgba(105, 117, 109, 0.32);
  border-radius: 999px;
  padding: 7px 14px;
  color: #4f5e54;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

#account-button:hover,
#account-button:focus-visible,
#account-button[aria-expanded="true"] {
  border-color: var(--forest);
  color: #fff;
  background: var(--forest);
}

.access-view {
  min-height: 100vh;
  color: #1f2c24;
  background: #f4f7f4;
}

.access-view-header {
  position: relative;
  z-index: 20;
  top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #dce6df;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: none;
}

.access-view-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.access-view-brand strong,
.access-view-brand span {
  display: block;
}

.access-asset-card.is-avi-target {
  border-color: var(--forest);
  box-shadow: 0 0 0 4px rgba(31, 93, 58, 0.16), var(--shadow-lift);
}

.access-view-brand strong {
  color: var(--forest);
  font-size: 16px;
}

.access-view-brand span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.access-view .access-view-brand .brand-mark {
  display: none;
}

.access-view #access-view-role-label {
  margin-top: 4px;
  color: #365c45;
  font-size: 14px;
  font-weight: 850;
}

#viewer-account-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #cfdbd3;
  border-radius: 999px;
  padding: 6px 13px 6px 7px;
  color: var(--forest);
  background: #fff;
  font-weight: 800;
}

#viewer-account-button:hover,
#viewer-account-button:focus-visible,
#viewer-account-button[aria-expanded="true"] {
  border-color: var(--forest);
  color: #fff;
  background: var(--forest);
}

.user-initial {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--forest);
  font-size: 12px;
}

#viewer-account-button:hover .user-initial,
#viewer-account-button:focus-visible .user-initial,
#viewer-account-button[aria-expanded="true"] .user-initial {
  color: var(--forest);
  background: #fff;
}

.access-view-workspace {
  display: grid;
  width: min(1240px, calc(100% - 36px));
  gap: 24px;
  margin: 0 auto;
  padding: 42px 0 64px;
}

.access-view-hero {
  max-width: 760px;
}

.access-view-hero h1,
.access-view-hero p {
  margin: 0;
}

.access-view-hero h1 {
  margin-top: 5px;
  color: #173724;
  font-size: clamp(30px, 5vw, 48px);
  letter-spacing: -0.04em;
}

.access-view-hero > p:last-child {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.6;
}

.access-view-content {
  display: grid;
  gap: 18px;
}

.access-empty-state,
.access-asset-card {
  border: 1px solid #dce6df;
  border-radius: 22px;
  padding: clamp(18px, 3vw, 28px);
  background: #fff;
  box-shadow: 0 12px 30px rgba(24, 55, 35, 0.06);
}

.access-empty-state h2,
.access-empty-state p {
  margin: 0;
}

.access-empty-state p {
  margin-top: 8px;
  color: var(--muted);
}

.access-asset-card > header {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
}

.access-asset-card > header img,
.access-asset-placeholder {
  width: 124px;
  height: 100px;
  border-radius: 16px;
  object-fit: cover;
}

.access-asset-placeholder {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #264f36, #629272);
  font-size: 34px;
  font-weight: 900;
}

.access-asset-card h2,
.access-asset-card header p {
  margin: 0;
}

.access-asset-card h2 {
  margin: 4px 0 7px;
  color: #173724;
  font-size: 24px;
}

.access-asset-card header p:last-child {
  color: var(--muted);
  line-height: 1.55;
}

.access-asset-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 0;
}

.access-asset-details div,
.access-asset-notes div {
  border: 1px solid #e1e9e3;
  border-radius: 12px;
  padding: 11px;
  background: #f8fbf9;
}

.access-asset-details dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.access-asset-details dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.access-asset-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.access-asset-notes strong,
.access-asset-notes p {
  margin: 0;
}

.access-asset-notes strong {
  color: var(--ink);
  font-size: 12px;
}

.access-asset-notes p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.access-asset-documents {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 10px;
  border-top: 1px solid #e1e9e3;
  padding-top: 14px;
  font-size: 12px;
}

.access-asset-stories,
.family-asset-stories-editor {
  display: grid;
  gap: 0.75rem;
}

.access-asset-stories article,
.family-asset-story-list article {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.85rem;
}

.access-asset-stories article p,
.family-asset-story-list article p {
  margin: 0.35rem 0 0;
  white-space: pre-wrap;
}

.family-asset-stories-editor {
  border-top: 1px solid var(--border);
  margin-top: 1.25rem;
  padding-top: 1.25rem;
}

.family-asset-story-list {
  display: grid;
  gap: 0.65rem;
}

.family-asset-story-list article {
  align-items: start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.family-asset-story-list small {
  display: block;
  margin-top: 0.2rem;
}

.family-asset-story-form {
  display: grid;
  gap: 0.85rem;
}

.access-asset-documents span {
  color: var(--muted);
}

.advisor-dashboard {
  display: grid;
  gap: 22px;
}

.advisor-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.advisor-summary-card,
.advisor-category-panel {
  border: 1px solid rgba(90, 89, 130, 0.16);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(41, 38, 73, 0.07);
}

.advisor-summary-card {
  display: grid;
  gap: 7px;
  padding: 20px;
}

.advisor-summary-card span,
.advisor-summary-card small,
.advisor-category-panel p,
.advisor-category-list small {
  color: var(--muted);
}

.advisor-summary-card strong {
  color: var(--ink);
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.advisor-category-panel {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.advisor-category-panel h2,
.advisor-category-panel p {
  margin: 0;
}

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

.advisor-category-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid rgba(90, 89, 130, 0.12);
}

.advisor-category-list span {
  display: grid;
  gap: 3px;
}

.advisor-privacy-note {
  margin: 0;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(73, 61, 212, 0.07);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .advisor-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.account-drawer {
  position: fixed;
  z-index: 80;
  inset: 0;
  pointer-events: none;
}

.account-drawer.is-open {
  pointer-events: auto;
}

.account-drawer-overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(20, 30, 24, 0.42);
  transition: opacity 180ms ease;
}

.account-drawer-panel {
  position: absolute;
  top: auto;
  right: auto;
  bottom: 0;
  left: 0;
  width: min(280px, 100%);
  height: 100%;
  overflow-y: auto;
  transform: translateY(100%);
  border-right: 1px solid #e2e8e3;
  padding: 22px 18px;
  background: #fbfcfb;
  box-shadow: 24px 0 55px rgba(18, 35, 25, 0.18);
  transition: transform 200ms ease;
}

.account-drawer.is-open .account-drawer-overlay {
  opacity: 1;
}

.account-drawer.is-open .account-drawer-panel {
  transform: translateY(0);
}

.account-drawer-header,
.account-detail-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.account-drawer-header h2,
.account-detail-heading h3 {
  margin: 3px 0 0;
  color: #18251d;
  font-family: Georgia, "Times New Roman", serif;
}

.account-drawer-username,
.account-detail-heading p {
  width: 100%;
  margin: 4px 0 0;
  color: #68756d;
}

.account-security-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 26px 0 18px;
  border: 1px solid #e0e7e1;
  border-radius: 16px;
  padding: 14px 16px;
  background: #fff;
}

.account-security-status span {
  color: #66736b;
  font-size: 13px;
}

.account-security-status strong {
  border-radius: 999px;
  padding: 5px 10px;
  color: #765339;
  background: #f5eadf;
  font-size: 12px;
}

.account-security-status strong.is-enabled {
  color: #1e6840;
  background: #e6f4ea;
}

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

.account-action-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #dfe6e1;
  border-radius: 16px;
  padding: 16px;
  color: #25352b;
  background: #fff;
  text-align: left;
}

.account-action-button > span:first-child {
  display: grid;
  gap: 4px;
}

.account-action-button small {
  color: #718078;
  font-weight: 500;
}

.account-action-button > span:last-child {
  color: #8a978f;
  font-size: 26px;
  line-height: 1;
}

.account-signout-button strong {
  color: #8d3d38;
}

.account-detail-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  border: 1px solid #e0e7e1;
  border-radius: 18px;
  padding: 16px;
  background: #fff;
}

.account-detail-form.is-hidden,
.account-action-list.is-hidden {
  display: none;
}

.account-detail-heading {
  display: grid;
  justify-content: stretch;
}

.account-back-button {
  justify-self: start;
  border: 0;
  padding: 0;
  color: var(--forest);
  background: transparent;
  font-weight: 800;
}

.account-detail-form form,
.account-detail-form label {
  display: grid;
  gap: 8px;
}

.account-detail-form form {
  gap: 14px;
}

.account-detail-form input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #ccd6cf;
  border-radius: 12px;
  padding: 11px 12px;
  color: #1d2b22;
  background: #fff;
}

.account-detail-form input:focus {
  border-color: var(--forest);
  outline: 3px solid rgba(31, 93, 58, 0.12);
}

.account-detail-form button[type="submit"] {
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  color: #fff;
  background: var(--forest);
  font-weight: 800;
}

.account-form-message {
  min-height: 20px;
  margin: 0;
  color: #a33c35;
  font-size: 13px;
}

.account-form-message.is-success {
  color: #1f7044;
}

.account-2fa-verify-step {
  display: grid;
  gap: 14px;
}

.account-2fa-verify-step.is-hidden {
  display: none;
}

.account-setup-instruction {
  margin: 0;
  color: #5f6e65;
}

.account-setup-key-row {
  display: grid;
  align-items: stretch;
  gap: 10px;
}

.account-setup-key-row code {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
  border-radius: 10px;
  padding: 12px;
  color: #24422f;
  background: #eef4ef;
  font-size: 13px;
}

@media (min-width: 561px) {
  .account-drawer-panel .account-voice-setting {
    grid-template-columns: 1fr;
  }

  .account-drawer-panel .account-voice-setting select {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .account-drawer-panel {
    width: 100%;
    border-top: 1px solid #e2e8e3;
    border-right: 0;
    padding: 22px 18px;
    box-shadow: 0 -24px 55px rgba(18, 35, 25, 0.18);
  }
}

.workspace {
  min-width: 0;
  padding: 28px 34px 40px;
  background: #fff;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.topbar-left {
  min-width: 0;
}

.topbar-center {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding-top: 10px;
}

.topbar-status-stack {
  display: grid;
  gap: 5px;
  justify-items: center;
}

.topbar h1 {
  font-size: 34px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.page-subtitle {
  max-width: 760px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.35;
}

.topbar-actions {
  display: grid;
  gap: 7px;
  justify-items: end;
  justify-self: end;
  padding-top: 8px;
}

.provider-status,
.panel-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.provider-status {
  max-width: 230px;
  padding: 5px 9px;
  font-size: 10px;
  text-align: center;
  white-space: normal;
}

.provider-status.is-ready {
  border-color: #cde3d4;
  color: var(--forest);
  background: var(--forest-soft);
}

.status-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.status-pill.is-ready {
  border-color: #cde3d4;
  color: var(--forest);
  background: var(--forest-soft);
}

.status-pill.is-risk {
  border-color: #efd2d5;
  color: var(--red);
  background: #fff7f7;
}

.ghost-button {
  min-height: 34px;
  border: 1px solid var(--forest);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--forest);
  background: #fff;
  font-weight: 800;
  line-height: 1.2;
}

.ghost-button:hover,
.ghost-button:focus-visible {
  border-color: var(--forest-dark);
  color: #fff;
  background: var(--forest);
  box-shadow: 0 0 0 3px var(--forest-soft);
}

.ghost-button:disabled {
  cursor: not-allowed;
  border-color: var(--line);
  color: var(--muted);
  background: #f8faf8;
  box-shadow: none;
  transform: none;
}

.alerts-top-button,
.usage-top-button,
.global-research-top-button {
  width: 96px;
  min-width: 96px;
  height: 34px;
  min-height: 34px;
  padding: 8px 10px;
  overflow: hidden;
  font-size: 12px;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alerts-top-button {
  position: relative;
}

.global-research-top-button {
  position: relative;
  border-color: var(--forest);
  color: var(--forest);
}

.global-research-top-button:hover,
.global-research-top-button:focus-visible {
  color: #fff;
  border-color: var(--forest-dark);
  background: var(--forest);
  box-shadow: 0 0 0 3px var(--forest-soft);
}

.alerts-top-button.has-alerts {
  border-color: #bd2431;
  color: #bd2431;
  background: #fff4f5;
  box-shadow: 0 0 0 3px rgba(189, 36, 49, 0.08);
}

.alerts-top-button.has-alerts:hover,
.alerts-top-button.has-alerts:focus-visible {
  color: #fff;
  background: #bd2431;
  box-shadow: 0 0 0 3px rgba(189, 36, 49, 0.16);
}

.alerts-count-badge {
  display: inline-grid;
  min-width: 20px;
  min-height: 20px;
  margin-left: 7px;
  place-items: center;
  border-radius: 999px;
  padding: 0 6px;
  color: #fff;
  background: #bd2431;
  font-size: 11px;
  line-height: 1;
}

.alerts-top-button.has-alerts:hover .alerts-count-badge,
.alerts-top-button.has-alerts:focus-visible .alerts-count-badge {
  color: #bd2431;
  background: #fff;
}

.alerts-top-button.is-clear {
  border-color: #9cc8ac;
  color: #1f7044;
  background: #edf8f0;
}

.paloist-mobile-demo-top-button {
  display: none;
}

.app-shell.family-mode .paloist-mobile-demo-top-button {
  display: inline-flex;
}

.app-shell.family-mode .paloist-mobile-demo-top-button.is-active {
  color: var(--paloist-paper);
  border-color: var(--paloist-copper);
  background: var(--paloist-copper);
}

.council-top-button {
  font-size: 11px;
  white-space: nowrap;
}

.family-asset-top-button.is-active {
  color: #fff;
  border-color: #1f4f86;
  background: #1f4f86;
}

.asset-council-button {
  border-color: #1f4f86;
  color: #1f4f86;
}

.success-banner {
  margin-bottom: 14px;
  border: 1px solid #cde3d4;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--forest);
  background: var(--forest-soft);
  font-size: 13px;
  font-weight: 800;
}

.view-section {
  min-width: 0;
}

#family-asset-iq-view,
.council-drawer.asset-council-theme {
  --forest: #1f4f86;
  --forest-dark: #173b64;
  --forest-soft: #f1f6fb;
  --asset-accent-soft: #f1f6fb;
  --asset-accent-line: #d7e4f2;
  --asset-accent-dash: #c6daef;
  --asset-accent-shadow: rgba(31, 79, 134, 0.1);
  --asset-accent-shadow-strong: rgba(31, 79, 134, 0.14);
}

#family-asset-iq-view .primary-metric {
  border-color: var(--asset-accent-dash);
}

#family-asset-iq-view .success-banner {
  border-color: var(--asset-accent-line);
}

.app-shell.family-mode .topbar .eyebrow {
  color: #1f4f86;
}

.app-shell.wealth-studio-preview {
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 250, 248, 0.98)),
    #fbfaf7;
}

.app-shell.wealth-studio-preview .sidebar {
  top: 28px;
  height: calc(100vh - 56px);
  min-height: calc(100vh - 56px);
  overflow-y: auto;
  border: 1px solid #dfe7e1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 46px rgba(20, 42, 29, 0.07);
}

.app-shell.wealth-studio-preview .sidebar-brand {
  align-items: flex-start;
  border-bottom: 0;
  padding: 28px 28px 18px;
}

.app-shell.wealth-studio-preview .brand-mark {
  width: 50px;
  height: 50px;
}

.app-shell.wealth-studio-preview .brand-mark::before {
  font-size: 29px;
}

.app-shell.wealth-studio-preview .sidebar-brand strong {
  color: var(--ink);
  font-size: 29px;
  line-height: 1;
}

.app-shell.wealth-studio-preview .sidebar-brand span {
  font-size: 12px;
  font-weight: 850;
}

.app-shell.wealth-studio-preview .market-session-indicator {
  margin-top: 9px;
  font-size: 11px;
}

.app-shell.wealth-studio-preview .market-session-indicator strong,
.app-shell.wealth-studio-preview .market-session-indicator small,
.app-shell.wealth-studio-preview .market-session-indicator span {
  color: inherit;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}

.app-shell.wealth-studio-preview .market-session-indicator .market-session-dot {
  width: 8px;
  height: 8px;
}

.app-shell.wealth-studio-preview .nav-list {
  gap: 12px;
  padding: 24px 26px;
}

.app-shell.wealth-studio-preview .nav-item {
  border-color: transparent;
  border-radius: 8px;
  padding: 12px 14px;
  color: #69766f;
  background: transparent;
  font-size: 15px;
  font-weight: 850;
}

.app-shell.wealth-studio-preview .nav-item:hover,
.app-shell.wealth-studio-preview .nav-item:focus-visible {
  border-color: #d7e4dc;
  color: var(--forest);
  background: #f7fbf8;
}

.app-shell.wealth-studio-preview .nav-item.is-active {
  border-color: #bfd8c7;
  color: var(--forest);
  background: #eef7f1;
  box-shadow: inset 0 0 0 1px rgba(31, 93, 58, 0.03);
}

.app-shell.wealth-studio-preview .nav-item.family-asset-entry {
  color: #1f4f86;
}

.app-shell.wealth-studio-preview .sidebar-footer {
  margin: auto 26px 26px;
  border: 1px solid #dfe7e1;
  border-radius: 8px;
  padding: 13px;
  background: #f7fbf8;
}

.app-shell.wealth-studio-preview .workspace {
  padding: 34px 24px 48px;
  background: transparent;
}

.app-shell.wealth-studio-preview .topbar {
  grid-template-columns: minmax(0, 1fr) auto minmax(220px, auto);
  margin-bottom: 22px;
}

.app-shell.wealth-studio-preview .topbar .eyebrow {
  margin-bottom: 8px;
}

.app-shell.wealth-studio-preview .topbar h1 {
  color: #142019;
  font-size: 56px;
  line-height: 0.98;
}

.app-shell.wealth-studio-preview .page-subtitle {
  color: #7d817c;
  font-size: 19px;
}

.app-shell.wealth-studio-preview .ghost-button {
  min-height: 42px;
  border-width: 1px;
  border-radius: 8px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 24px rgba(20, 42, 29, 0.04);
}

.app-shell.wealth-studio-preview .provider-status {
  border-color: #cfe2d4;
  background: rgba(241, 247, 242, 0.82);
}

.app-shell.wealth-studio-preview .metrics-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 26px;
}

.app-shell.wealth-studio-preview .metric-panel,
.app-shell.wealth-studio-preview .panel {
  border-color: #dfe7e1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 42px rgba(20, 42, 29, 0.065);
}

.app-shell.wealth-studio-preview .metric-panel {
  min-height: 148px;
  padding: 26px;
}

.app-shell.wealth-studio-preview .metric-panel span {
  font-size: 15px;
  font-weight: 900;
}

.app-shell.wealth-studio-preview .metric-panel strong {
  margin: 16px 0 6px;
  font-size: 38px;
  letter-spacing: 0;
}

.app-shell.wealth-studio-preview .metric-panel small {
  color: #7d817c;
  font-size: 15px;
}

.app-shell.wealth-studio-preview .primary-metric {
  background: rgba(255, 255, 255, 0.92);
}

.app-shell.wealth-dashboard-preview #dashboard-view .dashboard-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(360px, 0.95fr);
  gap: 26px;
}

.app-shell.wealth-dashboard-preview #dashboard-view .dashboard-grid > .panel {
  order: 20;
}

.app-shell.wealth-dashboard-preview #dashboard-view .ibkr-live-panel {
  order: 1;
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 28px rgba(20, 42, 29, 0.045);
}

.app-shell.wealth-dashboard-preview #dashboard-view .market-panel {
  order: 2;
  grid-column: 1 / -1;
}

.app-shell.wealth-dashboard-preview #dashboard-view .recommendation-panel {
  order: 3;
  grid-column: span 1;
  min-height: 370px;
}

.app-shell.wealth-dashboard-preview #dashboard-view .trend-panel {
  order: 4;
  grid-column: 1 / -1;
}

.app-shell.wealth-dashboard-preview #dashboard-view .news-panel {
  order: 5;
}

.app-shell.wealth-studio-preview .panel {
  padding: 24px;
}

.app-shell.wealth-studio-preview .panel-header h2,
.app-shell.wealth-studio-preview .paper-dashboard-section-header h3 {
  color: #142019;
  font-size: 27px;
  line-height: 1.1;
}

.app-shell.wealth-studio-preview .panel-header {
  margin-bottom: 20px;
}

.app-shell.wealth-dashboard-preview .trend-chart {
  min-height: 290px;
}

.app-shell.wealth-dashboard-preview .trend-intelligence svg {
  min-height: 235px;
}

.app-shell.wealth-dashboard-preview .trend-insight-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.app-shell.wealth-dashboard-preview .advisor-note {
  border: 1px solid #dfe7e1;
  border-left: 0;
  border-radius: 8px;
  padding: 16px 18px;
  background: #f3f8f4;
}

.app-shell.wealth-dashboard-preview .market-cards {
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  gap: 12px;
}

.app-shell.wealth-dashboard-preview .market-index-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.app-shell.wealth-dashboard-preview .market-index-card,
.app-shell.wealth-dashboard-preview .quote-card {
  border-color: #d8e5dd;
  background: #f3f8f4;
}

.app-shell.wealth-dashboard-preview .quote-card {
  display: grid;
  align-content: space-between;
  min-height: 112px;
  padding: 14px;
}

.app-shell.wealth-dashboard-preview .quote-card footer {
  display: none;
}

.app-shell.wealth-dashboard-preview .quote-price-row {
  margin-top: 10px;
}

.app-shell.wealth-dashboard-preview .quote-price-row em {
  font-size: 19px;
}

.app-shell.wealth-dashboard-preview .quote-price-row b {
  font-size: 14px;
}

.view-grid {
  display: grid;
  gap: 16px;
}

.view-card,
.scenario-card {
  padding: 18px;
}

.scenario-lab-header {
  padding: 18px;
}

.view-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 28px;
  color: var(--muted);
  background: linear-gradient(180deg, #fff 0%, #fbfcfb 100%);
  text-align: left;
}

.empty-state strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 18px;
}

.empty-state p {
  margin: 0;
}

.empty-state.error-state {
  border-style: solid;
  border-color: #efd2d5;
  background: #fffafa;
}

.empty-state.error-state strong {
  color: var(--red);
}

.empty-state.error-state small,
.inline-error small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.inline-error {
  border: 1px solid #efd2d5;
  border-radius: 8px;
  padding: 12px;
  color: var(--muted);
  background: #fffafa;
}

.inline-error strong {
  display: block;
  margin-bottom: 6px;
  color: var(--red);
}

.inline-error p {
  margin: 0;
  line-height: 1.45;
}

.metrics-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.metric-panel,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.metric-panel {
  padding: 18px;
}

.metric-panel span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.metric-panel strong {
  display: block;
  margin: 10px 0 6px;
  font-size: 27px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.primary-metric {
  border-color: #cfe2d4;
  background: linear-gradient(180deg, #fff, var(--forest-soft));
}

.metric-panel small {
  color: var(--muted);
}

.metric-panel-with-action {
  position: relative;
}

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

.metric-panel-title-row span {
  min-width: 0;
}

.metric-info-button {
  display: inline-grid;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--forest);
  background: var(--forest-soft);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.metric-info-button:hover,
.metric-info-button:focus-visible,
.metric-info-button[aria-expanded="true"] {
  border-color: var(--forest);
  color: #fff;
  background: var(--forest);
  box-shadow: 0 0 0 3px rgba(31, 93, 58, 0.12);
}

.metric-popover {
  position: absolute;
  z-index: 40;
  top: 46px;
  right: 12px;
  width: min(336px, calc(100vw - 40px));
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-lift);
}

.metric-popover-header,
.metric-popover-axis {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.metric-popover-header strong {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
}

.metric-popover-header span,
.metric-popover-axis span,
.metric-popover-note {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.metric-popover-chart {
  margin-top: 10px;
}

.metric-popover-chart svg {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f7fbf8);
}

.metric-popover-line {
  fill: none;
  stroke: var(--forest);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.metric-popover-zero-line {
  stroke: #dfe7e1;
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.metric-popover-point {
  fill: var(--forest);
  stroke: #fff;
  stroke-width: 1.5;
}

.metric-popover-axis {
  margin-top: 4px;
}

.metric-popover-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.metric-popover-stats span,
.metric-popover-empty-chart {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #f8fbf8;
}

.metric-popover-stats small,
.metric-popover-stats b {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.metric-popover-stats small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.metric-popover-stats b {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.15;
}

.metric-popover-note {
  margin: 10px 0 0;
  line-height: 1.35;
}

.metric-popover-note.is-risk {
  color: var(--red);
}

.metric-popover-empty-chart {
  display: grid;
  min-height: 84px;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 18px;
}

.panel {
  min-width: 0;
  padding: 18px;
}

.panel,
.metric-panel,
.mini-stat,
.ibkr-live-stat,
.ibkr-live-status,
.quote-card,
.advisor-note,
.trade-card,
.approval-order-card,
.approval-audit-event,
.paper-position-card,
.paper-trade-row,
.settings-status-row,
.settings-assignment-row,
.capability-row,
.family-asset-category-card,
.family-asset-type-button,
.family-asset-document-row,
.family-asset-card,
.family-asset-compact-row,
.family-document-row,
.family-document-card,
.family-beneficiary-card,
.family-inheritance-asset-row,
.family-estate-asset-row,
.family-estate-analysis-card,
.family-insurance-asset-row,
.family-insurance-analysis-card,
.family-setting-row,
.family-planning-checklist > div {
  min-width: 0;
  overflow-wrap: anywhere;
}

.panel > *,
.metric-panel > *,
.quote-card > *,
.family-document-card > *,
.family-asset-card > * {
  min-width: 0;
}

.trend-panel,
.market-panel {
  grid-column: 1 / -1;
}

.recommendation-panel {
  grid-column: span 1;
}

.ibkr-live-panel {
  grid-column: 1 / -1;
  border-color: #cfe2d4;
  background: linear-gradient(180deg, #fff, #fbfdfb);
}

.ibkr-live-account-panel {
  display: grid;
  gap: 14px;
}

.ibkr-live-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.ibkr-live-stat,
.ibkr-live-status {
  border: 1px solid #dbe8df;
  border-radius: 8px;
  background: #fff;
}

.ibkr-live-stat {
  padding: 13px;
}

.ibkr-live-stat span,
.ibkr-live-stat small,
.ibkr-live-status span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.ibkr-live-stat strong {
  display: block;
  margin: 6px 0 3px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.ibkr-live-footer {
  display: grid;
  grid-template-columns: minmax(245px, 0.9fr) minmax(210px, 1fr);
  gap: 12px;
  align-items: stretch;
}

.ibkr-live-status {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: var(--forest-soft);
}

.ibkr-live-status.is-risk {
  border-color: #efd2d5;
  background: #fff7f7;
}

.market-driver-tile {
  min-width: 0;
  padding: 10px 12px;
  border-color: #cfe2d4;
  background: linear-gradient(180deg, #fbfdfb, #f3faf5);
}

.market-driver-tile.is-muted {
  border-color: #e2e8e3;
  background: #fbfcfb;
}

.market-driver-tile.is-cautious {
  border-color: #f0d8d8;
  background: linear-gradient(180deg, #fffafa, #fff4f4);
}

.market-driver-tile.is-watchful {
  border-color: #ead9b8;
  background: linear-gradient(180deg, #fffdf8, #fff8e8);
}

.market-driver-tile .market-driver-eyebrow,
.market-driver-tile small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.market-driver-tile .market-driver-confidence {
  display: block;
  color: var(--forest);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
}

.market-driver-tile .market-driver-explanation {
  margin: 2px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.market-driver-tile small {
  margin-top: 2px;
  font-weight: 700;
  text-transform: none;
}

.ibkr-live-status strong {
  color: var(--forest);
}

.ibkr-live-status .live-order-symbols {
  margin-top: 3px;
  color: var(--ink);
  font-weight: 800;
}

.ibkr-live-status.is-risk strong {
  color: var(--red);
}

.live-submit-button {
  border-color: #b7d5bf;
  color: var(--forest);
  background: var(--forest-soft);
}

.live-submit-button:hover:not(:disabled),
.live-submit-button:focus-visible:not(:disabled) {
  background: var(--forest);
  color: #fff;
}

.panel-header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.panel-header-three-way {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.panel-header-center-action {
  justify-self: center;
}

.panel-header-end-action {
  justify-self: end;
}

.panel-action-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

.panel h2 {
  font-size: 20px;
  line-height: 1.2;
}

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

.mini-stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: #fff;
}

.mini-stat span,
.mini-stat small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.mini-stat strong {
  display: block;
  margin: 6px 0 3px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.mini-stat.is-positive span,
.mini-stat.is-positive strong,
.mini-stat.is-positive small {
  color: var(--green);
}

.mini-stat.is-negative span,
.mini-stat.is-negative strong,
.mini-stat.is-negative small {
  color: var(--red);
}

.scenario-lab-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
}

.scenario-goals-panel {
  grid-column: 1 / -1;
}

.scenario-goal-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.scenario-goal-card {
  min-width: 0;
  display: grid;
  gap: 12px;
  border: 1px solid #dfe9e2;
  border-radius: 8px;
  padding: 13px;
  background: linear-gradient(180deg, #fff, #fbfdfb);
  overflow-wrap: anywhere;
}

.scenario-goal-card.is-primary {
  border-color: #b7d5bf;
  box-shadow: inset 0 0 0 1px rgba(45, 95, 63, 0.12);
}

.scenario-goal-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.scenario-goal-card-header span,
.scenario-goal-card-header strong,
.scenario-goal-card-header em {
  display: block;
}

.scenario-goal-card-header span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.scenario-goal-card-header strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.15;
}

.scenario-goal-card-header em {
  flex: 0 0 auto;
  border: 1px solid #dbe8df;
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--forest);
  background: var(--forest-soft);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.scenario-goal-card-header em.is-risk {
  border-color: #efd2d5;
  color: var(--red);
  background: #fff7f7;
}

.scenario-goal-stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.scenario-control-panel,
.scenario-result-panel {
  align-self: start;
}

.scenario-result-panel.is-loading {
  border-color: #cfe2d4;
  box-shadow: inset 0 0 0 1px #e3f0e6;
}

.scenario-control-list {
  display: grid;
  gap: 16px;
}

.scenario-control {
  display: grid;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 15px;
}

.scenario-control:last-child {
  border-bottom: 0;
}

.scenario-control-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.scenario-control-header label {
  color: var(--ink);
  font-weight: 800;
}

.scenario-control-header strong {
  color: var(--forest);
  white-space: nowrap;
}

.scenario-control-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(148px, 170px);
  align-items: center;
  gap: 12px;
}

.scenario-control input[type="range"] {
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #e5eee8;
  accent-color: var(--forest);
}

.scenario-manual-input {
  display: grid;
  grid-template-columns: minmax(64px, 1fr) auto;
  align-items: center;
  gap: 6px;
  border: 1px solid #dbe8df;
  border-radius: 8px;
  padding: 7px 9px;
  background: #fff;
}

.scenario-manual-input:focus-within {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(45, 95, 63, 0.1);
}

.scenario-manual-input input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-weight: 800;
  outline: none;
}

.scenario-manual-input span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.scenario-control small {
  color: var(--muted);
  font-weight: 500;
  line-height: 1.35;
}

.scenario-preset-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.scenario-preset {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.scenario-preset:hover {
  border-color: #cfe2d4;
  background: var(--forest-soft);
}

.scenario-preset strong,
.scenario-preset span {
  display: block;
}

.scenario-preset span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.compact-button {
  padding: 7px 10px;
  font-size: 12px;
}

.scenario-impact {
  margin-bottom: 14px;
  border: 1px solid #dbe8df;
  border-radius: 8px;
  padding: 16px;
  background: var(--forest-soft);
}

.scenario-impact strong,
.scenario-impact span {
  display: block;
}

.scenario-impact strong {
  color: var(--forest);
  font-size: 34px;
}

.scenario-impact span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

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

.scenario-assumption-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.scenario-assumption {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
}

.scenario-assumption span,
.scenario-assumption strong {
  display: block;
}

.scenario-assumption span {
  color: var(--muted);
  font-size: 12px;
}

.scenario-assumption strong {
  margin-top: 4px;
  color: var(--ink);
}

.trend-chart {
  min-height: 280px;
}

.trend-chart svg {
  display: block;
  width: 100%;
  height: 218px;
}

.chart-empty {
  display: grid;
  min-height: 240px;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fbfcfb;
}

.trend-intelligence {
  display: grid;
  gap: 10px;
}

.trend-chart-key {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid #dbe8df;
  border-radius: 8px;
  padding: 7px 9px;
  background: #fbfdfb;
  box-shadow: 0 8px 18px rgba(31, 93, 58, 0.06);
}

.trend-chart-key-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.trend-chart-key-item i {
  width: 26px;
  height: 0;
  border-top: 3px solid var(--key-color, var(--forest));
  border-radius: 999px;
}

.trend-chart-key-item i.is-dashed {
  border-top-style: dashed;
}

.trend-chart-key-item small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

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

.trend-insight-card {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid #dbe8df;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.trend-insight-card.is-ready {
  border-color: #bddbc6;
  background: var(--forest-soft);
}

.trend-insight-card.is-risk {
  border-color: #efd2d5;
  background: #fff7f7;
}

.trend-insight-card span,
.trend-insight-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.trend-insight-card strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.trend-insight-card.is-ready strong {
  color: var(--forest);
}

.trend-insight-card.is-risk strong {
  color: var(--red);
}

.trend-insight-card .trend-driver-list {
  display: grid;
  gap: 3px;
  font-size: 14px;
  line-height: 1.15;
}

.trend-driver-list span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.trend-driver-list b,
.trend-driver-list em {
  min-width: 0;
  font-style: normal;
  overflow-wrap: anywhere;
}

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

.market-index-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.market-index-card {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid #d5e5dc;
  border-radius: 8px;
  padding: 12px;
  background: var(--forest-soft);
}

.market-index-card span,
.market-index-card em,
.market-index-card small {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: normal;
}

.market-index-card small {
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.market-index-card span {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 950;
  line-height: 1.05;
}

.market-index-card strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.1;
  white-space: nowrap;
}

.market-index-card em.quote-positive {
  color: #167a48;
}

.market-index-card em.quote-negative {
  color: #b42318;
}

.quote-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  background: #fff;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

.quote-card header,
.quote-card footer,
.quote-price-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.quote-card:hover {
  border-color: #cde3d4;
  background: #fff;
  box-shadow: 0 0 0 3px var(--forest-soft);
}

.quote-card header > div,
.quote-card footer > div,
.quote-price-row > div {
  min-width: 0;
}

.quote-card header > div:first-child {
  flex: 1 1 auto;
}

.quote-card-actions {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  justify-content: flex-end;
  max-width: 50%;
}

.quote-card header small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
  text-align: right;
}

.quote-detail-button {
  display: inline-grid;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid #dbe8df;
  border-radius: 999px;
  color: var(--forest);
  background: var(--forest-soft);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.quote-detail-button:hover,
.quote-detail-button:focus-visible {
  border-color: var(--forest);
  background: #fff;
}

.quote-card strong {
  display: block;
  font-size: 15px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.quote-card span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quote-card em {
  display: block;
  color: var(--forest);
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.quote-card em.quote-unavailable {
  color: var(--muted);
}

.quote-price-row {
  margin-top: 10px;
}

.quote-price-row b {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.quote-price-row b.quote-positive {
  color: #167a48;
}

.quote-price-row b.quote-negative {
  color: #b42318;
}

.quote-card footer {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.news-panel {
  grid-column: span 1;
}

.dashboard-news-list {
  min-height: 220px;
}

.news-status-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
}

.news-status-row span {
  color: var(--forest);
  font-weight: 800;
}

.news-scroll {
  display: grid;
  max-height: 360px;
  gap: 10px;
  overflow: auto;
  padding-right: 4px;
}

.news-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.news-item div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
}

.news-item div span {
  color: var(--forest);
  font-weight: 800;
}

.news-item a {
  display: block;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
}

.news-item a:hover {
  color: var(--forest);
}

.news-item p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.allocation-bars,
.holding-list,
.recommendation-list,
.ai-status-panel {
  display: grid;
  gap: 12px;
}

.bar-row {
  display: grid;
  gap: 7px;
}

.bar-row header,
.holding-row,
.provider-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.allocation-symbols {
  display: block;
  margin-top: -2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-track {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: #eef2ef;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--forest);
}

.allocation-source-note {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.holding-row,
.provider-row {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.holding-row:last-child,
.provider-row:last-child {
  border-bottom: 0;
}

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

.advisor-note {
  border: 1px solid var(--line);
  border-left: 3px solid var(--forest);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.advisor-note.full-note {
  padding: 16px;
}

.advisor-note.is-risk {
  border-left-color: var(--red);
}

.advisor-note.is-risk strong,
.risk-text {
  color: var(--red);
}

.positive-text {
  color: var(--green);
}

.success-text {
  color: var(--green);
  font-weight: 800;
}

.advisor-note p {
  margin: 8px 0 0;
  color: var(--muted);
}

.council-review-hero {
  border-color: #dbe8df;
}

.council-filter-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  margin-top: 18px;
}

.council-checkbox-filter {
  display: flex;
  min-height: 43px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  background: #fff;
}

.council-checkbox-filter input {
  width: auto;
}

.council-review-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.council-review-counts span,
.council-session-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.council-review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(360px, 0.8fr);
  gap: 16px;
  align-items: start;
}

.council-session-list,
.council-action-note-list {
  display: grid;
  gap: 14px;
}

.council-session-card,
.council-action-note-card {
  border-left: 3px solid var(--line);
}

.council-session-card.is-pinned,
.council-action-note-card.is-pinned {
  border-left-color: var(--forest);
  box-shadow: 0 14px 34px rgba(31, 93, 58, 0.08);
}

.council-session-header,
.council-note-header,
.council-card-footer,
.council-session-actions,
.council-session-meta {
  display: flex;
  gap: 10px;
}

.council-session-header,
.council-note-header {
  justify-content: space-between;
  align-items: flex-start;
}

.council-session-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.council-session-meta {
  flex-wrap: wrap;
  margin: 12px 0;
}

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

.council-insight-list {
  border: 1px solid #dbe8df;
  border-radius: 8px;
  padding: 12px;
  background: var(--forest-soft);
}

.council-insight-list.is-risk {
  border-color: #efd2d5;
  background: #fff7f7;
}

.council-insight-list.is-risk strong,
.council-insight-list.is-risk li {
  color: var(--red);
}

.council-insight-list strong {
  display: block;
  margin-bottom: 8px;
}

.council-insight-list ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.council-session-controls {
  display: grid;
  grid-template-columns: minmax(160px, 0.45fr) minmax(0, 1fr);
  gap: 12px;
}

.council-card-footer {
  flex-wrap: wrap;
  margin-top: 12px;
}

.council-action-notes-panel {
  position: sticky;
  top: 18px;
}

.council-action-note-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.council-note-header input {
  margin-top: 4px;
  padding: 8px 10px;
  font-weight: 800;
}

.council-action-note-card textarea,
.council-session-controls textarea {
  resize: vertical;
}

.rebalance-hero {
  border-color: #dbe8df;
}

.rebalance-source-strip,
.rebalance-target-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.rebalance-target-form {
  display: grid;
  gap: 14px;
}

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

.rebalance-target-grid label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.rebalance-target-grid input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 11px;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

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

.rebalance-allocation-list,
.rebalance-drift-list,
.rebalance-move-list,
.rebalance-note-list {
  display: grid;
  gap: 12px;
}

.rebalance-allocation-row {
  display: grid;
  gap: 7px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.rebalance-allocation-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.rebalance-allocation-row header,
.rebalance-drift-row,
.rebalance-move-meta,
.rebalance-note {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.rebalance-allocation-row small,
.rebalance-drift-row span,
.rebalance-drift-row em,
.rebalance-move p,
.rebalance-move-meta span,
.rebalance-note span {
  color: var(--muted);
  font-size: 12px;
}

.rebalance-drift-row {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: #fff;
}

.rebalance-drift-row.is-actionable {
  border-color: #ead7a8;
  background: #fffaf0;
}

.rebalance-drift-row.is-major-drift {
  border-color: #efd2d5;
  background: #fff7f7;
}

.rebalance-drift-row.is-watch-drift > div:first-child strong,
.rebalance-drift-row.is-watch-drift .rebalance-drift-metrics strong,
.rebalance-drift-row.is-watch-drift .rebalance-drift-metrics em,
.rebalance-move.is-watch-drift strong,
.rebalance-move.is-watch-drift .rebalance-move-meta span:first-child {
  color: #9a6700;
}

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

.rebalance-drift-row.is-major-drift > div:first-child strong,
.rebalance-drift-row.is-major-drift .rebalance-drift-metrics strong,
.rebalance-drift-row.is-major-drift .rebalance-drift-metrics em {
  color: var(--red);
}

.rebalance-drift-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(90px, auto));
  gap: 12px;
  align-items: center;
  text-align: right;
}

.rebalance-drift-metrics strong,
.rebalance-drift-metrics em {
  color: var(--forest);
  font-style: normal;
}

.rebalance-move {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--forest);
  border-radius: 8px;
  padding: 13px;
}

.rebalance-move.is-actionable {
  border-left-color: #9a6700;
  background: #fffaf0;
}

.rebalance-move.is-major-drift {
  border-left-color: var(--red);
  background: #fff7f7;
}

.rebalance-move p {
  margin: 0;
  line-height: 1.45;
}

.rebalance-move.is-major-drift strong,
.rebalance-move.is-major-drift .rebalance-move-meta span:first-child {
  color: var(--red);
}

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

.rebalance-position-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.4fr) repeat(3, minmax(90px, 0.6fr));
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}

.rebalance-position-row strong,
.rebalance-position-row span {
  display: block;
  min-width: 0;
}

.rebalance-position-row > span {
  text-align: right;
  font-weight: 800;
}

.rebalance-position-row div span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.rebalance-note {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.rebalance-note:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.rebalance-note strong {
  min-width: 120px;
}

.health-hero {
  border-color: #dbe8df;
}

.health-hero-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.health-score-card {
  display: grid;
  align-content: center;
  border: 1px solid #dbe8df;
  border-radius: 8px;
  padding: 18px;
  background: var(--forest-soft);
}

.health-score-card span,
.health-score-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.health-score-card strong {
  display: block;
  margin: 8px 0;
  color: var(--forest);
  font-size: 54px;
  line-height: 1;
}

.health-progress {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.health-progress-track {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: #eef2ef;
}

.health-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--forest);
}

.health-progress span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

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

.health-gap-card {
  border: 1px solid #dbe8df;
  border-radius: 8px;
  padding: 16px;
  background: var(--forest-soft);
}

.health-gap-card.is-risk {
  border-color: #efd2d5;
  background: #fff7f7;
}

.health-gap-card span,
.health-gap-card p {
  color: var(--muted);
}

.health-gap-card span {
  font-size: 12px;
  font-weight: 800;
}

.health-gap-card strong {
  display: block;
  margin: 6px 0;
  color: var(--forest);
  font-size: 34px;
}

.health-gap-card.is-risk strong {
  color: var(--red);
}

.health-gap-card p {
  margin: 0;
  line-height: 1.45;
}

.health-two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

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

.projection-path {
  border: 1px solid #dbe8df;
  border-radius: 8px;
  padding: 14px;
  background: var(--forest-soft);
}

.projection-path.is-risk {
  border-color: #efd2d5;
  background: #fff7f7;
}

.projection-path span,
.projection-path small,
.projection-path em,
.projection-path strong {
  display: block;
}

.projection-path span,
.projection-path small,
.projection-path em {
  color: var(--muted);
  font-size: 12px;
}

.projection-path strong {
  margin: 8px 0 4px;
  color: var(--forest);
  font-size: 24px;
}

.projection-path.is-risk strong,
.projection-path.is-risk em {
  color: var(--red);
}

.projection-path em {
  margin-top: 8px;
  font-style: normal;
  font-weight: 800;
}

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

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

.health-risk-row {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.health-risk-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.health-risk-row span {
  color: var(--muted);
  font-size: 13px;
}

.health-risk-row.is-risk strong,
.health-risk-row.is-risk span {
  color: var(--red);
}

.health-council-summary {
  display: grid;
  gap: 12px;
}

.health-council-summary p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.health-council-summary ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.5;
}

.trades-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
  gap: 16px;
  align-items: start;
}

.trades-overview {
  border-color: #dbe8df;
}

.trade-position-panel-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

.trade-position-title-block {
  min-width: 0;
}

.trade-position-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.trade-position-title-row h2 {
  margin: 0;
}

.trade-position-cash-badge {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 7px;
  align-items: baseline;
  border: 1px solid #bfd8c7;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--forest);
  background: #f2f8f4;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.trade-position-cash-badge small,
.trade-position-cash-badge strong {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.trade-position-cash-badge strong {
  font-weight: 900;
}

.trade-position-cash-badge.is-muted {
  border-color: var(--line);
  color: var(--muted);
  background: #f8faf8;
}

.trade-position-header-center {
  justify-self: center;
}

.trade-position-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.trade-position-header-actions small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.trade-position-refresh-button {
  border-color: #bfd8c7;
  color: var(--forest);
  background: rgba(255, 255, 255, 0.9);
}

.trade-position-refresh-button:hover,
.trade-position-refresh-button:focus-visible {
  border-color: var(--forest);
  color: #fff;
  background: var(--forest);
}

.trade-position-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
  margin-top: 12px;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
}

.trade-position-card,
.trade-position-empty {
  min-width: 0;
  border: 1px solid #dbe8df;
  border-radius: 8px;
  background: rgba(245, 250, 246, 0.92);
  box-shadow: inset 0 0 0 1px rgba(31, 93, 58, 0.025);
}

.trade-position-card {
  display: grid;
  gap: 9px;
  padding: 11px;
  align-content: start;
}

.trade-position-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.trade-position-card header div,
.trade-position-meta {
  min-width: 0;
}

.trade-position-card strong,
.trade-position-card span {
  display: block;
}

.trade-position-card header strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.05;
}

.trade-position-card header span,
.trade-position-meta span,
.trade-position-empty span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
}

.trade-position-research-button {
  flex: 0 0 auto;
  align-self: start;
  border: 1px solid #bfd8c7;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--forest);
  background: rgba(255, 255, 255, 0.88);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.trade-position-research-button:hover,
.trade-position-research-button:focus-visible {
  border-color: var(--forest);
  color: #fff;
  background: var(--forest);
  outline: none;
}

.trade-position-owned-value {
  display: grid;
  gap: 2px;
  border: 1px solid rgba(191, 216, 199, 0.82);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.trade-position-owned-value span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
}

.trade-position-owned-value strong {
  min-width: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.trade-position-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid rgba(219, 232, 223, 0.9);
  padding-top: 8px;
}

.trade-position-meta strong {
  color: var(--ink);
  font-size: 13px;
  text-align: right;
  white-space: nowrap;
}

.trade-position-meta strong.positive-text {
  color: var(--green);
}

.trade-position-meta strong.risk-text {
  color: var(--red);
}

.trade-position-empty {
  display: grid;
  gap: 5px;
  padding: 13px;
}

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

.paper-owned-dashboard {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.paper-owned-dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.paper-owned-dashboard-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.15;
}

.paper-owned-stock-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 10px;
  max-height: 282px;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
}

.paper-owned-stock-card {
  position: relative;
  gap: 8px;
  padding: 10px;
  background: rgba(246, 250, 247, 0.94);
}

.paper-owned-stock-card.scott-pick {
  border-color: #c8decf;
  box-shadow:
    inset 4px 0 0 rgba(31, 93, 58, 0.72),
    inset 0 0 0 1px rgba(31, 93, 58, 0.03);
}

.paper-owned-stock-card.council-pick {
  border-color: #c7d6ed;
  background: rgba(247, 250, 255, 0.96);
  box-shadow:
    inset 4px 0 0 rgba(36, 79, 141, 0.7),
    inset 0 0 0 1px rgba(36, 79, 141, 0.03);
}

.paper-owned-stock-card header {
  align-items: flex-start;
}

.paper-owned-stock-card header .paper-source-pill {
  flex: 0 0 auto;
  padding: 4px 7px;
  font-size: 10px;
}

.paper-owned-card-actions {
  display: grid;
}

.paper-owned-card-actions .trade-position-research-button {
  justify-self: stretch;
  text-align: center;
}

.paper-owned-stock-card .trade-position-owned-value {
  padding: 7px;
}

.paper-owned-stock-card .trade-position-owned-value strong {
  font-size: 18px;
}

.paper-owned-stock-card .trade-position-meta {
  padding-top: 7px;
}

.paper-owned-stock-card .trade-position-meta strong {
  white-space: normal;
  overflow-wrap: anywhere;
}

.paper-dashboard-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.paper-dashboard-kpi-card {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 1px solid #dbe8df;
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 0 0 1px rgba(31, 93, 58, 0.02);
}

.paper-dashboard-kpi-card span,
.paper-dashboard-kpi-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
}

.paper-dashboard-kpi-card strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.paper-dashboard-kpi-card strong.positive-text,
.paper-dashboard-benchmark-pairs strong.positive-text {
  color: var(--green);
}

.paper-dashboard-kpi-card strong.risk-text,
.paper-dashboard-benchmark-pairs strong.risk-text {
  color: var(--red);
}

.paper-dashboard-benchmark-pairs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.paper-dashboard-benchmark-pairs span {
  display: grid;
  gap: 2px;
  border: 1px solid rgba(219, 232, 223, 0.92);
  border-radius: 7px;
  padding: 6px;
  background: rgba(246, 250, 247, 0.86);
}

.paper-dashboard-benchmark-pairs b {
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
}

.paper-dashboard-benchmark-pairs strong {
  font-size: 15px;
}

.trade-list,
.trade-safety-list {
  display: grid;
  gap: 12px;
}

.trade-side-column,
.trade-ai-panel {
  display: grid;
  gap: 16px;
}

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

.trade-ai-button {
  width: 100%;
}

.trade-ai-response {
  min-height: 128px;
  border: 1px solid #dbe8df;
  border-radius: 8px;
  padding: 13px;
  background: #fbfcfb;
}

.trade-ai-response p {
  margin: 0;
  color: var(--muted);
  line-height: 1.48;
  white-space: pre-wrap;
}

.trade-ai-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.trade-ai-meta span,
.trade-ai-meta strong {
  color: var(--muted);
  font-size: 12px;
}

.trade-ai-meta strong {
  color: var(--forest);
}

.trade-card {
  display: grid;
  gap: 13px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--forest);
  border-radius: 8px;
  padding: 15px;
  background: #fff;
}

.trade-card header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.trade-card h3,
.trade-card p {
  margin: 0;
}

.trade-card h3 {
  font-size: 21px;
}

.trade-card header span,
.trade-card p {
  color: var(--muted);
  line-height: 1.45;
}

.trade-card-status {
  text-align: right;
}

.trade-card-status strong,
.trade-card-status span,
.trade-card-title {
  display: block;
}

.trade-card-status strong {
  color: var(--forest);
}

.trade-card-status span {
  margin-top: 4px;
  font-size: 12px;
}

.trade-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.trade-card-actions .ghost-button {
  min-height: 38px;
}

.trade-card-title {
  color: var(--ink);
  font-size: 16px;
}

.trade-risk-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--red);
  font-size: 13px;
  line-height: 1.45;
}

.trade-next-step {
  border: 1px solid #dbe8df;
  border-radius: 8px;
  padding: 12px;
  background: var(--forest-soft);
}

.trade-next-step span,
.trade-next-step strong {
  display: block;
}

.trade-next-step span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.trade-next-step strong {
  margin-top: 4px;
  color: var(--forest);
}

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

.trade-meta {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.trade-meta span,
.trade-meta strong {
  display: block;
}

.trade-meta span {
  color: var(--muted);
  font-size: 12px;
}

.trade-meta strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 13px;
}

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

.trade-safety-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.trade-safety-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.trade-safety-item > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  color: var(--forest);
  background: var(--forest-soft);
  font-size: 12px;
  font-weight: 900;
}

.trade-safety-item strong {
  display: block;
}

.trade-safety-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.approval-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.8fr);
  gap: 16px;
  align-items: start;
}

.approval-form,
.approval-order-list,
.approval-audit-list {
  display: grid;
  gap: 12px;
}

.approval-form input,
.approval-form select,
.approval-form textarea {
  padding: 10px;
}

.approval-order-card,
.approval-audit-event {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.approval-order-card {
  border-left: 3px solid var(--line);
}

.approval-order-card.is-selected {
  border-left-color: var(--forest);
  background: #fbfcfb;
}

.approval-order-card header,
.approval-safety-header,
.approval-action-row,
.approval-audit-event > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.approval-order-card header > div,
.approval-audit-event > div > div {
  min-width: 0;
}

.approval-order-card h3,
.approval-order-card p,
.approval-audit-event p {
  margin: 0;
  overflow-wrap: anywhere;
}

.approval-order-card h3 {
  font-size: 22px;
}

.approval-order-card header span:not(.status-pill),
.approval-audit-event span,
.approval-audit-event p,
.approval-audit-event em {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.approval-audit-event em {
  display: block;
  margin-top: 4px;
  font-style: normal;
}

.approval-safety {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfb;
}

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

.approval-check {
  border: 1px solid #dbe8df;
  border-radius: 8px;
  padding: 8px;
  background: var(--forest-soft);
}

.approval-check.is-risk {
  border-color: #efd2d5;
  background: #fff7f7;
}

.approval-check span,
.approval-check strong {
  display: block;
}

.approval-check span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.approval-check.is-risk span,
.approval-check.is-risk strong {
  color: var(--red);
}

.approval-check strong {
  margin-top: 3px;
  color: var(--forest);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.approval-action-row {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.danger-button {
  border-color: #efd2d5;
  color: var(--red);
}

.danger-button:hover:not(:disabled),
.danger-button:focus-visible:not(:disabled) {
  border-color: var(--red);
  color: #fff;
  background: var(--red);
  box-shadow: 0 0 0 3px #fff0f1;
}

.broker-status {
  display: grid;
  gap: 4px;
  border: 1px solid #dbe8df;
  border-radius: 8px;
  padding: 10px;
  background: var(--forest-soft);
}

.broker-status.is-risk {
  border-color: #efd2d5;
  background: #fff7f7;
}

.broker-status strong {
  color: var(--forest);
}

.broker-status.is-risk strong {
  color: var(--red);
}

.broker-status span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.audit-selected-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.paper-hero {
  border-color: #dbe8df;
}

#paper-trading-content {
  gap: 12px;
}

.paper-dashboard-panel {
  display: grid;
  gap: 14px;
}

.paper-hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.paper-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(480px, 1.05fr);
  gap: 14px;
  align-items: start;
}

.paper-dashboard-summary,
.paper-benchmark-dashboard {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.paper-dashboard-stat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.approval-order-section {
  display: grid;
  gap: 10px;
}

.approval-order-section + .approval-order-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.approval-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.approval-section-header small {
  text-transform: none;
}

.paper-dashboard-stat-grid .mini-stat {
  padding: 11px;
}

.paper-dashboard-stat-grid .mini-stat strong {
  font-size: 18px;
}

.paper-dashboard-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.paper-dashboard-section-header h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.paper-benchmark-dashboard .paper-benchmark-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.paper-benchmark-dashboard .paper-benchmark-card {
  gap: 8px;
  padding: 10px;
}

.paper-benchmark-dashboard .paper-benchmark-values {
  gap: 6px;
}

.paper-benchmark-dashboard .paper-benchmark-values .trade-meta {
  padding: 7px;
}

.paper-benchmark-dashboard .paper-benchmark-values .trade-meta strong {
  font-size: 12px;
}

.paper-benchmark-dashboard .paper-benchmark-verdict {
  padding: 7px 8px;
}

.paper-benchmark-dashboard .paper-benchmark-verdict span {
  font-size: 11px;
}

.paper-dashboard-panel .view-copy,
.paper-benchmark-dashboard .paper-thesis {
  margin: 0;
}

.paper-source-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.paper-source-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 5px 9px;
  border: 1px solid #d7e4da;
  border-radius: 999px;
  color: var(--muted);
  background: #f7faf7;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

.paper-source-pill.scott-pick {
  border-color: #d8e4dc;
  color: var(--forest);
  background: #f1f7f2;
}

.paper-source-pill.council-pick {
  border-color: #c7d6ed;
  color: #244f8d;
  background: #f0f5fc;
}

.paper-advisor-panel {
  display: grid;
  gap: 12px;
  border-color: #c7d6ed;
  background: linear-gradient(180deg, #fbfdff 0%, #f6f9fd 100%);
}

.paper-advisor-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.paper-advisor-meta span {
  display: inline-flex;
  padding: 7px 10px;
  border: 1px solid #dce8f6;
  border-radius: 999px;
  color: #5d6d7e;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

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

.paper-advisor-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 13px;
  border: 1px solid #d6e3f3;
  border-radius: 8px;
  background: #fff;
}

.paper-advisor-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.paper-advisor-card header > div {
  min-width: 0;
}

.paper-advisor-card h3,
.paper-advisor-card p {
  margin: 0;
}

.paper-advisor-card h3 {
  margin-top: 7px;
  font-size: 22px;
  line-height: 1.05;
}

.paper-advisor-card header p,
.paper-advisor-card .paper-thesis {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.paper-advisor-card header strong {
  flex: 0 0 auto;
  color: var(--forest);
  font-size: 18px;
}

.paper-advisor-share-edit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(96px, 0.42fr);
  gap: 10px;
  align-items: center;
  border: 1px solid #e0ebf6;
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--muted);
  background: #f8fbff;
  font-size: 12px;
  font-weight: 800;
}

.paper-advisor-share-edit input {
  min-width: 0;
  width: 100%;
  border: 1px solid #cfe0f2;
  border-radius: 8px;
  padding: 8px 9px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  text-align: right;
}

.paper-advisor-share-edit input:focus {
  outline: 2px solid rgba(31, 93, 58, 0.18);
  border-color: var(--forest);
}

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

.paper-dashboard-panel > .panel-header,
.paper-layout .panel-header,
.paper-positions-grid .panel-header {
  margin-bottom: 12px;
}

.paper-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 12px;
  align-items: start;
}

.paper-main-stack {
  display: grid;
  gap: 12px;
}

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

.paper-active-grid {
  align-items: stretch;
}

.paper-trade-form,
.paper-position-list,
.paper-trade-list {
  display: grid;
  gap: 10px;
}

.paper-trade-form {
  position: relative;
}

.form-row.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.paper-trade-form label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.paper-trade-form input,
.paper-trade-form select,
.paper-trade-form textarea {
  position: relative;
  z-index: 1;
  padding: 10px;
  pointer-events: auto;
}

.paper-symbol-field input {
  text-transform: uppercase;
}

.paper-form-actions {
  display: flex;
  justify-content: flex-start;
}

.paper-position-card,
.paper-trade-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.paper-position-card {
  display: grid;
  gap: 12px;
  border-left: 3px solid var(--forest);
}

.paper-closed-position-card {
  border-left-color: #a5b4a8;
}

.paper-position-card header,
.paper-trade-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.paper-position-card header > div,
.paper-trade-row > div {
  min-width: 0;
}

.paper-position-card h3,
.paper-position-card p,
.paper-trade-row p {
  margin: 0;
}

.paper-position-card h3 {
  font-size: 22px;
  overflow-wrap: anywhere;
}

.paper-position-card header span,
.paper-position-footer,
.paper-thesis,
.paper-trade-row span,
.paper-trade-row p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.paper-position-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.paper-position-footer strong:not(.risk-text):not(.positive-text) {
  color: var(--forest);
}

.paper-trade-row {
  align-items: flex-start;
  grid-template-columns: minmax(0, 1fr) auto;
}

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

.paper-trade-row > div {
  min-width: 0;
}

.paper-trade-row span {
  margin-top: 4px;
}

.paper-trade-row p {
  margin-top: 8px;
}

.paper-trade-delete-button {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border-color: #f2cbd0;
  color: var(--red);
  background: #fff8f8;
  cursor: pointer;
  pointer-events: auto;
}

.paper-trade-delete-button:hover,
.paper-trade-delete-button:focus-visible {
  border-color: var(--red);
  color: #fff;
  background: var(--red);
}

.paper-trade-delete-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.paper-timeline-panel,
.paper-tags-panel {
  min-width: 0;
}

.paper-timeline-chart {
  height: 180px;
  border: 1px solid #dbe8df;
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfcfb 0%, #fff 100%);
  overflow: hidden;
}

.paper-timeline-chart svg {
  display: block;
  width: 100%;
  height: 100%;
}

.paper-timeline-chart line {
  stroke: #d8ded8;
  stroke-width: 1;
}

.paper-timeline-chart .paper-timeline-axis-line {
  stroke: #cdd8cf;
}

.paper-timeline-axis-label line {
  stroke: #cdd8cf;
}

.paper-timeline-axis-label text {
  fill: var(--muted);
  font-size: 4px;
  font-weight: 800;
}

.paper-timeline-chart polyline {
  fill: none;
  stroke: var(--forest);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.paper-timeline-chart circle {
  fill: var(--forest);
}

.paper-timeline-meta,
.paper-benchmark-list {
  display: grid;
  gap: 8px;
}

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

.paper-benchmark-list {
  grid-template-columns: 1fr;
  gap: 12px;
}

.paper-benchmark-summary {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #dbe8df;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fbfcfb;
}

.paper-benchmark-summary span,
.paper-benchmark-summary em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.paper-benchmark-card {
  display: grid;
  grid-template-columns: minmax(56px, 0.45fr) minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  border: 1px solid #dbe8df;
  border-radius: 8px;
  padding: 12px;
  background: var(--forest-soft);
  min-width: 0;
}

.paper-benchmark-card.is-beating {
  border-color: #b9d9c3;
  background: #f3faf5;
}

.paper-benchmark-card.is-lagging {
  border-color: #f1c5ca;
  background: #fff8f8;
}

.paper-benchmark-card.is-waiting {
  background: #fbfcfb;
}

.paper-benchmark-card-header {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.paper-benchmark-symbol,
.paper-benchmark-return {
  white-space: nowrap;
}

.paper-benchmark-return {
  text-align: left;
}

.paper-benchmark-return.is-positive {
  color: var(--forest);
}

.paper-benchmark-return.is-negative {
  color: var(--red);
}

.paper-benchmark-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.paper-benchmark-values .trade-meta {
  min-width: 0;
  max-width: 100%;
  padding: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.paper-benchmark-values .trade-meta span,
.paper-benchmark-values .trade-meta strong {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: normal;
}

.paper-benchmark-values .trade-meta span {
  white-space: normal;
}

.paper-benchmark-values .trade-meta strong {
  font-size: 13px;
  line-height: 1.15;
}

.paper-benchmark-verdict {
  grid-column: 1 / -1;
  border-left: 3px solid #b9d9c3;
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff;
  align-self: stretch;
}

.paper-benchmark-card.is-lagging .paper-benchmark-verdict {
  border-left-color: var(--red);
}

.paper-benchmark-card.is-waiting .paper-benchmark-verdict {
  border-left-color: #d8ded8;
}

.paper-benchmark-verdict strong,
.paper-benchmark-verdict span {
  display: block;
}

.paper-benchmark-verdict span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.paper-benchmark-card strong,
.paper-benchmark-card span {
  display: block;
}

.paper-benchmark-card span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.paper-tag-cloud,
.paper-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.paper-tag-cloud span,
.paper-tag-list span {
  border: 1px solid #dbe8df;
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--forest-soft);
  color: var(--forest);
  font-size: 12px;
  font-weight: 800;
}

.paper-tag-list {
  margin-top: 2px;
}

.paper-trade-row .paper-tag-list {
  margin-top: 10px;
}

.app-shell.wealth-paper-preview #paper-trading-content {
  gap: 28px;
}

.app-shell.wealth-paper-preview .paper-dashboard-panel {
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.app-shell.wealth-paper-preview .paper-dashboard-panel > .panel-header {
  margin-bottom: 24px;
}

.app-shell.wealth-paper-preview .paper-dashboard-summary {
  gap: 14px;
}

.app-shell.wealth-paper-preview .paper-dashboard-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.app-shell.wealth-paper-preview .paper-dashboard-stat-grid .mini-stat {
  min-height: 148px;
  padding: 26px;
  border-color: #dfe7e1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 42px rgba(20, 42, 29, 0.065);
}

.app-shell.wealth-paper-preview .paper-dashboard-stat-grid .mini-stat span {
  font-size: 15px;
  font-weight: 900;
}

.app-shell.wealth-paper-preview .paper-dashboard-stat-grid .mini-stat strong {
  margin: 16px 0 6px;
  font-size: 38px;
  line-height: 1.05;
}

.app-shell.wealth-paper-preview .paper-dashboard-stat-grid .mini-stat small {
  font-size: 15px;
}

.paper-studio-split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.85fr);
  gap: 26px;
  align-items: stretch;
}

.app-shell.wealth-paper-preview .paper-benchmark-dashboard,
.app-shell.wealth-paper-preview .paper-timeline-panel,
.app-shell.wealth-paper-preview .paper-advisor-panel,
.app-shell.wealth-paper-preview .paper-positions-grid > .panel,
.app-shell.wealth-paper-preview .paper-layout > .panel,
.app-shell.wealth-paper-preview .paper-realized-results-panel {
  border-color: #dfe7e1;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 42px rgba(20, 42, 29, 0.065);
}

.app-shell.wealth-paper-preview .paper-benchmark-dashboard,
.app-shell.wealth-paper-preview .paper-timeline-panel {
  min-height: 320px;
}

.app-shell.wealth-paper-preview .paper-advisor-panel {
  box-shadow: 0 16px 36px rgba(36, 79, 141, 0.055);
}

.app-shell.wealth-paper-preview .paper-benchmark-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.app-shell.wealth-paper-preview .paper-benchmark-card {
  grid-template-columns: 1fr;
  gap: 12px;
  border-color: #cfe2d4;
  background: #f3f8f4;
}

.app-shell.wealth-paper-preview .paper-benchmark-card-header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.app-shell.wealth-paper-preview .paper-benchmark-return {
  font-size: 23px;
}

.app-shell.wealth-paper-preview .paper-benchmark-values {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app-shell.wealth-paper-preview .paper-timeline-chart {
  height: 210px;
  border-color: #edf1ee;
  background: #fff;
}

.app-shell.wealth-paper-preview .paper-timeline-meta {
  display: none;
}

.app-shell.wealth-paper-preview .paper-positions-grid {
  gap: 26px;
}

.app-shell.wealth-paper-preview .paper-position-card,
.app-shell.wealth-paper-preview .paper-trade-row {
  border-color: #dfe7e1;
  background: #f3f8f4;
}

.app-shell.wealth-paper-preview .paper-position-card {
  border-left-color: transparent;
}

.app-shell.wealth-paper-preview .paper-trade-row {
  align-items: center;
  padding: 14px 18px;
}

.app-shell.wealth-paper-preview .paper-trade-row > div {
  display: grid;
  grid-template-columns: minmax(120px, 0.9fr) minmax(110px, 0.8fr) minmax(100px, auto);
  gap: 12px;
  align-items: center;
}

.app-shell.wealth-paper-preview .paper-trade-row p,
.app-shell.wealth-paper-preview .paper-trade-row .paper-tag-list {
  grid-column: 1 / -1;
}

.app-shell.wealth-paper-preview .paper-layout.paper-utility-grid {
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
  gap: 26px;
}

.app-shell.wealth-paper-preview .paper-realized-results-panel {
  margin-top: 0;
}

.app-shell.wealth-studio-preview .workspace {
  padding: 22px 16px 34px;
}

.app-shell.wealth-studio-preview .topbar {
  gap: 14px;
  margin-bottom: 14px;
}

.app-shell.wealth-studio-preview .topbar h1 {
  font-size: 39px;
  line-height: 1.02;
}

.app-shell.wealth-studio-preview .page-subtitle {
  max-width: 660px;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.3;
}

.app-shell.wealth-studio-preview .ghost-button {
  min-height: 34px;
  padding: 7px 12px;
  box-shadow: 0 6px 14px rgba(20, 42, 29, 0.035);
}

.app-shell.wealth-studio-preview .ghost-button:hover,
.app-shell.wealth-studio-preview .ghost-button:focus-visible {
  border-color: var(--forest-dark);
  color: #fff;
  background: var(--forest);
  box-shadow: 0 0 0 3px var(--forest-soft);
}

.app-shell.wealth-studio-preview .ghost-button:disabled {
  border-color: var(--line);
  color: var(--muted);
  background: #f8faf8;
  box-shadow: none;
}

.app-shell.wealth-studio-preview .topbar-center,
.app-shell.wealth-studio-preview .topbar-actions {
  padding-top: 4px;
}

.app-shell.wealth-studio-preview .metrics-grid,
.app-shell.wealth-paper-preview .paper-dashboard-stat-grid {
  gap: 14px;
  margin-bottom: 16px;
}

.app-shell.wealth-studio-preview .metric-panel,
.app-shell.wealth-paper-preview .paper-dashboard-stat-grid .mini-stat {
  min-height: 100px;
  padding: 17px;
  box-shadow: 0 10px 24px rgba(20, 42, 29, 0.052);
}

.app-shell.wealth-dashboard-preview #dashboard-view .metrics-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.app-shell.wealth-dashboard-preview #dashboard-view .metric-panel {
  min-height: 68px;
  padding: 10px 12px;
}

.app-shell.wealth-dashboard-preview #dashboard-view .metric-panel > span,
.app-shell.wealth-dashboard-preview #dashboard-view .metric-panel-title-row span {
  font-size: 11px;
  line-height: 1.15;
}

.app-shell.wealth-studio-preview .metric-panel span,
.app-shell.wealth-paper-preview .paper-dashboard-stat-grid .mini-stat span {
  font-size: 12px;
}

.app-shell.wealth-studio-preview .metric-panel strong,
.app-shell.wealth-paper-preview .paper-dashboard-stat-grid .mini-stat strong {
  margin: 9px 0 3px;
  font-size: 26px;
  line-height: 1.08;
}

.app-shell.wealth-dashboard-preview #dashboard-view .metric-panel strong {
  margin: 5px 0 2px;
  font-size: 20px;
}

.app-shell.wealth-dashboard-preview #dashboard-view .metric-panel strong.metric-compact-value {
  font-size: 15px;
  line-height: 1.2;
}

.app-shell.wealth-dashboard-preview #dashboard-view .metric-panel strong.metric-performer-list {
  display: grid;
  gap: 2px;
  margin: 5px 0 0;
  font-size: 11px;
  line-height: 1.15;
}

.app-shell.wealth-dashboard-preview #dashboard-view .metric-panel .metric-performer-row {
  display: grid;
  grid-template-columns: minmax(34px, 0.8fr) minmax(48px, 0.9fr) minmax(58px, 1fr);
  gap: 5px;
  align-items: baseline;
  min-width: 0;
  white-space: nowrap;
}

.app-shell.wealth-dashboard-preview #dashboard-view .metric-panel .metric-performer-symbol,
.app-shell.wealth-dashboard-preview #dashboard-view .metric-panel .metric-performer-percent,
.app-shell.wealth-dashboard-preview #dashboard-view .metric-panel .metric-performer-dollar {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-shell.wealth-dashboard-preview #dashboard-view .metric-panel .metric-performer-symbol,
.app-shell.wealth-dashboard-preview #dashboard-view .metric-panel .metric-performer-dollar {
  font-weight: 900;
}

.app-shell.wealth-dashboard-preview #dashboard-view .metric-panel .metric-performer-percent {
  color: var(--muted);
  font-weight: 800;
}

.app-shell.wealth-dashboard-preview #dashboard-view .metric-panel .metric-performer-dollar.positive-text {
  color: var(--green);
}

.app-shell.wealth-dashboard-preview #dashboard-view .metric-panel .metric-performer-dollar.risk-text {
  color: var(--red);
}

.app-shell.wealth-studio-preview .metric-panel small,
.app-shell.wealth-paper-preview .paper-dashboard-stat-grid .mini-stat small {
  font-size: 12px;
}

.app-shell.wealth-dashboard-preview #dashboard-view .metric-panel small {
  font-size: 11px;
  line-height: 1.2;
}

.app-shell.wealth-dashboard-preview #dashboard-view .metric-panel small.metric-multiline-detail {
  display: block;
  line-height: 1.25;
  white-space: normal;
}

.app-shell.wealth-dashboard-preview #dashboard-view .metric-panel small.metric-empty-detail {
  display: none;
}

.app-shell.wealth-studio-preview .panel,
.app-shell.wealth-paper-preview .paper-benchmark-dashboard,
.app-shell.wealth-paper-preview .paper-timeline-panel,
.app-shell.wealth-paper-preview .paper-positions-grid > .panel,
.app-shell.wealth-paper-preview .paper-layout > .panel,
.app-shell.wealth-paper-preview .paper-realized-results-panel {
  padding: 16px;
  box-shadow: 0 10px 24px rgba(20, 42, 29, 0.052);
}

.app-shell.wealth-studio-preview .panel-header {
  margin-bottom: 12px;
}

.app-shell.wealth-studio-preview .panel-header h2,
.app-shell.wealth-studio-preview .paper-dashboard-section-header h3 {
  font-size: 20px;
}

.app-shell.wealth-dashboard-preview #dashboard-view .dashboard-grid,
.paper-studio-split,
.app-shell.wealth-paper-preview .paper-positions-grid,
.app-shell.wealth-paper-preview .paper-layout.paper-utility-grid {
  gap: 16px;
}

.app-shell.wealth-dashboard-preview #dashboard-view .trend-panel,
.app-shell.wealth-dashboard-preview #dashboard-view .market-panel,
.app-shell.wealth-dashboard-preview #dashboard-view .recommendation-panel {
  min-height: 260px;
}

.app-shell.wealth-dashboard-preview .trend-chart {
  min-height: 205px;
}

.app-shell.wealth-dashboard-preview .trend-intelligence svg {
  min-height: 168px;
}

.app-shell.wealth-dashboard-preview .trend-insight-strip {
  gap: 8px;
}

.app-shell.wealth-studio-preview .trend-insight-card,
.app-shell.wealth-studio-preview .mini-stat,
.app-shell.wealth-studio-preview .trade-meta {
  padding: 9px;
}

.app-shell.wealth-studio-preview .ibkr-live-account-panel {
  gap: 9px;
}

.app-shell.wealth-studio-preview .ibkr-live-summary,
.app-shell.wealth-studio-preview .ibkr-live-footer {
  gap: 8px;
}

.app-shell.wealth-studio-preview .ibkr-live-stat,
.app-shell.wealth-studio-preview .ibkr-live-status {
  padding: 9px;
}

.app-shell.wealth-studio-preview .ibkr-live-stat strong {
  margin: 4px 0 2px;
  font-size: 18px;
}

.app-shell.wealth-studio-preview .ibkr-live-stat span,
.app-shell.wealth-studio-preview .ibkr-live-stat small,
.app-shell.wealth-studio-preview .ibkr-live-status span,
.app-shell.wealth-studio-preview .market-driver-tile small {
  font-size: 10px;
}

.app-shell.wealth-dashboard-preview .advisor-note {
  padding: 10px 12px;
}

.app-shell.wealth-dashboard-preview .advisor-note strong {
  font-size: 13px;
}

.app-shell.wealth-dashboard-preview .advisor-note p {
  font-size: 12px;
}

.app-shell.wealth-dashboard-preview .market-cards {
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px;
}

.app-shell.wealth-dashboard-preview .market-cards {
  grid-template-columns: repeat(auto-fill, 138px);
  justify-content: start;
  align-items: start;
}

.app-shell.wealth-dashboard-preview .market-index-card,
.app-shell.wealth-dashboard-preview .quote-card {
  min-height: 78px;
  padding: 9px;
}

.app-shell.wealth-dashboard-preview .quote-card {
  width: 138px;
  min-height: 86px;
  overflow: hidden;
}

.app-shell.wealth-dashboard-preview .quote-card header,
.app-shell.wealth-dashboard-preview .quote-price-row {
  gap: 6px;
}

.app-shell.wealth-dashboard-preview .quote-card header {
  min-width: 0;
}

.app-shell.wealth-dashboard-preview .quote-card header > div:first-child {
  min-width: 0;
  max-width: 92px;
}

.app-shell.wealth-dashboard-preview .quote-card-actions small {
  display: none;
}

.app-shell.wealth-dashboard-preview .quote-detail-button {
  width: 20px;
  height: 20px;
  font-size: 11px;
}

.app-shell.wealth-dashboard-preview .market-index-card strong,
.app-shell.wealth-dashboard-preview .quote-price-row em {
  font-size: 13px;
}

.app-shell.wealth-dashboard-preview .quote-card header strong,
.app-shell.wealth-dashboard-preview .market-index-card span {
  font-size: 12px;
}

.app-shell.wealth-dashboard-preview .quote-card header span,
.app-shell.wealth-dashboard-preview .quote-card-actions small,
.app-shell.wealth-dashboard-preview .market-index-card em,
.app-shell.wealth-dashboard-preview .quote-price-row b {
  font-size: 10px;
}

.app-shell.wealth-dashboard-preview .quote-card header span {
  max-width: 100%;
  line-height: 1.05;
}

.app-shell.wealth-dashboard-preview .quote-price-row {
  align-items: baseline;
  margin-top: 4px;
}

.app-shell.wealth-paper-preview #paper-trading-content {
  gap: 16px;
}

.app-shell.wealth-paper-preview .paper-dashboard-panel > .panel-header {
  margin-bottom: 14px;
}

.app-shell.wealth-paper-preview .paper-benchmark-dashboard,
.app-shell.wealth-paper-preview .paper-timeline-panel {
  min-height: 220px;
}

.app-shell.wealth-paper-preview .paper-benchmark-list {
  gap: 8px;
}

.app-shell.wealth-paper-preview .paper-benchmark-card {
  gap: 8px;
  padding: 9px;
}

.app-shell.wealth-paper-preview .paper-benchmark-return {
  font-size: 16px;
}

.app-shell.wealth-paper-preview .paper-benchmark-summary {
  padding: 8px 10px;
}

.app-shell.wealth-paper-preview .paper-benchmark-verdict {
  padding: 7px 8px;
}

.app-shell.wealth-paper-preview .paper-timeline-chart {
  height: 145px;
}

.app-shell.wealth-paper-preview .paper-position-card,
.app-shell.wealth-paper-preview .paper-trade-row {
  padding: 10px 12px;
}

.app-shell.wealth-paper-preview .paper-position-card h3 {
  font-size: 16px;
}

.app-shell.wealth-paper-preview .paper-position-card header span,
.app-shell.wealth-paper-preview .paper-position-footer,
.app-shell.wealth-paper-preview .paper-thesis,
.app-shell.wealth-paper-preview .paper-trade-row span,
.app-shell.wealth-paper-preview .paper-trade-row p {
  font-size: 11px;
}

.app-shell.wealth-studio-preview #health-content,
.app-shell.wealth-studio-preview #rebalance-content,
.app-shell.wealth-studio-preview #scenario-content,
.app-shell.wealth-studio-preview #council-history-content,
.app-shell.wealth-studio-preview #recommendations-screen-list,
.app-shell.wealth-studio-preview #trades-content,
.app-shell.wealth-studio-preview #data-management-content,
.app-shell.wealth-studio-preview #settings-content {
  display: grid;
  gap: 16px;
}

.app-shell.wealth-studio-preview .view-card,
.app-shell.wealth-studio-preview .scenario-card,
.app-shell.wealth-studio-preview .scenario-lab-header,
.app-shell.wealth-studio-preview .settings-status-row,
.app-shell.wealth-studio-preview .settings-assignment-row,
.app-shell.wealth-studio-preview .capability-row,
.app-shell.wealth-studio-preview .data-holding-row,
.app-shell.wealth-studio-preview .data-target-row,
.app-shell.wealth-studio-preview .data-transaction-row,
.app-shell.wealth-studio-preview .trade-card,
.app-shell.wealth-studio-preview .approval-order-card,
.app-shell.wealth-studio-preview .approval-audit-event,
.app-shell.wealth-studio-preview .council-session-card,
.app-shell.wealth-studio-preview .council-action-note-card,
.app-shell.wealth-studio-preview .recommendation-card,
.app-shell.wealth-studio-preview .rebalance-allocation-row,
.app-shell.wealth-studio-preview .rebalance-drift-row,
.app-shell.wealth-studio-preview .rebalance-move-row,
.app-shell.wealth-studio-preview .health-gap-card,
.app-shell.wealth-studio-preview .scenario-control-header {
  border-color: #dfe7e1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 24px rgba(20, 42, 29, 0.045);
}

.app-shell.wealth-studio-preview .view-card,
.app-shell.wealth-studio-preview .scenario-card,
.app-shell.wealth-studio-preview .scenario-lab-header {
  padding: 16px;
}

.app-shell.wealth-studio-preview .health-hero,
.app-shell.wealth-studio-preview .rebalance-hero,
.app-shell.wealth-studio-preview .trades-overview,
.app-shell.wealth-studio-preview .data-management-hero,
.app-shell.wealth-studio-preview .settings-hero,
.app-shell.wealth-studio-preview .council-review-hero {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 250, 246, 0.92)),
    #fff;
}

.app-shell.wealth-studio-preview .health-layout,
.app-shell.wealth-studio-preview .rebalance-layout,
.app-shell.wealth-studio-preview .scenario-lab-layout,
.app-shell.wealth-studio-preview .trades-layout,
.app-shell.wealth-studio-preview .data-management-layout,
.app-shell.wealth-studio-preview .settings-layout,
.app-shell.wealth-studio-preview .approval-workspace,
.app-shell.wealth-studio-preview .compact-stat-grid,
.app-shell.wealth-studio-preview .stat-grid {
  gap: 14px;
}

.app-shell.wealth-studio-preview .compact-stat-grid,
.app-shell.wealth-studio-preview .stat-grid {
  margin-bottom: 12px;
}

.app-shell.wealth-studio-preview .mini-stat {
  border-color: #dfe7e1;
  background: rgba(245, 250, 246, 0.9);
  box-shadow: inset 0 0 0 1px rgba(31, 93, 58, 0.025);
}

.app-shell.wealth-studio-preview .mini-stat strong {
  font-size: 18px;
}

.app-shell.wealth-studio-preview .view-copy,
.app-shell.wealth-studio-preview .muted,
.app-shell.wealth-studio-preview .panel-subtitle {
  color: #6f7b73;
}

.app-shell.wealth-studio-preview .empty-state,
.app-shell.wealth-studio-preview .inline-error {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.app-shell.wealth-studio-preview input,
.app-shell.wealth-studio-preview select,
.app-shell.wealth-studio-preview textarea {
  border-color: #dbe8df;
  background-color: rgba(255, 255, 255, 0.88);
}

.app-shell.wealth-studio-preview input:focus,
.app-shell.wealth-studio-preview select:focus,
.app-shell.wealth-studio-preview textarea:focus {
  border-color: #8fb49d;
  box-shadow: 0 0 0 3px rgba(31, 93, 58, 0.09);
}

.app-shell.wealth-studio-preview .settings-tab-list {
  margin-top: 4px;
  border-bottom-color: #dfe7e1;
}

.app-shell.wealth-studio-preview .settings-tab-button {
  border-color: #dfe7e1;
  background: rgba(255, 255, 255, 0.82);
}

.app-shell.wealth-studio-preview .settings-tab-button.is-active {
  border-color: #bfd8c7;
  background: #eef7f1;
}

.app-shell.wealth-studio-preview .trade-ai-actions,
.app-shell.wealth-studio-preview .panel-action-row,
.app-shell.wealth-studio-preview .data-action-row,
.app-shell.wealth-studio-preview .data-row-actions {
  gap: 8px;
}

.app-shell.wealth-studio-preview .approval-workspace {
  align-items: start;
}

.app-shell.wealth-studio-preview .council-session-card.is-pinned,
.app-shell.wealth-studio-preview .recommendation-card.is-high,
.app-shell.wealth-studio-preview .trade-card.is-high,
.app-shell.wealth-studio-preview .approval-order-card.is-selected {
  border-color: #bfd8c7;
  box-shadow:
    inset 4px 0 0 rgba(31, 93, 58, 0.72),
    0 10px 24px rgba(20, 42, 29, 0.05);
}

.app-shell.wealth-studio-preview .signal-intelligence-hero {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 250, 247, 0.9)),
    #fff;
}

.app-shell.wealth-studio-preview .signal-intelligence-header {
  align-items: flex-start;
}

.signal-intelligence-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

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

.signal-capability-card {
  display: grid;
  gap: 7px;
  min-width: 0;
  border: 1px solid #dfe7e1;
  border-radius: 8px;
  padding: 12px;
  background: rgba(245, 250, 246, 0.76);
}

.signal-capability-card span {
  color: var(--forest);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.signal-capability-card strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.2;
}

.signal-capability-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.signal-card-section {
  display: grid;
  gap: 12px;
}

.signal-section-header {
  margin-bottom: 0;
}

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

.signal-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid #dfe7e1;
  border-left: 4px solid var(--forest);
  border-radius: 8px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(20, 42, 29, 0.05);
  overflow-wrap: anywhere;
}

.signal-card.is-positive {
  border-left-color: var(--green);
}

.signal-card.is-risk {
  border-color: #efd2d5;
  border-left-color: var(--red);
  background: rgba(255, 250, 250, 0.92);
}

.signal-card.is-anomaly {
  border-color: #c9daee;
  border-left-color: #1f4f86;
  background: #f6f9fd;
}

.signal-card-header,
.signal-card-body,
.signal-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
  justify-content: space-between;
}

.signal-card-body > div {
  min-width: 0;
}

.signal-created-date {
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
}

.signal-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

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

.signal-card-body > span,
.signal-card-thesis {
  border: 1px solid #dfe7e1;
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--forest);
  background: rgba(245, 250, 246, 0.84);
  font-size: 12px;
  font-weight: 900;
}

.signal-card-thesis {
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
  font-weight: 750;
}

.signal-card.is-risk .signal-card-body > span {
  border-color: #efd2d5;
  color: var(--red);
  background: #fff4f5;
}

.signal-card.is-anomaly .eyebrow,
.signal-card.is-anomaly h3,
.signal-card.is-anomaly .signal-card-body > span {
  color: #1f4f86;
}

.signal-card.is-anomaly .signal-card-body > span {
  border-color: #c9daee;
  background: #fff;
}

.signal-card-actions {
  justify-content: flex-end;
}

.data-management-hero {
  border-color: #dbe8df;
}

.data-management-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.data-message {
  margin: 12px 0 0;
  font-weight: 800;
}

.data-form {
  display: grid;
  gap: 12px;
}

.data-form label,
.data-holding-grid label,
.data-holding-row label,
.data-target-row label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.data-form input,
.data-form textarea,
.data-holding-grid input,
.data-holding-row input,
.data-target-row input {
  padding: 10px;
}

.symbol-input {
  text-transform: uppercase;
}

.data-action-row,
.data-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.data-holding-grid,
.data-holding-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.9fr) minmax(130px, 1fr) minmax(120px, 0.9fr) minmax(120px, 0.9fr) auto;
  gap: 10px;
  align-items: end;
}

.data-holding-add-form {
  border: 1px solid #dbe8df;
  border-radius: 8px;
  padding: 12px;
  background: var(--forest-soft);
}

.data-holdings-list,
.data-target-rows,
.data-transaction-list {
  display: grid;
  gap: 10px;
}

.data-holdings-list {
  margin-top: 12px;
}

.data-holding-row,
.data-target-row,
.data-transaction-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.data-target-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(110px, 0.8fr) minmax(110px, 0.8fr) auto;
  gap: 10px;
  align-items: end;
}

.data-target-actual {
  display: grid;
  gap: 4px;
  border: 1px solid #dbe8df;
  border-radius: 8px;
  padding: 9px;
  background: var(--forest-soft);
}

.data-target-actual span,
.data-target-actual strong {
  display: block;
}

.data-target-actual span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.data-target-actual strong {
  color: var(--forest);
  font-size: 12px;
}

.data-transaction-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

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

.data-transaction-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.settings-hero {
  border-color: #dbe8df;
}

.settings-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.settings-tab-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--muted);
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

.settings-tab-button:hover {
  border-color: #cbdcd0;
  color: var(--forest);
}

.settings-tab-button.is-active {
  border-color: var(--forest);
  color: var(--forest);
  background: var(--forest-soft);
  box-shadow: inset 0 0 0 1px rgba(31, 93, 58, 0.06);
}

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

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

.settings-wide-panel {
  grid-column: 1 / -1;
}

.capability-map-layout,
.capability-map-panel {
  grid-template-columns: 1fr;
}

.compact-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.family-protection-stat-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.mini-stat-button {
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.mini-stat-button:hover,
.mini-stat-button:focus-visible,
.mini-stat-button.is-active {
  border-color: var(--forest);
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 93, 58, 0.12);
}

.family-document-dashboard-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.family-document-dashboard-grid .mini-stat {
  padding: 9px 10px;
}

.family-document-dashboard-grid .mini-stat span,
.family-document-dashboard-grid .mini-stat small {
  font-size: 10px;
  line-height: 1.25;
}

.family-document-dashboard-grid .mini-stat strong {
  margin: 3px 0 2px;
  font-size: 18px;
}

.capability-table {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.capability-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.capability-row > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.capability-row span,
.capability-row small,
.capability-row em {
  color: var(--muted);
  font-size: 12px;
}

.capability-row em {
  flex: 0 0 auto;
  color: var(--forest);
  font-style: normal;
  font-weight: 800;
}

.capability-row.is-risk {
  border-color: #f2d6d3;
}

.capability-row.is-risk em {
  color: var(--red);
}

.settings-status-list,
.settings-assignment-list,
.settings-action-row,
.settings-target-list,
.settings-watchlist-form,
.settings-trade-form,
.settings-verification {
  display: grid;
  gap: 12px;
}

.settings-action-row {
  justify-items: start;
}

.settings-status-row,
.settings-assignment-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.settings-status-row > div,
.settings-assignment-row > div {
  min-width: 0;
}

.settings-status-row:last-child,
.settings-assignment-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.settings-status-row span,
.settings-status-row em,
.settings-assignment-row span,
.settings-note {
  color: var(--muted);
  font-size: 12px;
}

.settings-status-row em {
  max-width: 260px;
  text-align: right;
  font-style: normal;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.settings-status-row.is-risk strong,
.settings-status-row.is-risk em {
  color: var(--red);
}

.settings-assignment-list {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.settings-assignment-row span {
  font-weight: 800;
}

.settings-target-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}

.settings-target-row label {
  display: grid;
  gap: 6px;
}

.settings-target-row input,
.settings-trade-form input,
.settings-trade-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  color: var(--ink);
  background: #fff;
}

.settings-target-row input:disabled {
  color: var(--muted);
  background: #f7f9f7;
}

.settings-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.settings-watchlist-form textarea {
  min-height: 184px;
  resize: vertical;
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  line-height: 1.5;
}

.settings-simulator-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.settings-simulator-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.settings-simulator-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.settings-watchlist-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.settings-chip-list span,
.settings-watchlist-preview span {
  border: 1px solid #dbe8df;
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--forest);
  background: var(--forest-soft);
  font-size: 12px;
  font-weight: 800;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.settings-note {
  margin: 14px 0 0;
  line-height: 1.45;
}

.anomaly-radar-settings-form,
.anomaly-radar-source-grid {
  display: grid;
  gap: 10px;
}

.anomaly-radar-source-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px solid #dbe8df;
  border-radius: 8px;
  padding: 12px;
  background: #fbfdfb;
  cursor: pointer;
}

.anomaly-radar-source-row.is-locked {
  cursor: default;
  background: #f8faf8;
}

.anomaly-radar-source-row > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.anomaly-radar-source-row strong,
.anomaly-radar-source-row span {
  overflow-wrap: anywhere;
}

.anomaly-radar-source-row span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.anomaly-radar-source-row input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  accent-color: var(--forest);
}

.backup-restore-layout {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.backup-restore-panel {
  border-color: #dbe8df;
}

.backup-restore-danger {
  border-color: #efd2d5;
}

.backup-restore-copy,
.backup-restore-form {
  display: grid;
  gap: 12px;
}

.backup-restore-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.backup-restore-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.backup-restore-list span {
  border: 1px solid #dbe8df;
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--forest);
  background: var(--forest-soft);
  font-size: 12px;
  font-weight: 800;
}

.backup-restore-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.backup-file-row {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.backup-file-row input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  color: var(--ink);
}

.backup-restore-warning {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  border: 1px solid #efd2d5;
  border-radius: 8px;
  padding: 12px;
  background: #fff7f7;
}

.backup-restore-warning input {
  width: auto;
  margin-top: 3px;
}

.backup-restore-warning strong,
.backup-restore-warning small {
  display: block;
}

.backup-restore-warning strong {
  color: var(--red);
}

.backup-restore-warning small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.broker-safety-layout {
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
}

.broker-safety-panel {
  border-color: #dbe8df;
}

.broker-safety-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.broker-safety-status {
  border: 1px solid #dbe8df;
  border-radius: 8px;
  padding: 12px;
  background: var(--forest-soft);
}

.broker-safety-status.is-risk {
  border-color: #efd2d5;
  background: #fff7f7;
}

.broker-safety-status span,
.broker-safety-status small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.broker-safety-status strong {
  display: block;
  margin: 5px 0;
  color: var(--forest);
}

.broker-safety-status.is-risk strong {
  color: var(--red);
}

.broker-safety-form {
  display: grid;
  gap: 14px;
}

.broker-safety-field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.broker-safety-toggle-list {
  display: grid;
  gap: 10px;
}

.broker-safety-toggle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.broker-safety-toggle.is-risk {
  border-color: #efd2d5;
  background: #fff7f7;
}

.broker-safety-toggle input {
  width: auto;
  margin-top: 3px;
}

.broker-safety-toggle strong,
.broker-safety-toggle small {
  display: block;
}

.broker-safety-toggle small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.broker-safety-audit-panel {
  align-self: start;
}

.broker-safety-event-list {
  display: grid;
  gap: 10px;
}

.broker-safety-event {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--forest);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.broker-safety-event.is-risk {
  border-left-color: var(--red);
}

.broker-safety-event > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.broker-safety-event p,
.broker-safety-event small,
.broker-safety-event span {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

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

.settings-trade-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.settings-trade-actions {
  display: flex;
  gap: 10px;
  align-items: end;
  grid-column: 1 / -1;
}

.settings-verification {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.settings-verification-step {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.settings-verification-step > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  color: var(--forest);
  background: var(--forest-soft);
  font-size: 12px;
  font-weight: 900;
}

.settings-verification-step.is-risk > span {
  color: var(--red);
  background: #fff7f7;
}

.settings-verification-step strong,
.settings-verification-step p {
  margin: 0;
}

.settings-verification-step p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.settings-verification-check {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.council-drawer,
.avi-drawer,
.usage-drawer,
.stock-detail-drawer,
.research-drawer,
.alerts-drawer,
.trade-ticket-drawer,
.paper-trade-drawer {
  position: fixed;
  inset: 0;
  display: block;
  visibility: hidden;
  z-index: 20;
  pointer-events: none;
  transition: visibility 0s linear 520ms;
}

.council-drawer.is-open,
.avi-drawer.is-open,
.usage-drawer.is-open,
.stock-detail-drawer.is-open,
.research-drawer.is-open,
.alerts-drawer.is-open,
.trade-ticket-drawer.is-open,
.paper-trade-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(23, 32, 26, 0.18);
  opacity: 0;
  transition: opacity 520ms ease;
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  width: min(560px, 100%);
  height: 100%;
  grid-template-rows: auto auto 1fr;
  gap: 18px;
  overflow: auto;
  border-left: 1px solid var(--line);
  padding: 26px;
  background: #fff;
  box-shadow: var(--shadow);
  transform: translateX(100%);
  transition: transform 520ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.council-drawer.is-open .drawer-overlay,
.avi-drawer.is-open .drawer-overlay,
.usage-drawer.is-open .drawer-overlay,
.stock-detail-drawer.is-open .drawer-overlay,
.research-drawer.is-open .drawer-overlay,
.alerts-drawer.is-open .drawer-overlay,
.trade-ticket-drawer.is-open .drawer-overlay,
.paper-trade-drawer.is-open .drawer-overlay {
  opacity: 1;
}

.council-drawer.is-open .drawer-panel,
.avi-drawer.is-open .drawer-panel,
.usage-drawer.is-open .drawer-panel,
.stock-detail-drawer.is-open .drawer-panel,
.research-drawer.is-open .drawer-panel,
.alerts-drawer.is-open .drawer-panel,
.trade-ticket-drawer.is-open .drawer-panel,
.paper-trade-drawer.is-open .drawer-panel {
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .account-drawer-overlay,
  .account-drawer-panel,
  .council-drawer,
  .avi-drawer,
  .usage-drawer,
  .stock-detail-drawer,
  .research-drawer,
  .alerts-drawer,
  .trade-ticket-drawer,
  .paper-trade-drawer,
  .drawer-overlay,
  .drawer-panel {
    transition-duration: 1ms;
  }

  .family-management-drawer {
    animation-duration: 1ms;
  }

  .family-slide-drawer-backdrop,
  .family-slide-drawer-panel {
    transition-duration: 1ms;
  }
}

.council-drawer .drawer-panel,
.avi-panel,
.usage-panel,
.stock-detail-panel,
.research-panel,
.trade-ticket-panel {
  border-left-color: #d8c4a7;
  background:
    linear-gradient(180deg, rgba(255, 251, 244, 0.98) 0%, rgba(247, 240, 228, 0.98) 100%),
    #fbf6ec;
  box-shadow: -22px 0 48px rgba(62, 45, 24, 0.16);
}

.usage-panel {
  width: min(680px, 100%);
}

.stock-detail-panel {
  width: min(520px, 100%);
}

.research-panel {
  width: min(720px, 100%);
}

.trade-ticket-panel {
  width: min(540px, 100%);
}

.alerts-panel {
  width: min(640px, 100%);
  border-left-color: #e6b8bd;
  background:
    linear-gradient(180deg, rgba(255, 248, 248, 0.98) 0%, rgba(252, 238, 240, 0.98) 100%),
    #fff5f6;
  box-shadow: -22px 0 48px rgba(126, 36, 48, 0.16);
}

.council-drawer .drawer-header,
.usage-panel .drawer-header,
.stock-detail-panel .drawer-header,
.research-panel .drawer-header,
.trade-ticket-panel .drawer-header {
  border: 1px solid #eadbc4;
  border-radius: 10px;
  padding: 14px;
  background: rgba(255, 253, 248, 0.92);
}

.alerts-panel .drawer-header {
  border: 1px solid #f0c8cc;
  border-radius: 10px;
  padding: 14px;
  background: rgba(255, 252, 252, 0.92);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.council-context-label {
  display: inline-block;
  margin-top: 10px;
  border: 1px solid #dbe8df;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--forest);
  background: var(--forest-soft);
  font-size: 12px;
  font-weight: 800;
}

.alert-context-label {
  border-color: #f0c8cc;
  color: #bd2431;
  background: #fff4f5;
}

.icon-button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  font-size: 22px;
  line-height: 1;
}

.voice-textarea-wrap {
  position: relative;
  margin-top: 5px;
}

.voice-textarea-wrap textarea {
  margin-top: 0;
  padding-right: 54px;
}

.voice-input-button {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--forest);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 18px rgba(20, 42, 29, 0.08);
}

.voice-input-button:hover,
.voice-input-button:focus-visible,
.voice-input-button.is-listening {
  border-color: var(--forest);
  color: #fff;
  background: var(--forest);
  box-shadow: 0 0 0 3px var(--forest-soft);
}

.voice-input-button:disabled {
  cursor: not-allowed;
  color: var(--muted);
  background: #f8faf8;
  opacity: 0.68;
}

.voice-input-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 22px;
}

.voice-input-icon::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 5px;
  width: 8px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 999px;
}

.voice-input-icon::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 2px;
  width: 14px;
  height: 9px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 999px 999px;
}

.voice-input-status {
  display: block;
  min-height: 17px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.council-voice-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: rgba(239, 247, 240, 0.7);
}

.voice-tool-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 13px;
  color: var(--forest);
  background: #fff;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.voice-tool-button:hover,
.voice-tool-button:focus-visible,
.voice-tool-button.is-active {
  border-color: var(--forest);
  color: #fff;
  background: var(--forest);
  box-shadow: 0 0 0 3px var(--forest-soft);
}

.voice-tool-button:disabled {
  cursor: not-allowed;
  color: var(--muted);
  background: #f7faf7;
  opacity: 0.68;
  box-shadow: none;
}

.voice-tool-button.muted-tool {
  color: var(--muted);
}

.voice-playback-status {
  min-height: 17px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 740;
}

.council-result {
  display: grid;
  align-content: start;
  gap: 12px;
}

.council-drawer .council-form,
.council-drawer .expert-card,
.council-drawer .summary-card {
  border: 1px solid #ddcdb4;
  border-radius: 10px;
  padding: 14px;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: 0 10px 24px rgba(84, 62, 31, 0.06);
}

.usage-dashboard-content,
.usage-section,
.usage-row-list,
.usage-source-list,
.usage-event-list {
  display: grid;
  gap: 12px;
}

.usage-section {
  border: 1px solid #ddcdb4;
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: 0 10px 24px rgba(84, 62, 31, 0.06);
}

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

.usage-metric {
  border: 1px solid #decdb2;
  border-radius: 8px;
  padding: 13px;
  background: #fff9ef;
}

.usage-metric span,
.usage-metric small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.usage-metric strong {
  display: block;
  margin: 6px 0 3px;
  color: var(--forest);
  font-size: 22px;
}

.usage-row,
.usage-source,
.usage-event {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.usage-row:last-child,
.usage-source:last-child,
.usage-event:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.usage-row span,
.usage-event span,
.usage-source p {
  display: block;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.usage-row > strong,
.usage-event > div:last-child {
  text-align: right;
}

.alerts-drawer-content,
.alerts-list,
.alert-rule-list {
  display: grid;
  gap: 12px;
}

.alerts-drawer-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid #f0c8cc;
  border-radius: 10px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.74);
}

.alerts-drawer-toolbar strong,
.alerts-drawer-toolbar span {
  display: block;
}

.alerts-drawer-toolbar span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.alerts-drawer-actions,
.alert-card-actions,
.alert-rule-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.alert-card {
  display: grid;
  gap: 10px;
  border: 1px solid #f0c8cc;
  border-left: 4px solid #bd2431;
  border-radius: 10px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 24px rgba(126, 36, 48, 0.06);
  overflow-wrap: anywhere;
}

.alert-card.is-advisory {
  border-left-color: var(--forest);
}

.alert-card.is-urgent {
  border-left-color: #9f1625;
  background: rgba(255, 250, 250, 0.92);
}

.alert-card.is-anomaly {
  border-color: #c9daee;
  border-left-color: #1f4f86;
  background: #f6f9fd;
  box-shadow: 0 10px 24px rgba(31, 79, 134, 0.08);
}

.alert-card.is-anomaly .eyebrow,
.alert-card.is-anomaly h3 {
  color: #1f4f86;
}

.alert-card.is-anomaly .alert-severity,
.alert-card.is-anomaly .alert-card-meta span {
  border-color: #c9daee;
  color: #1f4f86;
  background: #fff;
}

.alert-card-main,
.alert-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.alert-card-main > div,
.alert-card-footer > small {
  min-width: 0;
}

.alert-card h3 {
  margin: 2px 0 0;
  font-size: 20px;
  line-height: 1.2;
}

.alert-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.alert-severity {
  flex: 0 0 auto;
  border: 1px solid #f0c8cc;
  border-radius: 999px;
  padding: 6px 9px;
  color: #bd2431;
  background: #fff4f5;
  font-size: 11px;
  font-weight: 900;
}

.alert-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.alert-card-meta span {
  border: 1px solid #f0c8cc;
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--muted);
  background: #fffafa;
  font-size: 12px;
  font-weight: 800;
}

.alert-card-footer small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.anomaly-ai-review {
  display: grid;
  gap: 8px;
  border: 1px solid #d7e4f2;
  border-radius: 8px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.78);
}

.anomaly-ai-review strong,
.anomaly-ai-review span {
  color: #1f4f86;
  font-weight: 900;
}

.anomaly-ai-review p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.alert-settings-layout {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

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

.settings-alert-rule-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.settings-alert-rule-form input,
.settings-alert-rule-form select,
.settings-alert-rule-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.settings-alert-rule-form textarea {
  min-height: 94px;
  resize: vertical;
}

.settings-alert-notes,
.settings-alert-toggle,
.settings-alert-rule-form .settings-trade-actions {
  grid-column: 1 / -1;
}

.settings-alert-toggle {
  display: flex !important;
  grid-template-columns: auto minmax(0, 1fr);
  flex-direction: row;
  align-items: center;
  color: var(--muted);
}

.settings-alert-toggle input {
  width: auto;
}

.alert-rule-stock-group {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.alert-rule-stock-group header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.alert-rule-stock-group header > div {
  min-width: 0;
}

.alert-rule-stock-group h3 {
  margin: 2px 0;
  font-size: 24px;
}

.alert-rule-stock-group header span,
.alert-rule-chip span,
.alert-rule-chip small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.alert-rule-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.alert-rule-chip {
  display: grid;
  gap: 10px;
  align-content: space-between;
  min-height: 154px;
  border: 1px solid #dbe8df;
  border-radius: 8px;
  padding: 11px;
  background: #fbfdfb;
  overflow-wrap: anywhere;
}

.alert-rule-chip.is-risk {
  border-color: #f0c8cc;
  background: #fffafa;
}

.alert-rule-chip.is-disabled {
  opacity: 0.72;
  background: #f8faf8;
}

.alert-rule-chip strong,
.alert-rule-chip span,
.alert-rule-chip small {
  display: block;
}

.alert-rule-chip strong {
  color: var(--ink);
  line-height: 1.2;
}

.alert-rule-chip span,
.alert-rule-chip small {
  margin-top: 5px;
}

.alert-rule-chip footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.alert-rule-chip footer .panel-pill {
  padding: 6px 9px;
}

.alert-rule-chip.is-disabled footer .panel-pill {
  border-color: var(--line);
  color: var(--muted);
  background: #fff;
}

.stock-detail-content {
  display: grid;
  align-content: start;
  gap: 14px;
}

.trade-ticket-drawer-content {
  display: grid;
  align-content: start;
  gap: 14px;
}

.trade-ticket-drawer-intro {
  display: grid;
  gap: 6px;
  border: 1px solid #eadbc4;
  border-radius: 10px;
  padding: 14px;
  background: rgba(255, 253, 248, 0.9);
}

.trade-ticket-drawer-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.trade-ticket-drawer .approval-form,
.paper-trade-drawer .paper-trade-form {
  border: 1px solid #eadbc4;
  border-radius: 10px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.88);
}

.research-drawer-content,
.research-drawer-results,
.research-section,
.research-news-list {
  display: grid;
  gap: 12px;
}

.research-symbol-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, 0.32fr) auto;
  gap: 10px;
  align-items: end;
}

.research-drawer-note {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.research-quote-hero {
  border-color: #d9c8ad;
}

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

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

.research-section-heading span {
  border: 1px solid #eadbc4;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--muted);
  background: #fff9ef;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.research-chart-card {
  gap: 12px;
}

.research-chart-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.research-chart-summary b.quote-positive {
  color: var(--good);
}

.research-chart-summary b.quote-negative {
  color: var(--danger);
}

.research-price-chart {
  width: 100%;
  overflow: hidden;
  border: 1px solid #decdb2;
  border-radius: 8px;
  background: linear-gradient(180deg, #fffdf8 0%, #f7efe1 100%);
}

.research-price-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.research-chart-axis,
.research-chart-tick {
  stroke: #b7a17f;
  stroke-width: 1.25;
}

.research-chart-gridline {
  stroke: #eadbc4;
  stroke-width: 1;
  stroke-dasharray: 5 6;
}

.research-chart-line {
  fill: none;
  stroke: var(--forest);
  stroke-width: 3.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.research-chart-endpoint {
  fill: var(--forest);
  stroke: #fff;
  stroke-width: 2;
}

.research-chart-label,
.research-chart-year {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.research-chart-year {
  text-anchor: middle;
}

.research-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.research-chip-list span,
.research-cache-summary span {
  border: 1px solid #decdb2;
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--forest);
  background: #fff9ef;
  font-size: 12px;
  font-weight: 800;
}

.research-news-item {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.research-news-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.research-news-item a,
.research-news-item strong {
  color: var(--ink);
  font-weight: 850;
}

.research-news-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.research-cache-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.research-council-card {
  border-color: #d6c2a4;
  background: linear-gradient(180deg, #fffdf8 0%, #fbf5ea 100%);
}

.research-council-card .ghost-button {
  justify-self: start;
}

.research-council-loading {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid #d7c5a8;
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.72);
}

.research-council-loading span {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border: 2px solid #d6c2a4;
  border-top-color: var(--forest);
  border-radius: 999px;
  animation: research-council-spin 900ms linear infinite;
}

.research-council-loading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.research-council-summary {
  display: grid;
  gap: 10px;
  border-left: 4px solid var(--forest);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
}

.research-council-summary p {
  margin: 0;
}

.research-council-summary strong {
  color: var(--forest);
}

.research-council-summary ul {
  margin: 6px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.45;
}

@keyframes research-council-spin {
  to {
    transform: rotate(360deg);
  }
}

.stock-detail-hero,
.stock-detail-note,
.stock-detail-metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.stock-detail-panel .stock-detail-hero,
.stock-detail-panel .stock-detail-note,
.stock-detail-panel .stock-detail-metric,
.research-panel .stock-detail-hero,
.research-panel .stock-detail-note,
.research-panel .stock-detail-metric {
  border-color: #ddcdb4;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: 0 10px 24px rgba(84, 62, 31, 0.06);
}

.stock-detail-panel .stock-detail-metric,
.research-panel .stock-detail-metric {
  background: rgba(255, 255, 255, 0.76);
}

.stock-detail-hero {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px;
}

.stock-detail-hero h3 {
  margin: 2px 0 6px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.1;
}

.stock-detail-hero span,
.stock-detail-note p,
.stock-detail-metric span {
  color: var(--muted);
}

.stock-detail-price {
  min-width: 130px;
  text-align: right;
}

.stock-detail-price strong {
  display: block;
  color: var(--forest);
  font-size: 22px;
}

.stock-detail-price b {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.stock-detail-price b.quote-positive {
  color: #167a48;
}

.stock-detail-price b.quote-negative {
  color: #b42318;
}

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

.stock-detail-metric {
  padding: 13px;
}

.stock-detail-metric span {
  display: block;
  font-size: 12px;
}

.stock-detail-metric strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 15px;
}

.stock-detail-note {
  padding: 15px;
  background: #fbfcfb;
}

.stock-detail-note strong {
  color: var(--forest);
}

.stock-detail-note p {
  margin: 7px 0 0;
  font-size: 14px;
  line-height: 1.45;
}

.stock-detail-actions {
  display: flex;
}

.usage-source a {
  border: 1px solid var(--forest);
  border-radius: 8px;
  padding: 7px 10px;
  color: var(--forest);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}

.family-asset-summary-grid {
  margin-bottom: 0;
}

.family-asset-single-column {
  display: grid;
  gap: 16px;
}

.family-overview-grid,
.family-planning-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 16px;
  margin-bottom: 16px;
}

.family-overview-hero {
  display: grid;
  align-content: center;
  min-height: 260px;
  border-color: var(--asset-accent-line);
  background: linear-gradient(180deg, #fff 0%, #f7fbff 100%);
}

.family-overview-hero h2 {
  max-width: 760px;
  margin: 4px 0 10px;
  color: var(--ink);
  font-size: 36px;
  line-height: 1.05;
}

.family-overview-hero .view-copy {
  max-width: 760px;
}

.family-overview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.family-inheritance-dashboard-panel {
  border-color: var(--asset-accent-line);
  background: linear-gradient(180deg, #fff 0%, #f7fbff 100%);
}

.family-inheritance-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.family-inheritance-dashboard-stats > div,
.family-inheritance-dashboard-row {
  min-width: 0;
  border: 1px solid var(--asset-accent-line);
  border-radius: 8px;
  background: #fff;
}

.family-inheritance-dashboard-stats > div {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.family-inheritance-dashboard-stats span,
.family-inheritance-dashboard-stats small,
.family-inheritance-dashboard-row span,
.family-inheritance-dashboard-row small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.family-inheritance-dashboard-stats strong {
  overflow-wrap: anywhere;
  color: var(--forest);
  font-size: 22px;
  line-height: 1.1;
}

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

.family-inheritance-dashboard-columns > div {
  min-width: 0;
}

.family-inheritance-dashboard-columns > div > strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
}

.family-inheritance-dashboard-list {
  display: grid;
  gap: 8px;
}

.family-inheritance-dashboard-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 10px;
  align-items: center;
  padding: 10px;
}

.family-inheritance-dashboard-row span {
  color: var(--ink);
  font-weight: 850;
}

.family-inheritance-dashboard-row strong {
  color: var(--forest);
  font-size: 14px;
  text-align: right;
  white-space: nowrap;
}

.family-inheritance-dashboard-row small {
  grid-column: 1 / -1;
}

.compact-empty-state {
  min-height: 104px;
  padding: 12px;
}

.family-opportunity-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

.family-opportunity-results {
  display: grid;
  gap: 16px;
}

.family-opportunity-form,
.family-opportunity-rule-list,
.family-opportunity-run-list,
.family-opportunity-comps,
.family-opportunity-sources {
  display: grid;
  gap: 10px;
}

.family-opportunity-hint {
  display: grid;
  gap: 3px;
  border: 1px solid var(--asset-accent-line);
  border-radius: 8px;
  padding: 12px;
  color: var(--muted);
  background: var(--asset-accent-soft);
  font-size: 13px;
}

.family-opportunity-hint strong {
  color: var(--forest);
}

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

.family-opportunity-rule-card,
.family-opportunity-run-card {
  min-width: 0;
  border: 1px solid var(--asset-accent-line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.family-opportunity-rule-card {
  display: grid;
  gap: 12px;
}

.family-opportunity-rule-card.is-editing {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(31, 93, 58, 0.12);
}

.family-opportunity-rule-card h3,
.family-opportunity-run-card h3 {
  margin: 3px 0 6px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.12;
}

.family-opportunity-rule-card p,
.family-opportunity-run-card p {
  margin: 0;
  color: var(--muted);
}

.family-opportunity-rule-card span,
.family-opportunity-rule-card p,
.family-opportunity-run-card p,
.family-opportunity-run-card span,
.family-opportunity-run-card small,
.family-opportunity-comps span,
.family-opportunity-comps small,
.family-opportunity-sources small {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.family-opportunity-rule-card > div:first-child > span {
  color: var(--forest);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.family-opportunity-rule-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.family-opportunity-rule-meta span {
  border: 1px solid var(--asset-accent-line);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
  font-weight: 750;
}

.family-opportunity-rule-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.family-opportunity-run-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

.family-opportunity-run-card {
  display: grid;
  gap: 12px;
}

.family-opportunity-run-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.family-opportunity-score {
  display: grid;
  min-width: 104px;
  justify-items: end;
  color: var(--muted);
}

.family-opportunity-score strong {
  color: var(--forest);
  font-size: 34px;
  line-height: 1;
}

.family-opportunity-run-metrics,
.family-opportunity-run-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.family-opportunity-run-detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.family-opportunity-run-metrics > div,
.family-opportunity-analysis-list,
.family-opportunity-comps > div,
.family-opportunity-sources > div {
  min-width: 0;
  border: 1px solid var(--asset-accent-line);
  border-radius: 8px;
  padding: 11px;
  background: #fff;
}

.family-opportunity-run-metrics span,
.family-opportunity-comps small,
.family-opportunity-sources small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.family-opportunity-run-metrics strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
}

.family-opportunity-analysis-list strong,
.family-opportunity-comps > strong,
.family-opportunity-sources > strong {
  color: var(--ink);
}

.family-opportunity-analysis-list ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.family-opportunity-analysis-list li + li {
  margin-top: 5px;
}

.family-opportunity-comps > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
}

.family-opportunity-comps strong {
  color: var(--forest);
  text-align: right;
}

.family-opportunity-comps small {
  grid-column: 1 / -1;
}

.family-opportunity-sources a,
.family-opportunity-sources span {
  color: var(--forest);
  font-weight: 850;
  text-decoration: none;
}

.family-opportunity-sources a:hover,
.family-opportunity-sources a:focus-visible {
  text-decoration: underline;
}

.family-asset-category-panel {
  margin-bottom: 16px;
}

.family-asset-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.family-asset-category-card {
  display: grid;
  gap: 5px;
  min-height: 104px;
  border: 1px solid var(--asset-accent-line);
  border-radius: 8px;
  padding: 13px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease,
    transform 140ms ease;
}

.family-asset-category-card:hover,
.family-asset-category-card:focus-visible {
  border-color: var(--forest);
  outline: none;
  background: var(--forest-soft);
  box-shadow: 0 0 0 3px var(--asset-accent-shadow);
}

.family-asset-category-card span,
.family-asset-category-card small {
  color: var(--muted);
  font-size: 12px;
}

.family-asset-category-card strong {
  color: var(--forest);
  font-size: 20px;
  line-height: 1.1;
}

.family-asset-type-strip-panel {
  margin-bottom: 16px;
}

.panel-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.family-asset-type-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.family-asset-type-button {
  display: grid;
  flex: 1 1 132px;
  min-width: 132px;
  max-width: 190px;
  min-height: 88px;
  gap: 4px;
  border: 1px solid var(--asset-accent-line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.family-asset-type-button:hover,
.family-asset-type-button:focus-visible,
.family-asset-type-button.is-active {
  border-color: var(--forest);
  outline: none;
  background: var(--forest-soft);
  box-shadow: 0 0 0 3px var(--asset-accent-shadow);
}

.family-asset-type-button span,
.family-asset-type-button small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.family-asset-type-button span {
  color: var(--ink);
  font-weight: 850;
}

.family-asset-type-button strong {
  color: var(--forest);
  font-size: 17px;
  line-height: 1.1;
}

.family-asset-inventory-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.family-asset-layout,
.family-asset-inventory-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: 18px;
  align-items: start;
}

.family-asset-management-page {
  display: grid;
  gap: 18px;
}

.family-management-category-panel {
  overflow: hidden;
}

.family-management-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.family-management-category-grid .family-asset-type-button {
  max-width: none;
  min-width: 0;
}

.family-management-toolbar {
  display: grid;
  grid-template-columns: minmax(170px, 220px) minmax(170px, 220px);
  gap: 10px;
  align-items: end;
}

.family-management-toolbar label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.family-management-toolbar input,
.family-management-toolbar select {
  width: 100%;
}

.family-management-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.family-management-urgent {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #f6cccc;
  border-left: 4px solid #ef4444;
  border-radius: 12px;
  padding: 12px 14px;
  color: #7a1f1f;
  background: #fdecec;
}

.family-management-urgent p {
  flex: 1;
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
}

.family-management-urgent p strong {
  color: #5e1414;
}

.family-management-urgent-icon {
  display: grid;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #ef4444;
  font-size: 15px;
  font-weight: 800;
}

.family-management-urgent button {
  flex: 0 0 auto;
  min-height: 34px;
  border: 0;
  border-radius: 9px;
  padding: 7px 15px;
  color: #fff;
  background: #ef4444;
  font-size: 13px;
  font-weight: 700;
}

.family-management-urgent .family-management-urgent-close {
  min-width: 28px;
  padding: 4px;
  color: #9a4b4b;
  background: transparent;
  font-size: 18px;
}

.family-management-category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.family-management-category-grid .family-asset-type-button {
  flex: 1 1 150px;
  min-width: 150px;
  min-height: 92px;
  gap: 3px;
  border: 1px solid #e9ebf0;
  border-radius: 14px;
  padding: 14px 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.family-management-category-grid .family-asset-type-button span {
  color: #6b7280;
  font-size: 12px;
  font-weight: 500;
}

.family-management-category-grid .family-asset-type-button strong {
  margin-top: 2px;
  color: #4338ca;
  font-size: 20px;
  font-weight: 700;
}

.family-management-category-grid .family-asset-type-button small {
  color: #9aa1ad;
  font-size: 11px;
}

.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-management-category-grid
  .family-asset-type-button.is-active {
  border-color: transparent !important;
  color: #fff !important;
  background: linear-gradient(120deg, #514cf0 0%, #8059ed 100%) !important;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.28) !important;
}

.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-management-category-grid
  .family-asset-type-button.is-active
  * {
  color: inherit !important;
}

.family-management-list-head {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 16px;
}

.family-management-list-title {
  flex: 0 0 auto;
}

.family-management-list-title h2 {
  margin: 0;
  color: #1c1e26;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.family-management-list-title .panel-subtitle {
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 500;
}

.family-management-toolbar {
  display: flex;
  flex: 1;
  gap: 10px;
  align-items: flex-end;
  justify-content: flex-end;
}

.family-management-toolbar label {
  display: grid;
  gap: 5px;
  color: #9aa1ad;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.family-management-toolbar label:first-child {
  width: min(230px, 24vw);
}

.family-management-toolbar input,
.family-management-toolbar select {
  width: 100%;
  height: 40px;
  border: 1px solid #e9ebf0;
  border-radius: 10px;
  padding: 0 12px;
  color: #1c1e26;
  background: #fff;
  font-size: 13px;
}

.family-management-view-toggle {
  display: inline-flex;
  height: 40px;
  overflow: hidden;
  border: 1px solid #e9ebf0;
  border-radius: 10px;
  background: #fff;
}

.family-management-view-toggle button {
  min-height: 38px;
  border: 0;
  border-radius: 0;
  padding: 0 13px;
  color: #6b7280;
  background: transparent;
  font-size: 12.5px;
  font-weight: 600;
}

.family-management-add-button {
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  padding: 0 16px;
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  box-shadow: 0 5px 14px rgba(79, 70, 229, 0.28);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.family-management-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.family-management-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e9ebf0;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.family-management-thumb {
  position: relative;
  display: grid;
  flex: 0 0 148px;
  width: 148px;
  min-height: 230px;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-right: 1px solid #e9ebf0;
  border-radius: 0;
  padding: 0;
  color: #4f46e5;
  background: #eef0f4;
}

.family-management-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.family-management-thumb > span {
  font-size: 42px;
  font-weight: 800;
}

.family-management-thumb small {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  border-radius: 7px;
  padding: 5px 8px;
  color: #fff;
  background: rgba(20, 23, 40, 0.62);
  font-size: 10.5px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 160ms ease;
}

.family-management-thumb:hover small,
.family-management-thumb:focus-visible small {
  opacity: 1;
}

.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-management-thumb:hover,
.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-management-thumb:focus-visible {
  border-color: #e9ebf0 !important;
  color: #4f46e5 !important;
  background: #eef0f4 !important;
  box-shadow: none !important;
  transform: none !important;
}

.family-management-card-body {
  min-width: 0;
  padding: 15px 17px;
}

.family-management-card-body header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  justify-content: space-between;
}

.family-management-card-body header strong,
.family-management-card-body header span {
  display: block;
}

.family-management-card-body header strong {
  color: #1c1e26;
  font-size: 15px;
  font-weight: 700;
}

.family-management-card-body header span {
  margin-top: 2px;
  color: #6b7280;
  font-size: 12px;
}

.family-management-card-body > p {
  margin: 9px 0 12px;
  color: #6b7280;
  font-size: 12.5px;
  line-height: 1.4;
}

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

.family-management-meta-grid > span,
.family-management-list-status > span {
  overflow: hidden;
  border: 1px solid #e9ebf0;
  border-radius: 8px;
  padding: 7px 9px;
  color: #1c1e26;
  background: #f7f8fa;
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.family-management-meta-grid > span.is-warn,
.family-management-list-status > span.is-warn {
  border-color: #f6d5d5;
  color: #c0392b;
  background: #fff4f4;
}

.family-management-meta-grid > span.is-ok,
.family-management-list-status > span.is-ok {
  border-color: #c8ecd7;
  color: #1c7a4f;
  background: #eefaf3;
}

.family-management-row-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
  margin-left: auto;
}

.family-management-row-actions button {
  min-height: 30px;
  border: 1px solid #e9ebf0;
  border-radius: 8px;
  padding: 5px 11px;
  color: #1c1e26;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
}

.family-management-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.family-management-column-head,
.family-management-list-row {
  display: grid;
  grid-template-columns:
    46px minmax(155px, 2fr) 96px 104px 132px
    minmax(165px, 2fr) auto;
  gap: 14px;
  align-items: center;
}

.family-management-column-head {
  border-radius: 10px;
  padding: 10px 14px;
  color: #6b7280;
  background: #e7e9ef;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.family-management-list-row {
  border: 1px solid #e9ebf0;
  border-radius: 12px;
  padding: 9px 14px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.family-management-thumb.is-list {
  width: 46px;
  min-height: 46px;
  height: 46px;
  flex-basis: 46px;
  border: 1px solid #e9ebf0;
  border-radius: 9px;
}

.family-management-thumb.is-list small {
  display: none;
}

.family-management-list-row > span,
.family-management-list-name {
  min-width: 0;
  overflow: hidden;
  color: #6b7280;
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.family-management-list-name strong,
.family-management-list-name span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.family-management-list-name strong {
  color: #1c1e26;
  font-size: 13.5px;
}

.family-management-list-name span {
  color: #6b7280;
  font-size: 11px;
}

.family-management-list-value {
  overflow: hidden;
  color: #4338ca;
  font-size: 12.5px;
  text-overflow: ellipsis;
}

.family-management-list-status {
  display: flex;
  min-width: 0;
  gap: 6px;
  overflow: hidden;
}

.family-management-list-status > span {
  padding: 4px 8px;
  font-size: 10.5px;
}

.family-management-lightbox {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: grid;
  place-items: center;
  padding: 40px;
  background: rgba(14, 16, 24, 0.82);
}

.family-management-lightbox > button {
  position: fixed;
  top: 22px;
  right: 26px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 20px;
}

.family-management-lightbox figure {
  display: grid;
  gap: 14px;
  justify-items: center;
  max-width: 90vw;
}

.family-management-lightbox figure img,
.family-management-lightbox figure > div {
  width: min(460px, 80vw);
  height: min(600px, 72vh);
  border-radius: 16px;
  object-fit: contain;
  color: #fff;
  background: #1c1e26;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.family-management-lightbox figure > div {
  display: grid;
  place-items: center;
  font-size: 96px;
  font-weight: 800;
}

.family-management-lightbox figcaption {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 1180px) {
  .family-management-list-head {
    align-items: stretch;
    flex-direction: column;
  }

  .family-management-toolbar {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .family-management-toolbar label:first-child {
    width: min(280px, 100%);
  }

  .family-management-list {
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .family-management-column-head,
  .family-management-list-row {
    min-width: 940px;
  }
}

@media (max-width: 840px) {
  .family-management-urgent {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .family-management-card-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Asset Protection — client revised mockup */
.family-protection-revised {
  --family-protection-card: #ffffff;
  --family-protection-ink: #0f1222;
  --family-protection-muted: #6b7280;
  --family-protection-faint: #9aa1ad;
  --family-protection-line: #e8e9ef;
  --family-protection-indigo: #4f46e5;
  --family-protection-indigo-soft: #eef0fe;
  --family-protection-red: #dc2626;
  --family-protection-red-soft: #fdecec;
  --family-protection-amber: #b7791f;
  --family-protection-amber-soft: #fdf4e3;
  --family-protection-green: #137a4b;
  --family-protection-green-soft: #e7f5ee;
  --family-protection-shadow: 0 1px 2px rgba(16, 18, 34, 0.04),
    0 8px 24px rgba(16, 18, 34, 0.05);
  color: var(--family-protection-ink);
  font-size: 14px;
  line-height: 1.45;
}

.family-protection-revised *,
.family-protection-revised *::before,
.family-protection-revised *::after {
  box-sizing: border-box;
}

.family-protection-revised .card {
  background: var(--family-protection-card);
  border: 1px solid var(--family-protection-line);
  border-radius: 16px;
  box-shadow: var(--family-protection-shadow);
}

.family-protection-revised .lbl {
  color: var(--family-protection-indigo);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.family-protection-revised .lbl.white {
  color: #fff;
  opacity: 0.95;
}

.family-protection-revised .h {
  margin-top: 3px;
  font-size: 17px;
  font-weight: 700;
}

.family-protection-revised .pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f2f7;
  color: #4b5563;
  font-size: 11px;
  font-weight: 600;
}

.family-protection-revised .grid {
  display: grid;
  gap: 18px;
}

.family-protection-revised .state {
  grid-template-columns: 1.15fr 1fr 1fr 1fr;
  margin-top: 10px;
}

.family-protection-revised .score {
  padding: 16px;
  border: none;
  background: linear-gradient(150deg, #6d5cf0, #4f46e5 60%, #4238c7);
  color: #fff;
}

.family-protection-revised .score .num {
  margin: 8px 0 6px;
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
}

.family-protection-revised .score .delta {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
}

.family-protection-revised .score-note {
  margin-top: 10px;
  font-size: 11px;
  opacity: 0.85;
}

.family-protection-revised .pillar {
  padding: 16px 16px 14px;
}

.family-protection-revised .pillar-description {
  margin-top: 4px;
  color: var(--family-protection-muted);
  font-size: 12.5px;
}

.family-protection-revised .pillar .bar {
  height: 6px;
  margin: 12px 0 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef0f4;
}

.family-protection-revised .pillar .bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.family-protection-revised .pillar .counts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.family-protection-revised .mini {
  padding: 3px 9px;
  border-radius: 999px;
  background: #f4f5f9;
  color: #4b5563;
  font-size: 11px;
  font-weight: 600;
}

.family-protection-revised .mini.g {
  background: var(--family-protection-red-soft);
  color: var(--family-protection-red);
}

.family-protection-revised .mini.r {
  background: var(--family-protection-amber-soft);
  color: var(--family-protection-amber);
}

.family-protection-revised .mini.s {
  background: var(--family-protection-green-soft);
  color: var(--family-protection-green);
}

.family-protection-revised .readiness {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 14px 20px;
}

.family-protection-revised .readiness .rv {
  margin-top: 2px;
  font-size: 15px;
  font-weight: 800;
}

.family-protection-revised .readiness .rv.is-gap {
  color: var(--family-protection-red);
}

.family-protection-revised .readiness .rk {
  color: var(--family-protection-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.family-protection-revised .readpct {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 800;
}

.family-protection-revised .readbar {
  max-width: 230px;
  height: 8px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef0f4;
}

.family-protection-revised .readbar i {
  display: block;
  width: 54%;
  height: 100%;
  background: linear-gradient(90deg, #f4b740, #f59e0b);
}

.family-protection-revised .actions {
  margin-top: 22px;
  padding: 18px 20px;
}

.family-protection-revised .section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.family-protection-revised .actions-intro {
  margin-top: 6px;
  color: var(--family-protection-muted);
  font-size: 12.5px;
}

.family-protection-revised .actionrow {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--family-protection-line);
}

.family-protection-revised .actionrow:first-of-type {
  border-top: none;
}

.family-protection-revised .rank {
  display: grid;
  flex: none;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 8px;
  background: var(--family-protection-indigo-soft);
  color: var(--family-protection-indigo);
  font-size: 13px;
  font-weight: 800;
}

.family-protection-revised .actionrow .body {
  flex: 1;
}

.family-protection-revised .actionrow .body b {
  font-size: 14px;
}

.family-protection-revised .actionrow .body p {
  margin: 2px 0 0;
  color: var(--family-protection-muted);
  font-size: 12.5px;
}

.family-protection-revised .sev {
  box-sizing: border-box;
  flex: none;
  min-width: 70px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-align: center;
}

.family-protection-revised .sev.high {
  background: var(--family-protection-red-soft);
  color: var(--family-protection-red);
}

.family-protection-revised .sev.med {
  background: var(--family-protection-amber-soft);
  color: var(--family-protection-amber);
}

.family-protection-revised .do {
  flex: none;
  padding: 9px 14px;
  border: none;
  border-radius: 10px;
  background: var(--family-protection-indigo);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.family-protection-revised .do.ghost {
  border: 1px solid #dcdcfb;
  background: #fff;
  color: var(--family-protection-indigo);
}

.family-protection-revised .viewall {
  width: 100%;
  margin-top: 6px;
  padding: 11px;
  border: 1px solid var(--family-protection-line);
  border-radius: 10px;
  background: #f7f8fc;
  color: var(--family-protection-indigo);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.family-protection-revised .sectiontitle {
  margin: 30px 0 4px;
}

.family-protection-revised .matrix,
.family-protection-revised .policies-card {
  margin-top: 10px;
  padding: 20px;
}

.family-protection-revised .tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 8px;
}

.family-protection-revised .tab {
  padding: 6px 13px;
  border: 1px solid var(--family-protection-line);
  border-radius: 999px;
  background: #fff;
  color: #4b5563;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.family-protection-revised .tab.active {
  border-color: var(--family-protection-indigo);
  background: var(--family-protection-indigo);
  color: #fff;
}

.family-protection-revised .arow {
  padding: 14px 0;
  border-top: 1px solid var(--family-protection-line);
}

.family-protection-revised .arow .top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr auto;
  align-items: start;
  gap: 18px;
}

.family-protection-revised .aname {
  font-size: 13.5px;
  font-weight: 700;
}

.family-protection-revised .ameta {
  margin-top: 2px;
  color: var(--family-protection-faint);
  font-size: 11.5px;
}

.family-protection-revised .aps {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
}

.family-protection-revised .aps.is-gap {
  color: var(--family-protection-red);
}

.family-protection-revised .aps.is-review {
  color: var(--family-protection-amber);
}

.family-protection-revised .aps.is-strong {
  color: var(--family-protection-green);
}

.family-protection-revised .colcell .k {
  margin-bottom: 5px;
  color: var(--family-protection-faint);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.family-protection-revised .colcell p {
  margin: 5px 0 0;
  color: var(--family-protection-muted);
  font-size: 11px;
}

.family-protection-revised .chip {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
}

.family-protection-revised .chip.gap {
  background: var(--family-protection-red-soft);
  color: var(--family-protection-red);
}

.family-protection-revised .chip.review {
  background: var(--family-protection-amber-soft);
  color: var(--family-protection-amber);
}

.family-protection-revised .chip.strong {
  background: var(--family-protection-green-soft);
  color: var(--family-protection-green);
}

.family-protection-revised .reviewbtn {
  padding: 6px 4px;
  border: none;
  background: none;
  color: var(--family-protection-indigo);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.family-protection-revised .drawer-in {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid var(--family-protection-line);
  border-radius: 12px;
  background: #f7f8fc;
}

.family-protection-revised .drawer-in .qhead {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b4e18;
  font-size: 12px;
  font-weight: 700;
}

.family-protection-revised .qdot {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: #f4e6c9;
  font-size: 11px;
}

.family-protection-revised .fixgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.family-protection-revised .fix {
  padding: 11px 12px;
  border: 1px solid var(--family-protection-line);
  border-radius: 10px;
  background: #fff;
}

.family-protection-revised .fix .ft {
  font-size: 12px;
  font-weight: 700;
}

.family-protection-revised .fix p {
  margin: 4px 0 8px;
  color: var(--family-protection-muted);
  font-size: 11px;
}

.family-protection-revised .fix button {
  width: 100%;
  padding: 8px;
  border: none;
  border-radius: 8px;
  background: var(--family-protection-indigo);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.family-protection-revised .polwrap {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
}

.family-protection-revised .drop {
  margin-top: 12px;
  padding: 22px;
  border: 1.5px dashed #cfd2e0;
  border-radius: 12px;
  color: var(--family-protection-faint);
  font-size: 12px;
  text-align: center;
}

.family-protection-revised .drop.is-dragging {
  border-color: var(--family-protection-indigo);
  background: var(--family-protection-indigo-soft);
}

.family-protection-revised .drop b {
  display: block;
  margin-bottom: 4px;
  color: var(--family-protection-ink);
  font-size: 13px;
}

.family-protection-revised .choose-file-button,
.family-protection-revised .document-council-action,
.family-protection-revised .council-quinn-action {
  display: block;
  width: 100%;
  margin-top: 12px;
  text-align: center;
}

.family-protection-revised .choose-file-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.family-protection-revised .doctable-scroll {
  overflow-x: auto;
}

.family-protection-revised .doctable {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
}

.family-protection-revised .doctable th {
  padding: 0 10px 10px;
  border-bottom: 1px solid var(--family-protection-line);
  color: var(--family-protection-faint);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

.family-protection-revised .doctable td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--family-protection-line);
  font-size: 12.5px;
  vertical-align: middle;
}

.family-protection-revised .doctable .document-column {
  width: 34%;
}

.family-protection-revised .doctable .status-column {
  width: 78px;
}

.family-protection-revised .doctable .review-column {
  width: 150px;
}

.family-protection-revised .doctable .cov {
  color: var(--family-protection-muted);
  font-size: 12px;
}

.family-protection-revised .docname {
  padding: 0;
  border: none;
  background: transparent;
  color: var(--family-protection-indigo);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.family-protection-revised .docname:hover {
  text-decoration: underline;
}

.family-protection-revised .document-status {
  display: inline-block;
  min-width: 62px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.family-protection-revised .document-status.is-review {
  background: var(--family-protection-amber-soft);
  color: var(--family-protection-amber);
}

.family-protection-revised .document-status.is-current {
  background: var(--family-protection-green-soft);
  color: var(--family-protection-green);
}

.family-protection-revised .councilbtn {
  padding: 7px 12px;
  border: 1px solid #dcdcfb;
  border-radius: 9px;
  background: #fff;
  color: var(--family-protection-indigo);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.family-protection-revised .overlay {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: none;
  background: rgba(15, 18, 34, 0.45);
}

.family-protection-revised .overlay.show {
  display: block;
}

.family-protection-revised .modal {
  position: fixed;
  z-index: 50;
  top: 50%;
  left: 50%;
  display: none;
  width: min(760px, 92vw);
  max-height: 86vh;
  padding: 24px;
  overflow: auto;
  transform: translate(-50%, -50%);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.family-protection-revised .modal.show {
  display: block;
}

.family-protection-revised .modal .x,
.family-protection-revised .cdrawer .x {
  position: absolute;
  top: 16px;
  right: 18px;
  padding: 0;
  border: none;
  background: none;
  color: var(--family-protection-faint);
  font-size: 20px;
  cursor: pointer;
}

.family-protection-revised .priority-action-list,
.family-protection-revised .modal-asset-list,
.family-protection-revised .modal-document-table {
  margin-top: 14px;
}

.family-protection-revised .mrow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--family-protection-line);
}

.family-protection-revised .mrow:first-child {
  border-top: none;
}

.family-protection-revised .mrow .mn {
  flex: 1;
}

.family-protection-revised .mrow .mn b {
  font-size: 13px;
}

.family-protection-revised .mrow .mn small {
  display: block;
  color: var(--family-protection-faint);
  font-size: 11px;
}

.family-protection-revised .mrow .mchips {
  display: flex;
  gap: 5px;
}

.family-protection-revised .docpage {
  margin-top: 14px;
  padding: 26px 30px;
  border: 1px solid var(--family-protection-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #fafbfe;
}

.family-protection-revised .docpage h4 {
  margin: 0;
  font-size: 16px;
}

.family-protection-revised .docpage .carrier {
  color: var(--family-protection-indigo);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.family-protection-revised .docpage .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 10px 0 16px;
  color: var(--family-protection-muted);
  font-size: 11.5px;
}

.family-protection-revised .docpage .meta b {
  color: var(--family-protection-ink);
}

.family-protection-revised .docpage table {
  width: 100%;
  border-collapse: collapse;
}

.family-protection-revised .docpage td {
  padding: 9px 0;
  border-bottom: 1px solid var(--family-protection-line);
  font-size: 12.5px;
}

.family-protection-revised .docpage td:last-child {
  font-weight: 700;
  text-align: right;
}

.family-protection-revised .docpage td.is-excluded {
  color: var(--family-protection-red);
}

.family-protection-revised .docpage .note {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f7f8fc;
  color: var(--family-protection-muted);
  font-size: 11.5px;
}

.family-protection-revised .cdrawer {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  width: min(460px, 94vw);
  height: 100vh;
  padding: 24px;
  overflow: auto;
  transform: translateX(100%);
  background: #fff;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.22);
  transition: transform 0.28s ease;
}

.family-protection-revised .cdrawer.show {
  transform: translateX(0);
}

.family-protection-revised .cband {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f4e6c9, #efe0c0);
}

.family-protection-revised .cband > div:last-child {
  color: #6b4e18;
  font-size: 12px;
}

.family-protection-revised .cband .qav {
  display: grid;
  flex: none;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #6b4e18;
  font-weight: 800;
}

.family-protection-revised .cfind {
  margin-bottom: 10px;
  padding: 12px 14px;
  border: 1px solid var(--family-protection-line);
  border-radius: 11px;
  color: var(--family-protection-muted);
  font-size: 12.5px;
}

.family-protection-revised .cfind .ct {
  margin-bottom: 4px;
  color: var(--family-protection-faint);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (max-width: 1180px) {
  .family-protection-revised .state {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .family-protection-revised .readiness {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .family-protection-revised .readiness > div:first-child {
    grid-column: 1 / -1;
  }

  .family-protection-revised .arow .top {
    min-width: 800px;
  }

  .family-protection-revised .arow {
    overflow-x: auto;
  }

  .family-protection-revised .polwrap {
    grid-template-columns: 260px minmax(0, 1fr);
  }
}

@media (max-width: 800px) {
  .family-protection-revised .state,
  .family-protection-revised .readiness,
  .family-protection-revised .polwrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .family-protection-revised .readiness > div:first-child {
    grid-column: auto;
  }

  .family-protection-revised .actionrow {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .family-protection-revised .actionrow .body {
    flex-basis: calc(100% - 40px);
  }

  .family-protection-revised .actionrow .do {
    margin-left: 40px;
  }

  .family-protection-revised .fixgrid {
    grid-template-columns: 1fr;
  }

  .family-protection-revised .mrow {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Exact client HTML styling for the adaptive Add Asset modal. */
.family-asset-intake-scrim {
  position: fixed;
  inset: 0;
  z-index: 190;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
  padding: 24px;
  background: rgba(20, 23, 40, 0.42);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 180ms ease;
}

.family-asset-intake-scrim.is-open {
  opacity: 1;
}

.family-asset-intake-modal {
  width: min(960px, calc(100vw - 48px));
  max-width: calc(100vw - 48px);
  height: min(92dvh, 1000px);
  max-height: calc(100dvh - 48px);
  overflow: hidden;
  border-radius: 22px;
  color: #12131a;
  background: #fff;
  box-shadow: 0 40px 90px rgba(20, 23, 40, 0.4);
  font-family: Inter, -apple-system, sans-serif;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.family-asset-intake-modal.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.family-asset-intake-panel {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0 !important;
  flex-direction: column;
  overflow: hidden;
  color: #12131a;
  background: #fff;
}

.family-asset-intake-modal-head {
  display: flex;
  height: 94.5px;
  flex: 0 0 94.5px;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #e6e8ee;
  padding: 18px 24px;
}

.family-asset-intake-modal-icon {
  display: flex;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #8b5cf6);
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
}

.family-asset-intake-modal-title {
  min-width: 0;
  flex: 1;
}

.family-asset-intake-modal-title > span {
  display: block;
  color: #4f46e5;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.4px;
  line-height: normal;
  text-transform: uppercase;
}

.family-asset-intake-modal-title h2 {
  margin: 1px 0 0;
  color: #12131a;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.4px;
  line-height: normal;
}

.family-asset-intake-modal-title p {
  margin: 0;
  color: #6b7280;
  font-size: 12.5px;
  line-height: normal;
}

.family-asset-intake-modal-pill {
  border: 1px solid #e6e8ee;
  border-radius: 999px;
  padding: 6px 13px;
  color: #6b7280;
  background: #f7f8fa;
  font-size: 11.5px;
  font-weight: 600;
  line-height: normal;
  white-space: nowrap;
}

.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-asset-intake-modal-close {
  display: flex;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px !important;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid #e6e8ee !important;
  border-radius: 10px !important;
  padding: 0 !important;
  color: #6b7280 !important;
  background: #fff !important;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  box-shadow: none !important;
  transform: none !important;
}

.family-asset-intake-modal-body {
  flex: 1;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 22px 24px 8px;
  scrollbar-gutter: stable;
}

.family-asset-intake-type-step {
  margin-bottom: 20px;
  border: 1px solid #d9dcfb;
  border-radius: 16px;
  padding: 18px 18px 16px;
  background: #eef0fe;
}

.family-asset-intake-type-step > strong {
  display: block;
  margin-bottom: 3px;
  color: #12131a;
  font-size: 14px;
  font-weight: 800;
  line-height: normal;
}

.family-asset-intake-type-step > p {
  margin: 0 0 13px;
  color: #6b7280;
  font-size: 12.5px;
  line-height: normal;
}

.family-asset-required {
  color: #e5484d;
  font-style: normal;
  font-weight: 800;
}

.family-asset-intake-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 9px;
}

.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-asset-intake-type-chip {
  display: flex;
  height: 56px;
  min-height: 56px !important;
  align-items: center;
  gap: 9px;
  border: 1.5px solid #e6e8ee !important;
  border-radius: 12px !important;
  padding: 11px 12px !important;
  color: #3a3d47 !important;
  background: #fff !important;
  font-size: 13px;
  font-weight: 600;
  line-height: normal;
  text-align: left;
  box-shadow: none !important;
  transform: none !important;
}

.family-asset-intake-type-chip > span {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: #4f46e5;
}

.family-asset-intake-type-chip svg {
  width: 22px;
  height: 22px;
}

.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-asset-intake-type-chip:hover,
.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-asset-intake-type-chip:focus-visible,
.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-asset-intake-type-chip.is-selected {
  border-color: #4f46e5 !important;
  color: #4338ca !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px #eef0fe !important;
}

.family-asset-intake-form {
  display: none;
}

.family-asset-intake-form.is-visible {
  display: block;
}

.family-asset-intake-section-heading {
  margin: 22px 0 12px;
  color: #4f46e5;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: normal;
  text-transform: uppercase;
}

.family-asset-intake-section-heading:first-of-type {
  margin-top: 0;
}

.family-asset-intake-section-heading small {
  color: #9aa1ad;
  font-size: inherit;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.family-asset-intake-grid-two,
.family-asset-intake-grid-three {
  display: grid;
  min-width: 0;
  max-width: 100%;
  gap: 14px 16px;
}

.family-asset-intake-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.family-asset-intake-field {
  display: block;
  min-width: 0;
  margin-bottom: 14px;
  color: #3a3d47;
  font-size: 12px;
  font-weight: 700;
  line-height: normal;
}

.family-asset-intake-field > span:first-child {
  display: block;
  margin-bottom: 6px;
}

.family-asset-intake-field input,
.family-asset-intake-field select,
.family-asset-intake-field textarea,
.family-asset-intake-type-fields input,
.family-asset-intake-type-fields select,
.family-asset-intake-type-fields textarea,
.family-real-estate-panel input,
.family-real-estate-panel select {
  width: 100%;
  max-width: 100%;
  min-height: 0;
  border: 1.5px solid #e6e8ee;
  border-radius: 11px;
  padding: 11px 13px;
  color: #12131a;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  outline: none;
}

.family-asset-intake-field textarea {
  min-height: 72px;
  resize: vertical;
}

.family-asset-intake-field input:focus,
.family-asset-intake-field select:focus,
.family-asset-intake-field textarea:focus,
.family-real-estate-panel input:focus,
.family-real-estate-panel select:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px #eef0fe;
}

.family-asset-intake-field input::placeholder,
.family-asset-intake-field textarea::placeholder {
  color: #9aa1ad;
}

.family-asset-intake-field > small,
.family-asset-intake-record-upload > small {
  display: block;
  margin-top: 5px;
  color: #9aa1ad;
  font-size: 11px;
  font-weight: 400;
}

.family-asset-intake-type-fields {
  margin-bottom: 6px;
  border: 1px solid #e6e8ee;
  border-radius: 14px;
  padding: 15px 15px 3px;
  background: #f7f8fa;
}

.family-asset-intake-type-heading {
  margin-bottom: 12px;
  color: #6b7280;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  line-height: normal;
  text-transform: uppercase;
}

.family-asset-intake-condition-row {
  margin-top: 14px;
}

.family-asset-intake-value-wrap {
  position: relative;
  display: flex !important;
  align-items: center;
  margin: 0 !important;
}

.family-asset-intake-value-wrap input {
  padding-right: 112px;
}

.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-asset-intake-value-wrap
  button {
  position: absolute;
  right: 6px;
  min-height: 0 !important;
  border: 1px solid #d3d6fb !important;
  border-radius: 8px !important;
  padding: 7px 12px !important;
  color: #4f46e5 !important;
  background: #eef0fe !important;
  font-size: 12px;
  font-weight: 700;
  line-height: normal;
  white-space: nowrap;
  box-shadow: none !important;
  transform: none !important;
}

.family-asset-intake-record-block .family-real-estate-panel {
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
}

.family-asset-intake-record-head,
.family-asset-intake-record-block .family-real-estate-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.family-asset-intake-record-head > div,
.family-asset-intake-record-block .family-real-estate-heading > div {
  flex: 1;
}

.family-asset-intake-record-eyebrow,
.family-asset-intake-record-block .family-real-estate-heading .eyebrow {
  display: block;
  margin: 0;
  color: #4f46e5;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: normal;
  text-transform: uppercase;
}

.family-asset-intake-record-head strong,
.family-asset-intake-record-block .family-real-estate-heading strong {
  display: block;
  margin-top: 2px;
  color: #12131a;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: normal;
}

.family-asset-intake-record-head p,
.family-asset-intake-record-block .family-real-estate-heading small {
  display: block;
  max-width: 340px;
  margin: 4px 0 0;
  color: #6b7280;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
}

.family-asset-intake-record-head > span,
.family-asset-intake-record-block .family-address-status {
  margin-left: auto;
  border: 1px solid #e6e8ee;
  border-radius: 999px;
  padding: 6px 13px;
  color: #6b7280;
  background: #fff;
  font-size: 11.5px;
  font-weight: 600;
  line-height: normal;
  white-space: nowrap;
}

.family-asset-intake-record-block .form-row.two-column,
.family-asset-intake-record-block .family-real-estate-address-grid,
.family-asset-intake-record-block .family-real-estate-record-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.family-asset-intake-record-block .family-real-estate-address-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.family-asset-intake-record-block label {
  color: #3a3d47;
  font-size: 12px;
  font-weight: 700;
}

.family-asset-intake-record-block label > input,
.family-asset-intake-record-block label > select {
  display: block;
  margin-top: 6px;
}

.family-asset-intake-validation-row,
.family-asset-intake-record-block .family-address-validation-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 2px 0 16px;
}

.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-asset-intake-validation-row
  button,
.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-asset-intake-record-block
  [data-family-address-validate] {
  min-height: 0 !important;
  border: 1.5px solid #4f46e5 !important;
  border-radius: 11px !important;
  padding: 11px 18px !important;
  color: #4f46e5 !important;
  background: #fff !important;
  font-size: 13.5px;
  font-weight: 700;
  line-height: normal;
  box-shadow: none !important;
  transform: none !important;
}

.family-asset-intake-validation-row > span,
.family-asset-intake-record-block .family-address-validation-row > span {
  max-width: 260px;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.4;
}

.family-asset-intake-ownership-box,
.family-asset-intake-record-block .family-real-estate-ownership {
  margin-top: 6px;
  border: 1px solid #e6e8ee;
  border-radius: 14px;
  padding: 15px;
  background: #fff;
}

.family-asset-intake-ownership-box > strong,
.family-asset-intake-record-block .family-real-estate-ownership > div:first-child > strong {
  display: block;
  color: #12131a;
  font-size: 14px;
  font-weight: 800;
}

.family-asset-intake-ownership-box > p,
.family-asset-intake-record-block .family-real-estate-ownership > div:first-child > span {
  display: block;
  margin: 2px 0 12px;
  color: #6b7280;
  font-size: 12px;
}

.family-asset-intake-record-block .family-real-estate-money-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 16px;
}

.family-asset-intake-equity,
.family-asset-intake-record-block .family-real-estate-equity {
  margin: 10px 0 0;
  border: 1px solid #b6e6c9;
  border-radius: 10px;
  padding: 9px 13px;
  color: #1e8e57;
  background: #e8f7ee;
  font-size: 13px;
  font-weight: 600;
  line-height: normal;
}

.family-asset-intake-record-upload,
.family-asset-intake-record-block .family-real-estate-deed-upload {
  display: block;
  margin-top: 14px;
}

.family-asset-intake-record-block .family-real-estate-deed-upload small {
  display: block;
  margin-top: 5px;
  color: #9aa1ad;
  font-size: 11px;
  font-weight: 400;
}

.family-asset-intake-upload-row {
  display: flex !important;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px !important;
}

.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-asset-intake-upload-row
  button {
  min-height: 0 !important;
  border: 1.5px solid #e6e8ee !important;
  border-radius: 10px !important;
  padding: 9px 14px !important;
  color: #12131a !important;
  background: #fff !important;
  font-size: 13px;
  font-weight: 600;
  line-height: normal;
  box-shadow: none !important;
  transform: none !important;
}

.family-asset-intake-upload-row span,
.family-asset-intake-upload-row small {
  color: #9aa1ad;
  font-size: 12.5px;
  font-weight: 400;
}

.family-asset-intake-upload-section {
  display: block;
}

.family-asset-intake-dropzone {
  display: grid;
  min-height: 86px;
  place-items: center;
  align-content: center;
  margin-bottom: 10px;
  overflow: hidden;
  border: 1.6px dashed #e6e8ee;
  border-radius: 14px;
  padding: 22px;
  background: #f7f8fa;
  text-align: center;
}

.family-asset-intake-dropzone.is-dragging {
  border-color: #4f46e5;
  background: #eef0fe;
}

.family-asset-intake-dropzone strong {
  display: block;
  color: #12131a;
  font-size: 13.5px;
  font-weight: 700;
}

.family-asset-intake-dropzone span {
  display: block;
  color: #6b7280;
  font-size: 12px;
}

.family-asset-intake-dropzone img {
  width: 100%;
  max-height: 180px;
  border-radius: 10px;
  object-fit: contain;
}

.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-asset-intake-analyze {
  width: 100%;
  min-height: 0 !important;
  margin: 6px 0 4px;
  border: 1.5px solid #4f46e5 !important;
  border-radius: 12px !important;
  padding: 12px !important;
  color: #4f46e5 !important;
  background: #fff !important;
  font-size: 14px;
  font-weight: 700;
  line-height: normal;
  box-shadow: none !important;
  transform: none !important;
}

.family-asset-intake-analyze:disabled {
  opacity: 0.45;
}

.family-asset-intake-note {
  margin: 0 0 8px;
  color: #9aa1ad;
  font-size: 11.5px;
  line-height: normal;
}

.family-asset-intake-document-type {
  margin-top: 14px;
}

.family-asset-intake-modal .family-story-capture {
  margin-top: 22px;
  border: 1px solid #e6e8ee;
  border-radius: 14px;
  padding: 16px;
  background: #f7f8fa;
}

.family-asset-intake-modal .family-story-capture-heading {
  margin-bottom: 12px;
}

.family-asset-intake-modal .family-story-capture-heading .eyebrow {
  color: #4f46e5;
  font-size: 10px;
  letter-spacing: 1px;
}

.family-asset-intake-modal .family-story-capture-heading strong {
  font-size: 14px;
  font-weight: 800;
}

.family-asset-intake-modal .family-story-capture-heading small {
  color: #6b7280;
  font-size: 12.5px;
}

.family-asset-intake-modal-foot {
  display: flex;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  height: 79.5px;
  flex: 0 0 79.5px;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #e6e8ee;
  padding: 16px 24px;
  background: #fff;
}

.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-asset-intake-save,
.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-asset-intake-clear {
  min-height: 0 !important;
  border-radius: 12px !important;
  padding: 13px 22px !important;
  font-size: 14.5px;
  font-weight: 700;
  line-height: normal;
  transform: none !important;
}

.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-asset-intake-save {
  border: 0 !important;
  color: #fff !important;
  background: linear-gradient(135deg, #4f46e5, #4338ca) !important;
  box-shadow: 0 10px 22px rgba(79, 70, 229, 0.28) !important;
}

.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-asset-intake-save:disabled {
  opacity: 0.45;
  box-shadow: none !important;
}

.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-asset-intake-clear {
  border: 1.5px solid #e6e8ee !important;
  color: #3a3d47 !important;
  background: #fff !important;
  box-shadow: none !important;
}

.family-asset-intake-modal-foot > span {
  margin-left: auto;
  color: #6b7280;
  font-size: 12px;
  line-height: normal;
}

@media (max-width: 780px) {
  .family-asset-intake-scrim {
    padding: 10px;
  }

  .family-asset-intake-modal {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    height: calc(100dvh - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 18px;
  }

  .family-asset-intake-modal-head,
  .family-asset-intake-modal-foot {
    height: auto;
    flex-basis: auto;
    padding-right: 16px;
    padding-left: 16px;
  }

  .family-asset-intake-modal-body {
    padding-right: 16px;
    padding-left: 16px;
  }

  .family-asset-intake-modal-pill,
  .family-asset-intake-modal-foot > span {
    display: none;
  }

  .family-asset-intake-grid-three,
  .family-asset-intake-record-block .family-real-estate-address-grid,
  .family-asset-intake-record-block .family-real-estate-money-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .family-asset-intake-grid-two,
  .family-asset-intake-record-block .form-row.two-column,
  .family-asset-intake-record-block .family-real-estate-record-grid {
    grid-template-columns: 1fr;
  }

  .family-asset-intake-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell.family-mode:not(.mobile-demo-active)
    #family-asset-iq-view
    .family-asset-intake-save,
  .app-shell.family-mode:not(.mobile-demo-active)
    #family-asset-iq-view
    .family-asset-intake-clear {
    min-width: 0;
    padding-right: 12px !important;
    padding-left: 12px !important;
  }
}

@media (max-width: 560px) {
  .family-management-toolbar,
  .family-management-toolbar label,
  .family-management-toolbar label:first-child,
  .family-management-toolbar input,
  .family-management-toolbar select,
  .family-management-view-toggle,
  .family-management-add-button {
    width: 100%;
  }

  .family-management-view-toggle button {
    flex: 1;
  }

  .family-management-card {
    display: grid;
  }

  .family-management-thumb {
    width: 100%;
    min-height: 190px;
    border-right: 0;
    border-bottom: 1px solid #e9ebf0;
  }
}

.family-asset-management-panel .family-asset-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.family-asset-management-panel .family-asset-card {
  min-width: 0;
}

.family-management-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(38, 31, 23, 0.24);
}

.family-management-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 71;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  width: min(560px, calc(100vw - 28px));
  height: 100vh;
  overflow: auto;
  border-left: 1px solid var(--paloist-line, var(--line));
  padding: 20px;
  background: var(--paloist-paper, var(--panel));
  box-shadow: -28px 0 60px rgba(38, 31, 23, 0.2);
  will-change: transform;
}

.family-slide-drawer-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 520ms ease;
}

.family-slide-drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.family-slide-drawer-panel {
  transform: translateX(100%);
  pointer-events: none;
  animation: none;
  transition: transform 520ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.family-slide-drawer-panel.is-open {
  transform: translateX(0);
  pointer-events: auto;
}

.family-management-drawer-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: -20px -20px 18px;
  border-bottom: 1px solid var(--paloist-line, var(--line));
  padding: 20px;
  background: inherit;
}

.family-management-drawer-header h2 {
  margin: 0;
}

.family-asset-intake-heading-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  justify-content: flex-end;
}

.family-asset-intake-close {
  min-height: 38px;
  border: 1.5px solid #4f46e5;
  border-radius: 10px;
  padding: 8px 14px;
  color: #4338ca;
  background: #fff;
  font-size: 13px;
  font-weight: 750;
}

.family-management-drawer .family-asset-intake-panel > .panel-header {
  position: static;
}

.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  button:not(.family-management-thumb):not(.family-management-view-button):not(
    .family-asset-type-button
  ):not(.family-asset-category-card):not(.family-protection-count-button):not(
    .family-beneficiary-card
  ):not(.mini-stat-button):not(.voice-input-button):not(.icon-button):not(
    .family-management-urgent-close
  ):not(.family-management-lightbox-close):not(.family-management-add-button):not(
    .family-management-market-info
  ):not(.family-management-row-action):not(.family-management-detail-edit):not(
    .family-management-detail-close
  ):not(.family-management-detail-photo):not(.family-asset-intake-control):not(
    .m
  ):not(.pk):not(.att):not(.o):not(.opt):not(.fchip):not(.btn):not(.mclose):not(.btile):not(.pooltile):not(.addbene):not(
    .document-overview-link
  ):not(.report-history-link):not(
    .family-report-preview-show
  ):not(.vw-metric):not(.vw-suggestion):not(.vw-btn):not(.vw-link-button):not(
    .vw-more
  ):not(.vw-inventory-row):not(.vw-modal-close):not(.vw-sale-option):not(
    .vw-metric-row
  ) {
  min-height: 38px !important;
  border-radius: 999px !important;
  padding: 8px 15px;
  font-weight: 700;
  line-height: 1.15;
}

.family-management-drawer .family-asset-form-actions {
  gap: 10px;
  padding-bottom: 50px;
}

.family-management-drawer .family-asset-form-actions button {
  min-width: 132px;
  min-height: 42px !important;
  border-radius: 999px !important;
  padding: 10px 20px !important;
}

.app-shell.family-mode
  .family-management-drawer
  .family-asset-form-actions
  button[type="submit"] {
  border-color: transparent !important;
  color: #fff !important;
  background: linear-gradient(120deg, #514cf0 0%, #8059ed 100%) !important;
  box-shadow: 0 6px 14px rgba(79, 70, 229, 0.22) !important;
}

.app-shell.family-mode
  .family-management-drawer
  .family-asset-form-actions
  .ghost-button {
  border-color: #c7ccfb !important;
  color: #4338ca !important;
  background: #fff !important;
}

.family-management-drawer .family-asset-intake-panel {
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.family-management-drawer .family-asset-photo-row,
.family-management-drawer .family-asset-document-upload {
  align-items: start;
}

.family-management-drawer .family-asset-upload-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 0;
}

.family-management-drawer .family-asset-upload-card {
  padding: 10px;
}

.family-management-drawer .family-asset-photo-preview,
.family-management-drawer .family-asset-document-dropzone {
  align-self: start;
  width: 100%;
  min-height: 112px;
  max-height: 148px;
}

.family-management-drawer .family-asset-photo-controls input[type="file"],
.family-management-drawer .family-asset-document-controls input[type="file"] {
  display: block;
  width: 100%;
}

.family-management-drawer .family-asset-upload-grid + .family-asset-form {
  border-top: 1px solid var(--paloist-line, var(--line));
  padding-top: 14px;
}

.family-protection-page {
  display: grid;
  gap: 18px;
}

.family-protection-layer-grid,
.family-protection-layout,
.family-protection-overview-grid {
  display: grid;
  gap: 16px;
  align-items: start;
}

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

.family-protection-layout {
  grid-template-columns: minmax(0, 1.28fr) minmax(340px, 0.72fr);
}

.family-protection-overview-grid {
  grid-template-columns: minmax(250px, 0.38fr) minmax(0, 1.62fr);
}

.family-protection-overview-grid .family-readiness-card.is-compact {
  gap: 8px;
  padding: 18px;
}

.family-protection-overview-grid .family-readiness-card.is-compact h2 {
  font-size: 24px;
}

.family-protection-overview-grid .family-readiness-card.is-compact .family-readiness-list {
  gap: 2px;
}

.family-protection-overview-grid .family-readiness-card.is-compact .family-readiness-list > div {
  padding: 8px 0;
}

.family-protection-overview-grid .family-protection-matrix-panel {
  min-width: 0;
  overflow-x: auto;
}

.family-protection-layer-card {
  display: grid;
  gap: 12px;
}

.family-protection-layer-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.family-protection-meter {
  overflow: hidden;
  height: 9px;
  border-radius: 999px;
  background: #f2e5d8;
}

.family-protection-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--paloist-copper), var(--paloist-gold));
}

.family-protection-count-row,
.family-protection-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.family-protection-count-row span {
  border: 1px solid var(--asset-accent-line);
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.family-protection-layer-review-button,
.family-protection-count-button {
  cursor: pointer;
}

.family-protection-layer-review-button {
  font: inherit;
  font-size: 12px;
}

.family-protection-layer-review-button:hover,
.family-protection-layer-review-button:focus-visible,
.family-protection-layer-review-button.is-active {
  border-color: var(--paloist-copper);
  color: var(--paloist-paper);
  background: var(--paloist-copper);
  outline: none;
}

.family-protection-count-button {
  border: 1px solid var(--asset-accent-line);
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease,
    color 140ms ease;
}

.family-protection-count-button:hover,
.family-protection-count-button:focus-visible,
.family-protection-count-button.is-active {
  outline: none;
  box-shadow: 0 0 0 3px rgba(180, 107, 63, 0.12);
}

.family-protection-count-button.is-strong:hover,
.family-protection-count-button.is-strong:focus-visible,
.family-protection-count-button.is-strong.is-active {
  border-color: #95bd9a;
  color: #1f6b3f;
  background: #eff8ef;
}

.family-protection-count-button.is-review:hover,
.family-protection-count-button.is-review:focus-visible,
.family-protection-count-button.is-review.is-active {
  border-color: #d7b99d;
  color: var(--paloist-copper-dark);
  background: #fbefe4;
}

.family-protection-count-button.is-gap:hover,
.family-protection-count-button.is-gap:focus-visible,
.family-protection-count-button.is-gap.is-active {
  border-color: #efc0bd;
  color: #aa3934;
  background: #fff2f0;
}

.family-protection-count-row strong {
  color: var(--ink);
}

.family-protection-filter-row .ghost-button.is-active {
  color: var(--paloist-paper);
  background: var(--paloist-copper);
}

.family-protection-matrix-list,
.family-protection-attention-list,
.family-protection-alert-stack {
  display: grid;
  gap: 10px;
}

.family-protection-matrix-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.1fr) repeat(3, minmax(120px, 0.58fr));
  gap: 10px;
  align-items: stretch;
  border: 1px solid var(--asset-accent-line);
  border-radius: 10px;
  padding: 10px;
  background: #fffdf8;
}

.family-protection-asset-cell,
.family-protection-layer-cell,
.family-protection-policy-hint,
.family-protection-drawer-layer {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.family-protection-asset-cell strong,
.family-protection-policy-hint strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.family-protection-asset-cell span,
.family-protection-asset-cell small,
.family-protection-layer-cell small,
.family-protection-policy-hint span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.family-protection-filter-reason {
  border-left: 2px solid var(--paloist-copper);
  padding-left: 8px;
  color: var(--paloist-copper-dark) !important;
}

.family-protection-layer-cell {
  border: 1px solid var(--asset-accent-line);
  border-radius: 8px;
  padding: 8px;
  background: #fffcf5;
}

.family-protection-status {
  display: inline-flex;
  width: fit-content;
  border: 1px solid var(--asset-accent-line);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
}

.family-protection-status.is-strong {
  border-color: #b9d6bd;
  color: #1f6b3f;
  background: #eff8ef;
}

.family-protection-status.is-review,
.family-protection-status.is-unknown {
  border-color: #ead3ab;
  color: #8f5d1c;
  background: #fff5df;
}

.family-protection-status.is-gap {
  border-color: #efc0bd;
  color: #aa3934;
  background: #fff2f0;
}

.family-protection-drawer-form {
  display: grid;
  gap: 16px;
}

.family-protection-drawer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.family-protection-drawer-layer,
.family-protection-policy-hint {
  border: 1px solid var(--asset-accent-line);
  border-radius: 10px;
  padding: 12px;
  background: #fffcf5;
}

.family-protection-drawer-layer label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

@keyframes familyManagementDrawerIn {
  from {
    transform: translateX(22px);
    opacity: 0.92;
  }

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

.family-asset-intake-panel,
.family-asset-advisor-panel,
.family-asset-list-panel,
.family-asset-council-panel {
  min-width: 0;
}

.family-asset-photo-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  margin-bottom: 16px;
}

.family-asset-document-upload {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  margin-bottom: 16px;
}

.family-asset-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.family-asset-upload-card {
  display: grid;
  min-width: 0;
  gap: 10px;
  align-content: start;
  border: 1px solid var(--asset-accent-line, #dbe8df);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.family-asset-upload-grid .family-asset-photo-row,
.family-asset-upload-grid .family-asset-document-upload {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  margin-bottom: 0;
}

.family-asset-upload-grid .family-asset-photo-preview,
.family-asset-upload-grid .family-asset-document-dropzone {
  width: 100%;
  min-height: 112px;
  max-height: 148px;
}

.family-asset-upload-grid .family-asset-photo-controls input[type="file"],
.family-asset-upload-grid .family-asset-document-controls input[type="file"] {
  display: block;
  width: 100%;
}

.family-asset-photo-preview {
  display: grid;
  min-height: 138px;
  max-height: 178px;
  place-items: center;
  overflow: hidden;
  border: 1px dashed var(--asset-accent-dash, #cfe2d4);
  border-radius: 8px;
  color: var(--muted);
  background: #fbfcfb;
  cursor: pointer;
  text-align: center;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

.family-asset-photo-preview:hover,
.family-asset-photo-preview:focus-visible {
  border-color: var(--forest);
  outline: none;
  box-shadow: 0 0 0 3px var(--asset-accent-shadow, rgba(31, 93, 58, 0.1));
}

.family-asset-photo-preview.is-dragging {
  border-color: var(--forest);
  background: var(--forest-soft);
  box-shadow: 0 0 0 4px var(--asset-accent-shadow-strong, rgba(31, 93, 58, 0.14));
}

.family-asset-document-dropzone {
  display: grid;
  min-height: 138px;
  max-height: 178px;
  place-items: center;
  overflow: hidden;
  border: 1px dashed var(--asset-accent-dash, #cfe2d4);
  border-radius: 8px;
  padding: 14px;
  color: var(--muted);
  background: #fbfcfb;
  cursor: pointer;
  text-align: center;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

.family-asset-document-dropzone:hover,
.family-asset-document-dropzone:focus-visible,
.family-asset-document-dropzone.is-dragging {
  border-color: var(--forest);
  outline: none;
  background: var(--forest-soft);
  box-shadow: 0 0 0 3px var(--asset-accent-shadow, rgba(31, 93, 58, 0.1));
}

.family-asset-document-dropzone strong,
.family-asset-document-dropzone span {
  display: block;
}

.family-asset-document-dropzone span {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.35;
}

.family-asset-document-preview {
  display: grid;
  grid-template-columns: minmax(74px, 0.34fr) minmax(0, 0.66fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  min-width: 0;
  text-align: left;
}

.family-asset-document-preview img,
.family-asset-document-thumbnail {
  width: 100%;
  min-height: 82px;
  max-height: 128px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.7);
}

.family-asset-document-preview img {
  object-fit: cover;
}

.family-asset-document-thumbnail {
  display: grid;
  place-items: center;
  color: var(--forest);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.family-asset-document-preview strong,
.family-asset-document-preview span {
  overflow-wrap: anywhere;
}

.family-asset-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.family-asset-photo-preview strong,
.family-asset-photo-preview span {
  display: block;
}

.family-asset-photo-preview span {
  margin-top: 6px;
  padding: 0 12px;
  font-size: 12px;
  line-height: 1.35;
}

.family-asset-photo-controls,
.family-asset-document-controls,
.family-document-controls-grid,
.family-profile-form,
.family-asset-form,
.family-asset-council-form,
.family-asset-alert-list,
.family-asset-card-grid,
.family-asset-compact-list,
.family-document-row-list,
.family-settings-list,
.family-planning-checklist {
  display: grid;
  align-content: start;
  gap: 8px;
}

.family-asset-photo-controls,
.family-asset-document-controls {
  min-width: 0;
  overflow: hidden;
}

.family-profile-panel {
  margin-bottom: 16px;
}

.family-profile-header {
  align-items: flex-start;
}

.family-profile-status {
  display: grid;
  gap: 6px;
  justify-items: end;
  min-width: 140px;
}

.family-profile-status small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.family-profile-capsules {
  display: grid;
  gap: 12px;
}

.family-profile-capsule {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--asset-accent-line);
  border-radius: 999px;
  padding: 14px 18px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.family-profile-capsule:hover,
.family-profile-capsule:focus-visible,
.family-profile-capsule[aria-expanded="true"] {
  border-color: var(--forest);
  background: var(--forest-soft);
  box-shadow: 0 5px 16px rgba(25, 67, 43, 0.08);
}

.family-profile-capsule-label,
.family-profile-capsule-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.family-profile-capsule-label strong {
  font-size: 15px;
}

.family-profile-capsule-meta small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.family-profile-completion-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(148, 52, 45, 0.12);
}

.family-profile-completion-dot.is-incomplete {
  background: #b8453d;
}

.family-profile-completion-dot.is-complete {
  background: #258653;
  box-shadow: 0 0 0 3px rgba(37, 134, 83, 0.14);
}

.family-profile-capsule-chevron {
  display: inline-block;
  color: var(--forest);
  font-size: 20px;
  line-height: 1;
  transition: transform 160ms ease;
}

.family-profile-capsule[aria-expanded="true"] .family-profile-capsule-chevron {
  transform: rotate(180deg);
}

.family-profile-section {
  display: grid;
  gap: 16px;
  border: 1px solid var(--asset-accent-line);
  border-radius: 16px;
  padding: 16px;
  background: #f8fbf9;
}

.family-profile-section.is-hidden {
  display: none;
}

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

.family-information-grid {
  grid-template-columns: minmax(0, 1fr);
}

.family-profile-field {
  display: grid;
  min-width: 0;
  gap: 5px;
  border: 1px solid var(--asset-accent-line);
  border-radius: 8px;
  padding: 11px;
  background: #fff;
}

.family-profile-field span,
.family-profile-field small {
  display: block;
}

.family-profile-field span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
}

.family-profile-field small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.family-profile-field textarea {
  width: 100%;
  min-height: 86px;
  resize: vertical;
  line-height: 1.35;
}

.family-profile-field.is-family-name {
  grid-column: 1 / -1;
}

.family-profile-field.is-family-name textarea {
  min-height: 44px;
  resize: none;
}

.family-members-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.family-members-heading h3,
.family-members-heading p {
  margin: 0;
}

.family-members-heading h3 {
  color: var(--ink);
  font-size: 14px;
}

.family-members-heading p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

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

.family-member-row {
  display: grid;
  grid-template-columns:
    minmax(140px, 1fr)
    minmax(140px, 1fr)
    minmax(90px, 0.35fr)
    auto
    auto;
  align-items: end;
  gap: 10px;
  border: 1px solid var(--asset-accent-line);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.family-member-row label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.family-member-row input {
  width: 100%;
  box-sizing: border-box;
}

.family-member-row .family-member-beneficiary-toggle {
  display: flex;
  min-height: 40px;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  white-space: nowrap;
}

.family-member-beneficiary-toggle input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--asset-accent);
}

.family-member-beneficiary-fields {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  border-top: 1px solid var(--asset-accent-line);
  padding-top: 12px;
}

.family-member-beneficiary-fields.is-hidden {
  display: none;
}

.family-member-remove {
  border: 0;
  padding: 10px 6px;
  color: #9b3f38;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.family-member-remove:hover,
.family-member-remove:focus-visible {
  color: #762d28;
  text-decoration: underline;
}

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

.family-advisor-roster {
  display: grid;
  gap: 10px;
  border: 1px solid var(--asset-accent-line);
  border-radius: 14px;
  padding: 14px;
  background: #f8fbf9;
}

.family-advisor-roster-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.family-advisor-roster-heading h3,
.family-advisor-roster-heading p {
  margin: 0;
}

.family-advisor-roster-heading h3 {
  color: var(--ink);
  font-size: 14px;
}

.family-advisor-roster-heading p,
.family-advisor-roster-heading > span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.family-advisor-roster-heading > span {
  white-space: nowrap;
}

.family-advisor-roster-list {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--asset-accent-line);
  border-radius: 12px;
  background: #fff;
}

.family-advisor-roster-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border-bottom: 1px solid var(--asset-accent-line);
}

.family-advisor-roster-row:last-child {
  border-bottom: 0;
}

.family-advisor-roster-identity {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.family-advisor-roster-identity strong,
.family-advisor-roster-identity span,
.family-advisor-roster-identity small {
  overflow-wrap: anywhere;
}

.family-advisor-roster-identity strong {
  color: var(--ink);
  font-size: 12px;
}

.family-advisor-roster-identity span,
.family-advisor-roster-identity small {
  color: var(--muted);
  font-size: 10px;
}

.family-advisor-roster-statuses {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.family-advisor-status {
  border-radius: 999px;
  padding: 5px 8px;
  color: #685f4d;
  background: #f1eee7;
  font-size: 9px;
  font-weight: 850;
  white-space: nowrap;
}

.family-advisor-status.is-approved,
.family-advisor-status.is-active,
.family-advisor-status.is-accepted {
  color: #17683c;
  background: rgba(37, 134, 83, 0.12);
}

.family-advisor-status.is-pending {
  color: #8a4a18;
  background: #fff0d8;
}

.family-advisor-status.is-unapproved,
.family-advisor-status.is-suspended,
.family-advisor-status.is-expired {
  color: #9b351f;
  background: rgba(190, 67, 42, 0.12);
}

.family-advisor-roster-empty {
  display: grid;
  gap: 3px;
  border: 1px dashed var(--asset-accent-line);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
}

.family-advisor-roster-empty strong {
  color: var(--ink);
  font-size: 12px;
}

.family-advisor-roster-empty span {
  color: var(--muted);
  font-size: 10px;
}

.family-advisor-row {
  display: grid;
  gap: 12px;
  border: 1px solid var(--asset-accent-line);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}

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

.family-advisor-fields label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.family-advisor-fields input {
  width: 100%;
  box-sizing: border-box;
}

.family-advisor-access-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid #e4ebe6;
  padding-top: 10px;
}

.family-advisor-access-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.family-advisor-access-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--forest);
}

.family-inheritor-profile-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--asset-accent-line);
}

.family-inheritor-profile-form {
  display: grid;
  gap: 14px;
}

.family-inheritor-profile-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.family-inheritor-profile-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.1;
}

.family-inheritor-profile-header .panel-subtitle {
  margin-top: 6px;
}

.family-inheritor-profile-header .compact-button {
  flex: 0 0 auto;
}

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

.family-inheritor-row {
  display: grid;
  gap: 12px;
  border: 1px solid var(--asset-accent-line);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}

.family-inheritor-row.is-targeted {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px var(--asset-accent-shadow);
}

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

.family-inheritor-fields label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.family-inheritor-fields input {
  width: 100%;
  box-sizing: border-box;
}

.family-inheritor-editor-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 24, 39, 0.28);
}

.family-inheritor-editor-dialog {
  position: relative;
  width: min(560px, 100%);
  border: 1px solid var(--asset-accent-line);
  border-radius: 18px;
  padding: 22px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(17, 24, 39, 0.2);
}

.family-inheritor-editor-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.family-inheritor-editor-close:hover,
.family-inheritor-editor-close:focus-visible {
  color: var(--ink);
  background: #f3f4f6;
  outline: none;
}

.family-inheritor-editor-form {
  display: grid;
  gap: 14px;
}

.family-inheritor-editor-form h3 {
  margin: 0;
  padding-right: 36px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.1;
}

.family-inheritor-editor-actions {
  display: grid;
  justify-items: start;
  gap: 10px;
}

.family-inheritor-remove-action {
  padding: 0;
  border: 0;
  color: #b42318;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.family-inheritor-remove-action:hover,
.family-inheritor-remove-action:focus-visible {
  color: #8a1f14;
  text-decoration: underline;
  outline: none;
}

.user-access-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.user-management-section {
  display: grid;
  gap: 16px;
  border: 1px solid var(--asset-accent-line);
  border-radius: 16px;
  padding: 16px;
  background: #f8fbf9;
}

.user-management-section.is-hidden {
  display: none;
}

.managed-ownership-transfer {
  display: grid;
  gap: 16px;
  margin: 22px 0;
  border: 1px solid rgba(31, 93, 58, 0.18);
  border-radius: 14px;
  padding: 18px;
  background: rgba(236, 246, 239, 0.66);
}

.managed-ownership-transfer h3,
.managed-ownership-transfer p {
  margin: 0;
}

.managed-ownership-transfer > div > p:last-child {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.managed-ownership-transfer .managed-user-fields {
  align-items: end;
}

.audit-trail-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.audit-trail-section {
  display: grid;
  gap: 18px;
  border: 1px solid var(--asset-accent-line);
  border-radius: 16px;
  padding: 16px;
  background: #f8fbf9;
}

.audit-trail-section.is-hidden {
  display: none;
}

.audit-trail-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.audit-trail-heading h2,
.audit-trail-heading p {
  margin-top: 0;
}

.audit-trail-refresh-button {
  flex: 0 0 auto;
  width: auto;
  min-height: 30px;
  padding: 6px 10px;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

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

.audit-trail-summary article {
  display: grid;
  gap: 4px;
  border: 1px solid var(--asset-accent-line);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.audit-trail-summary span,
.audit-trail-summary small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.audit-trail-summary strong {
  color: var(--ink);
  font-size: 22px;
}

.audit-trail-toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 260px));
  gap: 10px;
}

.audit-trail-toolbar label {
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.audit-trail-event-list {
  display: grid;
  max-height: 540px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  border: 1px solid var(--asset-accent-line);
  border-radius: 14px;
  background: #fff;
}

.audit-user-usage {
  display: grid;
  gap: 9px;
  border: 1px solid var(--asset-accent-line);
  border-radius: 14px;
  padding: 13px;
  background: #fff;
}

.audit-user-usage > div:first-child {
  display: grid;
  gap: 2px;
}

.audit-user-usage > div:first-child span {
  color: var(--muted);
  font-size: 10px;
}

.audit-user-usage-list {
  display: grid;
  gap: 6px;
}

.audit-user-usage-list article {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) repeat(3, auto);
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--asset-accent-line);
  padding-top: 8px;
  font-size: 10px;
}

.audit-user-usage-list article > div {
  display: grid;
  gap: 1px;
}

.audit-user-usage-list article span {
  color: var(--muted);
}

.audit-trail-event-list:focus-visible {
  outline: 2px solid var(--paloist-copper);
  outline-offset: 2px;
}

.audit-trail-list-note {
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.audit-trail-event {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--asset-accent-line);
}

.audit-trail-event:last-child {
  border-bottom: 0;
}

.audit-event-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #728078;
  box-shadow: 0 0 0 4px rgba(114, 128, 120, 0.1);
}

.audit-event-dot.is-login {
  background: #256f4a;
  box-shadow: 0 0 0 4px rgba(37, 111, 74, 0.12);
}

.audit-event-dot.is-view {
  background: #356f9e;
  box-shadow: 0 0 0 4px rgba(53, 111, 158, 0.12);
}

.audit-event-dot.is-edit {
  background: #a77516;
  box-shadow: 0 0 0 4px rgba(167, 117, 22, 0.12);
}

.audit-event-dot.is-permission {
  background: #9f3f32;
  box-shadow: 0 0 0 4px rgba(159, 63, 50, 0.12);
}

.audit-event-dot.is-share {
  background: #6c55a3;
  box-shadow: 0 0 0 4px rgba(108, 85, 163, 0.12);
}

.audit-event-dot.is-agent {
  background: #157d79;
  box-shadow: 0 0 0 4px rgba(21, 125, 121, 0.12);
}

.audit-event-copy,
.audit-event-copy > div {
  min-width: 0;
}

.audit-event-copy > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.audit-event-copy strong {
  overflow-wrap: anywhere;
  font-size: 12px;
}

.audit-event-copy p,
.audit-trail-event time {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.audit-trail-event time {
  margin: 0;
  white-space: nowrap;
}

.audit-event-type {
  border-radius: 999px;
  padding: 3px 7px;
  color: var(--forest);
  background: var(--forest-soft);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.audit-trail-empty {
  display: grid;
  gap: 4px;
  border: 1px dashed var(--asset-accent-line);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  background: #fff;
}

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

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

.managed-user-search {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.managed-user-search label {
  display: grid;
  width: min(100%, 440px);
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.managed-user-search input {
  width: 100%;
  box-sizing: border-box;
}

.managed-user-search > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.managed-user-row.is-filtered-out,
.managed-asset-access-panel.is-filtered-out {
  display: none;
}

.managed-asset-access-panel {
  display: grid;
  gap: 14px;
  margin: -2px 8px 12px;
  border: 1px solid rgba(73, 61, 212, 0.2);
  border-radius: 14px;
  padding: 16px;
  background: rgba(73, 61, 212, 0.035);
}

.managed-asset-access-heading,
.managed-asset-access-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.managed-asset-access-heading > div {
  display: grid;
  gap: 3px;
}

.managed-asset-access-heading span,
.managed-asset-access-actions span,
.managed-asset-primary small {
  color: var(--muted);
  font-size: 10px;
}

.managed-asset-access-list {
  display: grid;
  gap: 8px;
}

.managed-asset-access-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(360px, 2fr);
  align-items: center;
  gap: 16px;
  border: 1px solid var(--asset-accent-line);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
  opacity: 0.72;
}

.managed-asset-access-row.is-granted {
  border-color: rgba(73, 61, 212, 0.28);
  background: #fff;
  opacity: 1;
}

.managed-asset-primary {
  display: flex;
  align-items: center;
  gap: 10px;
}

.managed-asset-primary > input[type="checkbox"],
.managed-asset-grant-options input[type="checkbox"] {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
}

.managed-asset-primary span {
  display: grid;
  gap: 2px;
}

.managed-asset-grant-options {
  display: grid;
  grid-template-columns: repeat(5, max-content);
  justify-content: flex-end;
  gap: 8px 16px;
}

.managed-asset-grant-options label {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

@media (max-width: 900px) {
  .managed-asset-access-row {
    grid-template-columns: 1fr;
  }

  .managed-asset-grant-options {
    justify-content: flex-start;
  }

  .managed-asset-access-heading,
  .managed-asset-access-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .managed-asset-grant-options {
    grid-template-columns: repeat(2, minmax(110px, 1fr));
  }

  .family-advisor-roster-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .family-advisor-roster-statuses {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

.managed-user-row {
  display: grid;
  grid-template-columns:
    minmax(220px, 1.2fr)
    minmax(180px, 0.8fr)
    minmax(220px, 1fr)
    minmax(110px, auto)
    auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--asset-accent-line);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}

.managed-user-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: center;
}

.managed-user-identity strong,
.managed-user-identity small {
  display: block;
}

.managed-user-identity small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.managed-user-row > label,
.managed-user-fields label {
  display: grid;
  min-width: 0;
  align-self: center;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.managed-user-row input,
.managed-user-row select,
.managed-user-fields input,
.managed-user-fields select {
  width: 100%;
  box-sizing: border-box;
}

.managed-user-status {
  display: inline-flex;
  align-items: center;
  align-self: center;
  justify-content: center;
  justify-self: start;
  min-width: 72px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 850;
}

.managed-user-status.is-active {
  color: #17683c;
  background: rgba(37, 134, 83, 0.12);
}

.managed-user-status.is-suspended {
  color: #9b351f;
  background: rgba(190, 67, 42, 0.12);
}

.managed-user-actions {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.managed-user-actions .ghost-button {
  min-width: max-content;
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 12px;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.1;
  word-break: normal;
  overflow-wrap: normal;
}

.managed-user-row.has-unsaved-changes {
  border-color: var(--paloist-copper);
  box-shadow: 0 0 0 2px var(--asset-accent-shadow);
}

.managed-user-row select:disabled {
  opacity: 0.68;
  color: var(--muted);
  background: #f4f5f7;
}

.app-shell.family-mode #family-asset-iq-view .managed-user-actions .ghost-button:disabled {
  border-color: #d9dde5;
  color: #9299a8;
  background: #f4f5f7;
  box-shadow: none;
}

.managed-user-create-form {
  display: grid;
  gap: 14px;
  border: 1px solid var(--asset-accent-line);
  border-radius: 16px;
  padding: 16px;
  background: #f8fbf9;
}

.managed-invitation-access {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--asset-accent-line);
  padding-top: 14px;
}

.managed-invitation-access.is-hidden {
  display: none;
}

.managed-user-create-heading h3,
.managed-user-create-heading p {
  margin: 0;
}

.managed-user-create-heading h3 {
  color: var(--ink);
  font-size: 15px;
}

.managed-user-create-heading p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

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

.managed-user-create-form > .ghost-button {
  justify-self: start;
}

.managed-invite-message {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.managed-invite-audio {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.managed-invite-audio small {
  font-size: 10px;
  font-weight: 600;
}

.managed-invite-audio input {
  width: 100%;
  box-sizing: border-box;
}

.managed-invite-message textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
}

.created-invitation-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(240px, 1.4fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(37, 134, 83, 0.3);
  border-radius: 14px;
  padding: 14px;
  background: rgba(37, 134, 83, 0.08);
}

.created-invitation-card strong,
.created-invitation-card span {
  display: block;
}

.created-invitation-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.created-invitation-card input {
  width: 100%;
  box-sizing: border-box;
  font-size: 11px;
}

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

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

.managed-invitation-list h3 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
}

.managed-invitation-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--asset-accent-line);
  border-radius: 12px;
  padding: 11px 13px;
  background: #fff;
}

.managed-invitation-identity {
  min-width: 0;
}

.managed-invitation-identity small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.managed-invitation-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

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

.managed-invitation-row > div > span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.invitation-status {
  border-radius: 999px;
  padding: 5px 9px;
  color: #8a4a18;
  background: #fff0d8;
  font-size: 10px;
  font-weight: 850;
}

.invitation-status.is-accepted {
  color: #1e6940;
  background: #e3f3e9;
}

.invitation-status.is-expired {
  color: #8d3d38;
  background: #f8e5e3;
}

.first-run-welcome {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 28, 22, 0.58);
  backdrop-filter: blur(5px);
}

.first-run-welcome-card {
  display: grid;
  width: min(100%, 560px);
  gap: 14px;
  border: 1px solid rgba(73, 61, 212, 0.24);
  border-radius: 22px;
  padding: 28px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(17, 28, 22, 0.24);
}

.first-run-welcome-card h2,
.first-run-welcome-card p {
  margin: 0;
}

.first-run-welcome-message {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.first-run-welcome-audio {
  display: flex;
  align-items: center;
  gap: 10px;
}

.first-run-welcome-audio span {
  color: var(--muted);
  font-size: 10px;
}

.first-run-welcome-continue {
  justify-self: start;
}

.invite-view {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 10%, rgba(65, 114, 78, 0.15), transparent 34%),
    #f3f6f3;
}

.invite-panel {
  width: min(100%, 520px);
  box-sizing: border-box;
  border: 1px solid #dce6df;
  border-radius: 24px;
  padding: clamp(24px, 5vw, 40px);
  background: #fff;
  box-shadow: 0 22px 55px rgba(22, 52, 32, 0.12);
}

.invite-panel h1 {
  margin: 10px 0 8px;
  color: #173724;
}

.invite-welcome-message {
  margin: 18px 0;
  border-left: 3px solid var(--forest);
  padding: 12px 14px;
  color: #425349;
  background: #f3f8f4;
  font-style: italic;
  line-height: 1.55;
}

.invite-login-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--forest);
  font-weight: 850;
}

.family-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.family-profile-actions span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.family-asset-photo-controls .ghost-button,
.family-asset-document-controls .ghost-button {
  width: 100%;
}

.family-asset-photo-controls label,
.family-asset-document-controls label,
.family-asset-form label,
.family-asset-council-form label {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.family-asset-photo-controls input,
.family-asset-document-controls input,
.family-document-controls-grid select,
.family-asset-form input,
.family-asset-form select,
.family-asset-form textarea,
.family-asset-council-form select,
.family-asset-council-form textarea {
  margin-top: 5px;
  padding: 10px;
}

.family-asset-appraisal-fields,
.family-asset-number-with-unit {
  display: grid;
  gap: 8px;
}

.family-asset-appraisal-fields {
  grid-template-columns: minmax(0, 1fr) minmax(96px, 0.7fr);
  align-items: end;
}

.family-asset-number-with-unit {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin-top: 5px;
}

.family-asset-number-with-unit input {
  margin-top: 0;
}

.family-asset-number-with-unit small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.family-asset-council-submit {
  border-color: var(--forest);
  color: #fff;
  background: var(--forest);
  font-size: 13px;
  white-space: nowrap;
}

.family-council-hub {
  display: grid;
  gap: 16px;
}

.access-council-launcher {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--asset-accent-line, #dbe8df);
  border-radius: 16px;
  background: linear-gradient(135deg, #fff 0%, var(--forest-soft) 100%);
}

.access-council-launcher > div {
  display: grid;
  gap: 4px;
}

.access-council-launcher span {
  color: var(--muted);
  font-size: 13px;
}

.family-council-hub-grid,
.family-council-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.family-council-expert-tile {
  display: grid;
  min-width: 0;
  min-height: 138px;
  gap: 8px;
  align-content: start;
  padding: 16px;
  border: 1px solid var(--asset-accent-line, #dbe8df);
  border-radius: 14px;
  color: var(--ink);
  text-align: left;
  background: #fff;
}

.family-council-expert-tile:hover,
.family-council-expert-tile:focus-visible {
  border-color: var(--forest);
  background: var(--forest-soft);
  transform: translateY(-1px);
}

.family-council-expert-tile strong {
  font-size: 15px;
}

.family-council-expert-tile small,
.family-council-setting-card small {
  color: var(--muted);
  line-height: 1.45;
}

.family-council-provider {
  justify-self: start;
  padding: 4px 8px;
  border-radius: 999px;
  color: #2a5138;
  background: #e8f4eb;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.family-council-provider.is-anthropic {
  color: #6c3e1f;
  background: #f8eadf;
}

.family-council-evidence {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.family-council-evidence > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.family-council-evidence span {
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--forest);
  background: var(--forest-soft);
  font-weight: 800;
}

.family-council-settings {
  display: grid;
  gap: 16px;
}

.family-council-settings form {
  display: grid;
  gap: 16px;
}

.family-council-setting-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.family-council-setting-card.is-active {
  border-color: var(--asset-accent-line, #bdd7c4);
  background: #fff;
}

.family-council-setting-card > label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.family-council-setting-card > label span {
  display: grid;
  gap: 4px;
}

.family-council-setting-card > div {
  display: flex;
  gap: 6px;
  align-items: center;
}

.family-council-setting-card .family-council-provider {
  margin-right: auto;
}

.family-council-setting-card .icon-button {
  width: 32px;
  height: 32px;
}

.family-council-instructions {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.family-council-instructions textarea {
  width: 100%;
}

.council-mode-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--asset-accent-line, #dbe8df);
  border-radius: 12px;
  background: var(--forest-soft);
}

.council-mode-controls label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.council-mode-controls select {
  min-width: 0;
}

@media (max-width: 980px) {
  .family-council-hub-grid,
  .family-council-settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .family-council-hub-grid,
  .family-council-settings-grid,
  .council-mode-controls {
    grid-template-columns: minmax(0, 1fr);
  }

  .access-council-launcher {
    align-items: stretch;
    flex-direction: column;
  }
}

.family-asset-field-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.family-asset-ai-value-button {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid var(--asset-accent-dash, #cfe2d4);
  border-radius: 8px;
  color: var(--forest);
  background: var(--forest-soft);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.family-asset-ai-value-button:hover,
.family-asset-ai-value-button:focus-visible {
  border-color: var(--forest);
  outline: none;
  box-shadow: 0 0 0 3px var(--asset-accent-shadow, rgba(31, 93, 58, 0.1));
}

.family-asset-ai-value-button:disabled {
  color: var(--muted);
  background: #f5f7f5;
  cursor: not-allowed;
  opacity: 0.7;
}

.family-asset-document-list {
  display: grid;
  gap: 8px;
}

.family-asset-document-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
}

.family-asset-document-row > div {
  min-width: 0;
}

.family-asset-document-row strong,
.family-asset-document-row span {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.family-asset-document-row span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.family-asset-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.family-asset-form-actions button {
  min-width: 120px;
}

.family-asset-field-help {
  display: grid;
  align-content: center;
  border: 1px solid var(--asset-accent-line);
  border-radius: 8px;
  padding: 10px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
  line-height: 1.35;
}

.family-asset-field-help strong,
.family-asset-field-help span {
  display: block;
}

.family-asset-field-help strong {
  color: var(--forest);
}

#family-asset-iq-view .family-asset-form-actions button[type="submit"] {
  border-color: var(--forest);
  color: #fff;
  background: var(--forest);
}

.family-asset-question-list {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  border: 1px solid var(--asset-accent-line, #dbe8df);
  border-radius: 8px;
  padding: 12px;
  background: var(--forest-soft);
}

.family-asset-question-list strong {
  color: var(--forest);
}

.family-asset-question-list p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.family-asset-edit-note {
  margin: 0 0 14px;
  border: 1px solid var(--asset-accent-line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--muted);
  background: #fbfdff;
  font-size: 13px;
  line-height: 1.45;
}

.family-real-estate-panel {
  display: grid;
  gap: 14px;
  border: 1px solid #d8ded5;
  border-radius: 12px;
  padding: 16px;
  background: #faf7f1;
}

.family-real-estate-heading,
.family-address-validation-row,
.family-real-estate-ownership > div:first-child {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.family-real-estate-heading > div,
.family-real-estate-ownership > div:first-child {
  display: grid;
  gap: 3px;
}

.family-real-estate-heading strong {
  color: var(--ink);
  font-size: 17px;
}

.family-real-estate-heading small,
.family-real-estate-ownership span,
.family-real-estate-deed-upload small,
.family-address-validation-row span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.family-address-status {
  flex: 0 0 auto;
  border: 1px solid #d7dbd5;
  border-radius: 999px;
  padding: 6px 10px;
  color: #606c64;
  background: #fff;
  font-size: 11px;
  font-weight: 850;
}

.family-address-status.is-verified {
  border-color: #b9d9c0;
  color: #176137;
  background: #edf8ef;
}

.family-address-status.is-needs_review {
  border-color: #e8c98e;
  color: #83591c;
  background: #fff7e7;
}

.family-real-estate-address-grid,
.family-real-estate-record-grid,
.family-real-estate-money-grid {
  display: grid;
  gap: 10px;
}

.family-real-estate-address-grid,
.family-real-estate-record-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.family-real-estate-money-grid {
  grid-template-columns: minmax(0, 1fr) minmax(100px, 0.55fr) minmax(0, 1fr);
}

.family-address-validation-row {
  align-items: center;
}

.family-address-validation-row button {
  flex: 0 0 auto;
}

.family-real-estate-ownership {
  display: grid;
  gap: 12px;
  border: 1px solid #d9ded6;
  border-radius: 10px;
  padding: 13px;
  background: #fffaf4;
}

.family-real-estate-equity {
  margin: 0;
  border: 1px solid #bcdac6;
  border-radius: 999px;
  padding: 7px 11px;
  color: #276243;
  background: #f6fcf7;
  font-size: 11px;
  font-weight: 750;
}

.family-real-estate-deed-upload {
  border-top: 1px solid #dddeda;
  padding-top: 12px;
}

.family-real-estate-deed-upload label,
.family-real-estate-deed-upload small {
  display: block;
}

.family-real-estate-deed-upload input {
  width: 100%;
}

.family-management-drawer .family-real-estate-address-grid,
.family-management-drawer .family-real-estate-record-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 760px) {
  .family-real-estate-heading,
  .family-address-validation-row {
    align-items: stretch;
    flex-direction: column;
  }

  .family-real-estate-address-grid,
  .family-real-estate-record-grid,
  .family-real-estate-money-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.family-asset-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.family-asset-mini-grid > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.family-asset-breakdown-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.family-asset-breakdown-row,
.family-asset-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.family-asset-breakdown-row span {
  color: var(--muted);
}

.family-asset-breakdown-row strong {
  color: var(--ink);
}

.family-asset-card {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--forest);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.family-asset-card-image {
  display: grid;
  width: 108px;
  min-height: 108px;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: var(--forest-soft);
}

.family-asset-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.family-asset-card-image span {
  color: var(--forest);
  font-size: 32px;
  font-weight: 900;
}

.family-asset-card header strong,
.family-asset-card header span {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.family-asset-card header span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.family-asset-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.family-asset-card-actions .ghost-button {
  flex: 0 1 auto;
}

.family-asset-compact-row,
.family-document-row,
.family-setting-row,
.family-planning-checklist > div {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  border: 1px solid var(--asset-accent-line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.family-document-row > div {
  min-width: 0;
  flex: 1 1 auto;
}

.family-document-row strong,
.family-document-row span,
.family-document-row small {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.family-asset-compact-row span,
.family-document-row span,
.family-setting-row span,
.family-planning-checklist span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.family-document-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.family-asset-compact-row > strong,
.family-document-row > span,
.family-setting-row > strong {
  flex: 0 0 auto;
  max-width: 36%;
  color: var(--forest);
  font-weight: 850;
  text-align: right;
}

.family-document-library-layout {
  display: grid;
  margin-bottom: 16px;
}

.family-document-control-panel {
  display: grid;
  gap: 14px;
}

.family-document-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.family-document-filter-buttons .ghost-button {
  border-color: var(--asset-accent-line);
  background: #fff;
}

.family-document-filter-buttons .ghost-button.is-active {
  border-color: var(--forest);
  background: var(--forest);
  color: #fff;
}

.family-document-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 280px);
  gap: 12px;
  align-items: end;
}

.family-document-search-row label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.family-document-controls-grid {
  display: grid;
  grid-template-columns: minmax(210px, 280px);
}

.family-document-controls-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.family-document-search-summary {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.family-document-upload-drawer {
  width: min(620px, calc(100vw - 28px));
}

.family-document-drawer-body {
  display: grid;
  gap: 14px;
}

.family-document-drawer-intro {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.family-document-estate-layout {
  display: grid;
  margin-bottom: 16px;
}

.family-document-bulk-upload {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(420px, 1.28fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 16px;
  border-color: #c7ccfb;
  background:
    linear-gradient(135deg, rgba(238, 240, 254, 0.82), rgba(255, 255, 255, 0.96)),
    #fff;
}

.family-document-bulk-copy,
.family-document-bulk-controls {
  display: grid;
  align-content: start;
  gap: 12px;
}

.family-document-bulk-copy h2,
.family-document-bulk-copy p {
  margin: 0;
}

.family-document-bulk-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.family-document-bulk-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.family-document-bulk-benefits span {
  border: 1px solid #c7ccfb;
  border-radius: 999px;
  padding: 5px 8px;
  color: #4046a8;
  background: #fff;
  font-size: 10px;
  font-weight: 800;
}

.family-document-bulk-type {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.family-document-bulk-type select {
  width: 100%;
}

.family-library-document-dropzone {
  display: grid;
  min-height: 150px;
  place-items: center;
  border: 1px dashed var(--asset-accent-dash, #cfe2d4);
  border-radius: 8px;
  padding: 18px;
  color: var(--muted);
  background: #fbfcfb;
  cursor: pointer;
  text-align: center;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

.family-document-bulk-dropzone {
  min-height: 190px;
  gap: 12px;
  border-width: 2px;
  border-radius: 14px;
  padding: 22px;
}

.family-document-bulk-dropzone.is-uploading {
  cursor: wait;
  opacity: 0.82;
}

.family-document-bulk-upload-icon {
  display: grid !important;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--paloist-copper, #4b52d3);
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
}

.family-document-bulk-choose {
  position: relative;
  z-index: 1;
  cursor: pointer;
}

.family-document-bulk-choose input {
  display: none;
}

.family-document-bulk-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.family-document-bulk-actions button {
  min-width: 150px;
}

.family-document-upload-progress {
  display: grid;
  gap: 7px;
  border: 1px solid #dfe3eb;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}

.family-document-upload-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.family-document-upload-progress strong,
.family-document-upload-progress span,
.family-document-upload-progress small {
  font-size: 11px;
}

.family-document-upload-progress span,
.family-document-upload-progress small {
  color: var(--muted);
}

.family-document-upload-progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #eceef4;
}

.family-document-upload-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--paloist-copper, #4b52d3);
  transition: width 180ms ease;
}

@media (max-width: 980px) {
  .family-document-bulk-upload {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .family-document-dashboard-grid {
    grid-auto-columns: minmax(145px, 1fr);
    grid-auto-flow: column;
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .family-document-upload-progress > div:first-child {
    align-items: flex-start;
    flex-direction: column;
  }
}

.family-library-document-dropzone:hover,
.family-library-document-dropzone:focus-visible,
.family-library-document-dropzone.is-dragging {
  border-color: var(--forest);
  outline: none;
  background: var(--forest-soft);
  box-shadow: 0 0 0 3px var(--asset-accent-shadow);
}

.family-library-document-dropzone strong,
.family-library-document-dropzone span {
  display: block;
}

.family-library-document-dropzone span {
  max-width: 640px;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.45;
}

.family-document-upload-actions,
.family-document-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.family-document-upload-actions input {
  display: none;
}

.family-document-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.family-document-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--asset-accent-line);
  border-left: 3px solid var(--forest);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  align-content: start;
}

.family-document-card header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.family-document-card header > div {
  min-width: 0;
}

.family-document-card h2 {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.15;
}

.family-document-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.family-document-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.family-document-meta-grid div {
  min-width: 0;
  border: 1px solid var(--asset-accent-line);
  border-radius: 8px;
  padding: 8px;
  background: var(--asset-accent-soft);
}

.family-document-meta-grid dt {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.family-document-meta-grid dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.family-document-card-actions {
  margin-top: auto;
}

.family-document-card-actions .ghost-button {
  flex: 1 1 132px;
  text-align: center;
}

.family-report-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 16px;
  align-items: start;
}

.family-report-builder-panel,
.family-report-guide-panel {
  display: grid;
  gap: 14px;
}

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

.family-report-control-grid label,
.family-report-static-control {
  display: grid;
  min-width: 0;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.family-report-checkbox {
  grid-column: span 2;
  display: flex !important;
  align-items: center;
  gap: 9px !important;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 253, 248, 0.72);
}

.family-report-checkbox input {
  width: 16px !important;
  height: 16px;
}

.family-report-static-control {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 253, 248, 0.72);
}

.family-report-static-control strong {
  color: var(--ink);
  font-size: 14px;
}

.family-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.family-report-guide-list {
  display: grid;
  gap: 9px;
}

.family-report-guide-list > div {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 253, 248, 0.74);
}

.family-report-guide-list strong {
  color: var(--ink);
}

.family-report-guide-list span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.family-report-preview-shell {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(41, 36, 31, 0.06);
}

.family-report-document {
  color: #111;
  background: #fff;
  font-family: Georgia, "Times New Roman", serif;
}

.family-report-document-header,
.family-report-section > header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 2px solid #111;
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.family-report-document-header span {
  display: block;
  margin-bottom: 6px;
  color: #555;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.family-report-document-header h2,
.family-report-section h3,
.family-report-asset-card h4 {
  margin: 0;
  color: #111;
}

.family-report-document-header h2 {
  font-size: 30px;
  line-height: 1.05;
}

.family-report-document-header p,
.family-report-section p,
.family-report-asset-card p {
  margin: 6px 0 0;
  color: #333;
  line-height: 1.45;
}

.family-report-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 20px;
}

.family-report-meta-grid div,
.family-report-policy-summary,
.family-report-note-list,
.family-report-asset-card,
.family-report-empty {
  border: 1px solid #999;
  background: #fff;
}

.family-report-meta-grid div,
.family-report-policy-summary,
.family-report-note-list,
.family-report-empty {
  padding: 10px;
}

.family-report-meta-grid dt,
.family-report-asset-card dt {
  color: #555;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.family-report-meta-grid dd,
.family-report-asset-card dd {
  margin: 3px 0 0;
  color: #111;
  font-weight: 700;
}

.family-report-policy-summary,
.family-report-note-list,
.family-report-empty {
  margin-bottom: 18px;
}

.family-report-note-list ul {
  margin: 8px 0 0 18px;
  padding: 0;
}

.family-report-note-list li {
  margin: 4px 0;
  color: #222;
}

.family-report-section {
  margin-top: 22px;
}

.family-report-section > header strong {
  white-space: nowrap;
}

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

.family-report-asset-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
}

.family-report-asset-photo {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border: 1px solid #999;
  color: #111;
  background: #f6f6f6;
  overflow: hidden;
  font-size: 30px;
  font-weight: 700;
}

.family-report-asset-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

.family-report-asset-body {
  min-width: 0;
}

.family-report-asset-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
  margin: 10px 0 0;
}

.family-report-asset-card h4,
.family-report-asset-card p,
.family-report-asset-card dd {
  overflow-wrap: anywhere;
}

.family-planning-panel {
  min-height: 300px;
}

.family-inheritance-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

.family-inheritance-review-stack,
.family-inheritance-bottom-list {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.family-beneficiary-grid,
.family-inheritance-asset-list {
  display: grid;
  gap: 10px;
}

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

.family-beneficiary-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  min-height: 96px;
  border: 1px solid var(--asset-accent-line);
  border-radius: 8px;
  padding: 10px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.family-beneficiary-card.is-active {
  border-color: var(--forest);
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 2px var(--asset-accent-shadow);
}

.family-beneficiary-select {
  display: grid;
  gap: 5px;
  width: 100%;
  min-width: 0;
  padding: 2px;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.family-beneficiary-select:focus-visible,
.family-beneficiary-edit-button:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 2px;
}

.family-beneficiary-select:hover,
.family-beneficiary-select:focus-visible {
  border-color: transparent;
  color: inherit;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.family-beneficiary-select span,
.family-beneficiary-select small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.family-beneficiary-select span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.family-beneficiary-select strong {
  color: var(--forest);
  font-size: 20px;
  line-height: 1.1;
}

.family-beneficiary-select small {
  color: var(--muted);
  font-size: 12px;
}

.family-beneficiary-edit-button {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--asset-accent-line);
  border-radius: 999px;
  color: var(--forest);
  background: #fff;
  cursor: pointer;
}

.family-beneficiary-edit-button:hover {
  border-color: var(--forest);
  background: #fff;
}

.family-beneficiary-edit-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.family-inheritance-asset-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  border: 1px solid var(--asset-accent-line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.family-inheritance-asset-row > div,
.family-estate-asset-row > div,
.family-insurance-asset-row > div {
  min-width: 0;
}

.family-inheritance-asset-row strong,
.family-inheritance-asset-row span,
.family-estate-asset-row strong,
.family-estate-asset-row span,
.family-estate-asset-row small,
.family-insurance-asset-row strong,
.family-insurance-asset-row span,
.family-insurance-asset-row small {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.family-inheritance-asset-row span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.family-inheritance-asset-row > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.family-inheritance-asset-row > div:last-child strong {
  flex-basis: 100%;
  color: var(--forest);
  text-align: right;
}

.family-estate-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

.family-estate-document-dropzone {
  display: grid;
  min-height: 168px;
  place-items: center;
  border: 1px dashed var(--asset-accent-dash, #cfe2d4);
  border-radius: 8px;
  padding: 18px;
  color: var(--muted);
  background: #fbfcfb;
  cursor: pointer;
  text-align: center;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

.family-estate-document-dropzone:hover,
.family-estate-document-dropzone:focus-visible,
.family-estate-document-dropzone.is-dragging {
  border-color: var(--forest);
  outline: none;
  background: var(--forest-soft);
  box-shadow: 0 0 0 3px var(--asset-accent-shadow);
}

.family-estate-document-dropzone strong,
.family-estate-document-dropzone span {
  display: block;
}

.family-estate-document-dropzone span {
  max-width: 520px;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.45;
}

.family-estate-upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.family-estate-upload-actions input {
  display: none;
}

.family-estate-asset-list,
.family-estate-analysis-list {
  display: grid;
  gap: 10px;
}

.family-estate-asset-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  border: 1px solid var(--asset-accent-line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.family-estate-asset-row span,
.family-estate-asset-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.family-estate-asset-row > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.family-estate-asset-row > div:last-child strong {
  flex-basis: 100%;
  color: var(--forest);
  text-align: right;
}

.family-estate-analysis-card {
  border: 1px solid var(--asset-accent-line);
  border-left: 3px solid var(--forest);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.family-estate-analysis-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.family-estate-analysis-card header > div,
.family-insurance-analysis-card header > div {
  min-width: 0;
}

.family-estate-analysis-card strong,
.family-estate-analysis-card span,
.family-insurance-analysis-card strong,
.family-insurance-analysis-card span {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.family-estate-analysis-card header span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.family-estate-analysis-card p {
  margin: 10px 0;
  color: var(--muted);
  line-height: 1.45;
}

.family-estate-analysis-list-block {
  margin-top: 10px;
}

.family-estate-analysis-list-block > strong {
  color: var(--forest);
  font-size: 12px;
  text-transform: uppercase;
}

.family-estate-analysis-list-block ul {
  margin: 6px 0 0;
  padding-left: 18px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.family-insurance-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

.family-insurance-document-dropzone {
  display: grid;
  min-height: 168px;
  place-items: center;
  border: 1px dashed var(--asset-accent-dash, #cfe2d4);
  border-radius: 8px;
  padding: 18px;
  color: var(--muted);
  background: #fbfcfb;
  cursor: pointer;
  text-align: center;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

.family-insurance-document-dropzone:hover,
.family-insurance-document-dropzone:focus-visible,
.family-insurance-document-dropzone.is-dragging {
  border-color: var(--forest);
  outline: none;
  background: var(--forest-soft);
  box-shadow: 0 0 0 3px var(--asset-accent-shadow);
}

.family-insurance-document-dropzone strong,
.family-insurance-document-dropzone span {
  display: block;
}

.family-insurance-document-dropzone span {
  max-width: 540px;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.45;
}

.family-insurance-upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.family-insurance-upload-actions input {
  display: none;
}

.family-insurance-asset-list,
.family-insurance-analysis-list {
  display: grid;
  gap: 10px;
}

.family-insurance-asset-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  border: 1px solid var(--asset-accent-line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.family-insurance-asset-row span,
.family-insurance-asset-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.family-insurance-asset-row > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.family-insurance-asset-row > div:last-child strong {
  flex-basis: 100%;
  color: var(--forest);
  text-align: right;
}

.family-insurance-analysis-card {
  border: 1px solid var(--asset-accent-line);
  border-left: 3px solid var(--forest);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.family-insurance-analysis-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.family-insurance-analysis-card header span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.family-insurance-analysis-card p {
  margin: 10px 0;
  color: var(--muted);
  line-height: 1.45;
}

.family-policy-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.family-policy-detail-grid div {
  border: 1px solid var(--asset-accent-line);
  border-radius: 8px;
  padding: 8px;
  background: var(--asset-accent-soft);
}

.family-policy-detail-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.family-policy-detail-grid strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 13px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.family-planning-checklist span {
  font-weight: 800;
  white-space: nowrap;
}

.family-asset-card p {
  margin: 8px 0;
  color: var(--muted);
  line-height: 1.45;
}

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

.family-asset-meta-grid span {
  border-radius: 8px;
  padding: 7px 8px;
  color: var(--muted);
  background: var(--forest-soft);
  font-size: 12px;
}

.family-asset-expert-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.family-asset-council-result .summary-card {
  margin-top: 12px;
}

.summary-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.45;
}

.expert-card,
.summary-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.expert-card h3,
.summary-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.expert-card p,
.summary-card p {
  margin: 0;
  color: var(--muted);
}

.family-asset-photo-preview,
.family-asset-document-dropzone,
.family-library-document-dropzone,
.family-estate-document-dropzone,
.family-insurance-document-dropzone {
  position: relative;
  outline-offset: 2px;
}

.family-asset-photo-preview::after,
.family-asset-document-dropzone::after,
.family-library-document-dropzone::after,
.family-estate-document-dropzone::after,
.family-insurance-document-dropzone::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 6px;
  pointer-events: none;
}

.family-asset-photo-preview:hover::after,
.family-asset-document-dropzone:hover::after,
.family-library-document-dropzone:hover::after,
.family-estate-document-dropzone:hover::after,
.family-insurance-document-dropzone:hover::after {
  border: 1px solid rgba(31, 79, 134, 0.12);
}

.app-shell.family-mode,
.council-drawer.asset-council-theme {
  --paloist-charcoal: #29241f;
  --paloist-charcoal-soft: #3f3b36;
  --paloist-cream: #f3eee5;
  --paloist-cream-light: #fbf7f0;
  --paloist-paper: #fffdf8;
  --paloist-copper: #b46b3f;
  --paloist-copper-dark: #8f4f2e;
  --paloist-gold: #cba246;
  --paloist-taupe: #8a8176;
  --paloist-line: #ded4c6;
  --paloist-line-strong: #cbbba8;
  --forest: var(--paloist-copper);
  --forest-dark: var(--paloist-copper-dark);
  --forest-soft: #f8eadc;
  --ink: #27221d;
  --muted: #776f65;
  --line: var(--paloist-line);
  --line-strong: var(--paloist-line-strong);
  --panel: var(--paloist-paper);
  --page: var(--paloist-cream);
  --asset-accent-soft: #f8eadc;
  --asset-accent-line: #d7b99d;
  --asset-accent-dash: #c98f64;
  --asset-accent-shadow: rgba(180, 107, 63, 0.14);
  --asset-accent-shadow-strong: rgba(180, 107, 63, 0.2);
  --shadow-soft: 0 1px 2px rgba(51, 41, 31, 0.08);
  --shadow-lift: 0 16px 34px rgba(51, 41, 31, 0.13);
}

.app-shell.family-mode {
  background:
    linear-gradient(180deg, rgba(251, 247, 240, 0.96), rgba(243, 238, 229, 0.98)),
    var(--paloist-cream);
}

.app-shell.family-mode .sidebar {
  border-right-color: var(--paloist-line-strong);
  color: var(--paloist-cream-light);
  background: var(--paloist-charcoal);
  box-shadow: 16px 0 44px rgba(41, 36, 31, 0.08);
}

.app-shell.family-mode .sidebar-brand {
  border-bottom-color: rgba(251, 247, 240, 0.14);
}

.app-shell.family-mode .sidebar-brand-main {
  color: var(--paloist-cream-light);
}

.app-shell.family-mode .sidebar-brand-main strong {
  color: var(--paloist-cream-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.app-shell.family-mode .sidebar-brand-main span,
.app-shell.family-mode .sidebar-footer span,
.app-shell.family-mode .sidebar-footer strong,
.app-shell.family-mode #account-button {
  color: rgba(251, 247, 240, 0.7);
}

.app-shell.family-mode .brand-mark {
  color: #fff;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.32), transparent 28%),
    linear-gradient(135deg, #4f46e5, #8b5cf6);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.28);
}

.app-shell.family-mode .nav-list {
  gap: 8px;
  padding: 20px 16px;
}

.app-shell.family-mode .nav-item {
  border-color: transparent;
  color: rgba(251, 247, 240, 0.72);
  background: transparent;
  font-weight: 760;
}

.app-shell.family-mode .nav-item:hover,
.app-shell.family-mode .nav-item:focus-visible,
.app-shell.family-mode .family-nav-list .nav-item.is-active {
  border-color: rgba(203, 162, 70, 0.46);
  color: var(--paloist-cream-light);
  background: rgba(180, 107, 63, 0.22);
  box-shadow: inset 3px 0 0 var(--paloist-gold);
}

.app-shell.family-mode .sidebar-footer {
  border-top-color: rgba(251, 247, 240, 0.14);
}

.app-shell.family-mode .avatar {
  color: var(--paloist-charcoal);
  background: var(--paloist-gold);
}

.app-shell.family-mode .workspace {
  background:
    radial-gradient(circle at 100% 0%, rgba(180, 107, 63, 0.08), transparent 28%),
    var(--paloist-cream);
}

.app-shell.family-mode .topbar {
  border-bottom: 1px solid var(--paloist-line);
  padding-bottom: 18px;
}

.app-shell.family-mode.mobile-demo-active .topbar {
  display: none;
}

.app-shell.family-mode.mobile-demo-active #family-asset-iq-view {
  padding-top: 20px;
}

.app-shell.family-mode .topbar .eyebrow,
#family-asset-iq-view .eyebrow,
.council-drawer.asset-council-theme .eyebrow {
  color: var(--paloist-copper);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.app-shell.family-mode .topbar h1,
#family-asset-iq-view .panel h2,
#family-asset-iq-view .family-overview-hero h2,
.council-drawer.asset-council-theme .drawer-header h2,
.council-drawer.asset-council-theme .summary-card h3 {
  color: var(--paloist-charcoal);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

.app-shell.family-mode .page-subtitle {
  color: var(--paloist-taupe);
}

.app-shell.family-mode .asset-council-button,
#family-asset-iq-view .ghost-button,
#family-asset-iq-view .family-asset-council-submit,
#family-asset-iq-view .family-asset-form-actions button[type="submit"] {
  border-color: var(--paloist-copper);
  color: var(--paloist-copper-dark);
  background: var(--paloist-paper);
}

.app-shell.family-mode .asset-council-button:hover,
.app-shell.family-mode .asset-council-button:focus-visible,
#family-asset-iq-view .ghost-button:hover,
#family-asset-iq-view .ghost-button:focus-visible,
#family-asset-iq-view .family-asset-council-submit,
#family-asset-iq-view .family-asset-form-actions button[type="submit"] {
  color: var(--paloist-paper);
  background: var(--paloist-copper);
  box-shadow: 0 0 0 3px rgba(180, 107, 63, 0.14);
}

#family-asset-iq-view .danger-button {
  border-color: #b84542;
  color: #b84542;
  background: #fff8f6;
}

#family-asset-iq-view .danger-button:hover,
#family-asset-iq-view .danger-button:focus-visible {
  color: #fff;
  background: #b84542;
}

.app-shell.family-mode button:not(:disabled):hover,
.app-shell.family-mode button:not(:disabled):focus-visible,
#family-asset-iq-view [role="button"]:not([aria-disabled="true"]):hover,
#family-asset-iq-view [role="button"]:not([aria-disabled="true"]):focus-visible,
.council-drawer.asset-council-theme button:not(:disabled):hover,
.council-drawer.asset-council-theme button:not(:disabled):focus-visible {
  border-color: var(--paloist-copper);
  box-shadow: 0 0 0 3px rgba(180, 107, 63, 0.14);
}

.app-shell.family-mode .council-top-button.is-dashboard-hidden {
  display: none;
}

.app-shell.family-mode .sidebar {
  border-right-color: #e8eaf0;
  color: #1c1e26;
  background: #fff;
  box-shadow: 1px 0 0 rgba(20, 23, 40, 0.02);
}

.app-shell.family-mode {
  grid-template-columns: 256px 1fr;
}

.app-shell.family-mode .sidebar-brand {
  padding: 24px 22px 18px;
  border-bottom-color: transparent;
  background: #fff;
}

.app-shell.family-mode .family-sidebar-logo {
  display: block;
}

.family-sidebar-wordmark {
  color: #1c1e26;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}

.family-sidebar-wordmark span {
  color: #4f46e5;
}

.family-sidebar-tagline {
  margin-top: 6px;
  color: #9aa1ad;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.app-shell.family-mode .family-nav-list {
  gap: 2px;
  padding: 6px 14px 18px;
}

.app-shell.family-mode .family-nav-list .nav-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 40px;
  gap: 0;
  border: 0;
  border-radius: 10px;
  padding: 10px 11px;
  color: #6b7280;
  background: transparent;
  box-shadow: none;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0;
  text-align: left;
}

.app-shell.family-mode .family-nav-list .nav-item > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell.family-mode .family-nav-list .nav-item:hover,
.app-shell.family-mode .family-nav-list .nav-item:focus-visible {
  border-color: transparent !important;
  color: #1f2430 !important;
  background: #f6f7fb !important;
  box-shadow: none !important;
  transform: none !important;
}

.app-shell.family-mode .family-nav-list .nav-item.is-active {
  color: #4338ca !important;
  background: #eef0fe !important;
  font-weight: 600;
  box-shadow: none !important;
}

.app-shell.family-mode .family-nav-list .nav-item-mobile-demo {
  margin-top: 10px;
  border-top: 1px solid #eef0f4;
  border-radius: 0 0 10px 10px;
  padding-top: 15px;
}

.app-shell.family-mode .nav-icon {
  display: grid;
  position: relative;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 6px;
  color: currentColor;
}

.app-shell.family-mode .nav-icon::before,
.app-shell.family-mode .nav-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
  border-color: currentColor;
}

.app-shell.family-mode .nav-icon-dashboard::before {
  top: 4px;
  left: 4px;
  width: 5px;
  height: 5px;
  border-radius: 2px;
  background: currentColor;
  box-shadow:
    7px 0 0 currentColor,
    0 7px 0 currentColor,
    7px 7px 0 currentColor;
}

.app-shell.family-mode .nav-icon-management::before {
  inset: 4px 5px 7px;
  border: 1.7px solid currentColor;
  border-radius: 4px;
}

.app-shell.family-mode .nav-icon-management::after {
  right: 4px;
  bottom: 4px;
  left: 7px;
  height: 7px;
  border: 1.7px solid currentColor;
  border-radius: 4px;
}

.app-shell.family-mode .nav-icon-protection::before {
  top: 3px;
  left: 5px;
  width: 10px;
  height: 13px;
  border: 1.8px solid currentColor;
  border-radius: 8px 8px 10px 10px;
}

.app-shell.family-mode .nav-icon-protection::after {
  top: 8px;
  left: 9px;
  width: 2px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
}

.app-shell.family-mode .nav-icon-opportunity::before {
  inset: 4px;
  border: 1.7px solid currentColor;
  border-radius: 999px;
}

.app-shell.family-mode .nav-icon-opportunity::after {
  top: 8px;
  left: 8px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
}

.app-shell.family-mode .nav-icon-inheritance::before {
  top: 4px;
  left: 9px;
  width: 2px;
  height: 12px;
  border-radius: 999px;
  background: currentColor;
}

.app-shell.family-mode .nav-icon-inheritance::after {
  top: 6px;
  left: 4px;
  width: 12px;
  height: 9px;
  border-top: 1.8px solid currentColor;
  border-right: 1.8px solid currentColor;
  border-left: 1.8px solid currentColor;
  border-radius: 5px 5px 0 0;
}

.app-shell.family-mode .nav-icon-documents::before {
  inset: 3px 5px 3px 4px;
  border: 1.7px solid currentColor;
  border-radius: 3px;
}

.app-shell.family-mode .nav-icon-documents::after {
  top: 7px;
  right: 7px;
  left: 7px;
  height: 1.7px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 4px 0 currentColor;
}

.app-shell.family-mode .nav-icon-reports::before {
  bottom: 4px;
  left: 5px;
  width: 3px;
  height: 7px;
  border-radius: 999px 999px 1px 1px;
  background: currentColor;
  box-shadow:
    5px -4px 0 currentColor,
    10px -1px 0 currentColor;
}

.app-shell.family-mode .nav-icon-profile::before {
  top: 3px;
  left: 7px;
  width: 6px;
  height: 6px;
  border: 1.7px solid currentColor;
  border-radius: 999px;
}

.app-shell.family-mode .nav-icon-profile::after {
  right: 3px;
  bottom: 3px;
  left: 3px;
  height: 8px;
  border: 1.7px solid currentColor;
  border-radius: 8px 8px 4px 4px;
}

.app-shell.family-mode .nav-icon-settings::before {
  top: 5px;
  right: 4px;
  left: 4px;
  height: 1.8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow:
    0 5px 0 currentColor,
    0 10px 0 currentColor;
}

.app-shell.family-mode .nav-icon-settings::after {
  top: 3px;
  left: 10px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  box-shadow:
    -5px 5px 0 currentColor,
    4px 10px 0 currentColor;
}

.app-shell.family-mode .sidebar-footer {
  border-top-color: #eef0f4;
  color: #69756d;
}

.app-shell.family-mode .sidebar-footer span,
.app-shell.family-mode .sidebar-footer strong,
.app-shell.family-mode #account-button {
  color: #69756d;
}

.app-shell.family-mode .avatar {
  color: #fff;
  background: linear-gradient(145deg, #4f46e5, #8b5cf6);
}

.app-shell.family-mode #account-button:hover,
.app-shell.family-mode #account-button:focus-visible,
.app-shell.family-mode #account-button[aria-expanded="true"] {
  border-color: #4f46e5;
  color: #fff;
  background: #4f46e5;
}

.app-shell.family-mode:has(#family-asset-iq-view .paloist-dashboard-shell) {
  background: #f4f5f8;
}

.app-shell.family-mode:has(#family-asset-iq-view .paloist-dashboard-shell) .workspace {
  background: #f4f5f8;
}

.app-shell.family-mode:has(#family-asset-iq-view .paloist-dashboard-shell) .topbar {
  border-bottom-color: transparent;
}

.app-shell.family-mode:has(#family-asset-iq-view .paloist-dashboard-shell) .topbar .eyebrow {
  color: #4f46e5;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.app-shell.family-mode:has(#family-asset-iq-view .paloist-dashboard-shell) .topbar h1 {
  color: #1c1e26;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.app-shell.family-mode:has(#family-asset-iq-view .paloist-dashboard-shell) .page-subtitle {
  color: #6b7280;
}

#family-asset-iq-view .metric-panel,
#family-asset-iq-view .panel,
#family-asset-iq-view .family-document-card,
#family-asset-iq-view .family-opportunity-rule-card,
#family-asset-iq-view .family-opportunity-run-card,
.council-drawer.asset-council-theme .drawer-panel,
.council-drawer.asset-council-theme .expert-card,
.council-drawer.asset-council-theme .summary-card {
  border-color: var(--paloist-line);
  background: var(--paloist-paper);
  box-shadow: 0 10px 28px rgba(51, 41, 31, 0.08);
}

#family-asset-iq-view .panel,
#family-asset-iq-view .metric-panel {
  border-radius: 10px;
}

#family-asset-iq-view .primary-metric,
#family-asset-iq-view .family-inheritance-dashboard-panel,
#family-asset-iq-view .family-overview-hero {
  border-color: #d1a77f;
  background:
    linear-gradient(135deg, rgba(180, 107, 63, 0.12), rgba(255, 253, 248, 0.94)),
    var(--paloist-paper);
}

#family-asset-iq-view .metric-panel span,
#family-asset-iq-view .panel-subtitle,
#family-asset-iq-view .muted,
#family-asset-iq-view .family-asset-card header span,
#family-asset-iq-view .family-document-row span,
#family-asset-iq-view .family-setting-row span {
  color: var(--paloist-taupe);
}

#family-asset-iq-view .metric-panel strong,
#family-asset-iq-view .family-asset-category-card strong,
#family-asset-iq-view .family-asset-type-button strong,
#family-asset-iq-view .family-inheritance-dashboard-stats strong,
#family-asset-iq-view .family-asset-card-image span,
#family-asset-iq-view .family-asset-breakdown-row strong,
#family-asset-iq-view .family-opportunity-score strong,
#family-asset-iq-view .family-opportunity-comps strong,
#family-asset-iq-view .family-asset-field-help strong {
  color: var(--paloist-copper-dark);
}

#family-asset-iq-view .panel-pill,
.council-drawer.asset-council-theme .panel-pill,
#family-asset-iq-view .provider-status.is-ready,
#family-asset-iq-view .status-pill.is-ready {
  border-color: #d7b99d;
  color: var(--paloist-copper-dark);
  background: #fbefe4;
}

#family-asset-iq-view .family-asset-category-card,
#family-asset-iq-view .family-asset-type-button,
#family-asset-iq-view .family-asset-compact-row,
#family-asset-iq-view .family-document-row,
#family-asset-iq-view .family-setting-row,
#family-asset-iq-view .family-profile-field,
#family-asset-iq-view .family-planning-checklist > div,
#family-asset-iq-view .family-beneficiary-card,
#family-asset-iq-view .family-inheritance-asset-row,
#family-asset-iq-view .family-estate-asset-row,
#family-asset-iq-view .family-estate-analysis-card,
#family-asset-iq-view .family-insurance-asset-row,
#family-asset-iq-view .family-insurance-analysis-card,
#family-asset-iq-view .family-protection-matrix-row,
#family-asset-iq-view .family-protection-layer-cell,
#family-asset-iq-view .family-protection-drawer-layer,
#family-asset-iq-view .family-protection-policy-hint,
#family-asset-iq-view .family-opportunity-run-metrics > div,
#family-asset-iq-view .family-opportunity-analysis-list,
#family-asset-iq-view .family-opportunity-comps > div,
#family-asset-iq-view .family-opportunity-sources > div {
  border-color: var(--paloist-line);
  background: #fffcf5;
}

#family-asset-iq-view .family-asset-category-card:hover,
#family-asset-iq-view .family-asset-category-card:focus-visible,
#family-asset-iq-view .family-asset-type-button:hover,
#family-asset-iq-view .family-asset-type-button:focus-visible,
#family-asset-iq-view .family-asset-type-button.is-active {
  border-color: var(--paloist-copper);
  background: #fbefe4;
  box-shadow: 0 0 0 3px rgba(180, 107, 63, 0.14);
}

#family-asset-iq-view .family-asset-card {
  border-color: var(--paloist-line);
  border-left-color: var(--paloist-copper);
  background: #fffcf5;
}

#family-asset-iq-view .family-asset-card-image,
#family-asset-iq-view .family-asset-photo-preview,
#family-asset-iq-view .family-asset-document-dropzone,
#family-asset-iq-view .family-library-document-dropzone,
#family-asset-iq-view .family-estate-document-dropzone,
#family-asset-iq-view .family-insurance-document-dropzone,
#family-asset-iq-view .family-opportunity-hint,
#family-asset-iq-view .family-asset-question-list,
#family-asset-iq-view .family-asset-field-help,
#family-asset-iq-view .empty-state {
  border-color: #d7b99d;
  background: #f8eadc;
}

#family-asset-iq-view input,
#family-asset-iq-view select,
#family-asset-iq-view textarea,
.council-drawer.asset-council-theme textarea {
  border-color: var(--paloist-line);
  color: var(--paloist-charcoal);
  background: #fffdf8;
}

#family-asset-iq-view input:focus,
#family-asset-iq-view select:focus,
#family-asset-iq-view textarea:focus,
.council-drawer.asset-council-theme textarea:focus {
  border-color: var(--paloist-copper);
  box-shadow: 0 0 0 3px rgba(180, 107, 63, 0.14);
}

#family-asset-iq-view .success-banner {
  border-color: #d7b99d;
  color: var(--paloist-copper-dark);
  background: #fbefe4;
}

#family-asset-iq-view .paloist-mobile-demo-page {
  display: grid;
  gap: 18px;
}

#family-asset-iq-view .paloist-mobile-demo-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

#family-asset-iq-view .paloist-mobile-demo-intro h2 {
  margin: 0;
}

#family-asset-iq-view .paloist-mobile-demo-chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 240px;
}

#family-asset-iq-view .paloist-mobile-demo-chip-row span {
  border: 1px solid #d7b99d;
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--paloist-copper-dark);
  background: #fbefe4;
  font-size: 12px;
  font-weight: 850;
}

#family-asset-iq-view .paloist-mobile-demo-stage {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(320px, 400px) minmax(180px, 260px);
  align-items: center;
  justify-content: center;
  gap: 24px;
}

#family-asset-iq-view .paloist-full-mobile-stage {
  display: grid;
  justify-items: center;
  padding: 4px 0 18px;
}

#family-asset-iq-view .paloist-mobile-demo-side-panel {
  border: 1px solid var(--paloist-line);
  border-radius: 10px;
  padding: 18px;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: 0 10px 26px rgba(51, 41, 31, 0.06);
}

#family-asset-iq-view .paloist-mobile-demo-side-panel h3 {
  margin: 0 0 12px;
  color: var(--paloist-charcoal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 500;
}

#family-asset-iq-view .paloist-mobile-demo-side-panel p {
  margin: 0;
  color: var(--paloist-taupe);
  font-size: 14px;
  line-height: 1.5;
}

#family-asset-iq-view .paloist-mobile-demo-side-panel button {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--paloist-line);
  border-radius: 999px;
  padding: 10px 12px;
  color: var(--paloist-charcoal);
  background: #fffdf8;
  font-size: 13px;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

#family-asset-iq-view .paloist-mobile-demo-side-panel button:hover,
#family-asset-iq-view .paloist-mobile-demo-side-panel button:focus-visible,
#family-asset-iq-view .paloist-mobile-demo-side-panel button.is-active {
  border-color: var(--paloist-copper);
  color: var(--paloist-copper-dark);
  background: #fbefe4;
}

#family-asset-iq-view .paloist-phone-shell {
  position: relative;
  width: min(100%, 354px);
  min-height: 690px;
  border: 10px solid #24201c;
  border-radius: 38px;
  padding: 14px 12px;
  background: #24201c;
  box-shadow: 0 28px 70px rgba(41, 36, 31, 0.28);
}

#family-asset-iq-view .paloist-phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 2;
  width: 112px;
  height: 20px;
  border-radius: 0 0 14px 14px;
  background: #24201c;
  transform: translateX(-50%);
}

#family-asset-iq-view .paloist-phone-screen {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 640px;
  max-height: 640px;
  overflow: hidden;
  border-radius: 26px;
  background:
    radial-gradient(circle at 92% 12%, rgba(180, 107, 63, 0.1), transparent 26%),
    #f6f0e7;
}

#family-asset-iq-view .paloist-phone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 18px 8px;
}

#family-asset-iq-view .paloist-phone-header button {
  border: 0;
  padding: 0;
  color: var(--paloist-charcoal);
  background: transparent;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
}

#family-asset-iq-view .paloist-phone-header button:last-child {
  font-family: inherit;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#family-asset-iq-view .paloist-mobile-screen {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 18px 18px;
  scrollbar-width: thin;
}

#family-asset-iq-view .paloist-mobile-screen.is-centered {
  justify-content: center;
}

#family-asset-iq-view .paloist-mobile-hero-card {
  border-radius: 10px;
  padding: 18px 16px;
  color: #fffdf8;
  background:
    radial-gradient(circle at 92% 24%, rgba(255, 255, 255, 0.18), transparent 18%),
    linear-gradient(135deg, #8f4f2e, #d48b4f);
}

#family-asset-iq-view .paloist-mobile-hero-card span,
#family-asset-iq-view .paloist-mobile-kicker,
#family-asset-iq-view .paloist-mobile-recognition-card span {
  display: block;
  margin-bottom: 4px;
  color: var(--paloist-copper);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

#family-asset-iq-view .paloist-mobile-hero-card span {
  color: rgba(255, 253, 248, 0.76);
}

#family-asset-iq-view .paloist-mobile-hero-card strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
}

#family-asset-iq-view .paloist-mobile-copy-block h3 {
  margin: 0 0 4px;
  color: var(--paloist-charcoal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 500;
}

#family-asset-iq-view .paloist-mobile-copy-block p,
#family-asset-iq-view .paloist-mobile-listening {
  margin: 0;
  color: var(--paloist-taupe);
  font-size: 12px;
  line-height: 1.4;
}

#family-asset-iq-view .paloist-mobile-copy-block.is-centered,
#family-asset-iq-view .paloist-mobile-listening {
  text-align: center;
}

#family-asset-iq-view .paloist-mobile-pill-list {
  display: grid;
  gap: 7px;
}

#family-asset-iq-view .paloist-mobile-pill-list button,
#family-asset-iq-view .paloist-mobile-menu-card button {
  border: 1px solid var(--paloist-line);
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--paloist-charcoal);
  background: #fffdf8;
  font-size: 11px;
  font-weight: 760;
  text-align: left;
  cursor: pointer;
}

#family-asset-iq-view .paloist-mobile-pill-list button:hover,
#family-asset-iq-view .paloist-mobile-pill-list button:focus-visible,
#family-asset-iq-view .paloist-mobile-menu-card button:hover,
#family-asset-iq-view .paloist-mobile-menu-card button:focus-visible {
  border-color: var(--paloist-copper);
  background: #fbefe4;
}

#family-asset-iq-view .paloist-mobile-assistant {
  overflow: hidden;
  border: 1px solid var(--paloist-line);
  border-radius: 9px;
  background: #fffdf8;
}

#family-asset-iq-view .paloist-mobile-assistant header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px;
  color: #fffdf8;
  background: #24201c;
  font-size: 11px;
}

#family-asset-iq-view .paloist-mobile-assistant header span {
  border-radius: 999px;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 9px;
}

#family-asset-iq-view .paloist-mobile-assistant p {
  margin: 0;
  padding: 12px;
  color: var(--paloist-taupe);
  font-size: 12px;
  line-height: 1.45;
}

#family-asset-iq-view .paloist-mobile-assistant button,
#family-asset-iq-view .paloist-mobile-primary-button,
#family-asset-iq-view .paloist-mobile-secondary-button,
#family-asset-iq-view .paloist-mobile-recognition-card button,
#family-asset-iq-view .paloist-mobile-risk-card button {
  border: 1px solid var(--paloist-copper);
  border-radius: 8px;
  padding: 10px 12px;
  color: #fffdf8;
  background: var(--paloist-copper);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

#family-asset-iq-view .paloist-mobile-assistant button {
  margin: 0 12px 12px;
  padding: 8px 10px;
}

#family-asset-iq-view .paloist-mobile-secondary-button {
  color: var(--paloist-copper-dark);
  background: #fffdf8;
}

#family-asset-iq-view .paloist-mobile-voice-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 82px;
}

#family-asset-iq-view .paloist-mobile-voice-wave span {
  display: block;
  width: 5px;
  border-radius: 999px;
  background: var(--paloist-copper);
}

#family-asset-iq-view .paloist-mobile-voice-wave span:nth-child(1),
#family-asset-iq-view .paloist-mobile-voice-wave span:nth-child(6) {
  height: 26px;
}

#family-asset-iq-view .paloist-mobile-voice-wave span:nth-child(2),
#family-asset-iq-view .paloist-mobile-voice-wave span:nth-child(5) {
  height: 48px;
}

#family-asset-iq-view .paloist-mobile-voice-wave span:nth-child(3),
#family-asset-iq-view .paloist-mobile-voice-wave span:nth-child(4) {
  height: 64px;
}

#family-asset-iq-view .paloist-mobile-action-row,
#family-asset-iq-view .paloist-mobile-split-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

#family-asset-iq-view .paloist-mobile-action-row button {
  border: 0;
  border-radius: 9px;
  min-height: 54px;
  color: #fffdf8;
  background: #3f3b36;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

#family-asset-iq-view .paloist-mobile-action-row button.is-primary {
  background: var(--paloist-copper);
}

#family-asset-iq-view .paloist-mobile-camera-card {
  display: grid;
  place-items: center;
  min-height: 168px;
  border-radius: 10px;
  background: #24201c;
}

#family-asset-iq-view .paloist-mobile-watch-face,
#family-asset-iq-view .paloist-mobile-small-watch {
  width: 72px;
  height: 86px;
  border: 4px solid #56514a;
  border-radius: 18px;
  background:
    linear-gradient(90deg, transparent 48%, #d3a451 49% 51%, transparent 52%),
    linear-gradient(135deg, #111, #333 48%, #111);
  box-shadow: inset 0 0 0 4px #202020, 0 12px 30px rgba(0, 0, 0, 0.3);
}

#family-asset-iq-view .paloist-mobile-small-watch {
  align-self: center;
  width: 46px;
  height: 56px;
  border-width: 3px;
  border-radius: 12px;
}

#family-asset-iq-view .paloist-mobile-recognition-card,
#family-asset-iq-view .paloist-mobile-status-card,
#family-asset-iq-view .paloist-mobile-menu-card,
#family-asset-iq-view .paloist-mobile-risk-card,
#family-asset-iq-view .paloist-mobile-location-card {
  border: 1px solid var(--paloist-line);
  border-radius: 9px;
  padding: 12px;
  background: #fffdf8;
}

#family-asset-iq-view .paloist-mobile-recognition-card h3,
#family-asset-iq-view .paloist-mobile-risk-card h3,
#family-asset-iq-view .paloist-mobile-menu-card h3 {
  margin: 0 0 6px;
  color: var(--paloist-charcoal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 500;
}

#family-asset-iq-view .paloist-mobile-recognition-card p,
#family-asset-iq-view .paloist-mobile-recognition-card small,
#family-asset-iq-view .paloist-mobile-risk-card p,
#family-asset-iq-view .paloist-mobile-location-card span {
  display: block;
  margin: 0 0 6px;
  color: var(--paloist-taupe);
  font-size: 11px;
  line-height: 1.4;
}

#family-asset-iq-view .paloist-mobile-confidence-bar {
  overflow: hidden;
  height: 7px;
  border-radius: 999px;
  background: #e7dccf;
}

#family-asset-iq-view .paloist-mobile-confidence-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--paloist-copper), var(--paloist-gold));
}

#family-asset-iq-view .paloist-mobile-confidence-bar.is-large {
  height: 8px;
}

#family-asset-iq-view .paloist-mobile-split-actions {
  grid-template-columns: 1fr 1fr;
  margin-top: 10px;
}

#family-asset-iq-view .paloist-mobile-split-actions button:last-child {
  color: var(--paloist-copper-dark);
  background: #fffdf8;
}

#family-asset-iq-view .paloist-mobile-warning {
  color: #b84542;
  font-size: 11px;
}

#family-asset-iq-view .paloist-mobile-status-card {
  display: grid;
  gap: 8px;
  color: var(--paloist-charcoal);
  font-size: 12px;
}

#family-asset-iq-view .paloist-mobile-status-card div {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--paloist-line);
  padding-top: 8px;
}

#family-asset-iq-view .paloist-mobile-status-card span {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  border-radius: 6px;
  color: #fffdf8;
  font-size: 9px;
  font-weight: 900;
}

#family-asset-iq-view .paloist-mobile-status-card .is-ok {
  background: #5f8764;
}

#family-asset-iq-view .paloist-mobile-status-card .is-gap {
  background: #b84542;
}

#family-asset-iq-view .paloist-mobile-status-card .is-warn {
  background: var(--paloist-gold);
}

#family-asset-iq-view .paloist-mobile-menu-card {
  display: grid;
  gap: 0;
  padding: 10px;
}

#family-asset-iq-view .paloist-mobile-menu-card h3 {
  color: var(--paloist-copper-dark);
}

#family-asset-iq-view .paloist-mobile-menu-card button {
  border-width: 1px 0 0;
  border-radius: 0;
  padding: 10px 2px;
}

#family-asset-iq-view .paloist-mobile-menu-card.is-full button:first-child {
  border-top-width: 0;
}

#family-asset-iq-view .paloist-mobile-risk-card {
  border-left: 4px solid #b84542;
}

#family-asset-iq-view .paloist-mobile-risk-card span {
  display: inline-block;
  margin-bottom: 8px;
  border-radius: 999px;
  padding: 4px 8px;
  color: #b84542;
  background: #fff0ed;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

#family-asset-iq-view .paloist-mobile-location-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

#family-asset-iq-view .paloist-mobile-location-card strong,
#family-asset-iq-view .paloist-mobile-location-card span {
  min-width: 0;
  overflow-wrap: anywhere;
}

#family-asset-iq-view .paloist-mobile-score-ring {
  display: grid;
  place-items: center;
  align-self: center;
  width: 132px;
  height: 132px;
  border: 12px solid #d7b99d;
  border-top-color: var(--paloist-copper);
  border-radius: 50%;
  color: var(--paloist-copper-dark);
  background: #fffdf8;
  font-size: 28px;
  font-weight: 900;
}

#family-asset-iq-view .paloist-live-mobile-screen {
  gap: 10px;
}

#family-asset-iq-view .paloist-live-mobile-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--paloist-line);
  border-radius: 10px;
  padding: 12px;
  background: #fffdf8;
}

#family-asset-iq-view .paloist-live-mobile-top h3 {
  margin: 0;
  color: var(--paloist-charcoal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 500;
}

#family-asset-iq-view .paloist-live-mobile-top button {
  border: 1px solid var(--paloist-line);
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--paloist-copper-dark);
  background: #fbefe4;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

#family-asset-iq-view .paloist-live-mobile-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

#family-asset-iq-view .paloist-live-mobile-nav button {
  flex: 0 0 auto;
  border: 1px solid var(--paloist-line);
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--paloist-taupe);
  background: #fffdf8;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

#family-asset-iq-view .paloist-live-mobile-nav button:hover,
#family-asset-iq-view .paloist-live-mobile-nav button:focus-visible,
#family-asset-iq-view .paloist-live-mobile-nav button.is-active {
  border-color: var(--paloist-copper);
  color: #fffdf8;
  background: var(--paloist-copper);
}

#family-asset-iq-view .paloist-live-mobile-menu-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--paloist-line);
  border-radius: 10px;
  padding: 10px;
  background: #fffdf8;
}

#family-asset-iq-view .paloist-live-mobile-menu-card > strong {
  color: var(--paloist-charcoal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 500;
}

#family-asset-iq-view .paloist-live-mobile-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#family-asset-iq-view .paloist-live-mobile-menu-grid button {
  min-width: 0;
  border: 1px solid var(--paloist-line);
  border-radius: 8px;
  padding: 9px 8px;
  color: var(--paloist-charcoal);
  background: #fffcf5;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
}

#family-asset-iq-view .paloist-live-mobile-menu-grid button:hover,
#family-asset-iq-view .paloist-live-mobile-menu-grid button:focus-visible,
#family-asset-iq-view .paloist-live-mobile-menu-grid button.is-active {
  border-color: var(--paloist-copper);
  color: #fffdf8;
  background: var(--paloist-copper);
}

#family-asset-iq-view .paloist-live-mobile-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#family-asset-iq-view .paloist-live-mobile-stat {
  min-width: 0;
  border: 1px solid var(--paloist-line);
  border-radius: 10px;
  padding: 10px;
  background: #fffdf8;
}

#family-asset-iq-view .paloist-live-mobile-stat span,
#family-asset-iq-view .paloist-live-mobile-stat small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--paloist-taupe);
  font-size: 10px;
  font-weight: 800;
}

#family-asset-iq-view .paloist-live-mobile-stat strong {
  display: block;
  min-width: 0;
  margin: 4px 0;
  overflow-wrap: anywhere;
  color: var(--paloist-charcoal);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.12;
}

#family-asset-iq-view .paloist-live-mobile-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--paloist-line);
  border-radius: 10px;
  padding: 12px;
  background: #fffdf8;
}

#family-asset-iq-view .paloist-live-mobile-card > strong {
  color: var(--paloist-charcoal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 500;
}

#family-asset-iq-view .paloist-live-mobile-card p,
#family-asset-iq-view .paloist-live-mobile-card span {
  margin: 0;
  color: var(--paloist-taupe);
  font-size: 12px;
  line-height: 1.45;
}

#family-asset-iq-view .paloist-live-mobile-card.is-action-card button,
#family-asset-iq-view .paloist-live-mobile-card button {
  border: 1px solid var(--paloist-copper);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--paloist-copper-dark);
  background: #fbefe4;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

#family-asset-iq-view .paloist-live-mobile-card.is-action-card button:first-of-type {
  color: #fffdf8;
  background: var(--paloist-copper);
}

#family-asset-iq-view .paloist-live-mobile-row-list {
  display: grid;
  gap: 8px;
}

#family-asset-iq-view .paloist-live-mobile-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--paloist-line);
  border-radius: 8px;
  padding: 9px;
  background: #fffcf5;
}

#family-asset-iq-view .paloist-live-mobile-row div,
#family-asset-iq-view .paloist-live-mobile-row span,
#family-asset-iq-view .paloist-live-mobile-row small,
#family-asset-iq-view .paloist-live-mobile-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

#family-asset-iq-view .paloist-live-mobile-row span {
  display: block;
  color: var(--paloist-charcoal);
  font-size: 12px;
  font-weight: 900;
}

#family-asset-iq-view .paloist-live-mobile-row small {
  display: block;
  margin-top: 2px;
  color: var(--paloist-taupe);
  font-size: 10px;
  line-height: 1.3;
}

#family-asset-iq-view .paloist-live-mobile-row > strong {
  color: var(--paloist-copper-dark);
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}

#family-asset-iq-view .paloist-live-mobile-empty {
  margin: 0;
  border: 1px dashed #d7b99d;
  border-radius: 8px;
  padding: 12px;
  color: var(--paloist-taupe);
  background: #fbefe4;
  font-size: 12px;
}

#family-asset-iq-view .paloist-mobile-asset-management-screen {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0;
  padding-bottom: 0;
  overflow: hidden;
  background: #f7f8fc;
}

#family-asset-iq-view .paloist-mobile-asset-management-content {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 12px;
}

#family-asset-iq-view .paloist-mobile-asset-management-footer {
  position: sticky;
  bottom: 0;
  z-index: 4;
  margin: 0 -18px;
  padding: 10px 18px calc(10px + env(safe-area-inset-bottom));
}

#family-asset-iq-view .paloist-mobile-asset-management-footer .paloist-mobile-primary-button {
  width: 100%;
  min-height: 50px;
  margin: 0;
  border-radius: 14px;
}

#family-asset-iq-view .paloist-mobile-asset-management-screen .paloist-mobile-screen-copy h3,
#family-asset-iq-view .paloist-mobile-asset-protection-screen .paloist-mobile-screen-copy h3,
#family-asset-iq-view .paloist-mobile-opportunity-screen .paloist-mobile-screen-copy h3 {
  margin-bottom: 0;
}

#family-asset-iq-view .paloist-mobile-asset-protection-screen {
  gap: 12px;
  background: #f7f8fc;
}

#family-asset-iq-view .paloist-mobile-protection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#family-asset-iq-view .paloist-mobile-protection-card {
  display: grid;
  align-content: start;
  min-height: 152px;
  border: 1px solid #e0e4ee;
  border-radius: 16px;
  padding: 12px 11px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(25, 31, 55, 0.07);
}

#family-asset-iq-view .paloist-mobile-protection-card span {
  color: var(--mobile-muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
}

#family-asset-iq-view .paloist-mobile-protection-card strong {
  margin-top: 7px;
  color: var(--mobile-ink);
  font-size: 30px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 0.95;
}

#family-asset-iq-view .paloist-mobile-protection-card small {
  margin-top: 7px;
  color: var(--mobile-muted);
  font-size: 10px;
  font-weight: 760;
  line-height: 1.25;
}

#family-asset-iq-view .paloist-mobile-protection-card p {
  margin: 8px 0 0;
  color: #5d6678;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.28;
}

#family-asset-iq-view .paloist-mobile-opportunity-screen {
  gap: 0;
  padding-bottom: 18px;
  background: #f7f8fc;
}

#family-asset-iq-view .paloist-mobile-opportunity-card {
  display: grid;
  gap: 13px;
  border: 1px solid #e0e4ee;
  border-radius: 18px;
  padding: 16px 14px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(25, 31, 55, 0.07);
}

#family-asset-iq-view .paloist-mobile-opportunity-heading {
  display: grid;
  gap: 7px;
}

#family-asset-iq-view .paloist-mobile-opportunity-heading p {
  margin: 0;
  color: var(--mobile-blue);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

#family-asset-iq-view .paloist-mobile-opportunity-heading h3 {
  margin: 0;
  color: var(--mobile-ink);
  font-size: 24px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.05;
}

#family-asset-iq-view .paloist-mobile-opportunity-heading > span,
#family-asset-iq-view .paloist-mobile-opportunity-heading > button {
  justify-self: start;
  border: 1px solid #e0e4ee;
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--mobile-muted);
  background: #fff;
  font-size: 12px;
  font-weight: 850;
}

#family-asset-iq-view .paloist-mobile-opportunity-heading > button:not(:disabled) {
  color: var(--mobile-blue);
  cursor: pointer;
}

#family-asset-iq-view .paloist-mobile-opportunity-heading > button:disabled {
  opacity: 0.58;
  cursor: default;
}

#family-asset-iq-view .paloist-mobile-opportunity-subtitle {
  margin: 0;
  color: var(--mobile-muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

#family-asset-iq-view .paloist-mobile-opportunity-form {
  display: grid;
  gap: 11px;
}

#family-asset-iq-view .paloist-mobile-opportunity-form label {
  display: grid;
  gap: 7px;
  color: var(--mobile-ink);
  font-size: 12px;
  font-weight: 850;
}

#family-asset-iq-view .paloist-mobile-opportunity-form input,
#family-asset-iq-view .paloist-mobile-opportunity-form select,
#family-asset-iq-view .paloist-mobile-opportunity-form textarea {
  width: 100%;
  border: 1px solid #dfe4ee;
  border-radius: 14px;
  padding: 0 13px;
  color: var(--mobile-ink);
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0;
  box-shadow: 0 8px 18px rgba(25, 31, 55, 0.04);
}

#family-asset-iq-view .paloist-mobile-opportunity-form input,
#family-asset-iq-view .paloist-mobile-opportunity-form select {
  min-height: 44px;
}

#family-asset-iq-view .paloist-mobile-opportunity-form textarea {
  min-height: 86px;
  padding-top: 12px;
  padding-bottom: 12px;
  resize: vertical;
}

#family-asset-iq-view .paloist-mobile-opportunity-form input::placeholder,
#family-asset-iq-view .paloist-mobile-opportunity-form textarea::placeholder {
  color: #777b83;
  opacity: 1;
}

#family-asset-iq-view .paloist-mobile-opportunity-hint {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(83, 74, 226, 0.28);
  border-radius: 14px;
  padding: 11px 12px;
  color: #566077;
  background: rgba(83, 74, 226, 0.07);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

#family-asset-iq-view .paloist-mobile-opportunity-hint strong {
  color: var(--mobile-blue);
  font-size: 12px;
  font-weight: 850;
}

#family-asset-iq-view .paloist-mobile-opportunity-data-card {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  border: 1px solid #e0e4ee;
  border-radius: 18px;
  padding: 16px 14px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(25, 31, 55, 0.07);
}

#family-asset-iq-view .paloist-mobile-opportunity-data-heading {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

#family-asset-iq-view .paloist-mobile-opportunity-data-heading p,
#family-asset-iq-view .paloist-mobile-opportunity-data-heading h3 {
  margin: 0;
}

#family-asset-iq-view .paloist-mobile-opportunity-data-heading p {
  color: var(--mobile-blue);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

#family-asset-iq-view .paloist-mobile-opportunity-data-heading h3 {
  margin-top: 4px;
  color: var(--mobile-ink);
  font-size: 18px;
  line-height: 1.15;
}

#family-asset-iq-view .paloist-mobile-opportunity-data-heading > span {
  border: 1px solid #e0e4ee;
  border-radius: 999px;
  min-width: 32px;
  padding: 6px 9px;
  color: var(--mobile-muted);
  background: #fff;
  font-size: 11px;
  font-weight: 850;
  text-align: center;
}

#family-asset-iq-view
  .paloist-mobile-opportunity-data-card
  .family-opportunity-rule-card,
#family-asset-iq-view
  .paloist-mobile-opportunity-data-card
  .family-opportunity-run-card {
  border-radius: 14px;
  padding: 12px;
  box-shadow: none;
}

#family-asset-iq-view
  .paloist-mobile-opportunity-data-card
  .family-opportunity-rule-card
  h3,
#family-asset-iq-view
  .paloist-mobile-opportunity-data-card
  .family-opportunity-run-card
  h3 {
  font-size: 14px;
}

#family-asset-iq-view
  .paloist-mobile-opportunity-data-card
  .family-opportunity-rule-actions {
  gap: 6px;
}

#family-asset-iq-view
  .paloist-mobile-opportunity-data-card
  .family-opportunity-rule-actions
  button {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 11px;
}

#family-asset-iq-view .paloist-mobile-asset-search {
  display: grid;
  gap: 6px;
}

#family-asset-iq-view .paloist-mobile-asset-search label {
  color: var(--mobile-muted);
  font-size: 11px;
  font-weight: 800;
}

#family-asset-iq-view .paloist-mobile-asset-search input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d9deea;
  border-radius: 999px;
  padding: 0 15px;
  color: var(--mobile-ink);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(25, 31, 55, 0.06);
}

#family-asset-iq-view .paloist-mobile-asset-count {
  margin: 0;
  color: var(--mobile-muted);
  font-size: 11px;
  font-weight: 800;
}

#family-asset-iq-view .paloist-mobile-asset-list {
  display: grid;
  gap: 9px;
}

#family-asset-iq-view .paloist-mobile-asset-pagination {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

#family-asset-iq-view .paloist-mobile-asset-pagination button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  color: #fff;
  background: linear-gradient(135deg, #3557ff, #7c4dff);
  font-size: 11px;
  font-weight: 850;
}

#family-asset-iq-view .paloist-mobile-asset-pagination button:first-child {
  background: #777b83;
}

#family-asset-iq-view .paloist-mobile-asset-pagination button:disabled {
  cursor: not-allowed;
  color: #8a91a1;
  background: #e6e9f1;
}

#family-asset-iq-view .paloist-mobile-asset-pagination span {
  color: var(--mobile-muted);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

#family-asset-iq-view .paloist-mobile-asset-list-item {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-height: 84px;
  border: 1px solid #e0e4ee;
  border-radius: 18px;
  padding: 8px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(25, 31, 55, 0.07);
}

#family-asset-iq-view .paloist-mobile-asset-list-image {
  overflow: hidden;
  width: 68px;
  height: 68px;
  border-radius: 14px;
  background: #e7eafa;
}

#family-asset-iq-view .paloist-mobile-asset-list-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#family-asset-iq-view .paloist-mobile-asset-list-image span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--mobile-blue);
  font-size: 24px;
  font-weight: 850;
}

#family-asset-iq-view .paloist-mobile-asset-list-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

#family-asset-iq-view .paloist-mobile-asset-list-copy strong,
#family-asset-iq-view .paloist-mobile-asset-list-copy span,
#family-asset-iq-view .paloist-mobile-asset-list-copy small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#family-asset-iq-view .paloist-mobile-asset-list-copy strong {
  color: var(--mobile-ink);
  font-size: 16px;
  font-weight: 850;
}

#family-asset-iq-view .paloist-mobile-asset-list-copy span {
  color: var(--mobile-blue);
  font-size: 12px;
  font-weight: 800;
}

#family-asset-iq-view .paloist-mobile-asset-list-copy p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--mobile-muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#family-asset-iq-view .paloist-mobile-asset-list-copy small {
  color: var(--mobile-muted);
  font-size: 11px;
  font-weight: 750;
}

#family-asset-iq-view .paloist-mobile-asset-empty {
  display: grid;
  gap: 6px;
  border: 1px dashed #cfd5e4;
  border-radius: 18px;
  padding: 18px 14px;
  background: rgba(255, 255, 255, 0.78);
  text-align: center;
}

#family-asset-iq-view .paloist-mobile-asset-empty strong {
  color: var(--mobile-ink);
  font-size: 15px;
  font-weight: 850;
}

#family-asset-iq-view .paloist-mobile-asset-empty p {
  margin: 0;
  color: var(--mobile-muted);
  font-size: 12px;
  line-height: 1.35;
}

#family-asset-iq-view .paloist-mobile-documents-panel {
  gap: 14px;
  border-color: #e4e7ef;
  border-radius: 18px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(20, 23, 40, 0.08);
}

#family-asset-iq-view .paloist-mobile-documents-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

#family-asset-iq-view .paloist-mobile-documents-header h3 {
  margin: 0;
  color: #161923;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
}

#family-asset-iq-view .paloist-mobile-documents-header .eyebrow {
  margin: 0 0 6px;
  color: #4f46e5;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

#family-asset-iq-view .paloist-mobile-documents-header > span {
  flex: 0 0 auto;
  border: 1px solid #e4e7ef;
  border-radius: 999px;
  padding: 7px 10px;
  color: #697182;
  background: #f8f9fc;
  font-size: 11px;
  font-weight: 900;
}

#family-asset-iq-view .paloist-mobile-document-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

#family-asset-iq-view .paloist-mobile-document-search-form label {
  display: grid;
  min-width: 0;
  gap: 6px;
  color: #697182;
  font-size: 12px;
  font-weight: 850;
}

#family-asset-iq-view .paloist-mobile-document-search-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #e4e7ef;
  border-radius: 14px;
  padding: 0 14px;
  color: #161923;
  background: #fff;
  font-size: 14px;
  font-weight: 750;
}

#family-asset-iq-view .paloist-mobile-document-search-form input:focus {
  border-color: #4f46e5;
  outline: none;
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.13);
}

#family-asset-iq-view .paloist-mobile-document-search-form button,
#family-asset-iq-view .paloist-mobile-document-pagination button {
  min-height: 44px;
  border: 1px solid #4f46e5;
  border-radius: 14px;
  padding: 0 13px;
  color: #fff;
  background: #4f46e5;
  font-size: 13px;
  font-weight: 900;
}

#family-asset-iq-view .paloist-mobile-document-search-form .paloist-mobile-document-clear {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: auto;
  border: 0;
  padding: 0;
  color: #697182;
  background: transparent;
  font-size: 12px;
}

#family-asset-iq-view .paloist-mobile-document-count {
  margin: -2px 0 0;
  color: #697182;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

#family-asset-iq-view .paloist-mobile-document-list {
  display: grid;
  gap: 0;
}

#family-asset-iq-view .paloist-mobile-document-row {
  width: 100%;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 12px;
  gap: 11px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid #e8eaf0;
  border-radius: 0;
  padding: 12px 2px;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

#family-asset-iq-view .paloist-mobile-document-row:hover,
#family-asset-iq-view .paloist-mobile-document-row:focus-visible {
  outline: none;
  background: #f8f9fc;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

#family-asset-iq-view .paloist-mobile-document-row:active {
  transform: translateY(1px);
}

#family-asset-iq-view .paloist-mobile-document-row:last-child {
  border-bottom: 0;
}

#family-asset-iq-view .paloist-mobile-document-row-copy,
#family-asset-iq-view .paloist-mobile-document-row strong,
#family-asset-iq-view .paloist-mobile-document-row span,
#family-asset-iq-view .paloist-mobile-document-row small {
  min-width: 0;
  overflow-wrap: anywhere;
}

#family-asset-iq-view .paloist-mobile-document-row-copy {
  display: block;
}

#family-asset-iq-view .paloist-mobile-document-row strong {
  display: -webkit-box;
  overflow: hidden;
  color: #161923;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#family-asset-iq-view .paloist-mobile-document-row span,
#family-asset-iq-view .paloist-mobile-document-row small {
  display: block;
  margin-top: 3px;
  color: #697182;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

#family-asset-iq-view .paloist-mobile-document-row-copy > span,
#family-asset-iq-view .paloist-mobile-document-row-copy > small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#family-asset-iq-view .paloist-mobile-document-file-icon {
  position: relative;
  width: 34px;
  height: 40px;
  display: grid;
  place-items: end center;
  border: 1px solid #cfd2ff;
  border-radius: 7px;
  margin: 0;
  padding: 0 2px 6px;
  color: #4f46e5;
  background: #f2f1ff;
}

#family-asset-iq-view .paloist-mobile-document-file-icon > span {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  border-bottom: 1px solid #cfd2ff;
  border-left: 1px solid #cfd2ff;
  border-radius: 0 7px 0 4px;
  margin: 0;
  background: #fff;
}

#family-asset-iq-view .paloist-mobile-document-file-icon small {
  display: block;
  margin: 0;
  color: #4f46e5;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

#family-asset-iq-view .paloist-mobile-document-chevron {
  display: block;
  margin: 0;
  color: #4f46e5;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

#family-asset-iq-view .paloist-mobile-document-error {
  margin: 0;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 10px 12px;
  color: #991b1b;
  background: #fff1f2;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

#family-asset-iq-view .paloist-mobile-document-pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
}

#family-asset-iq-view .paloist-mobile-document-pagination span {
  color: #697182;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

#family-asset-iq-view .paloist-mobile-document-pagination button:disabled {
  border-color: #e4e7ef;
  color: #8b93a3;
  background: #f8f9fc;
}

#family-asset-iq-view .paloist-mobile-document-viewer-screen {
  gap: 10px;
  overflow: hidden;
  background: #f7f8fc;
}

#family-asset-iq-view .paloist-mobile-document-viewer-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

#family-asset-iq-view .paloist-mobile-document-viewer-header button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #dfe3ec;
  border-radius: 13px;
  padding: 0 10px;
  color: #4f46e5;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}

#family-asset-iq-view .paloist-mobile-document-viewer-header button span {
  margin-top: -2px;
  font-size: 24px;
  line-height: 1;
}

#family-asset-iq-view .paloist-mobile-document-viewer-header div {
  min-width: 0;
}

#family-asset-iq-view .paloist-mobile-document-viewer-header small,
#family-asset-iq-view .paloist-mobile-document-viewer-header h3 {
  display: block;
  min-width: 0;
  margin: 0;
}

#family-asset-iq-view .paloist-mobile-document-viewer-header small {
  color: #4f46e5;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

#family-asset-iq-view .paloist-mobile-document-viewer-header h3 {
  overflow: hidden;
  color: #161923;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#family-asset-iq-view .paloist-mobile-document-preview {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #dfe3ec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(20, 23, 40, 0.08);
}

#family-asset-iq-view .paloist-mobile-document-frame {
  width: 100%;
  height: 100%;
  min-height: 390px;
  display: block;
  border: 0;
  background: #fff;
}

#family-asset-iq-view .paloist-mobile-document-image-wrap,
#family-asset-iq-view .paloist-mobile-document-text {
  width: 100%;
  height: 100%;
  min-height: 390px;
  overflow: auto;
  margin: 0;
}

#family-asset-iq-view .paloist-mobile-document-image-wrap {
  display: grid;
  place-items: start center;
  padding: 12px;
}

#family-asset-iq-view .paloist-mobile-document-image-wrap img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

#family-asset-iq-view .paloist-mobile-document-text {
  padding: 16px;
  color: #252936;
  background: #fff;
  font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

#family-asset-iq-view .paloist-mobile-document-unavailable {
  min-height: 390px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
}

#family-asset-iq-view .paloist-mobile-document-unavailable strong {
  color: #161923;
  font-size: 17px;
  font-weight: 900;
}

#family-asset-iq-view .paloist-mobile-document-unavailable p {
  max-width: 260px;
  margin: 0;
  color: #697182;
  font-size: 12px;
  line-height: 1.45;
}

#family-asset-iq-view .paloist-mobile-document-share {
  flex: 0 0 auto;
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

#family-asset-iq-view .paloist-mobile-document-share:disabled {
  cursor: wait;
  opacity: 0.68;
}

#family-asset-iq-view .paloist-mobile-document-share-status {
  margin: 0;
  border-radius: 12px;
  padding: 9px 11px;
  color: #5f6472;
  background: #eef1ff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

#family-asset-iq-view .paloist-mobile-inheritance-panel {
  gap: 14px;
  border-color: #e4e7ef;
  border-radius: 18px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(20, 23, 40, 0.08);
}

#family-asset-iq-view .paloist-mobile-inheritance-header {
  display: grid;
  gap: 6px;
}

#family-asset-iq-view .paloist-mobile-inheritance-header h3 {
  margin: 0;
  color: #161923;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
}

#family-asset-iq-view .paloist-mobile-inheritance-panel .eyebrow {
  color: #4f46e5;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

#family-asset-iq-view .paloist-mobile-inheritance-panel .family-beneficiary-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}

#family-asset-iq-view .paloist-mobile-inheritance-panel .family-beneficiary-card {
  min-height: 92px;
  border-color: #e4e7ef;
  border-radius: 16px;
  padding: 12px;
  background: #f8f9fc;
}

#family-asset-iq-view .paloist-mobile-inheritance-panel .family-beneficiary-select {
  gap: 6px;
  border: 0;
  padding: 2px;
  color: inherit;
  background: transparent;
  text-align: left;
  box-shadow: none;
}

#family-asset-iq-view .paloist-mobile-inheritance-panel .family-beneficiary-select:hover,
#family-asset-iq-view .paloist-mobile-inheritance-panel .family-beneficiary-select:focus-visible,
#family-asset-iq-view .paloist-mobile-inheritance-panel .family-beneficiary-select.is-interactive-hover,
#family-asset-iq-view .paloist-mobile-inheritance-panel .family-beneficiary-select[data-fr33dom-hovered="true"] {
  border-color: transparent !important;
  color: inherit !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  transform: none !important;
}

#family-asset-iq-view .paloist-mobile-inheritance-panel .family-beneficiary-select span {
  color: #161923;
  font-size: 16px;
  font-weight: 900;
}

#family-asset-iq-view .paloist-mobile-inheritance-panel .family-beneficiary-select strong {
  color: #1f5d91;
  font-size: 25px;
  font-weight: 900;
}

#family-asset-iq-view .paloist-mobile-inheritance-panel .family-beneficiary-select small {
  color: #697182;
  font-size: 13px;
  font-weight: 750;
}

#family-asset-iq-view .paloist-mobile-inheritance-panel .family-beneficiary-edit-button {
  width: 36px;
  height: 36px;
  border-color: #d7e5f4;
  border-radius: 999px;
  padding: 0;
  background: #fff;
}

#family-asset-iq-view .paloist-mobile-inheritance-panel .family-inheritor-profile-section {
  margin-top: 4px;
  padding-top: 16px;
  border-top-color: #d7e5f4;
}

#family-asset-iq-view .paloist-mobile-inheritance-panel .family-inheritor-profile-form {
  gap: 14px;
}

#family-asset-iq-view .paloist-mobile-inheritance-panel .family-inheritor-profile-header h3 {
  color: #161923;
  font-size: 22px;
  font-weight: 900;
}

#family-asset-iq-view .paloist-mobile-inheritance-panel .family-inheritor-row {
  border-color: #d7e5f4;
  border-radius: 16px;
  padding: 14px;
  background: #fff;
}

#family-asset-iq-view .paloist-mobile-inheritance-panel .family-inheritor-fields {
  grid-template-columns: 1fr;
  gap: 10px;
}

#family-asset-iq-view .paloist-mobile-inheritance-panel .family-inheritor-fields label {
  color: #697182;
  font-size: 12px;
  font-weight: 850;
}

#family-asset-iq-view .paloist-mobile-inheritance-panel .family-inheritor-fields input {
  min-height: 46px;
  border: 1px solid #e4e7ef;
  border-radius: 14px;
  padding: 0 14px;
  color: #161923;
  background: #fff;
  font-size: 14px;
  font-weight: 750;
}

#family-asset-iq-view .paloist-mobile-inheritance-panel .family-profile-actions {
  justify-content: flex-start;
}

#family-asset-iq-view .paloist-mobile-inheritance-panel .family-profile-actions .ghost-button {
  border-color: #4f46e5;
  border-radius: 12px;
  padding: 12px 15px;
  color: #4f46e5;
  background: #fff;
  font-size: 16px;
  font-weight: 900;
}

#family-asset-iq-view .paloist-live-mobile-screen .family-inheritor-editor-backdrop {
  position: absolute;
  overflow-y: auto;
  padding: 16px 5px;
}

#family-asset-iq-view .paloist-live-mobile-screen .family-inheritor-editor-dialog {
  box-sizing: border-box;
  width: min(330px, 100%);
  max-width: 100%;
  max-height: calc(100% - 32px);
  overflow-y: auto;
  border-radius: 20px;
  padding: 18px;
}

#family-asset-iq-view .paloist-live-mobile-screen .family-inheritor-editor-form h3 {
  color: #161923;
  font-size: 22px;
  font-weight: 900;
}

#family-asset-iq-view .paloist-live-mobile-screen .family-inheritor-editor-form .family-inheritor-fields {
  grid-template-columns: 1fr;
}

#family-asset-iq-view .paloist-live-mobile-screen .family-inheritor-editor-form .family-inheritor-row {
  border-color: #d7e5f4;
  border-radius: 16px;
  padding: 14px;
}

#family-asset-iq-view .paloist-live-mobile-screen .family-inheritor-editor-actions {
  width: 100%;
  justify-items: stretch;
  gap: 8px;
}

#family-asset-iq-view .paloist-live-mobile-screen .family-inheritor-editor-actions .ghost-button {
  justify-content: center;
  width: 100%;
  border-color: #4f46e5;
  color: #fff;
  background: #4f46e5;
}

#family-asset-iq-view .paloist-live-mobile-screen .family-inheritor-remove-action {
  justify-self: center;
  width: auto;
  margin-top: 2px;
  color: #b42318;
  text-align: center;
}

#family-asset-iq-view .paloist-mobile-asset-intake-card {
  gap: 12px;
}

#family-asset-iq-view .paloist-mobile-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#family-asset-iq-view .paloist-mobile-upload-card {
  display: grid;
  min-width: 0;
  gap: 8px;
  border: 1px solid var(--paloist-line);
  border-radius: 10px;
  padding: 8px;
  background: #fffcf5;
}

#family-asset-iq-view .paloist-mobile-upload-dropzone {
  display: grid;
  place-items: center;
  min-height: 104px;
  border: 1px dashed #d7b99d;
  border-radius: 9px;
  padding: 8px;
  color: var(--paloist-taupe);
  background: #fff8ef;
  text-align: center;
  overflow: hidden;
  cursor: pointer;
}

#family-asset-iq-view .paloist-mobile-upload-dropzone.is-dragging {
  border-color: var(--paloist-copper);
  background: #fbefe4;
}

#family-asset-iq-view .paloist-mobile-upload-dropzone img {
  width: 100%;
  height: 100%;
  max-height: 112px;
  border-radius: 8px;
  object-fit: cover;
}

#family-asset-iq-view .paloist-mobile-upload-dropzone span,
#family-asset-iq-view .paloist-mobile-upload-dropzone small {
  display: block;
  margin: 0;
  color: inherit;
}

#family-asset-iq-view .paloist-mobile-upload-dropzone span {
  color: var(--paloist-charcoal);
  font-size: 12px;
  font-weight: 900;
}

#family-asset-iq-view .paloist-mobile-upload-dropzone small {
  font-size: 10px;
  font-weight: 800;
}

#family-asset-iq-view .paloist-mobile-upload-card label {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: var(--paloist-taupe);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.25;
}

#family-asset-iq-view .paloist-mobile-upload-card label span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#family-asset-iq-view .paloist-mobile-upload-card input[type="file"] {
  width: 100%;
  min-width: 0;
  color: var(--paloist-taupe);
  font-size: 9px;
}

#family-asset-iq-view .paloist-mobile-upload-card button,
#family-asset-iq-view .paloist-mobile-form-actions button,
#family-asset-iq-view .paloist-mobile-field-with-action button {
  min-width: 0;
  border: 1px solid var(--paloist-copper);
  border-radius: 8px;
  padding: 8px 9px;
  color: var(--paloist-copper-dark);
  background: #fbefe4;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  cursor: pointer;
}

#family-asset-iq-view .paloist-mobile-upload-card button:disabled,
#family-asset-iq-view .paloist-mobile-form-actions button:disabled,
#family-asset-iq-view .paloist-mobile-field-with-action button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

#family-asset-iq-view .paloist-mobile-asset-form {
  display: grid;
  gap: 10px;
}

#family-asset-iq-view .paloist-mobile-asset-form label {
  display: grid;
  min-width: 0;
  gap: 5px;
  color: var(--paloist-taupe);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
}

#family-asset-iq-view .paloist-mobile-asset-form input,
#family-asset-iq-view .paloist-mobile-asset-form select,
#family-asset-iq-view .paloist-mobile-asset-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--paloist-line);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--paloist-charcoal);
  background: #fffdf8;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

#family-asset-iq-view .paloist-mobile-asset-form textarea {
  resize: vertical;
}

#family-asset-iq-view .paloist-mobile-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#family-asset-iq-view .paloist-mobile-field-with-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 6px;
  align-items: center;
}

#family-asset-iq-view .paloist-mobile-field-with-action button {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
}

#family-asset-iq-view .paloist-mobile-form-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: 8px;
}

#family-asset-iq-view .paloist-mobile-form-actions button[type="submit"] {
  color: #fffdf8;
  background: var(--paloist-copper);
}

#family-asset-iq-view .paloist-mobile-success,
#family-asset-iq-view .paloist-mobile-follow-up-list {
  display: grid;
  gap: 6px;
  border: 1px solid #d7b99d;
  border-radius: 9px;
  padding: 9px;
  color: var(--paloist-charcoal);
  background: #fbefe4;
  font-size: 11px;
  line-height: 1.35;
}

#family-asset-iq-view .paloist-mobile-follow-up-list strong {
  color: var(--paloist-copper-dark);
  font-size: 12px;
}

#family-asset-iq-view .paloist-mobile-follow-up-list p {
  color: var(--paloist-taupe);
  font-size: 11px;
}

#family-asset-iq-view .paloist-mobile-asset-intake-card .family-asset-document-list {
  gap: 6px;
}

#family-asset-iq-view .paloist-mobile-asset-intake-card .family-asset-document-row {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 7px;
}

#family-asset-iq-view .paloist-mobile-asset-intake-card .family-asset-document-row strong,
#family-asset-iq-view .paloist-mobile-asset-intake-card .family-asset-document-row span {
  overflow-wrap: anywhere;
}

#family-asset-iq-view .paloist-mobile-asset-intake-card .family-asset-document-preview {
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 6px;
  width: 100%;
}

#family-asset-iq-view .paloist-mobile-asset-intake-card .family-asset-document-thumbnail {
  width: 34px;
  height: 34px;
  font-size: 10px;
}

#family-asset-iq-view .family-asset-ai-value-button {
  border-color: #d7b99d;
  color: var(--paloist-copper-dark);
  background: #fbefe4;
}

#family-asset-iq-view .family-asset-photo-preview:hover::after,
#family-asset-iq-view .family-asset-document-dropzone:hover::after,
#family-asset-iq-view .family-library-document-dropzone:hover::after,
#family-asset-iq-view .family-estate-document-dropzone:hover::after,
#family-asset-iq-view .family-insurance-document-dropzone:hover::after {
  border-color: rgba(180, 107, 63, 0.18);
}

.council-drawer.asset-council-theme .drawer-panel {
  background:
    linear-gradient(180deg, rgba(251, 247, 240, 0.96), rgba(255, 253, 248, 0.98)),
    var(--paloist-paper);
}

.council-drawer.asset-council-theme .council-form button {
  border-color: var(--paloist-copper);
  color: var(--paloist-paper);
  background: var(--paloist-copper);
}

.app-shell.family-mode .council-voice-controls,
.council-drawer.asset-council-theme .council-voice-controls {
  border-color: var(--paloist-line);
  background: #fbefe4;
}

.app-shell.family-mode .voice-tool-button,
.council-drawer.asset-council-theme .voice-tool-button {
  border-color: #d7b99d;
  color: var(--paloist-copper-dark);
  background: var(--paloist-paper);
}

.app-shell.family-mode .voice-tool-button:hover,
.app-shell.family-mode .voice-tool-button:focus-visible,
.app-shell.family-mode .voice-tool-button.is-active,
.council-drawer.asset-council-theme .voice-tool-button:hover,
.council-drawer.asset-council-theme .voice-tool-button:focus-visible,
.council-drawer.asset-council-theme .voice-tool-button.is-active {
  border-color: var(--paloist-copper);
  color: var(--paloist-paper);
  background: var(--paloist-copper);
  box-shadow: 0 0 0 3px rgba(180, 107, 63, 0.14);
}

.council-drawer.asset-council-theme .expert-card {
  border-left: 3px solid var(--paloist-copper);
}

.paloist-dashboard-shell {
  --paloist-dash-primary: #4f46e5;
  --paloist-dash-primary-dark: #4338ca;
  --paloist-dash-primary-soft: #eef0fe;
  --paloist-dash-panel: #ffffff;
  --paloist-dash-line: #e9ebf0;
  --paloist-dash-ink: #1c1e26;
  --paloist-dash-muted: #6b7280;
  --paloist-dash-faint: #9aa1ad;
  --paloist-dash-green: #10b981;
  --paloist-dash-amber: #f59e0b;
  --paloist-dash-red: #ef4444;
  display: grid;
  gap: 16px;
  color: var(--paloist-dash-ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.app-shell.family-mode #family-asset-iq-view .paloist-dashboard-shell .panel,
.app-shell.family-mode #family-asset-iq-view .paloist-dashboard-metric {
  border: 1px solid var(--paloist-dash-line);
  border-radius: 18px;
  background: var(--paloist-dash-panel);
  box-shadow: 0 1px 3px rgba(20, 23, 40, 0.05), 0 6px 18px rgba(20, 23, 40, 0.04);
}

.app-shell.family-mode #family-asset-iq-view .paloist-dashboard-shell .panel h2 {
  color: var(--paloist-dash-ink);
  font-family: inherit;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.app-shell.family-mode #family-asset-iq-view .paloist-dashboard-shell .eyebrow {
  color: var(--paloist-dash-primary);
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.app-shell.family-mode #family-asset-iq-view .paloist-dashboard-shell .panel-pill {
  border-color: var(--paloist-dash-line);
  color: var(--paloist-dash-muted);
  background: #fff;
}

.app-shell.family-mode #family-asset-iq-view .paloist-dashboard-shell .panel-subtitle,
.app-shell.family-mode #family-asset-iq-view .paloist-dashboard-shell .muted {
  color: var(--paloist-dash-muted);
}

.paloist-dashboard-command {
  display: flex;
  gap: 11px;
  align-items: stretch;
}

.paloist-dashboard-search-form {
  display: flex;
  flex: 1 1 auto;
  gap: 11px;
  min-width: 0;
}

.paloist-dashboard-search-field {
  display: flex;
  flex: 1 1 auto;
  grid-template-columns: none;
  min-width: 0;
  height: 54px;
  align-items: center;
  gap: 11px;
  border: 1.5px solid var(--paloist-dash-line);
  border-radius: 14px;
  padding: 0 18px;
  color: var(--paloist-dash-primary);
  background: #fff;
  box-shadow: 0 1px 3px rgba(20, 23, 40, 0.05), 0 6px 18px rgba(20, 23, 40, 0.04);
}

.paloist-dashboard-search-field:focus-within {
  border-color: var(--paloist-dash-primary);
  box-shadow: 0 0 0 4px var(--paloist-dash-primary-soft);
}

.paloist-dashboard-search-field input {
  border: 0;
  padding: 0;
  color: var(--paloist-dash-ink);
  background: transparent;
  box-shadow: none;
}

.paloist-dashboard-go-button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 14px;
  padding: 0 24px;
  color: #fff;
  background: #16181d;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}

.paloist-dashboard-council-button {
  display: flex;
  flex: 0 0 auto;
  height: 54px;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--paloist-dash-line);
  border-radius: 14px;
  padding: 0 18px;
  color: var(--paloist-dash-ink);
  background: #fff;
  font-weight: 800;
  box-shadow: 0 1px 3px rgba(20, 23, 40, 0.05), 0 6px 18px rgba(20, 23, 40, 0.04);
}

.paloist-dashboard-council-button:hover,
.paloist-dashboard-council-button:focus-visible {
  border-color: var(--paloist-dash-primary);
  color: var(--paloist-dash-primary-dark);
}

.paloist-dashboard-council-button b {
  color: var(--paloist-dash-muted);
}

.paloist-dashboard-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.paloist-dashboard-chip {
  border: 1px solid var(--paloist-dash-line);
  border-radius: 999px;
  padding: 6px 13px;
  color: var(--paloist-dash-muted);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}

.paloist-dashboard-chip:hover,
.paloist-dashboard-chip:focus-visible {
  border-color: var(--paloist-dash-primary);
  color: var(--paloist-dash-primary-dark);
}

.paloist-dashboard-metrics,
.paloist-dashboard-main-grid,
.paloist-dashboard-lower-grid {
  display: grid;
  gap: 16px;
}

.paloist-dashboard-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.paloist-dashboard-main-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.8fr);
}

.paloist-dashboard-lower-grid {
  grid-template-columns: minmax(0, 1fr) minmax(330px, 1fr);
}

.paloist-dashboard-readiness-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.family-full-picture-bridge,
.family-deadlines-panel {
  padding: 22px;
}

.family-value-bridge-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 24px;
}

.family-value-bridge-rows,
.family-liquidity-list,
.family-readiness-list,
.family-readiness-bars,
.family-deadline-list {
  display: grid;
  gap: 10px;
}

.family-value-bridge-row,
.family-readiness-list > div,
.family-liquidity-list label {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid var(--paloist-dash-line);
  padding: 10px 0;
}

.family-value-bridge-row span,
.family-value-bridge-row small {
  display: block;
}

.family-value-bridge-row small,
.family-illiquid-panel small {
  margin-top: 3px;
  color: var(--paloist-dash-faint);
  font-size: 11px;
}

.family-value-bridge-row strong,
.family-illiquid-panel strong {
  color: var(--paloist-dash-ink);
  font-size: 18px;
}

.family-illiquid-panel {
  border: 1px solid var(--paloist-dash-line);
  border-radius: 16px;
  padding: 16px;
  background: #fafafe;
}

.family-illiquid-panel > div:first-child {
  display: grid;
  gap: 5px;
  margin-bottom: 10px;
}

.family-liquidity-list {
  max-height: 250px;
  overflow: auto;
}

.family-liquidity-list label span {
  overflow: hidden;
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.family-liquidity-list select {
  width: 130px;
  min-height: 34px;
  padding: 5px 28px 5px 8px;
  font-size: 12px;
}

.family-readiness-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 20px;
}

.family-readiness-card h2 {
  margin: 0;
}

.family-readiness-list > div {
  font-size: 12px;
}

.family-readiness-list strong {
  text-align: right;
}

.family-readiness-bars > div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 36px;
  gap: 8px;
  align-items: center;
  font-size: 11px;
}

.family-readiness-bars progress {
  width: 100%;
  accent-color: var(--paloist-dash-primary);
}

.family-deadline-tabs {
  display: flex;
  gap: 6px;
}

.family-deadline-tabs button {
  border: 1px solid var(--paloist-dash-line);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--paloist-dash-muted);
  background: #fff;
  font-size: 11px;
  font-weight: 800;
}

.family-deadline-tabs button.is-active {
  border-color: var(--paloist-dash-primary);
  color: #fff;
  background: var(--paloist-dash-primary);
}

.family-deadline-list > div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 100px;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--paloist-dash-line);
  padding: 10px 0;
}

.family-deadline-list time {
  color: var(--paloist-dash-muted);
  font-size: 12px;
  text-align: right;
}

.paloist-dashboard-metric {
  display: grid;
  gap: 7px;
  padding: 18px;
}

.paloist-dashboard-metric span {
  color: var(--paloist-dash-muted);
  font-size: 12px;
  font-weight: 700;
}

.paloist-dashboard-metric strong {
  color: var(--paloist-dash-ink);
  font-size: 26px;
  line-height: 1.05;
}

.paloist-dashboard-metric small {
  color: var(--paloist-dash-faint);
  font-size: 11.5px;
  font-weight: 700;
}

.app-shell.family-mode #family-asset-iq-view .paloist-dashboard-metric.is-hero {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--paloist-dash-primary), #6366f1 55%, #8b5cf6);
  box-shadow: 0 10px 26px rgba(79, 70, 229, 0.26);
}

.app-shell.family-mode #family-asset-iq-view .paloist-dashboard-metric.is-hero span,
.app-shell.family-mode #family-asset-iq-view .paloist-dashboard-metric.is-hero strong,
.app-shell.family-mode #family-asset-iq-view .paloist-dashboard-metric.is-hero small {
  color: #fff;
}

.app-shell.family-mode #family-asset-iq-view .paloist-dashboard-metric.is-hero small {
  opacity: 0.78;
}

.paloist-dashboard-metric.is-flag strong {
  color: var(--paloist-dash-red);
}

.paloist-dashboard-composition-body {
  display: grid;
  gap: 18px;
}

.paloist-dashboard-donut {
  display: grid;
  position: relative;
  width: 188px;
  height: 188px;
  place-self: center;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: conic-gradient(var(--paloist-donut-gradient));
  box-shadow: none;
}

.paloist-dashboard-donut::after {
  content: "";
  position: absolute;
  inset: 27%;
  border: 1px solid var(--paloist-dash-line);
  border-radius: 50%;
  background: #fff;
}

.paloist-dashboard-donut span {
  display: grid;
  position: relative;
  z-index: 1;
  gap: 2px;
  place-items: center;
  text-align: center;
}

.paloist-dashboard-donut strong {
  color: var(--paloist-dash-ink);
  font-size: 20px;
  font-weight: 850;
}

.paloist-dashboard-donut small {
  color: var(--paloist-dash-muted);
  font-size: 8.5px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.paloist-dashboard-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.paloist-dashboard-legend-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto 42px;
  gap: 9px;
  align-items: center;
  border: 0;
  padding: 0;
  color: var(--paloist-dash-ink);
  background: transparent;
  text-align: left;
}

.paloist-dashboard-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.paloist-dashboard-legend-row span:not(.paloist-dashboard-legend-dot) {
  overflow: hidden;
  color: var(--paloist-dash-ink);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.paloist-dashboard-legend-row strong {
  color: var(--paloist-dash-ink);
  font-size: 13px;
}

.paloist-dashboard-legend-row small {
  color: var(--paloist-dash-faint);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.paloist-dashboard-action-list,
.paloist-dashboard-note-grid {
  display: grid;
}

.paloist-dashboard-action {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--paloist-dash-line);
  padding: 13px 2px;
}

.paloist-dashboard-action:last-child {
  border-bottom: 0;
}

.paloist-dashboard-action-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--paloist-dash-line);
  border-radius: 10px;
  color: var(--paloist-dash-muted);
  background: #f7f8fa;
}

.paloist-dashboard-action strong {
  display: block;
  color: var(--paloist-dash-ink);
  font-size: 13.5px;
  line-height: 1.25;
}

.paloist-dashboard-action small {
  display: block;
  margin-top: 2px;
  color: var(--paloist-dash-faint);
  font-size: 11.5px;
  line-height: 1.35;
}

.paloist-dashboard-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 9px;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.paloist-dashboard-badge.is-now {
  background: var(--paloist-dash-red);
}

.paloist-dashboard-badge.is-soon {
  background: var(--paloist-dash-amber);
}

.paloist-dashboard-badge.is-later {
  background: #9ca3af;
}

.paloist-dashboard-badge.is-good {
  background: var(--paloist-dash-green);
}

.paloist-dashboard-progress {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #f7f8fa;
}

.paloist-dashboard-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--paloist-dash-green), #34d399);
}

.paloist-dashboard-two-num {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.paloist-dashboard-two-num > div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--paloist-dash-line);
  border-radius: 12px;
  padding: 13px;
  background: #f7f8fa;
}

.paloist-dashboard-two-num span,
.paloist-dashboard-two-num small {
  color: var(--paloist-dash-muted);
  font-size: 11px;
  font-weight: 700;
}

.paloist-dashboard-two-num strong {
  color: var(--paloist-dash-primary-dark);
  font-size: 20px;
  line-height: 1.1;
}

.paloist-dashboard-status-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--paloist-dash-line);
  padding: 12px 0;
}

.paloist-dashboard-status-row:last-child {
  border-bottom: 0;
}

.paloist-dashboard-status-row span {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--paloist-dash-ink);
  font-size: 13.5px;
  font-weight: 700;
}

.paloist-dashboard-status-row strong {
  color: var(--paloist-dash-primary-dark);
}

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

.paloist-dashboard-note {
  border-left: 3px solid var(--paloist-dash-primary);
  border-radius: 0 11px 11px 0;
  padding: 11px 14px;
  background: #f7f8fa;
}

.paloist-dashboard-note strong {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--paloist-dash-ink);
  font-size: 13px;
  line-height: 1.3;
}

.paloist-dashboard-note p {
  margin: 5px 0 0;
  color: var(--paloist-dash-muted);
  font-size: 12px;
  line-height: 1.45;
}

.paloist-dashboard-top-assets-panel {
  margin-top: 0;
}

.app-shell.family-mode,
.council-drawer.asset-council-theme {
  --paloist-charcoal: #1c1e26;
  --paloist-charcoal-soft: #333845;
  --paloist-cream: #f4f5f8;
  --paloist-cream-light: #fafbff;
  --paloist-paper: #ffffff;
  --paloist-copper: #4f46e5;
  --paloist-copper-dark: #4338ca;
  --paloist-gold: #8b5cf6;
  --paloist-taupe: #6b7280;
  --paloist-line: #e9ebf0;
  --paloist-line-strong: #d9dde7;
  --forest: var(--paloist-copper);
  --forest-dark: var(--paloist-copper-dark);
  --forest-soft: #eef0fe;
  --ink: var(--paloist-charcoal);
  --muted: var(--paloist-taupe);
  --line: var(--paloist-line);
  --line-strong: var(--paloist-line-strong);
  --panel: var(--paloist-paper);
  --page: var(--paloist-cream);
  --asset-accent-soft: #f7f8fa;
  --asset-accent-line: var(--paloist-line);
  --asset-accent-dash: #c7ccfb;
  --asset-accent-shadow: rgba(79, 70, 229, 0.12);
  --asset-accent-shadow-strong: rgba(79, 70, 229, 0.18);
  --shadow-soft: 0 1px 3px rgba(20, 23, 40, 0.05), 0 6px 18px rgba(20, 23, 40, 0.04);
  --shadow-lift: 0 14px 34px rgba(20, 23, 40, 0.1);
}

.app-shell.family-mode,
.app-shell.family-mode .workspace {
  background: #f4f5f8;
}

.app-shell.family-mode .topbar {
  border-bottom-color: transparent;
}

.app-shell.family-mode .topbar .eyebrow,
#family-asset-iq-view .eyebrow,
.council-drawer.asset-council-theme .eyebrow {
  color: var(--paloist-copper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.12em;
}

.app-shell.family-mode .topbar h1,
#family-asset-iq-view .panel h2,
#family-asset-iq-view .family-overview-hero h2,
.council-drawer.asset-council-theme .drawer-header h2,
.council-drawer.asset-council-theme .summary-card h3 {
  color: var(--paloist-charcoal);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.app-shell.family-mode .topbar h1 {
  font-size: 30px;
}

.app-shell.family-mode .page-subtitle,
#family-asset-iq-view .panel-subtitle,
#family-asset-iq-view .muted,
.council-drawer.asset-council-theme .panel-subtitle,
.council-drawer.asset-council-theme .muted {
  color: var(--paloist-taupe);
}

.app-shell.family-mode #family-asset-iq-view {
  color: var(--paloist-charcoal);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.app-shell.family-mode #family-asset-iq-view .panel,
.app-shell.family-mode #family-asset-iq-view .metric-panel,
.app-shell.family-mode #family-asset-iq-view .family-document-card,
.app-shell.family-mode #family-asset-iq-view .family-opportunity-rule-card,
.app-shell.family-mode #family-asset-iq-view .family-opportunity-run-card,
.app-shell.family-mode #family-asset-iq-view .family-report-preview-shell,
.council-drawer.asset-council-theme .expert-card,
.council-drawer.asset-council-theme .summary-card {
  border: 1px solid var(--paloist-line);
  border-radius: 18px;
  background: var(--paloist-paper);
  box-shadow: var(--shadow-soft);
}

.app-shell.family-mode #family-asset-iq-view .panel,
.app-shell.family-mode #family-asset-iq-view .metric-panel {
  border-radius: 18px;
}

.app-shell.family-mode #family-asset-iq-view .primary-metric,
.app-shell.family-mode #family-asset-iq-view .family-overview-hero {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--paloist-copper), #6366f1 55%, var(--paloist-gold));
  box-shadow: 0 10px 26px rgba(79, 70, 229, 0.24);
}

.app-shell.family-mode #family-asset-iq-view .primary-metric span,
.app-shell.family-mode #family-asset-iq-view .primary-metric strong,
.app-shell.family-mode #family-asset-iq-view .primary-metric small,
.app-shell.family-mode #family-asset-iq-view .family-overview-hero h2,
.app-shell.family-mode #family-asset-iq-view .family-overview-hero .eyebrow,
.app-shell.family-mode #family-asset-iq-view .family-overview-hero .panel-subtitle {
  color: #fff;
}

.app-shell.family-mode #family-asset-iq-view .metric-panel span,
.app-shell.family-mode #family-asset-iq-view .family-asset-card header span,
.app-shell.family-mode #family-asset-iq-view .family-document-row span,
.app-shell.family-mode #family-asset-iq-view .family-setting-row span,
.app-shell.family-mode #family-asset-iq-view .family-planning-checklist span {
  color: var(--paloist-taupe);
}

.app-shell.family-mode #family-asset-iq-view .metric-panel strong,
.app-shell.family-mode #family-asset-iq-view .family-asset-category-card strong,
.app-shell.family-mode #family-asset-iq-view .family-asset-type-button strong,
.app-shell.family-mode #family-asset-iq-view .family-inheritance-dashboard-stats strong,
.app-shell.family-mode #family-asset-iq-view .family-asset-card-image span,
.app-shell.family-mode #family-asset-iq-view .family-asset-breakdown-row strong,
.app-shell.family-mode #family-asset-iq-view .family-opportunity-score strong,
.app-shell.family-mode #family-asset-iq-view .family-opportunity-comps strong,
.app-shell.family-mode #family-asset-iq-view .family-asset-field-help strong {
  color: var(--paloist-copper-dark);
}

.app-shell.family-mode #family-asset-iq-view .panel-pill,
.council-drawer.asset-council-theme .panel-pill,
.app-shell.family-mode #family-asset-iq-view .provider-status.is-ready,
.app-shell.family-mode #family-asset-iq-view .status-pill.is-ready {
  border-color: var(--paloist-line);
  color: var(--paloist-taupe);
  background: #fff;
}

.app-shell.family-mode #family-asset-iq-view .family-asset-category-card,
.app-shell.family-mode #family-asset-iq-view .family-asset-type-button,
.app-shell.family-mode #family-asset-iq-view .family-asset-compact-row,
.app-shell.family-mode #family-asset-iq-view .family-document-row,
.app-shell.family-mode #family-asset-iq-view .family-setting-row,
.app-shell.family-mode #family-asset-iq-view .family-profile-field,
.app-shell.family-mode #family-asset-iq-view .family-report-checkbox,
.app-shell.family-mode #family-asset-iq-view .family-report-static-control,
.app-shell.family-mode #family-asset-iq-view .family-report-guide-list > div,
.app-shell.family-mode #family-asset-iq-view .family-planning-checklist > div,
.app-shell.family-mode #family-asset-iq-view .family-beneficiary-card,
.app-shell.family-mode #family-asset-iq-view .family-inheritance-asset-row,
.app-shell.family-mode #family-asset-iq-view .family-estate-asset-row,
.app-shell.family-mode #family-asset-iq-view .family-estate-analysis-card,
.app-shell.family-mode #family-asset-iq-view .family-insurance-asset-row,
.app-shell.family-mode #family-asset-iq-view .family-insurance-analysis-card,
.app-shell.family-mode #family-asset-iq-view .family-protection-matrix-row,
.app-shell.family-mode #family-asset-iq-view .family-protection-layer-cell,
.app-shell.family-mode #family-asset-iq-view .family-protection-drawer-layer,
.app-shell.family-mode #family-asset-iq-view .family-protection-policy-hint,
.app-shell.family-mode #family-asset-iq-view .family-policy-detail-grid div,
.app-shell.family-mode #family-asset-iq-view .family-opportunity-run-metrics > div,
.app-shell.family-mode #family-asset-iq-view .family-opportunity-analysis-list,
.app-shell.family-mode #family-asset-iq-view .family-opportunity-comps > div,
.app-shell.family-mode #family-asset-iq-view .family-opportunity-sources > div,
.council-drawer.asset-council-theme .expert-card {
  border-color: var(--paloist-line);
  border-radius: 14px;
  background: #f7f8fa;
}

.app-shell.family-mode #family-asset-iq-view .family-asset-card,
.app-shell.family-mode #family-asset-iq-view .family-document-card,
.app-shell.family-mode #family-asset-iq-view .family-estate-analysis-card,
.app-shell.family-mode #family-asset-iq-view .family-insurance-analysis-card {
  border-color: var(--paloist-line);
  border-left-color: var(--paloist-copper);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(20, 23, 40, 0.05);
}

.app-shell.family-mode #family-asset-iq-view .family-asset-category-card:hover,
.app-shell.family-mode #family-asset-iq-view .family-asset-category-card:focus-visible,
.app-shell.family-mode #family-asset-iq-view .family-asset-type-button:hover,
.app-shell.family-mode #family-asset-iq-view .family-asset-type-button:focus-visible,
.app-shell.family-mode #family-asset-iq-view .family-asset-type-button.is-active,
.app-shell.family-mode #family-asset-iq-view .family-beneficiary-card.is-active {
  border-color: var(--paloist-copper);
  background: #fff;
  box-shadow: 0 0 0 2px var(--asset-accent-shadow);
}

.app-shell.family-mode #family-asset-iq-view .family-asset-card-image,
.app-shell.family-mode #family-asset-iq-view .family-asset-photo-preview,
.app-shell.family-mode #family-asset-iq-view .family-asset-document-dropzone,
.app-shell.family-mode #family-asset-iq-view .family-library-document-dropzone,
.app-shell.family-mode #family-asset-iq-view .family-estate-document-dropzone,
.app-shell.family-mode #family-asset-iq-view .family-insurance-document-dropzone,
.app-shell.family-mode #family-asset-iq-view .family-opportunity-hint,
.app-shell.family-mode #family-asset-iq-view .family-asset-question-list,
.app-shell.family-mode #family-asset-iq-view .family-asset-field-help,
.app-shell.family-mode #family-asset-iq-view .empty-state {
  border-color: #c7ccfb;
  background: var(--paloist-cream-light);
}

.app-shell.family-mode #family-asset-iq-view .family-asset-photo-preview:hover,
.app-shell.family-mode #family-asset-iq-view .family-asset-photo-preview:focus-visible,
.app-shell.family-mode #family-asset-iq-view .family-asset-document-dropzone:hover,
.app-shell.family-mode #family-asset-iq-view .family-asset-document-dropzone:focus-visible,
.app-shell.family-mode #family-asset-iq-view .family-library-document-dropzone:hover,
.app-shell.family-mode #family-asset-iq-view .family-library-document-dropzone:focus-visible,
.app-shell.family-mode #family-asset-iq-view .family-estate-document-dropzone:hover,
.app-shell.family-mode #family-asset-iq-view .family-estate-document-dropzone:focus-visible,
.app-shell.family-mode #family-asset-iq-view .family-insurance-document-dropzone:hover,
.app-shell.family-mode #family-asset-iq-view .family-insurance-document-dropzone:focus-visible {
  border-color: var(--paloist-copper);
  background: var(--paloist-primary-soft, #eef0fe);
  box-shadow: 0 0 0 4px var(--asset-accent-shadow);
}

.app-shell.family-mode #family-asset-iq-view input,
.app-shell.family-mode #family-asset-iq-view select,
.app-shell.family-mode #family-asset-iq-view textarea,
.council-drawer.asset-council-theme textarea {
  border-color: var(--paloist-line);
  border-radius: 12px;
  color: var(--paloist-charcoal);
  background: #fff;
}

.app-shell.family-mode #family-asset-iq-view input:focus,
.app-shell.family-mode #family-asset-iq-view select:focus,
.app-shell.family-mode #family-asset-iq-view textarea:focus,
.council-drawer.asset-council-theme textarea:focus {
  border-color: var(--paloist-copper);
  box-shadow: 0 0 0 4px var(--asset-accent-shadow);
}

.app-shell.family-mode .asset-council-button,
.app-shell.family-mode #family-asset-iq-view .ghost-button,
.app-shell.family-mode #family-asset-iq-view .family-asset-council-submit,
.app-shell.family-mode #family-asset-iq-view .family-asset-form-actions button[type="submit"],
.council-drawer.asset-council-theme .council-form button,
.council-drawer.asset-council-theme .voice-tool-button {
  border-color: var(--paloist-copper);
  color: var(--paloist-copper-dark);
  background: #fff;
}

.app-shell.family-mode .asset-council-button:hover,
.app-shell.family-mode .asset-council-button:focus-visible,
.app-shell.family-mode #family-asset-iq-view .ghost-button:hover,
.app-shell.family-mode #family-asset-iq-view .ghost-button:focus-visible,
.app-shell.family-mode #family-asset-iq-view .ghost-button.is-active,
.app-shell.family-mode #family-asset-iq-view .family-asset-council-submit,
.app-shell.family-mode #family-asset-iq-view .family-asset-form-actions button[type="submit"],
.council-drawer.asset-council-theme .council-form button,
.council-drawer.asset-council-theme .voice-tool-button:hover,
.council-drawer.asset-council-theme .voice-tool-button:focus-visible,
.council-drawer.asset-council-theme .voice-tool-button.is-active {
  color: #fff;
  background: var(--paloist-copper);
  box-shadow: 0 0 0 4px var(--asset-accent-shadow);
}

.app-shell.family-mode #family-asset-iq-view .success-banner,
.app-shell.family-mode #family-asset-iq-view .family-asset-edit-note {
  border-color: #c7ccfb;
  color: var(--paloist-copper-dark);
  background: #eef0fe;
}

.app-shell.family-mode .family-management-drawer,
.council-drawer.asset-council-theme .drawer-panel {
  border-left: 1px solid var(--paloist-line);
  color: var(--paloist-charcoal);
  background:
    radial-gradient(circle at 100% 0%, rgba(79, 70, 229, 0.08), transparent 28%),
    #f4f5f8;
  box-shadow: -28px 0 60px rgba(20, 23, 40, 0.18);
}

.app-shell.family-mode .family-management-drawer-header,
.council-drawer.asset-council-theme .drawer-header {
  border-bottom-color: var(--paloist-line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}

.app-shell.family-mode .family-management-drawer .family-asset-intake-panel,
.app-shell.family-mode .family-document-drawer-body,
.app-shell.family-mode .family-protection-drawer-form,
.council-drawer.asset-council-theme .council-form,
.council-drawer.asset-council-theme .council-voice-controls {
  border: 1px solid var(--paloist-line);
  border-radius: 18px;
  padding: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.app-shell.family-mode .family-management-drawer .family-asset-intake-panel {
  display: grid;
  gap: 14px;
}

.app-shell.family-mode .family-management-drawer-backdrop,
.council-drawer.asset-council-theme .drawer-overlay {
  background: rgba(20, 23, 40, 0.18);
}

body.paloist-mobile-menu-lock {
  overflow: hidden;
}

#family-asset-iq-view .paloist-mobile-phase-page {
  --mobile-blue: #3557ff;
  --mobile-violet: #7a5cff;
  --mobile-ink: #141827;
  --mobile-muted: #626a7d;
  --mobile-line: rgba(20, 24, 39, 0.1);
  --mobile-panel: rgba(255, 255, 255, 0.9);
  --mobile-shadow: 0 22px 60px rgba(25, 31, 55, 0.18);
  --mobile-copper: #b8873e;
  --mobile-copper-dark: #8a6222;
  --mobile-cream: #fbf7ef;
  --mobile-control-size: 40px;
  --mobile-button-height: 50px;
  --mobile-radius-control: 10px;
  --mobile-radius-button: 14px;
  --mobile-radius-panel: 16px;
  --mobile-banner-line: #e4e7ee;
}

/*
 * Mobile UI primitives
 *
 * Use these classes for new mobile work before adding page-specific CSS. A page
 * may choose a color modifier, but sizing, borders, and layout stay shared.
 */
#family-asset-iq-view .paloist-mobile-button {
  box-sizing: border-box;
  display: inline-flex;
  min-height: var(--mobile-button-height);
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--mobile-radius-button);
  padding: 12px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
}

#family-asset-iq-view .paloist-mobile-button.is-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--mobile-blue), var(--mobile-violet));
  box-shadow: 0 10px 22px rgba(53, 87, 255, 0.24);
}

#family-asset-iq-view .paloist-mobile-button.is-copper {
  color: #fff;
  background: linear-gradient(135deg, var(--mobile-copper), var(--mobile-copper-dark));
  box-shadow: 0 11px 22px rgba(152, 104, 29, 0.2);
}

#family-asset-iq-view .paloist-mobile-button.is-secondary {
  border: 1px solid var(--mobile-banner-line);
  color: #454754;
  background: #fff;
  box-shadow: none;
}

#family-asset-iq-view .paloist-mobile-button.is-small {
  min-height: 40px;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 12px;
}

#family-asset-iq-view .paloist-mobile-control {
  box-sizing: border-box;
  flex: 0 0 var(--mobile-control-size);
  width: var(--mobile-control-size);
  min-width: var(--mobile-control-size);
  height: var(--mobile-control-size);
  min-height: var(--mobile-control-size);
  padding: 0;
  border: 1px solid var(--mobile-banner-line);
  border-radius: var(--mobile-radius-control);
  background: #fff;
}

#family-asset-iq-view .paloist-mobile-status-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid #e7c887;
  border-radius: 999px;
  padding: 5px 12px;
  color: #75521b;
  background: #fff7e8;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

#family-asset-iq-view .paloist-mobile-panel {
  border: 1px solid var(--mobile-line);
  border-radius: var(--mobile-radius-panel);
  background: #fff;
  box-shadow: 0 7px 20px rgba(29, 35, 55, 0.055);
}

#family-asset-iq-view .paloist-mobile-bottom-banner {
  border-top: 1px solid var(--mobile-banner-line);
  background: #fff;
}

#family-asset-iq-view .paloist-mobile-phase-intro {
  border-color: #dfe4ff;
  background:
    radial-gradient(circle at 94% 18%, rgba(122, 92, 255, 0.13), transparent 28%),
    #ffffff;
}

#family-asset-iq-view .paloist-mobile-phase-intro h2 {
  color: var(--mobile-ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

#family-asset-iq-view .paloist-mobile-phase-stage {
  grid-template-columns: minmax(190px, 250px) minmax(320px, 390px) minmax(190px, 260px);
}

#family-asset-iq-view .paloist-mobile-step-list {
  display: grid;
  gap: 8px;
}

#family-asset-iq-view .paloist-mobile-step-list button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border-radius: 12px;
  text-align: left;
}

#family-asset-iq-view .paloist-mobile-step-list span {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--mobile-blue), var(--mobile-violet));
  font-size: 11px;
}

#family-asset-iq-view .paloist-phase-phone-shell {
  min-height: 731px;
  border-width: 5px;
  border-radius: 34px;
  padding: 0;
  border-color: #111522;
  background: #111522;
  box-shadow: var(--mobile-shadow);
}

#family-asset-iq-view .paloist-phase-phone-shell > .paloist-phone-notch {
  display: none;
}

#family-asset-iq-view .paloist-phase-phone-screen {
  display: block;
  min-height: 721px;
  max-height: 721px;
  border-radius: 29px;
  background: #f8f9fd;
}

#family-asset-iq-view .paloist-mobile-safe-area {
  position: relative;
  --paloist-mobile-status-offset: 34px;
  min-height: 721px;
  height: 100%;
  overflow: hidden;
  color: var(--mobile-ink);
  background:
    radial-gradient(circle at 50% -10%, rgba(122, 92, 255, 0.16), transparent 28%),
    linear-gradient(180deg, #fbfcff 0%, #f5f7fb 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#family-asset-iq-view .paloist-mobile-device-status-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 38px;
  padding: 6px 26px 0;
  color: #171b27;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  pointer-events: none;
}

#family-asset-iq-view .paloist-mobile-status-clock {
  justify-self: start;
}

#family-asset-iq-view .paloist-mobile-camera-divot {
  align-self: start;
  width: 116px;
  height: 30px;
  border-radius: 0 0 18px 18px;
  background: #111522;
}

#family-asset-iq-view .paloist-mobile-carrier-status {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 5px;
}

#family-asset-iq-view .paloist-mobile-carrier-status i {
  display: block;
  width: 4px;
  height: 12px;
  border-radius: 1px;
  background: currentColor;
}

#family-asset-iq-view .paloist-mobile-carrier-status i:nth-of-type(2) {
  height: 14px;
}

#family-asset-iq-view .paloist-mobile-carrier-status i:nth-of-type(3) {
  height: 16px;
}

#family-asset-iq-view .paloist-mobile-safe-area.is-camera {
  color: #fff;
  background: #0b0d10;
}

#family-asset-iq-view .paloist-mobile-safe-area.is-camera .paloist-mobile-device-status-bar {
  color: #fff;
}

#family-asset-iq-view .paloist-mobile-safe-area.is-camera .paloist-mobile-camera-divot {
  background: #0b0d10;
}

#family-asset-iq-view .paloist-mobile-safe-area.is-photo-review {
  background: #fff;
}

#family-asset-iq-view .paloist-mobile-app-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 18;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  column-gap: 12px;
  padding: calc(11px + var(--paloist-mobile-status-offset) + env(safe-area-inset-top)) calc(15px + env(safe-area-inset-right)) 5px calc(15px + env(safe-area-inset-left));
  border-bottom: 1px solid #e4e7ee;
  background: #fff;
  box-sizing: border-box;
  isolation: isolate;
}

#family-asset-iq-view .paloist-mobile-app-header::before {
  display: none;
}

#family-asset-iq-view .paloist-mobile-app-header > * {
  z-index: 1;
}

#family-asset-iq-view .paloist-mobile-app-header.is-dark {
  background: #fff;
}

#family-asset-iq-view .paloist-mobile-app-header.is-dark::before {
  display: none;
}

#family-asset-iq-view .paloist-mobile-voice-guide-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 18;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: center;
  min-height: 68px;
  border-bottom: 1px solid #e4ddd0;
  padding: calc(7px + var(--paloist-mobile-status-offset) + env(safe-area-inset-top)) calc(15px + env(safe-area-inset-right)) 8px calc(15px + env(safe-area-inset-left));
  background: #fbf7ef;
  box-sizing: border-box;
}

#family-asset-iq-view .paloist-mobile-voice-guide-bloom {
  position: relative;
  display: block;
  width: 62px;
  height: 48px;
  overflow: hidden;
}

#family-asset-iq-view .paloist-mobile-voice-guide-bloom .paloist-mobile-faye-bloom {
  position: absolute;
  top: calc(50% - 10px);
  left: 50%;
  width: 140px;
  height: 140px;
  transform: translate(-50%, -50%) scale(0.34);
  transform-origin: 50% 50%;
}

#family-asset-iq-view .paloist-mobile-voice-guide-copy {
  display: grid;
  align-content: center;
  gap: 3px;
  min-width: 0;
}

#family-asset-iq-view .paloist-mobile-voice-guide-copy strong {
  color: #151720;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.35px;
  line-height: 1;
}

#family-asset-iq-view .paloist-mobile-voice-guide-copy small {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #9a6b22;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

#family-asset-iq-view .paloist-mobile-voice-guide-header:not(.is-speaking) .paloist-mobile-speaking-wave i {
  animation: none;
}

#family-asset-iq-view .paloist-mobile-voice-guide-header > button {
  display: grid;
  width: 44px;
  height: 44px;
  min-height: 44px;
  place-items: center;
  border: 1px solid #e2e5ec;
  border-radius: 13px;
  padding: 0;
  color: #707786;
  background: #fff;
  box-shadow: 0 3px 10px rgba(25, 31, 55, 0.04);
}

#family-asset-iq-view .paloist-mobile-voice-guide-header > button svg {
  width: 22px;
  height: 22px;
}

#family-asset-iq-view .paloist-mobile-brand-button,
#family-asset-iq-view .paloist-mobile-hamburger,
#family-asset-iq-view .paloist-mobile-menu-drawer button,
#family-asset-iq-view .paloist-mobile-fixed-action button,
#family-asset-iq-view .paloist-mobile-choice-actions button,
#family-asset-iq-view .paloist-mobile-primary-button,
#family-asset-iq-view .paloist-mobile-split-actions button,
#family-asset-iq-view .paloist-mobile-shutter,
#family-asset-iq-view .paloist-mobile-photo-library {
  min-height: 44px;
}

#family-asset-iq-view .paloist-mobile-brand-button {
  grid-column: 2;
  justify-self: center;
  width: auto;
  border: 0;
  padding: 0;
  color: var(--mobile-ink);
  background: transparent;
  text-align: center;
}

#family-asset-iq-view .paloist-mobile-app-header.is-dark .paloist-mobile-brand-button {
  color: #fff;
}

#family-asset-iq-view .paloist-mobile-brand-button:hover,
#family-asset-iq-view .paloist-mobile-brand-button:focus-visible,
#family-asset-iq-view .paloist-mobile-brand-button.is-interactive-hover,
#family-asset-iq-view .paloist-mobile-brand-button[data-fr33dom-hovered="true"] {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

#family-asset-iq-view .paloist-mobile-brand-lockup {
  display: inline-block;
  margin: 0;
  color: #1c1e26;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}

#family-asset-iq-view .paloist-mobile-brand-lockup span {
  color: #4f46e5;
}

#family-asset-iq-view .paloist-mobile-hamburger {
  position: absolute;
  top: calc(15px + var(--paloist-mobile-status-offset) + env(safe-area-inset-top));
  right: calc(16px + env(safe-area-inset-right));
  display: inline-grid;
  place-items: center;
  width: 44px;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

#family-asset-iq-view .paloist-mobile-hamburger img {
  display: block;
  width: 30px;
  height: 24px;
  object-fit: contain;
}

#family-asset-iq-view .paloist-mobile-header-actions {
  display: contents;
}

#family-asset-iq-view .paloist-mobile-header-actions .paloist-mobile-hamburger,
#family-asset-iq-view .paloist-mobile-notification-indicator {
  box-sizing: border-box;
  flex: 0 0 40px;
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid #e5e8ef;
  border-radius: 10px;
  background: #fff;
}

#family-asset-iq-view .paloist-mobile-header-actions .paloist-mobile-hamburger {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  position: relative;
  top: auto;
  right: auto;
  display: grid;
  place-items: center;
}

#family-asset-iq-view .paloist-mobile-header-actions .paloist-mobile-hamburger img {
  width: 23px;
  height: 19px;
  filter: brightness(0) saturate(100%) invert(15%) sepia(12%) saturate(1030%) hue-rotate(187deg) brightness(95%) contrast(89%);
}

#family-asset-iq-view .paloist-mobile-notification-indicator {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  position: relative;
  display: grid;
  place-items: center;
  color: #4a4f5d;
}

#family-asset-iq-view .paloist-mobile-notification-indicator svg {
  width: 20px;
  height: 20px;
}

#family-asset-iq-view .paloist-mobile-notification-indicator b {
  position: absolute;
  top: -5px;
  right: -4px;
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #f0474d;
  font-size: 10px;
  font-weight: 850;
}

#family-asset-iq-view .paloist-mobile-app-main {
  position: relative;
  min-height: 721px;
  height: 721px;
  overflow: hidden;
}

#family-asset-iq-view .paloist-phase-phone-screen .paloist-mobile-screen {
  min-height: 721px;
  max-height: 721px;
  overflow-y: auto;
  padding: 126px 18px calc(28px + env(safe-area-inset-bottom));
  color: var(--mobile-ink);
  scrollbar-width: thin;
}

#family-asset-iq-view .paloist-phase-phone-screen .paloist-mobile-account-screen {
  position: relative;
  z-index: 16;
  padding-top: calc(112px + env(safe-area-inset-top));
  background: #fbfaf7;
}

#family-asset-iq-view .paloist-mobile-account-screen > * {
  position: relative;
  z-index: 1;
}

#family-asset-iq-view .paloist-mobile-account-conversation {
  display: grid;
  gap: 10px;
}

#family-asset-iq-view .paloist-mobile-account-conversation.is-voice-only {
  display: none;
}

#family-asset-iq-view .paloist-mobile-account-followup {
  display: grid;
  animation: paloistChatBubbleIn 260ms ease both;
}

#family-asset-iq-view .paloist-mobile-account-subtext {
  margin: 10px 0 16px;
  color: var(--mobile-muted);
  font-size: 13px;
  line-height: 1.45;
}

#family-asset-iq-view .paloist-mobile-screen-copy h3 {
  margin: 0 0 8px;
  color: var(--mobile-ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 25px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.05;
}

#family-asset-iq-view .paloist-mobile-screen-copy p {
  margin: 0;
  color: var(--mobile-muted);
  font-size: 14px;
  line-height: 1.45;
}

#family-asset-iq-view .paloist-mobile-screen-copy.is-centered {
  text-align: center;
}

#family-asset-iq-view .paloist-phase-phone-screen .paloist-mobile-choice-screen {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  padding: calc(66px + var(--paloist-mobile-status-offset) + env(safe-area-inset-top)) 18px calc(24px + env(safe-area-inset-bottom));
  background: radial-gradient(120% 90% at 50% 0%, #f7efe1 0%, #fbf7ef 52%, #fff 100%);
}

#family-asset-iq-view .paloist-phase-phone-screen .paloist-mobile-meet-quinn-screen {
  padding-top: calc(55px + var(--paloist-mobile-status-offset) + env(safe-area-inset-top));
}

#family-asset-iq-view .paloist-mobile-intro-video {
  position: relative;
  flex: 0 0 auto;
  min-height: 230px;
  border: 1.5px solid #e9cf9d;
  border-radius: 22px;
  padding: 18px 20px 16px;
  background: rgba(255, 252, 247, 0.74);
  box-shadow: 0 12px 28px rgba(126, 89, 31, 0.05);
  box-sizing: border-box;
}

#family-asset-iq-view .paloist-mobile-intro-video h2 {
  margin: 0;
  color: #64471f;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.45px;
  line-height: 1.1;
}

#family-asset-iq-view .paloist-mobile-intro-video-stage {
  position: relative;
  display: grid;
  height: 124px;
  place-items: center;
}

#family-asset-iq-view .paloist-mobile-intro-video-play {
  position: relative;
  z-index: 2;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: #ab792d;
  box-shadow: 0 11px 26px rgba(118, 80, 24, 0.23);
}

#family-asset-iq-view .paloist-mobile-intro-video-play span {
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 16px solid #fff;
}

#family-asset-iq-view .paloist-mobile-intro-video-narration {
  display: flex;
  width: fit-content;
  min-height: 32px;
  margin: 6px auto 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid #ead2a6;
  border-radius: 999px;
  padding: 5px 14px;
  color: #8d6423;
  background: rgba(255, 255, 255, 0.82);
  box-sizing: border-box;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

#family-asset-iq-view .paloist-mobile-intro-video-timeline {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin: 10px 0 0;
  color: #687080;
  font-size: 11px;
  font-weight: 750;
}

#family-asset-iq-view .paloist-mobile-intro-video-timeline > i {
  position: relative;
  display: block;
  height: 6px;
  border-radius: 999px;
  background: #ead6ae;
}

#family-asset-iq-view .paloist-mobile-intro-video-timeline b {
  position: absolute;
  top: 50%;
  left: 0;
  width: 18px;
  height: 18px;
  border: 3px solid #8e6421;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 7px rgba(65, 47, 20, 0.22);
  box-sizing: border-box;
  transform: translate(-2px, -50%);
}

#family-asset-iq-view .paloist-mobile-choice-screen > .paloist-mobile-orb-wrap {
  flex: 1 1 auto;
  justify-content: center;
  gap: 20px;
  min-height: 120px;
  padding: 4px 0 2px;
}

#family-asset-iq-view .paloist-mobile-choice-screen > .paloist-mobile-orb-wrap .paloist-mobile-faye-bloom {
  width: 90px;
  height: 90px;
  transform: scale(0.64);
  transform-origin: 50% 100%;
}

#family-asset-iq-view .paloist-phase-phone-screen .paloist-mobile-workbench-screen {
  min-height: 721px;
  padding: 0;
  background: #fbfaf7;
}

#family-asset-iq-view .paloist-mobile-choice-wordmark {
  display: grid;
  justify-items: center;
  padding: 0 0 2px;
  text-align: center;
}

#family-asset-iq-view .paloist-mobile-choice-wordmark strong {
  color: var(--mobile-ink);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1;
}

#family-asset-iq-view .paloist-mobile-choice-wordmark strong span {
  color: var(--mobile-violet);
}

#family-asset-iq-view .paloist-mobile-choice-wordmark small {
  margin-top: 6px;
  color: #9aa1ad;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

#family-asset-iq-view .paloist-mobile-account-form,
#family-asset-iq-view .paloist-mobile-choice-actions {
  display: grid;
  gap: 12px;
}

#family-asset-iq-view .paloist-mobile-account-form {
  gap: 9px;
}

#family-asset-iq-view .paloist-mobile-account-form .form-error:empty {
  display: none;
}

#family-asset-iq-view .paloist-mobile-login-screen {
  gap: 18px;
}

#family-asset-iq-view .paloist-mobile-auth-kicker {
  margin: 0 0 8px;
  color: var(--mobile-violet);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#family-asset-iq-view .paloist-mobile-auth-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--mobile-muted);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

#family-asset-iq-view .paloist-mobile-auth-switch button {
  border: 0;
  padding: 3px;
  color: var(--mobile-violet);
  background: transparent;
  font: inherit;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#family-asset-iq-view .paloist-mobile-field {
  display: grid;
  gap: 7px;
  color: var(--mobile-muted);
  font-size: 12px;
  font-weight: 750;
}

#family-asset-iq-view .paloist-mobile-field input,
#family-asset-iq-view .paloist-mobile-next-prompt input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--mobile-line);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--mobile-ink);
  background: #fff;
  font: inherit;
  box-shadow: 0 10px 24px rgba(25, 31, 55, 0.05);
}

#family-asset-iq-view .paloist-mobile-account-form .paloist-mobile-field {
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

#family-asset-iq-view .paloist-mobile-account-form .paloist-mobile-field input {
  min-height: 44px;
  border: 1.5px solid var(--mobile-line);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  box-shadow: none;
}

#family-asset-iq-view .paloist-mobile-account-form .household-owner-notice {
  gap: 3px;
  border-color: #e6d3ac;
  border-radius: 12px;
  padding: 10px 12px;
  color: #6e4e1c;
  background: #f7efe1;
  box-shadow: none;
}

#family-asset-iq-view .paloist-mobile-account-form .household-owner-notice strong {
  color: var(--mobile-ink);
  font-size: 13px;
}

#family-asset-iq-view .paloist-mobile-account-form .household-owner-notice span {
  font-size: 11px;
  line-height: 1.4;
}

#family-asset-iq-view .paloist-mobile-face-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 11px;
  border: 1px solid #e6d3ac;
  border-radius: 12px;
  padding: 10px 12px;
  color: #6e4e1c;
  background: #f7efe1;
  box-shadow: none;
}

#family-asset-iq-view .paloist-mobile-face-card input {
  position: absolute;
  opacity: 0;
}

#family-asset-iq-view .paloist-mobile-face-card strong,
#family-asset-iq-view .paloist-mobile-face-card small {
  display: block;
}

#family-asset-iq-view .paloist-mobile-face-card small {
  color: #8a6222;
  font-size: 11px;
}

#family-asset-iq-view .paloist-mobile-toggle {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 25px;
  border-radius: 999px;
  background: #d8deea;
}

#family-asset-iq-view .paloist-mobile-toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(20, 24, 39, 0.18);
}

#family-asset-iq-view .paloist-mobile-face-card input:checked + .paloist-mobile-toggle {
  background: #10b981;
}

#family-asset-iq-view .paloist-mobile-face-card input:checked + .paloist-mobile-toggle::after {
  transform: translateX(19px);
}

#family-asset-iq-view .paloist-mobile-account-form .paloist-mobile-primary-button {
  border-radius: 14px;
  background: linear-gradient(135deg, #b8873e, #8a6222);
  box-shadow: 0 10px 24px rgba(184, 135, 62, 0.3);
}

#family-asset-iq-view .paloist-mobile-primary-button,
#family-asset-iq-view .paloist-mobile-choice-actions button,
#family-asset-iq-view .paloist-mobile-bottom-action button,
#family-asset-iq-view .paloist-mobile-guided-overlay button {
  border: 0;
  border-radius: 16px;
  padding: 13px 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--mobile-blue), var(--mobile-violet));
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(53, 87, 255, 0.25);
}

#family-asset-iq-view .paloist-mobile-phase-page .paloist-mobile-screen > .paloist-mobile-primary-button {
  width: 100%;
  margin-top: auto;
}

#family-asset-iq-view .paloist-mobile-landing-screen {
  position: relative;
  min-height: 721px;
  height: 721px;
  overflow: hidden;
  margin: 0 0 0 0;
}

#family-asset-iq-view .paloist-mobile-purple-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  margin: 0 0 0 0;
  background: #4b43dd;
  opacity: 0.75;
  pointer-events: none;
}

#family-asset-iq-view .paloist-mobile-collage {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 132px;
  gap: 0;
  overflow-y: auto;
  padding: 0 0 0 0;
  margin: 0 0 0 0;
  background: #f6f7fb;
  scrollbar-width: thin;
}

#family-asset-iq-view .paloist-mobile-collage-tile {
  position: relative;
  overflow: hidden;
  min-width: 0;
  margin: 0 0 0 0;
  border-radius: 0;
  background: #e6eaf3;
  box-shadow: none;
}

#family-asset-iq-view .paloist-mobile-collage-tile.is-large {
  grid-row: span 2;
}

#family-asset-iq-view .paloist-mobile-collage-tile.is-tall {
  grid-row: span 2;
}

#family-asset-iq-view .paloist-mobile-collage-tile.is-wide {
  grid-column: span 2;
  grid-row: span 2;
}

#family-asset-iq-view .paloist-mobile-collage-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#family-asset-iq-view .paloist-mobile-collage-tile figcaption {
  display: none;
}

#family-asset-iq-view .paloist-mobile-collage-tile.is-personalized:not(.is-flipping) {
  animation: paloistTileReplace 620ms ease both;
}

#family-asset-iq-view .paloist-mobile-collage-tile.is-flipping {
  perspective: 900px;
}

#family-asset-iq-view .paloist-mobile-collage-flip-card,
#family-asset-iq-view .paloist-mobile-collage-face {
  position: absolute;
  inset: 0;
  display: block;
}

#family-asset-iq-view .paloist-mobile-collage-flip-card {
  transform-style: preserve-3d;
  animation: paloistTileFlipReveal 920ms cubic-bezier(0.2, 0.74, 0.26, 1) 180ms both;
}

#family-asset-iq-view .paloist-mobile-collage-face {
  overflow: hidden;
  backface-visibility: hidden;
}

#family-asset-iq-view .paloist-mobile-collage-face.is-back {
  transform: rotateY(180deg);
}

#family-asset-iq-view .paloist-mobile-fixed-action {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 18;
  border-top: 1px solid #e4e7ee;
  padding: 12px calc(16px + env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));
  background: #fff;
}

#family-asset-iq-view .paloist-mobile-fixed-action button {
  width: 100%;
  border: 0;
  border-radius: 18px;
  padding: 15px 18px;
  color: #4b43dd;
  background: #fff;
  font-size: 15px;
  font-weight: 850;
  box-shadow: 0 16px 34px rgba(35, 29, 110, 0.28);
}

#family-asset-iq-view .paloist-mobile-fixed-action.is-intro button {
  color: #4b43dd;
  background: #fff;
  box-shadow: 0 16px 34px rgba(35, 29, 110, 0.28);
}

#family-asset-iq-view .paloist-mobile-fixed-action.is-overview {
  padding: 10px calc(14px + env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) calc(14px + env(safe-area-inset-left));
}

#family-asset-iq-view .paloist-mobile-fixed-action.is-overview button {
  border-radius: 13px;
  padding: 14px 18px;
  color: #fff;
  background: linear-gradient(135deg, #5144df, #7754ec);
  box-shadow: 0 10px 20px rgba(81, 68, 223, 0.24);
}

#family-asset-iq-view .paloist-mobile-guided-overlay {
  position: absolute;
  inset: 0;
  z-index: 14;
  display: grid;
  align-items: center;
  padding: 132px 22px 118px;
  margin: 0 0 0 0;
  background: rgba(13, 18, 32, 0.38);
  pointer-events: none;
}

#family-asset-iq-view .paloist-mobile-guided-overlay.is-landing-intro {
  align-items: center;
  padding: 152px 32px 126px;
  background: transparent;
  text-align: center;
}

#family-asset-iq-view .paloist-mobile-guided-overlay .paloist-mobile-overlay-card {
  pointer-events: auto;
}

#family-asset-iq-view .paloist-mobile-guided-overlay.is-landing-intro .paloist-mobile-overlay-card {
  justify-items: center;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: #fff;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  pointer-events: none;
}

#family-asset-iq-view .paloist-mobile-overlay-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 24px;
  padding: 20px;
  margin: 0 0 0 0;
  color: var(--mobile-ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--mobile-shadow);
  backdrop-filter: blur(18px);
}

#family-asset-iq-view .paloist-mobile-overlay-card h3 {
  margin: 0;
  color: var(--mobile-ink);
  font-size: 26px;
  font-weight: 850;
  letter-spacing: 0;
}

#family-asset-iq-view .paloist-mobile-guided-overlay.is-landing-intro .paloist-mobile-overlay-card h3 {
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

#family-asset-iq-view .paloist-mobile-overlay-card p {
  margin: 0;
  color: var(--mobile-muted);
  font-size: 14px;
  line-height: 1.45;
}

#family-asset-iq-view .paloist-mobile-guided-overlay.is-landing-intro .paloist-mobile-overlay-card p {
  max-width: 250px;
  color: #fff;
  font-size: 17px;
  font-weight: 550;
  line-height: 1.18;
}

#family-asset-iq-view .paloist-mobile-down-cue {
  display: block;
  width: 72px;
  height: 108px;
  object-fit: contain;
}

#family-asset-iq-view .paloist-mobile-success-overlay {
  position: absolute;
  inset: 0;
  z-index: 17;
  color: #fff;
  pointer-events: none;
}

#family-asset-iq-view .paloist-mobile-success-copy,
#family-asset-iq-view .paloist-mobile-success-next {
  position: absolute;
  left: calc(40px + env(safe-area-inset-left));
  right: calc(30px + env(safe-area-inset-right));
  z-index: 2;
}

#family-asset-iq-view .paloist-mobile-success-copy {
  top: calc(118px + env(safe-area-inset-top));
  display: grid;
  gap: 12px;
}

#family-asset-iq-view .paloist-mobile-success-check {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

#family-asset-iq-view .paloist-mobile-success-check::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 36px;
  border: solid #fff;
  border-width: 0 7px 7px 0;
  transform: translate(-50%, -58%) rotate(45deg);
}

#family-asset-iq-view .paloist-mobile-success-copy h3,
#family-asset-iq-view .paloist-mobile-success-next h3 {
  margin: 0;
  color: #fff;
  font-weight: 850;
  letter-spacing: 0;
}

#family-asset-iq-view .paloist-mobile-success-copy h3 {
  font-size: 26px;
  line-height: 1.05;
}

#family-asset-iq-view .paloist-mobile-success-copy p {
  max-width: 270px;
  margin: 0;
  color: #fff;
  font-size: 13px;
  line-height: 1.28;
}

#family-asset-iq-view .paloist-mobile-success-next {
  top: calc(424px + env(safe-area-inset-top));
  display: grid;
  gap: 16px;
}

#family-asset-iq-view .paloist-mobile-success-next h3 {
  font-size: 27px;
  line-height: 1;
}

#family-asset-iq-view .paloist-mobile-success-next p {
  max-width: 300px;
  margin: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: #231f20;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.28;
}

#family-asset-iq-view .paloist-mobile-success-next p:first-of-type {
  border-radius: 24px;
}

#family-asset-iq-view .paloist-mobile-returning-copy {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 124px;
  z-index: 5;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 22px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 34px rgba(25, 31, 55, 0.12);
  backdrop-filter: blur(16px);
}

#family-asset-iq-view .paloist-mobile-landing-screen.is-returning .paloist-mobile-returning-copy {
  left: calc(28px + env(safe-area-inset-left));
  right: calc(28px + env(safe-area-inset-right));
  top: calc(158px + env(safe-area-inset-top));
  z-index: 14;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: #fff;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

#family-asset-iq-view .paloist-mobile-returning-copy h3 {
  margin: 0;
  color: var(--mobile-ink);
  font-size: 22px;
  font-weight: 850;
  letter-spacing: 0;
}

#family-asset-iq-view .paloist-mobile-landing-screen.is-returning .paloist-mobile-returning-copy h3 {
  color: #fff;
  font-size: 26px;
  line-height: 1.05;
}

#family-asset-iq-view .paloist-mobile-returning-copy p {
  margin: 0;
  color: var(--mobile-muted);
  font-size: 13px;
}

#family-asset-iq-view .paloist-mobile-landing-screen.is-returning .paloist-mobile-returning-copy p {
  max-width: 260px;
  color: #fff;
  font-size: 17px;
  line-height: 1.25;
}

#family-asset-iq-view .paloist-mobile-metric-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#family-asset-iq-view .paloist-mobile-landing-screen.is-returning .paloist-mobile-metric-row {
  max-width: 306px;
  margin-top: 8px;
}

#family-asset-iq-view .paloist-mobile-metric-card {
  min-width: 0;
  min-height: 74px;
  display: grid;
  align-content: center;
  gap: 5px;
  border-radius: 16px;
  padding: 12px 10px;
  background: #f3f5ff;
  text-align: center;
}

#family-asset-iq-view .paloist-mobile-landing-screen.is-returning .paloist-mobile-metric-card {
  background: rgba(255, 255, 255, 0.72);
}

#family-asset-iq-view .paloist-mobile-metric-card strong,
#family-asset-iq-view .paloist-mobile-metric-card span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

#family-asset-iq-view .paloist-mobile-metric-card strong {
  color: var(--mobile-blue);
  font-size: 18px;
  line-height: 1;
  font-weight: 850;
}

#family-asset-iq-view .paloist-mobile-landing-screen.is-returning .paloist-mobile-metric-card strong {
  color: #231f20;
}

#family-asset-iq-view .paloist-mobile-metric-card span {
  color: var(--mobile-muted);
  font-size: 10.5px;
  line-height: 1.1;
  font-weight: 750;
  text-transform: uppercase;
}

#family-asset-iq-view .paloist-mobile-landing-screen.is-returning .paloist-mobile-metric-card span {
  color: rgba(35, 31, 32, 0.72);
}

#family-asset-iq-view .paloist-mobile-menu-cue {
  position: absolute;
  top: 106px;
  right: 16px;
  z-index: 16;
  width: min(220px, calc(100% - 34px));
  border-radius: 18px;
  padding: 12px;
  color: var(--mobile-ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 34px rgba(25, 31, 55, 0.16);
}

#family-asset-iq-view .paloist-mobile-menu-cue span {
  position: absolute;
  top: -10px;
  right: 24px;
  width: 20px;
  height: 20px;
  background: inherit;
  transform: rotate(45deg);
}

#family-asset-iq-view .paloist-mobile-menu-cue strong,
#family-asset-iq-view .paloist-mobile-menu-cue p {
  display: block;
  margin: 0;
}

#family-asset-iq-view .paloist-mobile-menu-cue p {
  color: var(--mobile-muted);
  font-size: 12px;
}

#family-asset-iq-view .paloist-mobile-orb-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 0;
  padding: 0 4px;
}

#family-asset-iq-view .paloist-mobile-faye-bloom {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0;
}

#family-asset-iq-view .paloist-mobile-faye-petal {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 44px;
  height: 84px;
  margin-left: -22px;
  border-radius: 50% 50% 46% 46% / 62% 62% 38% 38%;
  opacity: 0.55;
  transform-origin: 50% 100%;
  animation: paloistFayeBloom 5s infinite ease-in-out;
}

#family-asset-iq-view .paloist-mobile-faye-petal.is-indigo {
  background: linear-gradient(180deg, #c7d2fe, #818cf8);
}

#family-asset-iq-view .paloist-mobile-faye-petal.is-violet {
  background: linear-gradient(180deg, #ddd6fe, #a78bfa);
}

#family-asset-iq-view .paloist-mobile-faye-petal.is-green {
  background: linear-gradient(180deg, #bbf7d0, #4ade80);
}

#family-asset-iq-view .paloist-mobile-faye-petal.is-blue {
  background: linear-gradient(180deg, #bae6fd, #38bdf8);
}

#family-asset-iq-view .paloist-mobile-faye-pearl {
  position: absolute;
  left: 50%;
  bottom: -15px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff, #e0e7ff 60%, #a5b4fc);
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.42);
  transform: translateX(-50%);
  animation: paloistFayePearl 5s infinite ease-in-out;
}

#family-asset-iq-view .paloist-mobile-speaking-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #e6d3ac;
  border-radius: 999px;
  padding: 6px 14px;
  color: #8a6222;
  background: #f7efe1;
  font-size: 11.5px;
  font-weight: 700;
}

#family-asset-iq-view .paloist-mobile-speaking-wave {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 12px;
}

#family-asset-iq-view .paloist-mobile-speaking-wave i {
  width: 2px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
  animation: paloistFayeSpeakingWave 780ms ease-in-out infinite alternate;
}

#family-asset-iq-view .paloist-mobile-speaking-wave i:nth-child(2),
#family-asset-iq-view .paloist-mobile-speaking-wave i:nth-child(4) {
  height: 9px;
  animation-delay: 120ms;
}

#family-asset-iq-view .paloist-mobile-speaking-wave i:nth-child(3) {
  height: 12px;
  animation-delay: 240ms;
}

#family-asset-iq-view .paloist-mobile-family-voice-status.is-listening {
  border-color: #c9e7d3;
  color: #177341;
  background: #edf8f1;
}

#family-asset-iq-view .paloist-mobile-family-voice-status.is-listening .paloist-mobile-speaking-wave i {
  animation: none;
}

#family-asset-iq-view .paloist-mobile-family-voice-screen .paloist-mobile-orb-wrap {
  width: 100%;
  justify-content: flex-start;
  gap: 16px;
  padding-top: 24px;
}

#family-asset-iq-view .paloist-mobile-skip-question {
  min-height: 44px;
  border: 0;
  padding: 10px 18px;
  color: #7a5b2b;
  background: transparent;
  box-shadow: none;
  font-size: 13px;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: rgba(122, 91, 43, 0.42);
  text-underline-offset: 3px;
}

#family-asset-iq-view .paloist-mobile-family-voice-screen > .paloist-mobile-skip-question {
  flex: 0 0 auto;
  align-self: center;
  margin-top: 8px;
}

#family-asset-iq-view .paloist-mobile-family-voice-summary-card {
  width: 100%;
  border: 1px solid #e1e4eb;
  border-radius: 17px;
  padding: 16px;
  color: #30343f;
  background: #fff;
  box-shadow: 0 8px 24px rgba(29, 35, 55, 0.07);
  box-sizing: border-box;
  text-align: left;
}

#family-asset-iq-view .paloist-mobile-family-voice-summary-card h2 {
  margin: 0 0 9px;
  color: #91651f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.07em;
  line-height: 1.1;
}

#family-asset-iq-view .paloist-mobile-family-voice-summary-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
}

#family-asset-iq-view .paloist-mobile-family-voice-summary-card p + p {
  margin-top: 2px;
}

#family-asset-iq-view .paloist-mobile-family-voice-summary-card strong {
  color: #17191f;
  font-weight: 850;
}

#family-asset-iq-view .paloist-mobile-family-voice-review-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
  border-top: 1px solid #e3e5ea;
  padding-top: 14px;
}

#family-asset-iq-view .paloist-mobile-family-voice-review-actions button {
  min-height: 46px;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 800;
}

#family-asset-iq-view .paloist-mobile-family-voice-review-actions button:first-child {
  border: 1px solid #d9dde5;
  color: #252832;
  background: #fff;
}

#family-asset-iq-view .paloist-mobile-family-voice-review-actions button:last-child {
  border: 1px solid #9b6d24;
  color: #fff;
  background: linear-gradient(135deg, #c28c3b, #94671f);
  box-shadow: 0 8px 18px rgba(148, 103, 31, 0.18);
}

#family-asset-iq-view .paloist-mobile-family-voice-review-actions button:disabled {
  opacity: 0.72;
}

#family-asset-iq-view .paloist-mobile-family-voice-error {
  margin: -8px 0 0;
  color: #a12b35;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

#family-asset-iq-view .paloist-mobile-choice-introduction {
  margin: 0;
  color: var(--mobile-ink);
  font-size: 16.5px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
}

#family-asset-iq-view .paloist-mobile-choice-actions {
  flex: 0 0 auto;
  gap: 10px;
}

#family-asset-iq-view .paloist-mobile-choice-actions button {
  width: 100%;
  border-radius: 14px;
  padding: 15px;
  font-size: 14.5px;
  font-weight: 700;
}

#family-asset-iq-view .paloist-mobile-choice-actions button.is-voice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #b8873e, #8a6222);
  box-shadow: 0 10px 24px rgba(184, 135, 62, 0.3);
}

#family-asset-iq-view .paloist-mobile-choice-actions button.is-voice svg {
  width: 18px;
  height: 18px;
}

#family-asset-iq-view .paloist-mobile-choice-actions button.is-type {
  border: 1.5px solid var(--mobile-line);
  color: var(--mobile-ink);
  background: #fff;
  box-shadow: none;
  font-size: 14px;
  font-weight: 600;
}

#family-asset-iq-view .paloist-mobile-chat-screen {
  gap: 14px;
}

#family-asset-iq-view .paloist-mobile-chat-screen.has-listening-status {
  padding-top: calc(106px + env(safe-area-inset-top));
}

#family-asset-iq-view .paloist-mobile-listening-status {
  position: relative;
  z-index: 16;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  margin-left: -3px;
  color: #128044;
  font-size: 13px;
  font-weight: 850;
}

#family-asset-iq-view .paloist-mobile-listening-status span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #18a957;
  box-shadow: 0 0 0 3px rgba(24, 169, 87, 0.16);
  animation: paloistListeningPulse 1.4s ease-in-out infinite;
}

#family-asset-iq-view .paloist-mobile-chat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--mobile-line);
  border-radius: 18px;
  padding: 12px;
  background: #fff;
}

#family-asset-iq-view .paloist-mobile-chat-header span {
  display: block;
  color: var(--mobile-blue);
  font-size: 11px;
  font-weight: 800;
}

#family-asset-iq-view .paloist-mobile-chat-header h3 {
  margin: 2px 0 0;
  color: var(--mobile-ink);
  font-size: 17px;
  font-weight: 850;
  letter-spacing: 0;
}

#family-asset-iq-view .paloist-mobile-chat-header strong {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 9px;
  color: #fff;
  background: #1f2640;
  font-size: 10px;
}

#family-asset-iq-view .paloist-mobile-chat-list {
  display: grid;
  gap: 10px;
}

#family-asset-iq-view .paloist-mobile-chat-bubble {
  display: grid;
  gap: 4px;
  width: fit-content;
  min-width: 64px;
  max-width: 86%;
  border-radius: 10px;
  padding: 11px 13px;
  box-shadow: 0 10px 24px rgba(25, 31, 55, 0.08);
}

#family-asset-iq-view .paloist-mobile-chat-bubble p,
#family-asset-iq-view .paloist-mobile-chat-bubble span {
  display: block;
  margin: 0;
  line-height: 1.42;
}

#family-asset-iq-view .paloist-mobile-chat-bubble p {
  font-size: 13px;
}

#family-asset-iq-view .paloist-mobile-chat-bubble p + p {
  margin-top: 8px;
}

#family-asset-iq-view .paloist-mobile-chat-bubble span {
  font-size: 10px;
  font-weight: 850;
  opacity: 0.72;
}

#family-asset-iq-view .paloist-mobile-chat-bubble .paloist-mobile-chat-speaker {
  display: flex;
  align-items: center;
  gap: 7px;
}

#family-asset-iq-view .paloist-mobile-chat-bubble .paloist-mobile-chat-speaker .paloist-mobile-speaking-wave {
  display: inline-flex;
  height: 11px;
  color: inherit;
}

#family-asset-iq-view .paloist-mobile-chat-bubble.is-assistant {
  justify-self: start;
  border: 1px solid #e9ebf0;
  border-bottom-left-radius: 2px;
  color: #3a3d47;
  background: #fff;
}

#family-asset-iq-view .paloist-mobile-chat-bubble.is-assistant .paloist-mobile-chat-speaker {
  color: #8a6222;
  opacity: 1;
}

#family-asset-iq-view .paloist-mobile-chat-bubble.is-user {
  justify-self: end;
  border-bottom-right-radius: 2px;
  color: #fff;
  background: rgba(95, 59, 232, 0.75);
}

#family-asset-iq-view .paloist-mobile-chat-bubble.is-reply {
  gap: 8px;
}

#family-asset-iq-view .paloist-mobile-chat-reply-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}

#family-asset-iq-view .paloist-mobile-chat-reply-actions button {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 850;
}

#family-asset-iq-view .paloist-mobile-chat-reply-actions button:first-child {
  color: #fff;
  background: transparent;
}

#family-asset-iq-view .paloist-mobile-chat-reply-actions button:last-child {
  color: #5f3be8;
  background: #fff;
}

#family-asset-iq-view .paloist-phase-phone-screen .paloist-mobile-family-preparation-screen {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0;
  width: 100%;
  height: 721px;
  min-height: 721px;
  max-height: 721px;
  overflow: hidden;
  padding: 0;
  background: #fbfaf7;
  box-sizing: border-box;
}

#family-asset-iq-view .paloist-mobile-family-preparation-scroll {
  min-height: 0;
  overflow-y: auto;
  padding: calc(52px + var(--paloist-mobile-status-offset) + env(safe-area-inset-top)) 27px 24px;
  scrollbar-width: thin;
}

#family-asset-iq-view .paloist-mobile-safe-area.is-voice-guided .paloist-mobile-family-preparation-scroll {
  padding-top: calc(78px + var(--paloist-mobile-status-offset) + env(safe-area-inset-top));
}

#family-asset-iq-view .paloist-mobile-family-preparation-heading {
  text-align: center;
}

#family-asset-iq-view .paloist-mobile-family-preparation-heading h2 {
  margin: 0;
  color: #14161d;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.7px;
  line-height: 1.08;
}

#family-asset-iq-view .paloist-mobile-family-preparation-heading p {
  margin: 10px -4px 0;
  color: #737b8c;
  font-size: 13px;
  line-height: 1.45;
}

#family-asset-iq-view .paloist-mobile-family-preparation-questions {
  display: grid;
  gap: 14px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

#family-asset-iq-view .paloist-mobile-family-preparation-questions li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

#family-asset-iq-view .paloist-mobile-family-preparation-number {
  color: #96691f;
  font-size: 28px;
  font-weight: 850;
  line-height: 1;
}

#family-asset-iq-view .paloist-mobile-family-preparation-questions h3 {
  margin: 0;
  color: #17191f;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: -0.2px;
  line-height: 1.22;
}

#family-asset-iq-view .paloist-mobile-family-preparation-questions p {
  margin: 5px 0 0;
  color: #737b8c;
  font-size: 12.5px;
  line-height: 1.4;
}

#family-asset-iq-view .paloist-mobile-family-preparation-questions p span {
  font-style: normal;
}

#family-asset-iq-view .paloist-mobile-family-preparation-footer {
  position: sticky;
  bottom: 0;
  z-index: 4;
  padding: 12px 22px calc(18px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(251, 250, 247, 0), #fbfaf7 16px);
}

#family-asset-iq-view .paloist-mobile-family-preparation-footer button {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 14px;
  padding: 13px 18px;
  color: #fff;
  background: linear-gradient(135deg, #c28c3b, #94671f);
  box-shadow: 0 11px 24px rgba(148, 103, 31, 0.2);
  font-size: 15px;
  font-weight: 800;
}

#family-asset-iq-view .paloist-mobile-family-preparation-footer button svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
}

#family-asset-iq-view .paloist-mobile-bottom-action {
  margin-top: auto;
}

#family-asset-iq-view .paloist-mobile-bottom-action button {
  width: 100%;
}

#family-asset-iq-view .paloist-phase-phone-screen .paloist-mobile-screen.paloist-mobile-intro-chat-screen {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  align-content: stretch;
  gap: 0;
  height: 721px;
  min-height: 721px;
  max-height: 721px;
  overflow: hidden;
  padding: calc(69px + var(--paloist-mobile-status-offset) + env(safe-area-inset-top)) 18px 0;
  background: #fbfaf7;
  box-sizing: border-box;
}

#family-asset-iq-view .paloist-mobile-intro-chat-screen .paloist-mobile-inline-chat {
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
  min-height: 0;
  margin-top: 0;
  padding: 42px 0 0;
}

#family-asset-iq-view .paloist-mobile-intro-chat-screen .paloist-mobile-chat-list {
  align-content: start;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  padding: 0 2px 6px 0;
  scroll-padding-top: 0;
  scrollbar-width: thin;
}

#family-asset-iq-view .paloist-mobile-intro-chat-screen .paloist-mobile-chat-bubble.is-user:not(.is-draft) {
  color: #75521b;
  background: #f8f0e3;
}

#family-asset-iq-view .paloist-phase-phone-screen .paloist-mobile-family-summary-screen {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0;
  width: 100%;
  height: 721px;
  min-height: 721px;
  max-height: 721px;
  overflow: hidden;
  padding: calc(69px + var(--paloist-mobile-status-offset) + env(safe-area-inset-top)) 0 0;
  background: #fbfaf7;
  box-sizing: border-box;
}

#family-asset-iq-view .paloist-mobile-safe-area.is-voice-guided .paloist-mobile-family-summary-screen {
  padding-top: calc(78px + var(--paloist-mobile-status-offset) + env(safe-area-inset-top));
}

#family-asset-iq-view .paloist-mobile-family-summary-scroll {
  min-height: 0;
  overflow-y: auto;
  padding: 5px 18px 24px;
  scrollbar-width: thin;
}

#family-asset-iq-view .paloist-mobile-family-summary-pill {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--mobile-line);
  border-radius: 999px;
  padding: 5px 11px;
  color: #687080;
  background: #fff;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
}

#family-asset-iq-view .paloist-mobile-family-summary-card {
  border: 1px solid var(--mobile-line);
  background: #fff;
  box-shadow: 0 7px 20px rgba(29, 35, 55, 0.055);
}

#family-asset-iq-view .paloist-mobile-family-summary-scroll > .paloist-mobile-chat-bubble {
  margin-top: 14px;
}

#family-asset-iq-view .paloist-mobile-family-summary-card {
  margin-top: 12px;
  border-radius: 14px;
  padding: 0 15px;
}

#family-asset-iq-view .paloist-mobile-family-summary-card section {
  border-bottom: 1px solid var(--mobile-line);
  padding: 14px 0;
}

#family-asset-iq-view .paloist-mobile-family-summary-card section:last-child {
  border-bottom: 0;
}

#family-asset-iq-view .paloist-mobile-family-summary-card h3 {
  margin: 0 0 6px;
  color: #8a6222;
  font-size: 10.5px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#family-asset-iq-view .paloist-mobile-family-summary-card p {
  margin: 0;
  color: #3f4654;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.42;
}

#family-asset-iq-view .paloist-mobile-family-summary-card p strong {
  color: #1d2028;
  font-weight: 800;
}

#family-asset-iq-view .paloist-mobile-family-summary-footer {
  position: sticky;
  bottom: 0;
  z-index: 4;
  border-top: 1px solid var(--mobile-line);
  padding: 12px 18px calc(14px + env(safe-area-inset-bottom));
  background: #fff;
}

#family-asset-iq-view .paloist-mobile-family-summary-footer button {
  display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 15px;
  padding: 12px 18px;
  color: #fff;
  background: linear-gradient(135deg, #c28c3b, #94671f);
  box-shadow: 0 10px 22px rgba(148, 103, 31, 0.22);
  font-size: 15px;
  font-weight: 800;
}

#family-asset-iq-view .paloist-mobile-family-summary-footer button span {
  font-size: 23px;
  font-weight: 300;
  line-height: 1;
}

#family-asset-iq-view .paloist-phase-phone-screen .paloist-mobile-photo-introduction-screen {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 721px;
  max-height: 721px;
  padding: calc(69px + var(--paloist-mobile-status-offset) + env(safe-area-inset-top)) 0 0;
  overflow: hidden;
  isolation: isolate;
  background: #fbf7ef;
}

#family-asset-iq-view .paloist-mobile-safe-area.is-voice-guided .paloist-mobile-photo-introduction-screen {
  padding-top: calc(78px + var(--paloist-mobile-status-offset) + env(safe-area-inset-top));
}

#family-asset-iq-view .paloist-mobile-photo-introduction-scroll {
  min-height: 0;
  overflow: hidden;
  padding: 28px 25px 24px;
  text-align: center;
}

#family-asset-iq-view .paloist-mobile-photo-introduction-check {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #bd8b37, #98681d);
  font-size: 39px;
  font-weight: 500;
  line-height: 1;
}

#family-asset-iq-view .paloist-mobile-photo-introduction-scroll h3 {
  margin: 0;
  color: var(--mobile-ink);
  font-size: 21px;
  font-weight: 850;
  letter-spacing: -0.6px;
  line-height: 1.1;
}

#family-asset-iq-view .paloist-mobile-photo-introduction-summary,
#family-asset-iq-view .paloist-mobile-photo-introduction-heading p {
  margin: 14px 0 0;
  color: var(--mobile-muted);
  font-size: 13px;
  line-height: 1.46;
}

#family-asset-iq-view .paloist-mobile-photo-introduction-summary strong {
  color: var(--mobile-ink);
  font-weight: 800;
}

#family-asset-iq-view .paloist-mobile-photo-introduction-heading {
  margin-top: 18px;
}

#family-asset-iq-view .paloist-mobile-photo-introduction-heading h4 {
  margin: 0;
  color: var(--mobile-ink);
  font-size: 15px;
  font-weight: 850;
}

#family-asset-iq-view .paloist-mobile-photo-introduction-heading p {
  margin-top: 12px;
}

#family-asset-iq-view .paloist-mobile-photo-guidance-list {
  display: grid;
  gap: 13px;
  margin-top: 16px;
  text-align: left;
}

#family-asset-iq-view .paloist-mobile-photo-guidance-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
}

#family-asset-iq-view .paloist-mobile-photo-guidance-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 9px;
  color: #a57427;
  background: #f5ead8;
}

#family-asset-iq-view .paloist-mobile-photo-guidance-icon svg {
  width: 19px;
  height: 19px;
}

#family-asset-iq-view .paloist-mobile-photo-guidance-item > span:last-child {
  display: grid;
  gap: 3px;
}

#family-asset-iq-view .paloist-mobile-photo-guidance-item strong {
  color: var(--mobile-ink);
  font-size: 12.5px;
  font-weight: 850;
}

#family-asset-iq-view .paloist-mobile-photo-guidance-item small {
  color: var(--mobile-muted);
  font-size: 11.5px;
  line-height: 1.35;
}

#family-asset-iq-view .paloist-mobile-photo-introduction-footer {
  position: sticky;
  bottom: 0;
  z-index: 4;
  border-top: 1px solid #e4e7ee;
  padding: 12px 25px calc(16px + env(safe-area-inset-bottom));
  background: #fff;
}

#family-asset-iq-view .paloist-mobile-photo-introduction-footer button {
  display: inline-flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, #bd8b37, #98681d);
  box-shadow: 0 11px 22px rgba(152, 104, 29, 0.2);
  font-size: 14px;
  font-weight: 850;
}

#family-asset-iq-view .paloist-mobile-photo-introduction-footer svg {
  width: 17px;
  height: 17px;
}

#family-asset-iq-view .paloist-mobile-question-progress {
  position: absolute;
  top: calc(69px + var(--paloist-mobile-status-offset) + env(safe-area-inset-top));
  left: calc(18px + env(safe-area-inset-left));
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border: 1px solid #e7c887;
  border-radius: 999px;
  padding: 5px 12px;
  color: #75521b;
  background: #fff7e8;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

#family-asset-iq-view .paloist-mobile-type-entry-screen {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

#family-asset-iq-view .paloist-mobile-type-entry-screen .paloist-mobile-chat-list {
  align-content: start;
}

#family-asset-iq-view .paloist-mobile-type-prompt {
  margin-top: auto;
}

#family-asset-iq-view .paloist-mobile-intro-type-prompt {
  position: relative;
  z-index: 2;
}

#family-asset-iq-view .paloist-mobile-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

#family-asset-iq-view .paloist-mobile-type-error {
  margin: -2px 0 0;
  color: #b42318;
  font-size: 11px;
  font-weight: 750;
}

#family-asset-iq-view .paloist-mobile-type-error:empty {
  display: none;
}

#family-asset-iq-view .paloist-mobile-voice-type-prompt {
  gap: 0;
  border-radius: 999px;
  padding: 7px;
}

#family-asset-iq-view .paloist-mobile-voice-type-prompt div {
  gap: 8px;
}

#family-asset-iq-view .paloist-mobile-voice-type-prompt input {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  box-shadow: none;
}

#family-asset-iq-view .paloist-mobile-voice-type-prompt .paloist-mobile-type-error {
  grid-column: 1 / -1;
  margin: 4px 10px 0;
}

#family-asset-iq-view .paloist-mobile-chat-bubble.is-draft {
  width: min(88%, 306px);
  background: #866ff0;
}

#family-asset-iq-view .paloist-mobile-chat-bubble.is-draft form {
  display: grid;
  gap: 9px;
}

#family-asset-iq-view .paloist-mobile-chat-bubble.is-draft span {
  font-size: 10px;
  opacity: 0.9;
}

#family-asset-iq-view .paloist-mobile-chat-bubble.is-draft .paloist-mobile-draft-listening {
  display: flex;
  margin: -2px 0 0;
}

#family-asset-iq-view .paloist-mobile-chat-bubble.is-draft .paloist-mobile-draft-listening .paloist-mobile-listening-status {
  z-index: 1;
  margin: 0;
  color: #eafff2;
  font-size: 11px;
}

#family-asset-iq-view .paloist-mobile-chat-bubble.is-draft .paloist-mobile-draft-listening .paloist-mobile-listening-status span {
  width: 7px;
  height: 7px;
  background: #35dd7f;
  box-shadow: 0 0 0 3px rgba(53, 221, 127, 0.2);
}

#family-asset-iq-view .paloist-mobile-chat-bubble.is-draft textarea {
  display: block;
  width: 100%;
  min-height: 38px;
  border: 0;
  padding: 0;
  color: #fff;
  background: transparent;
  box-shadow: none;
  font: inherit;
  font-size: 13.5px;
  font-weight: 750;
  line-height: 1.42;
  outline: none;
  overflow: hidden;
  resize: none;
}

#family-asset-iq-view .paloist-mobile-chat-bubble.is-draft textarea::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

#family-asset-iq-view .paloist-mobile-chat-bubble.is-draft .paloist-mobile-chat-reply-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  justify-self: end;
  width: min(154px, 100%);
}

#family-asset-iq-view .paloist-mobile-chat-bubble.is-draft .paloist-mobile-chat-reply-actions button {
  width: 100%;
  min-height: 31px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 850;
}

#family-asset-iq-view .paloist-mobile-chat-bubble.is-draft .paloist-mobile-chat-reply-actions button:first-child {
  color: #fff;
  background: transparent;
}

#family-asset-iq-view .paloist-mobile-chat-bubble.is-draft .paloist-mobile-chat-reply-actions button:last-child {
  color: #4b32e5;
  background: #fff;
}

#family-asset-iq-view .paloist-mobile-chat-bubble.is-draft .paloist-mobile-chat-reply-actions button:disabled {
  cursor: wait;
  opacity: 0.52;
}

#family-asset-iq-view .paloist-mobile-intro-chat-screen .paloist-mobile-chat-bubble.is-draft {
  color: #75521b;
  background: #f8f0e3;
}

#family-asset-iq-view .paloist-mobile-intro-chat-screen .paloist-mobile-chat-bubble.is-draft textarea {
  color: #75521b;
}

#family-asset-iq-view .paloist-mobile-intro-chat-screen .paloist-mobile-chat-bubble.is-draft textarea::placeholder {
  color: rgba(117, 82, 27, 0.58);
}

#family-asset-iq-view .paloist-mobile-intro-chat-screen .paloist-mobile-chat-bubble.is-draft .paloist-mobile-draft-listening .paloist-mobile-listening-status {
  color: #8a6222;
}

#family-asset-iq-view .paloist-mobile-intro-chat-screen .paloist-mobile-chat-bubble.is-draft .paloist-mobile-draft-listening .paloist-mobile-listening-status span {
  background: #b8873e;
  box-shadow: 0 0 0 3px rgba(184, 135, 62, 0.18);
}

#family-asset-iq-view .paloist-mobile-intro-chat-screen .paloist-mobile-chat-bubble.is-draft .paloist-mobile-chat-reply-actions button {
  border-color: #b8873e;
}

#family-asset-iq-view .paloist-mobile-intro-chat-screen .paloist-mobile-chat-bubble.is-draft .paloist-mobile-chat-reply-actions button:first-child {
  color: #75521b;
  background: transparent;
}

#family-asset-iq-view .paloist-mobile-intro-chat-screen .paloist-mobile-chat-bubble.is-draft .paloist-mobile-chat-reply-actions button:last-child {
  color: #fff;
  background: #b8873e;
}

#family-asset-iq-view .paloist-mobile-intro-chat-screen .paloist-mobile-chat-bubble.is-draft .paloist-mobile-type-error {
  color: #9a3412;
}

#family-asset-iq-view .paloist-mobile-chat-bubble.is-draft .paloist-mobile-type-error {
  margin: 0;
  color: #fff;
  opacity: 0.85;
}

#family-asset-iq-view .paloist-mobile-voice-prompt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--mobile-line);
  border-radius: 20px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(25, 31, 55, 0.1);
}

#family-asset-iq-view .paloist-mobile-voice-record-button {
  position: relative;
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  display: grid;
  place-items: center;
  width: 58px;
  min-height: 58px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mobile-blue), var(--mobile-violet));
  box-shadow: 0 16px 34px rgba(53, 87, 255, 0.28);
}

#family-asset-iq-view .paloist-mobile-voice-record-button:disabled {
  cursor: wait;
  opacity: 0.82;
}

#family-asset-iq-view .paloist-mobile-voice-record-icon {
  position: relative;
  box-sizing: border-box;
  width: 15px;
  height: 24px;
  border: 3px solid #fff;
  border-radius: 999px;
  transform: translateY(-5px);
}

#family-asset-iq-view .paloist-mobile-voice-record-icon::before,
#family-asset-iq-view .paloist-mobile-voice-record-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  background: #fff;
  transform: translateX(-50%);
}

#family-asset-iq-view .paloist-mobile-voice-record-icon::before {
  bottom: -9px;
  width: 22px;
  height: 3px;
  border-radius: 999px;
}

#family-asset-iq-view .paloist-mobile-voice-record-icon::after {
  bottom: -12px;
  width: 3px;
  height: 10px;
  border-radius: 999px;
}

#family-asset-iq-view .paloist-mobile-voice-prompt strong,
#family-asset-iq-view .paloist-mobile-voice-prompt p {
  display: block;
  margin: 0;
  line-height: 1.3;
}

#family-asset-iq-view .paloist-mobile-voice-prompt > div {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  min-width: 0;
}

#family-asset-iq-view .paloist-mobile-voice-prompt strong {
  color: var(--mobile-ink);
  font-size: 13px;
  font-weight: 850;
}

#family-asset-iq-view .paloist-mobile-voice-prompt p {
  color: var(--mobile-muted);
  font-size: 12px;
}

#family-asset-iq-view .paloist-mobile-voice-prompt.is-listening .paloist-mobile-voice-record-button {
  animation: paloistVoiceButtonPulse 1.8s ease-in-out infinite;
}

#family-asset-iq-view .paloist-mobile-voice-prompt.is-error {
  border-color: rgba(180, 35, 24, 0.32);
  background: #fff8f7;
}

#family-asset-iq-view .paloist-mobile-voice-type-fallback {
  grid-column: 1 / -1;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #1f2640;
  font-size: 12px;
  font-weight: 850;
}

#family-asset-iq-view .paloist-mobile-voice-error {
  grid-column: 1 / -1;
  color: #b42318 !important;
  font-size: 11px !important;
  font-weight: 750;
}

#family-asset-iq-view .paloist-mobile-voice-error:empty {
  display: none;
}

#family-asset-iq-view .paloist-mobile-type-submit {
  position: relative;
  display: grid;
  place-items: center;
}

#family-asset-iq-view .paloist-mobile-next-prompt .paloist-mobile-type-submit::before {
  content: "";
  position: absolute;
  width: 11px;
  height: 11px;
  margin: 0;
  border-top: 2.5px solid #fff;
  border-left: 2.5px solid #fff;
  border-radius: 1px;
  background: transparent;
  transform: translateY(-3px) rotate(45deg);
}

#family-asset-iq-view .paloist-mobile-next-prompt .paloist-mobile-type-submit::after {
  content: "";
  position: absolute;
  width: 2.5px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  transform: translateY(4px);
}

#family-asset-iq-view .paloist-mobile-camera-screen {
  position: relative;
  display: grid;
  grid-template-rows: auto 450px auto;
  align-content: space-between;
  gap: 15px;
  min-height: 721px;
  padding: calc(72px + env(safe-area-inset-top)) 24px calc(20px + env(safe-area-inset-bottom));
  color: #fff;
  background: #0b0d10;
}

#family-asset-iq-view .paloist-mobile-camera-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: #fff;
  pointer-events: none;
}

#family-asset-iq-view .paloist-mobile-camera-screen.is-flashing::after {
  animation: paloistCameraFlash 420ms ease;
}

#family-asset-iq-view .paloist-mobile-camera-copy,
#family-asset-iq-view .paloist-mobile-camera-frame,
#family-asset-iq-view .paloist-mobile-camera-actions {
  position: relative;
  z-index: 16;
}

#family-asset-iq-view .paloist-mobile-camera-copy h3 {
  max-width: none;
  margin: 0;
  color: #fff;
  font-size: 17px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
}

#family-asset-iq-view .paloist-mobile-camera-copy p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  line-height: 1.3;
  text-align: center;
}

#family-asset-iq-view .paloist-mobile-camera-frame {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
  align-self: center;
  width: 270px;
  height: 450px;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 3 / 5;
  overflow: hidden;
  min-height: 0;
  border: 0;
  border-radius: 27px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

#family-asset-iq-view .paloist-mobile-camera-frame video,
#family-asset-iq-view .paloist-mobile-camera-frame img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#family-asset-iq-view .paloist-mobile-camera-frame video {
  position: relative;
  z-index: 2;
  opacity: 0;
  background: #11131f;
}

#family-asset-iq-view .paloist-mobile-camera-screen.is-live .paloist-mobile-camera-frame video {
  opacity: 1;
}

#family-asset-iq-view .paloist-mobile-camera-frame img {
  padding: 0;
  opacity: 1;
  filter: none;
  object-fit: cover;
}

#family-asset-iq-view .paloist-mobile-camera-frame::before,
#family-asset-iq-view .paloist-mobile-camera-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

#family-asset-iq-view .paloist-mobile-camera-frame::before {
  top: 25%;
  bottom: 25%;
  border-top: 1px solid rgba(0, 0, 0, 0.78);
  border-bottom: 1px solid rgba(0, 0, 0, 0.78);
}

#family-asset-iq-view .paloist-mobile-camera-frame::after {
  background: linear-gradient(
    to bottom,
    rgba(4, 6, 8, 0.38) 0 25%,
    transparent 25% 75%,
    rgba(4, 6, 8, 0.38) 75% 100%
  );
}

#family-asset-iq-view .paloist-mobile-camera-screen.is-live .paloist-mobile-camera-frame img {
  opacity: 0;
}

#family-asset-iq-view .paloist-mobile-camera-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

#family-asset-iq-view .paloist-mobile-camera-screen.is-live .paloist-mobile-camera-status {
  background: rgba(20, 24, 39, 0.48);
}

#family-asset-iq-view .paloist-mobile-camera-screen.is-error .paloist-mobile-camera-status {
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 6;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  clip-path: none;
  border-radius: 10px;
  padding: 9px 12px;
  color: #fff;
  background: rgba(20, 24, 39, 0.78);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
}

#family-asset-iq-view .paloist-mobile-camera-actions {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 18px;
}

#family-asset-iq-view .paloist-mobile-photo-library {
  grid-column: 1 / 2;
  display: grid;
  grid-template-columns: 48px;
  justify-items: center;
  align-items: center;
  width: fit-content;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: transparent;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.12;
  text-align: center;
  cursor: pointer;
}

#family-asset-iq-view .paloist-mobile-photo-library-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 5px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  color: #fff;
  background: #2b2d32;
}

#family-asset-iq-view .paloist-mobile-photo-library-icon svg {
  width: 21px;
  height: 21px;
}

#family-asset-iq-view .paloist-mobile-photo-library input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

#family-asset-iq-view .paloist-mobile-shutter {
  grid-column: 2 / 3;
  width: 70px;
  height: 70px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    inset 0 0 0 5px #0b0d10,
    inset 0 0 0 9px #fff,
    0 4px 14px rgba(0, 0, 0, 0.32);
}

#family-asset-iq-view .paloist-mobile-shutter:disabled {
  opacity: 0.42;
  cursor: wait;
}

#family-asset-iq-view .paloist-mobile-photo-preview {
  position: relative;
  overflow: hidden;
  width: calc(100% + 36px);
  margin: 0 -18px;
  border-radius: 0;
  background: #fbf7ef;
  box-shadow: none;
}

#family-asset-iq-view .paloist-phase-phone-screen .paloist-mobile-photo-review {
  display: flex;
  min-height: 721px;
  max-height: 721px;
  gap: 14px;
  overflow: hidden;
  padding: calc(72px + env(safe-area-inset-top)) 18px calc(20px + env(safe-area-inset-bottom));
  background: #fbf7ef;
  scroll-behavior: smooth;
}

#family-asset-iq-view .paloist-mobile-safe-area.is-voice-guided .paloist-mobile-photo-review {
  padding-top: calc(78px + var(--paloist-mobile-status-offset) + env(safe-area-inset-top));
}

#family-asset-iq-view .paloist-mobile-photo-review > * {
  flex: 0 0 auto;
}

#family-asset-iq-view .paloist-mobile-photo-voice-stage {
  display: grid;
  min-height: 0;
  margin-top: auto;
}

#family-asset-iq-view .paloist-mobile-voice-response-review {
  display: grid;
  gap: 10px;
  border: 1px solid #e1d0ae;
  border-radius: 16px;
  padding: 14px;
  background: #fffaf2;
}

#family-asset-iq-view .paloist-mobile-voice-response-review > label {
  color: #8d6423;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#family-asset-iq-view .paloist-mobile-voice-response-review textarea {
  width: 100%;
  min-height: 72px;
  border: 0;
  padding: 0;
  color: #242731;
  background: transparent;
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
  outline: none;
  resize: none;
}

#family-asset-iq-view .paloist-mobile-voice-response-review > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

#family-asset-iq-view .paloist-mobile-voice-response-review > div button {
  min-height: 42px;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 850;
}

#family-asset-iq-view .paloist-mobile-voice-response-review > div button:first-child {
  border: 1px solid #d8c39a;
  color: #7a5b2b;
  background: #fff;
}

#family-asset-iq-view .paloist-mobile-voice-response-review > div button:last-child {
  border: 1px solid #9a6b22;
  color: #fff;
  background: #a9782a;
}

#family-asset-iq-view .paloist-mobile-photo-review .paloist-mobile-screen-copy,
#family-asset-iq-view .paloist-mobile-photo-review .paloist-mobile-photo-preview,
#family-asset-iq-view .paloist-mobile-photo-review .paloist-mobile-feedback-card {
  transition:
    transform 320ms ease,
    padding 320ms ease,
    opacity 320ms ease;
}

#family-asset-iq-view .paloist-mobile-photo-review .paloist-mobile-kicker {
  margin-bottom: 4px;
  color: #92651f;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

#family-asset-iq-view .paloist-mobile-photo-review .paloist-mobile-screen-copy h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 850;
  line-height: 1.1;
}

#family-asset-iq-view .paloist-mobile-photo-preview img {
  display: block;
  width: 100%;
  height: 236px;
  object-fit: cover;
  transition: height 320ms ease;
}

#family-asset-iq-view .paloist-mobile-photo-preview figcaption {
  position: relative;
  display: table;
  margin: 5px 0 0 30px;
  border-radius: 999px;
  border: 1px solid #e7c68b;
  padding: 7px 11px;
  color: #77501b;
  background: #fbf7ef;
  font-size: 11px;
  font-weight: 850;
}

#family-asset-iq-view .paloist-mobile-photo-preview figcaption::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 6px 1px 0;
  border-radius: 50%;
  background: #1caf82;
  vertical-align: middle;
}

#family-asset-iq-view .paloist-mobile-photo-review.is-detected .paloist-mobile-feedback-card {
  animation: paloistDetectedIn 420ms ease both;
}

#family-asset-iq-view .paloist-mobile-photo-processing {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 24px;
  color: #fff;
  background: rgba(20, 24, 39, 0.48);
  text-align: center;
  backdrop-filter: blur(5px);
}

#family-asset-iq-view .paloist-mobile-photo-processing span {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(255, 255, 255, 0.36);
  border-top-color: #fff;
  border-radius: 50%;
  animation: paloistProcessingSpin 880ms linear infinite;
}

#family-asset-iq-view .paloist-mobile-photo-processing strong,
#family-asset-iq-view .paloist-mobile-photo-processing p {
  margin: 0;
}

#family-asset-iq-view .paloist-mobile-photo-processing strong {
  font-size: 17px;
  font-weight: 850;
}

#family-asset-iq-view .paloist-mobile-photo-processing p {
  max-width: 220px;
  font-size: 12px;
  line-height: 1.35;
}

#family-asset-iq-view .paloist-mobile-feedback-card,
#family-asset-iq-view .paloist-mobile-asset-summary-card,
#family-asset-iq-view .paloist-mobile-next-prompt {
  border: 1px solid var(--mobile-line);
  border-radius: 20px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(25, 31, 55, 0.08);
}

#family-asset-iq-view .paloist-mobile-photo-review .paloist-mobile-feedback-card {
  margin-top: 10px;
  border-color: #e7c68b;
  border-radius: 14px;
  padding: 14px;
  color: var(--mobile-ink);
  background: #fbf1df;
  box-shadow: none;
}

#family-asset-iq-view .paloist-mobile-photo-review .paloist-mobile-feedback-card > strong {
  display: block;
  color: #91631e;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#family-asset-iq-view .paloist-mobile-feedback-card p {
  margin: 6px 0 0;
  color: var(--mobile-muted);
  font-size: 13px;
  line-height: 1.45;
}

#family-asset-iq-view .paloist-mobile-photo-review .paloist-mobile-feedback-card p {
  margin-top: 6px;
  color: #343642;
  font-size: 12px;
  line-height: 1.45;
}

#family-asset-iq-view .paloist-mobile-inline-chat {
  display: grid;
  gap: 10px;
  margin-top: -4px;
  animation: paloistChatPanelIn 340ms ease both;
}

#family-asset-iq-view .paloist-mobile-inline-chat .paloist-mobile-chat-list {
  gap: 8px;
}

#family-asset-iq-view .paloist-mobile-inline-chat .paloist-mobile-chat-bubble {
  animation: paloistChatBubbleIn 260ms ease both;
}

#family-asset-iq-view .paloist-mobile-chat-listening {
  justify-self: start;
  margin: -2px 0 2px;
}

#family-asset-iq-view .paloist-mobile-chat-listening .paloist-mobile-listening-status {
  z-index: 1;
  margin-left: 1px;
  font-size: 12px;
}

#family-asset-iq-view .paloist-mobile-chat-reply-row {
  display: grid;
  width: 100%;
}

#family-asset-iq-view .paloist-mobile-chat-reply-row {
  justify-items: end;
}

#family-asset-iq-view .paloist-mobile-split-actions {
  grid-template-columns: 1fr 1fr;
  margin-top: auto;
}

#family-asset-iq-view .paloist-mobile-photo-review .paloist-mobile-split-actions {
  gap: 10px;
  margin-top: auto;
}

#family-asset-iq-view .paloist-mobile-photo-memory-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
}

#family-asset-iq-view .paloist-mobile-photo-memory-actions button {
  min-height: 50px;
  border: 1px solid #e6e8ef;
  border-radius: 14px;
  color: #454754;
  background: #fff;
  font-size: 13px;
  font-weight: 850;
}

#family-asset-iq-view .paloist-mobile-photo-memory-actions button:last-child {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #bd8b37, #98681d);
}

#family-asset-iq-view .paloist-mobile-photo-memory-actions button:disabled {
  opacity: 0.5;
  cursor: wait;
}

#family-asset-iq-view .paloist-mobile-photo-review .paloist-mobile-bottom-banner {
  position: sticky;
  bottom: 0;
  z-index: 4;
  margin: auto -18px -20px;
  border-top: 1px solid #e4e7ee;
  padding: 8px 18px calc(9px + env(safe-area-inset-bottom));
  background: #fbf7ef;
}

#family-asset-iq-view .paloist-mobile-photo-review > .paloist-mobile-inline-chat {
  flex: 1 1 auto;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  width: 100%;
}

#family-asset-iq-view .paloist-mobile-photo-review > .paloist-mobile-inline-chat > .paloist-mobile-chat-list {
  align-content: start;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

#family-asset-iq-view .paloist-mobile-photo-review .paloist-mobile-chat-bubble.is-user:not(.is-draft) {
  color: #75521b;
  background: #f8f0e3;
}

#family-asset-iq-view .paloist-mobile-photo-review .paloist-mobile-photo-type-composer {
  display: grid;
  gap: 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
  box-shadow: none;
}

#family-asset-iq-view .paloist-mobile-photo-review .paloist-mobile-photo-type-composer .paloist-mobile-photo-type-composer-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--mobile-line);
  border-radius: 14px;
  padding: 8px 10px;
  background: #fff;
}

#family-asset-iq-view .paloist-mobile-photo-review .paloist-mobile-photo-type-composer input {
  flex: 1;
  width: auto;
  height: 32px;
  min-width: 0;
  min-height: 32px;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: var(--mobile-ink);
  background: transparent;
  box-shadow: none;
  font-family: inherit;
  font-size: 13px;
  outline: none;
}

#family-asset-iq-view .paloist-mobile-photo-review .paloist-mobile-photo-type-composer input::placeholder {
  color: #a1a8b8;
  opacity: 1;
}

#family-asset-iq-view .paloist-mobile-photo-review .paloist-mobile-photo-type-dictation,
#family-asset-iq-view .paloist-mobile-photo-review .paloist-mobile-photo-type-send {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  min-height: 32px;
  border-radius: 10px;
  padding: 0;
  box-shadow: none;
}

#family-asset-iq-view .paloist-mobile-photo-review .paloist-mobile-photo-type-dictation {
  border: 1px solid #d9c39d;
  color: #8a6222;
  background: #fffaf2;
}

#family-asset-iq-view .paloist-mobile-photo-review .paloist-mobile-photo-type-send {
  border: 1px solid #b8873e;
  color: #fff;
  background: #b8873e;
}

#family-asset-iq-view .paloist-mobile-photo-review .paloist-mobile-photo-type-dictation::before,
#family-asset-iq-view .paloist-mobile-photo-review .paloist-mobile-photo-type-dictation::after,
#family-asset-iq-view .paloist-mobile-photo-review .paloist-mobile-photo-type-send::before,
#family-asset-iq-view .paloist-mobile-photo-review .paloist-mobile-photo-type-send::after {
  display: none;
  content: none;
}

#family-asset-iq-view .paloist-mobile-photo-review .paloist-mobile-photo-type-dictation svg,
#family-asset-iq-view .paloist-mobile-photo-review .paloist-mobile-photo-type-send svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#family-asset-iq-view .paloist-mobile-photo-review .paloist-mobile-photo-type-dictation.is-listening {
  border-color: #b8873e;
  color: #fff;
  background: #b8873e;
  box-shadow: 0 0 0 3px rgba(184, 135, 62, 0.18);
}

#family-asset-iq-view .paloist-mobile-photo-review .paloist-mobile-photo-type-send:disabled {
  cursor: default;
  opacity: 0.45;
}

#family-asset-iq-view .paloist-mobile-photo-review .paloist-mobile-photo-type-composer .paloist-mobile-type-error {
  margin: 6px 0 0;
}

#family-asset-iq-view .paloist-mobile-photo-summary-footer {
  display: grid;
}

#family-asset-iq-view .paloist-mobile-photo-summary-footer .paloist-mobile-button {
  width: 100%;
  min-height: 50px;
}

#family-asset-iq-view .paloist-mobile-split-actions button {
  border: 0;
  border-radius: 15px;
  color: var(--mobile-blue);
  background: #fff;
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(25, 31, 55, 0.08);
}

#family-asset-iq-view .paloist-mobile-photo-review .paloist-mobile-split-actions button {
  min-height: 50px;
  border: 1px solid #e6e8ef;
  border-radius: 14px;
  color: #454754;
  box-shadow: none;
}

#family-asset-iq-view .paloist-mobile-split-actions button:last-child {
  color: #fff;
  background: linear-gradient(135deg, var(--mobile-blue), var(--mobile-violet));
}

#family-asset-iq-view .paloist-mobile-photo-review .paloist-mobile-split-actions button:last-child {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #bd8b37, #98681d);
}

#family-asset-iq-view .paloist-mobile-split-actions button:disabled {
  opacity: 0.62;
  cursor: wait;
  box-shadow: none;
}

#family-asset-iq-view .paloist-mobile-mic-visual {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, var(--mobile-blue), var(--mobile-violet));
  box-shadow: 0 16px 34px rgba(53, 87, 255, 0.3);
}

#family-asset-iq-view .paloist-mobile-mic-visual::before {
  content: "";
  position: absolute;
  inset: 14px 19px;
  border-radius: 999px;
  background: #fff;
}

#family-asset-iq-view .paloist-phase-phone-screen .paloist-mobile-asset-summary-screen {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0;
  padding: calc(48px + env(safe-area-inset-top)) 25px 0;
  overflow: hidden;
  background: #fbf7ef;
}

#family-asset-iq-view .paloist-mobile-asset-summary-content {
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 0;
}

#family-asset-iq-view .paloist-mobile-asset-summary-screen .paloist-mobile-screen-copy h3 {
  font-size: 23px;
}

#family-asset-iq-view .paloist-mobile-asset-summary-screen .paloist-mobile-screen-copy p {
  margin-top: 7px;
}

#family-asset-iq-view .paloist-mobile-asset-summary-footer {
  position: sticky;
  bottom: 0;
  z-index: 4;
  margin: 0 -25px;
  border-top: 1px solid #e4e7ee;
  padding: 12px 25px calc(16px + env(safe-area-inset-bottom));
  background: #fff;
}

#family-asset-iq-view .paloist-mobile-asset-summary-footer .paloist-mobile-primary-button {
  width: 100%;
  min-height: 50px;
  margin: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #bd8b37, #98681d);
  box-shadow: 0 11px 22px rgba(152, 104, 29, 0.2);
}

#family-asset-iq-view .paloist-phase-phone-screen .paloist-mobile-first-asset-complete-screen {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0;
  min-height: 721px;
  max-height: 721px;
  padding: calc(76px + env(safe-area-inset-top)) 25px 0;
  overflow: hidden;
  background: #fbf7ef;
}

#family-asset-iq-view .paloist-mobile-first-asset-complete-content {
  display: grid;
  align-content: start;
  justify-items: center;
  padding-top: 76px;
  text-align: center;
}

#family-asset-iq-view .paloist-mobile-first-asset-complete-check {
  display: grid;
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #bd8b37, #98681d);
  box-shadow: 0 12px 26px rgba(152, 104, 29, 0.19);
  font-size: 38px;
  font-weight: 500;
  line-height: 1;
}

#family-asset-iq-view .paloist-mobile-first-asset-complete-content h3 {
  margin: 0;
  color: var(--mobile-ink);
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -0.6px;
  line-height: 1.16;
}

#family-asset-iq-view .paloist-mobile-first-asset-complete-summary {
  max-width: 260px;
  margin: 10px 0 25px;
  color: var(--mobile-muted);
  font-size: 13px;
  line-height: 1.45;
}

#family-asset-iq-view .paloist-mobile-first-asset-complete-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  width: min(100%, 200px);
  gap: 10px;
  align-items: center;
  border: 1px solid #e7c68b;
  border-radius: 14px;
  padding: 9px 12px;
  background: #fff;
  text-align: left;
}

#family-asset-iq-view .paloist-mobile-first-asset-complete-card img {
  width: 38px;
  height: 24px;
  object-fit: contain;
}

#family-asset-iq-view .paloist-mobile-first-asset-complete-card span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

#family-asset-iq-view .paloist-mobile-first-asset-complete-card strong {
  overflow: hidden;
  color: var(--mobile-ink);
  font-size: 11px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#family-asset-iq-view .paloist-mobile-first-asset-complete-card small {
  color: #9aa2b1;
  font-size: 10px;
}

#family-asset-iq-view .paloist-mobile-first-asset-complete-next {
  max-width: 285px;
  margin: 18px 0 0;
  color: var(--mobile-muted);
  font-size: 12px;
  line-height: 1.45;
}

#family-asset-iq-view .paloist-mobile-first-asset-complete-next strong {
  color: var(--mobile-ink);
  font-weight: 850;
}

#family-asset-iq-view .paloist-mobile-first-asset-complete-footer {
  position: sticky;
  bottom: 0;
  z-index: 4;
  display: grid;
  gap: 8px;
  margin: 0 -25px;
  border-top: 1px solid #e4e7ee;
  padding: 12px 25px calc(16px + env(safe-area-inset-bottom));
  background: #fff;
}

#family-asset-iq-view .paloist-mobile-first-asset-complete-footer button {
  min-height: 50px;
  border: 1px solid #e5c48d;
  border-radius: 14px;
  color: #8c5f1e;
  background: #fff;
  font-size: 13px;
  font-weight: 850;
}

#family-asset-iq-view .paloist-mobile-first-asset-complete-footer button:first-child {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #bd8b37, #98681d);
  box-shadow: 0 11px 22px rgba(152, 104, 29, 0.2);
}

#family-asset-iq-view .paloist-mobile-first-asset-complete-footer button:first-child span {
  margin-right: 8px;
  font-size: 20px;
  font-weight: 350;
  vertical-align: -1px;
}

#family-asset-iq-view .paloist-phase-phone-screen .paloist-mobile-family-overview-screen {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 721px;
  max-height: 721px;
  padding: calc(104px + env(safe-area-inset-top)) 14px 86px;
  overflow-y: auto;
  background: #f5f6fa;
}

#family-asset-iq-view .paloist-mobile-overview-heading p,
#family-asset-iq-view .paloist-mobile-overview-heading h3,
#family-asset-iq-view .paloist-mobile-overview-panel h4 {
  margin: 0;
}

#family-asset-iq-view .paloist-mobile-overview-heading p,
#family-asset-iq-view .paloist-mobile-overview-panel-heading span {
  color: #98a0af;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

#family-asset-iq-view .paloist-mobile-overview-heading h3 {
  margin-top: 4px;
  color: var(--mobile-ink);
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

#family-asset-iq-view .paloist-mobile-overview-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

#family-asset-iq-view .paloist-mobile-overview-metric {
  display: grid;
  min-height: 83px;
  align-content: center;
  gap: 3px;
  border: 1px solid #e8eaf0;
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff;
  box-shadow: 0 6px 15px rgba(25, 31, 55, 0.04);
}

#family-asset-iq-view .paloist-mobile-overview-metric span,
#family-asset-iq-view .paloist-mobile-overview-metric small {
  color: #8c95a6;
  font-size: 9.5px;
  line-height: 1.2;
}

#family-asset-iq-view .paloist-mobile-overview-metric strong {
  color: var(--mobile-ink);
  font-size: 19px;
  font-weight: 850;
  letter-spacing: -0.55px;
  line-height: 1.05;
}

#family-asset-iq-view .paloist-mobile-overview-metric.is-primary {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #5144df, #8458f0);
  box-shadow: 0 10px 22px rgba(81, 68, 223, 0.18);
}

#family-asset-iq-view .paloist-mobile-overview-metric.is-primary span,
#family-asset-iq-view .paloist-mobile-overview-metric.is-primary strong,
#family-asset-iq-view .paloist-mobile-overview-metric.is-primary small {
  color: #fff;
}

#family-asset-iq-view .paloist-mobile-overview-metric.is-alert strong {
  color: #f2474d;
}

#family-asset-iq-view .paloist-mobile-overview-panel {
  border: 1px solid #e7e9f0;
  border-radius: 15px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(25, 31, 55, 0.05);
}

#family-asset-iq-view .paloist-mobile-overview-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#family-asset-iq-view .paloist-mobile-overview-panel-heading b {
  border-radius: 999px;
  padding: 4px 8px;
  color: #7e8798;
  background: #f5f6fa;
  font-size: 9px;
  font-weight: 800;
}

#family-asset-iq-view .paloist-mobile-overview-panel h4 {
  margin-top: 4px;
  color: var(--mobile-ink);
  font-size: 15px;
  font-weight: 850;
}

#family-asset-iq-view .paloist-mobile-overview-composition-body {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  margin-top: 12px;
}

#family-asset-iq-view .paloist-mobile-overview-donut {
  display: grid;
  position: relative;
  width: 112px;
  aspect-ratio: 1;
  place-content: center;
  border-radius: 50%;
  background: conic-gradient(var(--paloist-mobile-composition));
  text-align: center;
}

#family-asset-iq-view .paloist-mobile-overview-donut::before {
  content: "";
  position: absolute;
  inset: 27%;
  width: auto;
  height: auto;
  border: 1px solid #e7e9f0;
  border-radius: 50%;
  background: #fff;
}

#family-asset-iq-view .paloist-mobile-overview-donut > span {
  display: grid;
  position: relative;
  z-index: 1;
  gap: 2px;
  place-items: center;
  text-align: center;
}

#family-asset-iq-view .paloist-mobile-overview-donut strong {
  color: var(--mobile-ink);
  font-size: 13px;
  font-weight: 850;
}

#family-asset-iq-view .paloist-mobile-overview-donut small {
  color: #8b94a5;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#family-asset-iq-view .paloist-mobile-overview-legend {
  display: grid;
  gap: 7px;
}

#family-asset-iq-view .paloist-mobile-overview-legend span {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
}

#family-asset-iq-view .paloist-mobile-overview-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--paloist-mobile-category-color);
}

#family-asset-iq-view .paloist-mobile-overview-legend em,
#family-asset-iq-view .paloist-mobile-overview-legend b {
  overflow: hidden;
  color: #515969;
  font-size: 10px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#family-asset-iq-view .paloist-mobile-overview-legend b {
  color: var(--mobile-ink);
  font-weight: 850;
}

#family-asset-iq-view .paloist-mobile-overview-attention button {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  width: 100%;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  border: 1px solid #e8eaf0;
  border-radius: 12px;
  padding: 10px;
  color: var(--mobile-ink);
  background: #fff;
  text-align: left;
}

#family-asset-iq-view .paloist-mobile-overview-attention button > i {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 8px;
  color: #f14d54;
  background: #fff0ef;
  font-size: 18px;
  font-style: normal;
}

#family-asset-iq-view .paloist-mobile-overview-attention button span {
  display: grid;
  gap: 3px;
}

#family-asset-iq-view .paloist-mobile-overview-attention button strong {
  font-size: 11px;
  font-weight: 850;
}

#family-asset-iq-view .paloist-mobile-overview-attention button small {
  color: #8a93a3;
  font-size: 9px;
}

#family-asset-iq-view .paloist-mobile-overview-attention button em {
  color: #ef4a51;
  font-size: 9px;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

#family-asset-iq-view .paloist-mobile-asset-summary-card {
  display: grid;
  gap: 10px;
  border-color: #e7c68b;
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
}

#family-asset-iq-view .paloist-mobile-asset-summary-card > span {
  justify-self: start;
  border-radius: 999px;
  padding: 6px 10px;
  color: #0d5b36;
  background: #e7fff1;
  font-size: 11px;
  font-weight: 850;
}

#family-asset-iq-view .paloist-mobile-asset-summary-card h3 {
  margin: 0;
  color: var(--mobile-ink);
  font-size: 24px;
  font-weight: 850;
  line-height: 1.08;
}

#family-asset-iq-view .paloist-mobile-asset-summary-card p {
  margin: 0;
  color: var(--mobile-muted);
  font-size: 13px;
}

#family-asset-iq-view .paloist-mobile-asset-summary-card img {
  width: 100%;
  height: 190px;
  border-radius: 18px;
  object-fit: cover;
}

#family-asset-iq-view .paloist-mobile-asset-summary-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

#family-asset-iq-view .paloist-mobile-asset-summary-card div {
  display: grid;
  grid-template-columns: minmax(82px, 0.7fr) 1fr;
  gap: 10px;
  border-top: 1px solid var(--mobile-line);
  padding-top: 8px;
}

#family-asset-iq-view .paloist-mobile-asset-summary-card dt,
#family-asset-iq-view .paloist-mobile-asset-summary-card dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.35;
}

#family-asset-iq-view .paloist-mobile-asset-summary-card dt {
  color: var(--mobile-muted);
  font-weight: 750;
}

#family-asset-iq-view .paloist-mobile-asset-summary-card dd {
  color: var(--mobile-ink);
  font-weight: 800;
}

#family-asset-iq-view .paloist-mobile-next-prompt {
  display: grid;
  gap: 9px;
}

#family-asset-iq-view .paloist-mobile-next-prompt label {
  color: var(--mobile-ink);
  font-size: 13px;
  font-weight: 850;
}

#family-asset-iq-view .paloist-mobile-next-prompt div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

#family-asset-iq-view .paloist-mobile-next-prompt button {
  width: 48px;
  min-height: 48px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mobile-blue), var(--mobile-violet));
}

#family-asset-iq-view .paloist-mobile-next-prompt button::before {
  content: "";
  display: block;
  width: 12px;
  height: 20px;
  margin: auto;
  border-radius: 999px;
  background: #fff;
}

#family-asset-iq-view .paloist-mobile-intro-type-prompt {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

#family-asset-iq-view .paloist-mobile-intro-type-prompt label:not(.paloist-mobile-visually-hidden) {
  margin-bottom: 2px;
}

#family-asset-iq-view .paloist-mobile-intro-type-prompt div {
  grid-template-columns: minmax(0, 1fr) 42.4px;
  align-items: center;
  gap: 8px;
}

#family-asset-iq-view .paloist-mobile-intro-type-prompt input {
  height: 25.6px;
  min-height: 25.6px;
  border: 1px solid #919396;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 12px;
  box-shadow: none;
}

#family-asset-iq-view .paloist-mobile-intro-type-prompt .paloist-mobile-type-submit {
  display: block;
  width: 42.4px;
  height: 24.8px;
  min-height: 24.8px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

#family-asset-iq-view .paloist-mobile-intro-type-prompt .paloist-mobile-type-submit::before,
#family-asset-iq-view .paloist-mobile-intro-type-prompt .paloist-mobile-type-submit::after {
  display: none;
  content: none;
}

#family-asset-iq-view .paloist-mobile-intro-type-prompt .paloist-mobile-type-submit img {
  display: block;
  width: 42.4px;
  height: 24.8px;
}

#family-asset-iq-view .paloist-mobile-intro-chat-screen .paloist-mobile-onboarding-composer {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: 4;
  margin: 0 -18px;
  border: 0;
  border-top: 1px solid var(--mobile-line);
  border-radius: 0;
  padding: 11px 14px calc(16px + env(safe-area-inset-bottom));
  background: #fff;
  box-shadow: none;
}

#family-asset-iq-view .paloist-mobile-intro-chat-screen .paloist-mobile-onboarding-composer .paloist-mobile-onboarding-composer-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--mobile-line);
  border-radius: 14px;
  padding: 8px 10px;
  background: #fff;
}

#family-asset-iq-view .paloist-mobile-intro-chat-screen .paloist-mobile-onboarding-composer .paloist-mobile-onboarding-dictation {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  min-height: 32px;
  border: 1px solid #d9c39d;
  border-radius: 10px;
  padding: 0;
  color: #8a6222;
  background: #fffaf2;
  box-shadow: none;
}

#family-asset-iq-view .paloist-mobile-intro-chat-screen .paloist-mobile-onboarding-composer .paloist-mobile-onboarding-dictation::before,
#family-asset-iq-view .paloist-mobile-intro-chat-screen .paloist-mobile-onboarding-composer .paloist-mobile-onboarding-dictation::after {
  display: none;
  content: none;
}

#family-asset-iq-view .paloist-mobile-intro-chat-screen .paloist-mobile-onboarding-composer .paloist-mobile-onboarding-dictation svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#family-asset-iq-view .paloist-mobile-intro-chat-screen .paloist-mobile-onboarding-composer .paloist-mobile-onboarding-dictation.is-listening {
  border-color: #b8873e;
  color: #fff;
  background: #b8873e;
  box-shadow: 0 0 0 3px rgba(184, 135, 62, 0.18);
}

#family-asset-iq-view .paloist-mobile-intro-chat-screen .paloist-mobile-onboarding-composer .paloist-mobile-onboarding-dictation:disabled {
  cursor: default;
  opacity: 0.45;
}

#family-asset-iq-view .paloist-mobile-intro-chat-screen .paloist-mobile-onboarding-composer input {
  flex: 1;
  width: auto;
  height: 32px;
  min-height: 32px;
  min-width: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: var(--mobile-ink);
  background: transparent;
  box-shadow: none;
  font-family: inherit;
  font-size: 13px;
  outline: none;
}

#family-asset-iq-view .paloist-mobile-intro-chat-screen .paloist-mobile-onboarding-composer input::placeholder {
  color: #a1a8b8;
  opacity: 1;
}

#family-asset-iq-view .paloist-mobile-intro-chat-screen .paloist-mobile-onboarding-composer input:disabled {
  cursor: default;
  opacity: 1;
}

#family-asset-iq-view .paloist-mobile-intro-chat-screen .paloist-mobile-onboarding-composer .paloist-mobile-onboarding-send {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  min-height: 32px;
  border: 1px solid #b8873e;
  border-radius: 10px;
  padding: 0;
  color: #fff;
  background: #b8873e;
  box-shadow: none;
}

#family-asset-iq-view .paloist-mobile-intro-chat-screen .paloist-mobile-onboarding-composer .paloist-mobile-onboarding-send::before,
#family-asset-iq-view .paloist-mobile-intro-chat-screen .paloist-mobile-onboarding-composer .paloist-mobile-onboarding-send::after {
  display: none;
  content: none;
}

#family-asset-iq-view .paloist-mobile-intro-chat-screen .paloist-mobile-onboarding-composer .paloist-mobile-onboarding-send svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#family-asset-iq-view .paloist-mobile-intro-chat-screen .paloist-mobile-onboarding-composer .paloist-mobile-onboarding-send:disabled {
  cursor: default;
  opacity: 1;
}

#family-asset-iq-view .paloist-mobile-intro-chat-screen .paloist-mobile-onboarding-composer .paloist-mobile-type-error {
  margin: 6px 0 0;
}

#family-asset-iq-view .paloist-mobile-menu-backdrop {
  position: absolute;
  top: calc(86px + env(safe-area-inset-top));
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 19;
  background: rgba(12, 16, 29, 0.38);
}

#family-asset-iq-view .paloist-mobile-menu-drawer {
  position: absolute;
  top: calc(143px + env(safe-area-inset-top));
  right: 12px;
  bottom: 14px;
  left: 12px;
  z-index: 20;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  min-height: 0;
  border: 0;
  border-radius: 22px;
  padding: 14px 14px 12px;
  background: #fff;
  box-shadow: 0 -1px 0 rgba(20, 24, 39, 0.04), 0 18px 42px rgba(12, 16, 29, 0.24);
}

#family-asset-iq-view .paloist-mobile-menu-drawer header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
  margin: 0 4px 8px;
}

#family-asset-iq-view .paloist-mobile-menu-drawer h3 {
  margin: 0;
  color: var(--mobile-ink);
  font-size: 21px;
  font-weight: 850;
  letter-spacing: -0.02em;
}

#family-asset-iq-view .paloist-mobile-menu-drawer .paloist-mobile-menu-close {
  display: grid;
  width: 31px;
  min-width: 31px;
  min-height: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid #e4e7ee;
  border-radius: 9px;
  padding: 0;
  color: #667084;
  background: #fff;
  box-shadow: none;
}

#family-asset-iq-view .paloist-mobile-menu-close svg {
  width: 17px;
  height: 17px;
}

#family-asset-iq-view .paloist-mobile-menu-option-list {
  display: grid;
  align-content: start;
  gap: 0;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

#family-asset-iq-view .paloist-mobile-menu-option {
  display: flex;
  align-items: center;
  min-height: 40px;
  border: 0;
  border-radius: 11px;
  padding: 8px 13px;
  color: #3f4350;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
  text-align: left;
}

#family-asset-iq-view .paloist-mobile-menu-option.is-active {
  color: #4f46e5;
  background: #eef0ff;
  font-weight: 850;
}

#family-asset-iq-view .paloist-mobile-menu-option.is-static {
  cursor: default;
}

#family-asset-iq-view .paloist-mobile-menu-utilities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 8px -14px 0;
  border-top: 1px solid #e4e7ee;
  padding: 10px 14px 8px;
}

#family-asset-iq-view .paloist-mobile-menu-utilities button {
  display: grid;
  grid-template-rows: 28px 10px;
  min-height: 60px;
  align-content: center;
  justify-items: center;
  justify-content: center;
  gap: 0;
  border: 1px solid #e3e6ee;
  border-radius: 11px;
  padding: 6px;
  color: #3f4350;
  background: #fff;
  box-shadow: none;
  text-align: center;
}

#family-asset-iq-view .paloist-mobile-menu-utilities button:last-child {
  border-color: #e7c887;
  color: #8a6222;
  background: #fbf2e3;
}

#family-asset-iq-view .paloist-mobile-menu-utilities small {
  display: block;
  width: 100%;
  font-size: 9px;
  font-weight: 850;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  align-self: end;
  transform: translateY(-4px);
}

#family-asset-iq-view .paloist-mobile-menu-utility-icon {
  position: relative;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #4b5260;
  margin-bottom: 3px;
  align-self: start;
  justify-self: center;
  transform: translateY(-4px);
}

#family-asset-iq-view .paloist-mobile-menu-utility-icon svg {
  width: 19px;
  height: 19px;
}

#family-asset-iq-view .paloist-mobile-menu-utility-icon b {
  position: absolute;
  top: -5px;
  right: -8px;
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #f04a4a;
  font-size: 9px;
  font-weight: 850;
}

#family-asset-iq-view .paloist-mobile-menu-utility-icon.is-council {
  color: #5144df;
  font-size: 23px;
}

#family-asset-iq-view .paloist-mobile-menu-utility-icon.is-quinn {
  overflow: visible;
}

#family-asset-iq-view .paloist-mobile-menu-utility-icon.is-quinn .paloist-mobile-faye-bloom {
  position: absolute;
  top: -1px;
  left: calc(50% - 12px);
  width: 140px;
  height: 140px;
  margin: 0;
  transform: scale(0.17);
  transform-origin: top left;
}

#family-asset-iq-view .paloist-mobile-menu-add-asset {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  color: #fff;
  background: linear-gradient(135deg, #5144df, #6549e9);
  box-shadow: 0 8px 18px rgba(81, 68, 223, 0.22);
  font-size: 14px;
  font-weight: 850;
}

#family-asset-iq-view .paloist-mobile-menu-add-asset span {
  font-size: 21px;
  font-weight: 300;
  line-height: 1;
}

#family-asset-iq-view .paloist-mobile-menu-option-list .nav-icon {
  position: relative;
  color: #fff;
}

#family-asset-iq-view .paloist-mobile-menu-option-list .nav-icon::before,
#family-asset-iq-view .paloist-mobile-menu-option-list .nav-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
  border-color: currentColor;
}

#family-asset-iq-view .paloist-mobile-menu-option-list .nav-icon-management::before {
  inset: 8px 9px 12px;
  border: 1.7px solid currentColor;
  border-radius: 4px;
}

#family-asset-iq-view .paloist-mobile-menu-option-list .nav-icon-management::after {
  right: 8px;
  bottom: 8px;
  left: 11px;
  height: 9px;
  border: 1.7px solid currentColor;
  border-radius: 4px;
}

#family-asset-iq-view .paloist-mobile-menu-option-list .nav-icon-protection::before {
  top: 7px;
  left: 10px;
  width: 12px;
  height: 16px;
  border: 1.8px solid currentColor;
  border-radius: 9px 9px 11px 11px;
}

#family-asset-iq-view .paloist-mobile-menu-option-list .nav-icon-protection::after {
  top: 13px;
  left: 15px;
  width: 2px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

#family-asset-iq-view .paloist-mobile-menu-option-list .nav-icon-opportunity::before {
  inset: 8px;
  border: 1.7px solid currentColor;
  border-radius: 999px;
}

#family-asset-iq-view .paloist-mobile-menu-option-list .nav-icon-opportunity::after {
  top: 14px;
  left: 14px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
}

#family-asset-iq-view .paloist-mobile-menu-option-list .nav-icon-inheritance::before {
  top: 8px;
  left: 15px;
  width: 2px;
  height: 16px;
  border-radius: 999px;
  background: currentColor;
}

#family-asset-iq-view .paloist-mobile-menu-option-list .nav-icon-inheritance::after {
  top: 10px;
  left: 8px;
  width: 16px;
  height: 11px;
  border-top: 1.8px solid currentColor;
  border-right: 1.8px solid currentColor;
  border-left: 1.8px solid currentColor;
  border-radius: 6px 6px 0 0;
}

#family-asset-iq-view .paloist-mobile-menu-option-list .nav-icon-documents::before {
  inset: 7px 9px 7px 8px;
  border: 1.7px solid currentColor;
  border-radius: 3px;
}

#family-asset-iq-view .paloist-mobile-menu-option-list .nav-icon-documents::after {
  top: 13px;
  right: 11px;
  left: 11px;
  height: 1.7px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 4px 0 currentColor;
}

#family-asset-iq-view .paloist-mobile-menu-option-list .nav-icon-memories::before {
  top: 8px;
  left: 8px;
  width: 16px;
  height: 16px;
  border: 1.8px solid currentColor;
  border-radius: 50%;
}

#family-asset-iq-view .paloist-mobile-menu-option-list .nav-icon-memories::after {
  top: 12px;
  left: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

#family-asset-iq-view .paloist-mobile-phase-page button:focus-visible,
#family-asset-iq-view .paloist-mobile-phase-page input:focus-visible {
  outline: 3px solid rgba(53, 87, 255, 0.34);
  outline-offset: 2px;
}

@keyframes paloistTileReplace {
  from {
    opacity: 0.58;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes paloistTileFlipReveal {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(180deg);
  }
}

@keyframes paloistListeningPulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(24, 169, 87, 0.16);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(24, 169, 87, 0);
    transform: scale(1.16);
  }
}

@keyframes paloistVoiceButtonPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(75, 67, 221, 0.18), 0 16px 34px rgba(53, 87, 255, 0.28);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(75, 67, 221, 0), 0 18px 36px rgba(53, 87, 255, 0.3);
    transform: scale(1.025);
  }
}

@keyframes paloistFayeBloom {
  0%,
  100% {
    opacity: 0.35;
    transform: rotate(var(--paloist-faye-rest-angle)) scale(0.9);
  }
  50% {
    opacity: 0.6;
    transform: rotate(var(--paloist-faye-angle)) scale(1);
  }
}

@keyframes paloistFayePearl {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.13);
  }
}

@keyframes paloistFayeSpeakingWave {
  from {
    transform: scaleY(0.55);
  }
  to {
    transform: scaleY(1);
  }
}

@keyframes paloistCameraFlash {
  0%,
  100% {
    opacity: 0;
  }
  24% {
    opacity: 0.75;
  }
}

@keyframes paloistProcessingSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes paloistDetectedIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes paloistChatPanelIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes paloistChatBubbleIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  #family-asset-iq-view .paloist-mobile-phase-page *,
  #family-asset-iq-view .paloist-mobile-phase-page *::before,
  #family-asset-iq-view .paloist-mobile-phase-page *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 420px) {
  html:not(.paloist-native-mobile) #family-asset-iq-view .paloist-phase-phone-shell {
    width: min(100%, 320px);
    min-height: 675px;
    border-width: 5px;
    border-radius: 30px;
    padding: 0;
  }

  html:not(.paloist-native-mobile) #family-asset-iq-view .paloist-phase-phone-screen,
  html:not(.paloist-native-mobile) #family-asset-iq-view .paloist-mobile-safe-area,
  html:not(.paloist-native-mobile) #family-asset-iq-view .paloist-mobile-app-main,
  html:not(.paloist-native-mobile) #family-asset-iq-view .paloist-phase-phone-screen .paloist-mobile-screen,
  html:not(.paloist-native-mobile) #family-asset-iq-view .paloist-mobile-landing-screen,
  html:not(.paloist-native-mobile) #family-asset-iq-view .paloist-mobile-camera-screen {
    min-height: 665px;
    max-height: 665px;
    height: 665px;
  }

  #family-asset-iq-view .paloist-mobile-collage {
    grid-auto-rows: 118px;
    gap: 0;
    padding: 0 0 0 0;
  }

  #family-asset-iq-view .paloist-mobile-screen-copy h3,
  #family-asset-iq-view .paloist-mobile-overlay-card h3 {
    font-size: 23px;
  }

  #family-asset-iq-view .paloist-mobile-metric-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  #family-asset-iq-view .paloist-mobile-metric-card {
    min-height: 66px;
    padding: 10px 8px;
  }

  #family-asset-iq-view .paloist-mobile-metric-card strong {
    font-size: 16px;
  }

  #family-asset-iq-view .paloist-mobile-metric-card span {
    font-size: 9.5px;
  }

  #family-asset-iq-view .paloist-mobile-returning-copy {
    top: 116px;
  }
}

/* Keep Avi overrides after the application theme layers. */
.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.avi-panel {
  width: min(620px, 100%);
  grid-template-rows: auto auto minmax(180px, 1fr) auto auto;
  border-left-color: #9cc8ac;
  background: linear-gradient(180deg, #f8fcf8 0%, #eef7f0 100%);
}

@media (max-width: 1180px) {
  .metrics-grid,
  .dashboard-grid,
  .ibkr-live-summary,
  .ibkr-live-footer,
  .stat-grid,
  .rebalance-layout,
  .settings-layout,
  .health-layout,
  .scenario-lab-layout,
  .trades-layout,
  .approval-workspace,
  .trade-position-panel-header,
  .paper-layout,
  .paper-positions-grid,
  .paper-dashboard-kpi-row,
  .backup-restore-layout,
  .broker-safety-layout,
  .data-management-layout,
  .signal-capability-grid,
  .signal-card-list {
    grid-template-columns: 1fr 1fr;
  }

  .primary-metric,
  .trend-panel {
    grid-column: span 2;
  }

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

  #family-asset-iq-view .paloist-mobile-demo-stage {
    grid-template-columns: 1fr;
  }

  #family-asset-iq-view .paloist-mobile-demo-side-panel {
    max-width: 520px;
    width: 100%;
    justify-self: center;
  }

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

  .paloist-dashboard-main-grid,
  .paloist-dashboard-lower-grid,
  .paloist-dashboard-readiness-grid,
  .family-value-bridge-grid {
    grid-template-columns: 1fr;
  }

  .family-asset-management-panel .family-asset-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .family-deadline-list > div {
    grid-template-columns: 1fr;
  }

  .family-deadline-list time {
    text-align: left;
  }
}

@media (max-width: 840px) {
  .login-view {
    padding: 24px;
  }

  .login-landing-shell {
    min-height: calc(100vh - 48px);
  }

  .login-landing-grid {
    grid-template-columns: 1fr;
  }

  .login-hero-figure {
    min-height: 360px;
    height: 52vh;
  }

  .login-panel {
    width: 100%;
    justify-self: stretch;
  }

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

  .audit-trail-event {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .audit-trail-event time {
    grid-column: 2;
  }

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

  .sidebar {
    position: static;
    height: auto;
    min-height: auto;
    overflow-y: visible;
  }

  .sidebar-brand {
    padding: 16px 18px;
  }

  .nav-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    scrollbar-width: thin;
  }

  .nav-item {
    flex: 0 0 auto;
    padding: 10px 12px;
  }

  #family-asset-iq-view .paloist-mobile-demo-intro {
    display: grid;
  }

  #family-asset-iq-view .paloist-mobile-demo-chip-row {
    justify-content: flex-start;
  }

  #family-asset-iq-view .paloist-phone-shell {
    width: min(100%, 334px);
    min-height: 640px;
  }

  #family-asset-iq-view .paloist-phone-screen {
    min-height: 590px;
    max-height: 590px;
  }

  .sidebar-footer {
    margin-top: 0;
    padding: 12px 18px;
    border-top: 0;
    border-bottom: 1px solid var(--line);
  }

  .workspace {
    padding: 20px 18px 32px;
  }

  .topbar {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .topbar-center,
  .topbar-actions {
    justify-content: stretch;
    justify-items: stretch;
    justify-self: stretch;
    padding-top: 0;
  }

  .topbar-actions {
    justify-items: start;
  }

  .usage-top-button,
  #ask-council-button {
    width: 100%;
  }

  .paloist-dashboard-command,
  .paloist-dashboard-search-form {
    display: grid;
    grid-template-columns: 1fr;
  }

  .paloist-dashboard-council-button,
  .paloist-dashboard-go-button {
    width: 100%;
    justify-content: center;
  }

  .paloist-dashboard-metrics,
  .paloist-dashboard-legend,
  .paloist-dashboard-note-grid,
  .paloist-dashboard-two-num {
    grid-template-columns: 1fr;
  }

  .paloist-dashboard-action {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .paloist-dashboard-action .paloist-dashboard-badge {
    grid-column: 2;
    justify-self: start;
  }

  .metrics-grid,
  .dashboard-grid,
  .ibkr-live-summary,
  .ibkr-live-footer,
  .market-cards,
  .trend-insight-strip,
  .market-index-strip,
  .research-symbol-form,
  .stock-detail-metrics,
  .research-metric-grid,
  .stat-grid,
  .paper-dashboard-grid,
  .compact-stat-grid,
  .council-filter-grid,
  .council-review-layout,
  .council-insight-grid,
  .council-session-controls,
  .backup-restore-layout,
  .broker-safety-layout,
  .broker-safety-status-grid,
  .broker-safety-field-grid,
  .family-overview-grid,
  .family-planning-grid,
  .family-opportunity-layout,
  .family-opportunity-run-metrics,
  .family-opportunity-run-detail-grid,
  .family-inheritance-layout,
  .family-inheritance-dashboard-stats,
  .family-inheritance-dashboard-columns,
  .family-estate-layout,
  .family-insurance-layout,
  .family-document-controls-grid,
  .family-document-search-row,
  .family-document-card-grid,
  .family-document-meta-grid,
  .family-report-layout,
  .family-report-control-grid,
  .family-report-meta-grid,
  .family-report-asset-grid,
  .family-profile-grid,
  .family-beneficiary-grid,
  .family-protection-layer-grid,
  .family-protection-layout,
  .family-protection-overview-grid,
  .family-protection-drawer-grid,
  .family-asset-category-grid,
  .family-management-category-grid,
  .family-management-toolbar,
  .family-asset-layout,
  .family-asset-inventory-layout,
  .family-asset-upload-grid,
  .family-asset-photo-row,
  .family-asset-document-upload,
  .family-asset-mini-grid,
  .family-asset-card,
  .family-asset-meta-grid,
  .rebalance-layout,
  .rebalance-drift-row,
  .rebalance-drift-metrics,
  .settings-layout,
  .settings-target-row,
  .settings-trade-form,
  .health-hero-grid,
  .health-layout,
  .health-two-column,
  .projection-compare,
  .scenario-summary-grid,
  .scenario-lab-layout,
  .trades-layout,
  .approval-workspace,
  .paper-layout,
  .paper-positions-grid,
  .paper-timeline-meta,
  .paper-dashboard-kpi-row,
  .paper-benchmark-summary,
  .paper-benchmark-dashboard .paper-benchmark-list,
  .paper-benchmark-list,
  .paper-advisor-card-grid,
  .paper-benchmark-values,
  .data-management-layout,
  .data-holding-grid,
  .data-holding-row,
  .data-target-row,
  .signal-capability-grid,
  .signal-card-list,
  .approval-check-list,
  .audit-selected-summary,
  .scenario-preset-list,
  .scenario-result-grid,
  .scenario-assumption-grid,
  .trade-meta-grid,
  .form-row.two-column,
  .usage-summary-grid {
    grid-template-columns: 1fr;
  }

  .primary-metric,
  .trend-panel {
    grid-column: span 1;
  }

  .family-member-row {
    grid-template-columns: minmax(0, 1fr) 100px;
  }

  .family-member-beneficiary-fields {
    grid-template-columns: 1fr;
  }

  .family-member-beneficiary-toggle {
    grid-column: 1 / -1;
  }

  .family-member-remove {
    grid-column: 1 / -1;
    justify-self: start;
    padding-block: 4px;
  }

  .family-profile-capsule {
    align-items: flex-start;
    border-radius: 20px;
  }

  .family-profile-capsule-meta {
    align-items: flex-end;
    flex-direction: column;
    gap: 2px;
  }

  .family-inheritor-profile-header {
    flex-direction: column;
  }

  .family-advisor-fields,
  .family-inheritor-fields,
  .managed-user-fields,
  .access-asset-notes {
    grid-template-columns: 1fr;
  }

  .managed-user-row {
    grid-template-columns: 1fr 1fr;
  }

  .created-invitation-card {
    grid-template-columns: 1fr;
  }

  .managed-user-identity {
    grid-column: 1 / -1;
  }

  .managed-user-actions {
    justify-content: flex-start;
  }

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

  .trade-card header {
    display: grid;
  }

  .family-protection-matrix-row {
    grid-template-columns: 1fr;
  }

  .panel-header,
  .settings-status-row,
  .settings-assignment-row,
  .capability-row,
  .paper-benchmark-card,
  .broker-safety-event > div,
  .rebalance-note,
  .rebalance-move-meta {
    display: grid;
  }

  .panel-header-three-way {
    grid-template-columns: 1fr;
  }

  .panel-header-center-action,
  .panel-header-end-action {
    justify-self: start;
  }

  .family-management-actions {
    justify-content: flex-start;
  }

  .family-management-drawer {
    width: min(100vw, 640px);
    padding: 16px;
  }

  .family-management-drawer-header {
    margin: -16px -16px 16px;
    padding: 16px;
  }

  .paper-hero-actions {
    justify-content: flex-start;
  }

  .signal-intelligence-actions,
  .signal-card-actions {
    justify-content: flex-start;
  }

  .paper-benchmark-card {
    grid-template-columns: 1fr;
  }

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

  .settings-status-row em {
    max-width: none;
    text-align: left;
  }

  .council-action-notes-panel {
    position: static;
  }

  .council-session-header,
  .council-note-header {
    display: grid;
  }

  .council-session-actions {
    justify-content: flex-start;
  }

  .approval-order-card header,
  .approval-audit-event > div {
    display: grid;
  }

  .paper-position-card header,
  .paper-advisor-card header,
  .family-asset-card header,
  .family-inheritance-asset-row,
  .family-estate-asset-row,
  .family-estate-analysis-card header,
  .family-insurance-asset-row,
  .family-insurance-analysis-card header,
  .family-document-card header,
  .paper-trade-row,
  .data-transaction-row {
    display: grid;
  }

  .trade-card-status {
    text-align: left;
  }

  .scenario-control-input-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .login-view {
    padding: 18px;
  }

  .login-landing-shell {
    min-height: calc(100vh - 36px);
    gap: 26px;
  }

  .login-brand-logo {
    width: min(275px, 78vw);
    margin-bottom: 14px;
  }

  .login-welcome h1 {
    font-size: 38px;
  }

  .login-welcome > p:last-child {
    margin-top: 14px;
    font-size: 15px;
  }

  .login-hero-figure {
    min-height: 300px;
    height: 46vh;
    border-radius: 20px;
  }

  .login-hero-figure figcaption {
    right: 20px;
    bottom: 20px;
    left: 20px;
  }

  .login-panel {
    padding: 26px 22px;
    border-radius: 20px;
  }

  .audit-trail-heading {
    display: grid;
  }

  .audit-trail-refresh-button {
    justify-self: start;
  }

  .audit-trail-summary,
  .audit-trail-toolbar {
    grid-template-columns: 1fr;
  }

  .access-view-header {
    padding-inline: 14px;
  }

  .access-view-workspace {
    width: min(100% - 24px, 1240px);
    padding-top: 28px;
  }

  .access-asset-card > header,
  .access-asset-details {
    grid-template-columns: 1fr;
  }

  .managed-user-row {
    grid-template-columns: 1fr;
  }

  .access-asset-card > header img,
  .access-asset-placeholder {
    width: 100%;
    height: 180px;
  }

  .family-members-heading,
  .family-advisor-access-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 1220px) {
  .app-shell.wealth-studio-preview {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 20px;
    padding: 20px;
  }

  .app-shell.wealth-studio-preview .metrics-grid,
  .app-shell.wealth-paper-preview .paper-dashboard-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell.wealth-dashboard-preview #dashboard-view .dashboard-grid,
  .paper-studio-split,
  .app-shell.wealth-paper-preview .paper-layout.paper-utility-grid {
    grid-template-columns: 1fr;
  }

  .app-shell.wealth-dashboard-preview #dashboard-view .trend-panel,
  .app-shell.wealth-dashboard-preview #dashboard-view .market-panel,
  .app-shell.wealth-dashboard-preview #dashboard-view .recommendation-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 840px) {
  .app-shell.wealth-studio-preview {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .app-shell.wealth-studio-preview .sidebar {
    position: static;
    height: auto;
    min-height: auto;
    overflow-y: visible;
    border-radius: 0;
  }

  .app-shell.wealth-studio-preview .workspace {
    padding: 20px 18px 32px;
  }

  .app-shell.wealth-studio-preview .topbar h1 {
    font-size: 38px;
  }

  .app-shell.wealth-studio-preview .page-subtitle {
    font-size: 16px;
  }

  .app-shell.wealth-studio-preview .metrics-grid,
  .app-shell.wealth-paper-preview .paper-dashboard-stat-grid,
  .app-shell.wealth-paper-preview .paper-benchmark-list,
  .app-shell.wealth-paper-preview .paper-trade-row > div {
    grid-template-columns: 1fr;
  }
}

.app-shell.wealth-studio-preview button:not(:disabled),
.app-shell.wealth-studio-preview .nav-item:not(:disabled),
.app-shell.wealth-studio-preview .ghost-button:not(:disabled),
.app-shell.wealth-studio-preview .icon-button:not(:disabled),
.app-shell.wealth-studio-preview select:not(:disabled),
.app-shell.wealth-dashboard-preview #dashboard-view .quote-card,
.app-shell.wealth-dashboard-preview #dashboard-view .market-index-card,
.app-shell.wealth-dashboard-preview #dashboard-view .metric-info-button:not(:disabled) {
  cursor: pointer !important;
}

.app-shell.wealth-studio-preview button:not(:disabled):hover,
.app-shell.wealth-studio-preview button:not(:disabled):focus-visible,
.app-shell.wealth-studio-preview .nav-item:not(:disabled):hover,
.app-shell.wealth-studio-preview .nav-item:not(:disabled):focus-visible,
.app-shell.wealth-studio-preview .ghost-button:not(:disabled):hover,
.app-shell.wealth-studio-preview .ghost-button:not(:disabled):focus-visible,
.app-shell.wealth-studio-preview .icon-button:not(:disabled):hover,
.app-shell.wealth-studio-preview .icon-button:not(:disabled):focus-visible {
  border-color: var(--forest) !important;
  color: var(--forest-dark);
  background: var(--forest-soft);
  box-shadow: 0 0 0 3px rgba(31, 93, 58, 0.12) !important;
}

.app-shell.wealth-studio-preview .ghost-button:not(:disabled):hover,
.app-shell.wealth-studio-preview .ghost-button:not(:disabled):focus-visible {
  color: #fff;
  background: var(--forest);
}

.app-shell.wealth-studio-preview .nav-item:not(:disabled):hover,
.app-shell.wealth-studio-preview .nav-item:not(:disabled):focus-visible {
  transform: translateX(2px);
}

.app-shell.wealth-dashboard-preview #dashboard-view .quote-card:hover,
.app-shell.wealth-dashboard-preview #dashboard-view .quote-card:focus-within,
.app-shell.wealth-dashboard-preview #dashboard-view .market-index-card:hover,
.app-shell.wealth-dashboard-preview #dashboard-view .market-index-card:focus-within {
  border-color: var(--forest) !important;
  background: #fbfdfb;
  box-shadow: 0 0 0 3px rgba(31, 93, 58, 0.1), var(--shadow-soft);
}

.app-shell.wealth-studio-preview button:disabled,
.app-shell.wealth-studio-preview .ghost-button:disabled,
.app-shell.wealth-studio-preview .icon-button:disabled,
.app-shell.wealth-studio-preview select:disabled {
  cursor: not-allowed !important;
}

button:not(:disabled),
button:not(:disabled) *,
[role="button"]:not([aria-disabled="true"]),
[role="button"]:not([aria-disabled="true"]) *,
.nav-item:not(:disabled),
.nav-item:not(:disabled) *,
.ghost-button:not(:disabled),
.ghost-button:not(:disabled) *,
.icon-button:not(:disabled),
.icon-button:not(:disabled) *,
.metric-info-button:not(:disabled),
.metric-info-button:not(:disabled) *,
.mini-stat-button,
.mini-stat-button *,
.family-asset-category-card,
.family-asset-category-card *,
.family-asset-type-button,
.family-asset-type-button *,
.family-protection-count-button,
.family-protection-count-button * {
  cursor: pointer !important;
}

button:disabled,
button:disabled *,
[aria-disabled="true"],
[aria-disabled="true"] *,
.is-disabled,
.is-disabled * {
  cursor: not-allowed !important;
}

.is-interactive-control,
.is-interactive-control * {
  cursor: pointer !important;
}

.is-interactive-control:hover,
.is-interactive-control:focus-visible,
.is-interactive-control.is-interactive-hover,
[data-fr33dom-hovered="true"] {
  cursor: pointer !important;
  border-color: var(--forest) !important;
  box-shadow: 0 0 0 3px rgba(31, 93, 58, 0.18), 0 14px 30px rgba(31, 93, 58, 0.12) !important;
  transform: translateY(-1px);
}

.is-interactive-control:hover *,
.is-interactive-control:focus-visible *,
.is-interactive-control.is-interactive-hover *,
[data-fr33dom-hovered="true"] * {
  cursor: pointer !important;
}

.is-disabled-control,
.is-disabled-control * {
  cursor: not-allowed !important;
}

.is-interactive-control.is-interactive-hover {
  border-color: var(--forest) !important;
  box-shadow: 0 0 0 3px rgba(31, 93, 58, 0.12) !important;
}

.ghost-button.is-interactive-control.is-interactive-hover,
.icon-button.is-interactive-control.is-interactive-hover {
  color: #fff;
  background: var(--forest);
}

.nav-item.is-interactive-control.is-interactive-hover {
  color: var(--forest);
  background: var(--forest-soft);
}

.quote-card.is-interactive-control.is-interactive-hover,
.market-index-card.is-interactive-control.is-interactive-hover,
.metric-panel.is-interactive-control.is-interactive-hover,
.ibkr-live-stat.is-interactive-control.is-interactive-hover,
.ibkr-live-status.is-interactive-control.is-interactive-hover,
.trend-insight-card.is-interactive-control.is-interactive-hover,
.advisor-note.is-interactive-control.is-interactive-hover,
.holding-row.is-interactive-control.is-interactive-hover,
.provider-row.is-interactive-control.is-interactive-hover,
.panel-pill.is-interactive-control.is-interactive-hover,
.market-driver-tile.is-interactive-control.is-interactive-hover {
  background: #fbfdfb;
}

button.is-interactive-control:hover,
button.is-interactive-control:focus-visible,
button.is-interactive-control.is-interactive-hover,
.ghost-button.is-interactive-control:hover,
.ghost-button.is-interactive-control:focus-visible,
.ghost-button.is-interactive-control.is-interactive-hover,
.nav-item.is-interactive-control:hover,
.nav-item.is-interactive-control:focus-visible,
.nav-item.is-interactive-control.is-interactive-hover,
[data-fr33dom-hovered="true"].ghost-button,
[data-fr33dom-hovered="true"].nav-item {
  color: #fff !important;
  background: var(--forest) !important;
}

#family-asset-iq-view .paloist-mobile-phase-page button:not(:disabled):not(.paloist-mobile-brand-button):hover,
#family-asset-iq-view .paloist-mobile-phase-page button:not(:disabled):not(.paloist-mobile-brand-button):focus-visible,
#family-asset-iq-view .paloist-mobile-phase-page button.is-interactive-control.is-interactive-hover,
#family-asset-iq-view .paloist-mobile-phase-page [data-fr33dom-hovered="true"] {
  color: #fff !important;
  border-color: #000 !important;
  background: #000 !important;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.18), 0 14px 30px rgba(0, 0, 0, 0.18) !important;
}

#family-asset-iq-view .paloist-mobile-phase-page button:not(:disabled):not(.paloist-mobile-brand-button):hover *,
#family-asset-iq-view .paloist-mobile-phase-page button:not(:disabled):not(.paloist-mobile-brand-button):focus-visible *,
#family-asset-iq-view .paloist-mobile-phase-page button.is-interactive-control.is-interactive-hover *,
#family-asset-iq-view .paloist-mobile-phase-page [data-fr33dom-hovered="true"] * {
  color: inherit !important;
}

#family-asset-iq-view .paloist-mobile-phase-page .paloist-mobile-step-panel button.is-interactive-control:hover,
#family-asset-iq-view .paloist-mobile-phase-page .paloist-mobile-step-panel button.is-interactive-control:focus-visible,
#family-asset-iq-view .paloist-mobile-phase-page .paloist-mobile-step-panel button.is-active,
#family-asset-iq-view .paloist-mobile-phase-page .paloist-mobile-build-notes button.is-interactive-control:hover,
#family-asset-iq-view .paloist-mobile-phase-page .paloist-mobile-build-notes button.is-interactive-control:focus-visible {
  color: #fff !important;
  border-color: #000 !important;
  background: #000 !important;
}

#family-asset-iq-view .paloist-mobile-phase-page .paloist-mobile-hamburger.is-interactive-control:hover img,
#family-asset-iq-view .paloist-mobile-phase-page .paloist-mobile-hamburger.is-interactive-control:focus-visible img {
  filter: brightness(0) invert(1);
}

#family-asset-iq-view .paloist-mobile-phase-page .paloist-mobile-hamburger.is-interactive-control:hover,
#family-asset-iq-view .paloist-mobile-phase-page .paloist-mobile-hamburger.is-interactive-control:focus-visible,
#family-asset-iq-view .paloist-mobile-phase-page .paloist-mobile-hamburger.is-interactive-control.is-interactive-hover,
#family-asset-iq-view .paloist-mobile-phase-page .paloist-mobile-hamburger[aria-expanded="true"] {
  border-color: transparent !important;
  border-radius: 12px;
  background: #000 !important;
  box-shadow: none !important;
}

#family-asset-iq-view .paloist-mobile-phase-page .paloist-mobile-hamburger.is-interactive-control.is-interactive-hover img,
#family-asset-iq-view .paloist-mobile-phase-page .paloist-mobile-hamburger[aria-expanded="true"] img {
  filter: brightness(0) invert(1);
}

#family-asset-iq-view .paloist-mobile-phase-page .paloist-phone-screen button:not(:disabled):hover,
#family-asset-iq-view .paloist-mobile-phase-page .paloist-phone-screen button:not(:disabled):focus-visible,
#family-asset-iq-view .paloist-mobile-phase-page .paloist-phone-screen button.is-interactive-control:hover,
#family-asset-iq-view .paloist-mobile-phase-page .paloist-phone-screen button.is-interactive-control:focus-visible,
#family-asset-iq-view .paloist-mobile-phase-page .paloist-phone-screen button.is-interactive-control.is-interactive-hover,
#family-asset-iq-view .paloist-mobile-phase-page .paloist-phone-screen [data-fr33dom-hovered="true"] {
  box-shadow: none !important;
  outline: none !important;
  transform: none !important;
}

#family-asset-iq-view .paloist-mobile-phase-page .paloist-phone-screen input:focus,
#family-asset-iq-view .paloist-mobile-phase-page .paloist-phone-screen input:focus-visible,
#family-asset-iq-view .paloist-mobile-phase-page .paloist-phone-screen textarea:focus,
#family-asset-iq-view .paloist-mobile-phase-page .paloist-phone-screen textarea:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

#family-asset-iq-view .paloist-mobile-phase-page .paloist-phone-screen .paloist-mobile-intro-type-prompt input:focus,
#family-asset-iq-view .paloist-mobile-phase-page .paloist-phone-screen .paloist-mobile-intro-type-prompt input:focus-visible,
#family-asset-iq-view .paloist-mobile-phase-page .paloist-phone-screen .paloist-mobile-intro-type-prompt input:hover {
  border-color: #919396 !important;
  background: #fff !important;
}

#family-asset-iq-view .paloist-mobile-phase-page .paloist-phone-screen .paloist-mobile-type-submit:hover,
#family-asset-iq-view .paloist-mobile-phase-page .paloist-phone-screen .paloist-mobile-type-submit:focus-visible,
#family-asset-iq-view .paloist-mobile-phase-page .paloist-phone-screen .paloist-mobile-type-submit.is-interactive-hover,
#family-asset-iq-view .paloist-mobile-phase-page .paloist-phone-screen .paloist-mobile-type-submit[data-fr33dom-hovered="true"],
#family-asset-iq-view .paloist-mobile-phase-page .paloist-phone-screen .paloist-mobile-hamburger:hover,
#family-asset-iq-view .paloist-mobile-phase-page .paloist-phone-screen .paloist-mobile-hamburger:focus-visible,
#family-asset-iq-view .paloist-mobile-phase-page .paloist-phone-screen .paloist-mobile-hamburger.is-interactive-hover,
#family-asset-iq-view .paloist-mobile-phase-page .paloist-phone-screen .paloist-mobile-hamburger[data-fr33dom-hovered="true"],
#family-asset-iq-view .paloist-mobile-phase-page .paloist-phone-screen .paloist-mobile-hamburger[aria-expanded="true"] {
  border-color: transparent !important;
  background: transparent !important;
}

#family-asset-iq-view .paloist-mobile-phase-page .paloist-phone-screen .paloist-mobile-type-submit:hover img,
#family-asset-iq-view .paloist-mobile-phase-page .paloist-phone-screen .paloist-mobile-type-submit:focus-visible img,
#family-asset-iq-view .paloist-mobile-phase-page .paloist-phone-screen .paloist-mobile-type-submit.is-interactive-hover img,
#family-asset-iq-view .paloist-mobile-phase-page .paloist-phone-screen .paloist-mobile-type-submit[data-fr33dom-hovered="true"] img,
#family-asset-iq-view .paloist-mobile-phase-page .paloist-phone-screen .paloist-mobile-hamburger:hover img,
#family-asset-iq-view .paloist-mobile-phase-page .paloist-phone-screen .paloist-mobile-hamburger:focus-visible img,
#family-asset-iq-view .paloist-mobile-phase-page .paloist-phone-screen .paloist-mobile-hamburger.is-interactive-hover img,
#family-asset-iq-view .paloist-mobile-phase-page .paloist-phone-screen .paloist-mobile-hamburger[data-fr33dom-hovered="true"] img,
#family-asset-iq-view .paloist-mobile-phase-page .paloist-phone-screen .paloist-mobile-hamburger[aria-expanded="true"] img {
  filter: brightness(0) !important;
}

#family-asset-iq-view .family-beneficiary-select:hover,
#family-asset-iq-view .family-beneficiary-select:focus-visible,
#family-asset-iq-view .family-beneficiary-select.is-interactive-hover,
#family-asset-iq-view .family-beneficiary-select[data-fr33dom-hovered="true"] {
  border-color: transparent !important;
  color: inherit !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

#family-asset-iq-view .family-beneficiary-select:hover *,
#family-asset-iq-view .family-beneficiary-select:focus-visible *,
#family-asset-iq-view .family-beneficiary-select.is-interactive-hover *,
#family-asset-iq-view .family-beneficiary-select[data-fr33dom-hovered="true"] * {
  color: inherit;
}

#family-asset-iq-view .paloist-mobile-demo-side-panel button:not(.is-active):hover,
#family-asset-iq-view .paloist-mobile-demo-side-panel button:not(.is-active):focus-visible,
#family-asset-iq-view .paloist-mobile-pill-list button:not(.is-active):hover,
#family-asset-iq-view .paloist-mobile-pill-list button:not(.is-active):focus-visible,
#family-asset-iq-view .paloist-mobile-menu-card button:not(.is-active):hover,
#family-asset-iq-view .paloist-mobile-menu-card button:not(.is-active):focus-visible {
  border-color: var(--paloist-line) !important;
  color: var(--paloist-charcoal) !important;
  background: #fffdf8 !important;
  box-shadow: none !important;
  outline: none !important;
  transform: none !important;
}

#family-asset-iq-view .paloist-live-mobile-nav button:not(.is-active):hover,
#family-asset-iq-view .paloist-live-mobile-nav button:not(.is-active):focus-visible {
  border-color: var(--paloist-line) !important;
  color: var(--paloist-taupe) !important;
  background: #fffdf8 !important;
  box-shadow: none !important;
  outline: none !important;
  transform: none !important;
}

#family-asset-iq-view .paloist-live-mobile-menu-grid button:not(.is-active):hover,
#family-asset-iq-view .paloist-live-mobile-menu-grid button:not(.is-active):focus-visible {
  border-color: var(--paloist-line) !important;
  color: var(--paloist-charcoal) !important;
  background: #fffcf5 !important;
  box-shadow: none !important;
  outline: none !important;
  transform: none !important;
}

#family-asset-iq-view .paloist-mobile-menu-option-list button:not(.is-active):hover,
#family-asset-iq-view .paloist-mobile-menu-option-list button:not(.is-active):focus-visible {
  border-color: rgba(20, 24, 39, 0.08) !important;
  color: var(--mobile-ink) !important;
  background: rgba(255, 255, 255, 0.82) !important;
  box-shadow: none !important;
  outline: none !important;
  transform: none !important;
}

#family-asset-iq-view .paloist-mobile-inheritance-panel .family-beneficiary-card:not(.is-active):hover,
#family-asset-iq-view .paloist-mobile-inheritance-panel .family-beneficiary-card:not(.is-active):focus-visible,
#family-asset-iq-view .paloist-mobile-inheritance-panel .family-beneficiary-card.is-active,
#family-asset-iq-view .paloist-mobile-inheritance-panel .family-beneficiary-card:hover,
#family-asset-iq-view .paloist-mobile-inheritance-panel .family-beneficiary-card:focus-visible {
  border-color: #e4e7ef !important;
  background: #f8f9fc !important;
  box-shadow: none !important;
  outline: none !important;
  transform: none !important;
}

#family-asset-iq-view .paloist-mobile-inheritance-panel .family-beneficiary-select:hover span,
#family-asset-iq-view .paloist-mobile-inheritance-panel .family-beneficiary-select:focus-visible span,
#family-asset-iq-view .paloist-mobile-inheritance-panel .family-beneficiary-select.is-interactive-hover span,
#family-asset-iq-view .paloist-mobile-inheritance-panel .family-beneficiary-select[data-fr33dom-hovered="true"] span {
  color: #161923 !important;
}

#family-asset-iq-view .paloist-mobile-inheritance-panel .family-beneficiary-select:hover strong,
#family-asset-iq-view .paloist-mobile-inheritance-panel .family-beneficiary-select:focus-visible strong,
#family-asset-iq-view .paloist-mobile-inheritance-panel .family-beneficiary-select.is-interactive-hover strong,
#family-asset-iq-view .paloist-mobile-inheritance-panel .family-beneficiary-select[data-fr33dom-hovered="true"] strong {
  color: #1f5d91 !important;
}

#family-asset-iq-view .paloist-mobile-inheritance-panel .family-beneficiary-select:hover small,
#family-asset-iq-view .paloist-mobile-inheritance-panel .family-beneficiary-select:focus-visible small,
#family-asset-iq-view .paloist-mobile-inheritance-panel .family-beneficiary-select.is-interactive-hover small,
#family-asset-iq-view .paloist-mobile-inheritance-panel .family-beneficiary-select[data-fr33dom-hovered="true"] small {
  color: #697182 !important;
}

#family-asset-iq-view .paloist-mobile-inheritance-panel .family-beneficiary-edit-button:hover,
#family-asset-iq-view .paloist-mobile-inheritance-panel .family-beneficiary-edit-button:focus-visible {
  border-color: #d7e5f4 !important;
  background: #fff !important;
  box-shadow: none !important;
  outline: none !important;
  transform: none !important;
}

#family-asset-iq-view .paloist-mobile-phase-page .paloist-phone-screen .paloist-mobile-type-submit:hover img,
#family-asset-iq-view .paloist-mobile-phase-page .paloist-phone-screen .paloist-mobile-type-submit:focus-visible img,
#family-asset-iq-view .paloist-mobile-phase-page .paloist-phone-screen .paloist-mobile-type-submit.is-interactive-hover img,
#family-asset-iq-view .paloist-mobile-phase-page .paloist-phone-screen .paloist-mobile-type-submit[data-fr33dom-hovered="true"] img,
#family-asset-iq-view .paloist-mobile-phase-page .paloist-phone-screen .paloist-mobile-hamburger:hover img,
#family-asset-iq-view .paloist-mobile-phase-page .paloist-phone-screen .paloist-mobile-hamburger:focus-visible img,
#family-asset-iq-view .paloist-mobile-phase-page .paloist-phone-screen .paloist-mobile-hamburger.is-interactive-hover img,
#family-asset-iq-view .paloist-mobile-phase-page .paloist-phone-screen .paloist-mobile-hamburger[data-fr33dom-hovered="true"] img {
  filter: none !important;
}

/* A phone browser is the mobile app itself, not the desktop review emulator. */
html.paloist-native-mobile,
html.paloist-native-mobile body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: #f8f9fd;
}

html.paloist-native-mobile #app-view {
  display: block;
  width: 100%;
  min-height: 100dvh;
  background: #f8f9fd;
}

html.paloist-native-mobile #app-view > .sidebar,
html.paloist-native-mobile #app-view .topbar,
html.paloist-native-mobile #family-asset-iq-view .paloist-mobile-phase-intro,
html.paloist-native-mobile #family-asset-iq-view .paloist-mobile-step-panel,
html.paloist-native-mobile #family-asset-iq-view .paloist-mobile-build-notes,
html.paloist-native-mobile #family-asset-iq-view .paloist-mobile-device-status-bar,
html.paloist-native-mobile #family-asset-iq-view .paloist-phase-phone-shell > .paloist-phone-notch {
  display: none !important;
}

html.paloist-native-mobile #app-view > .workspace,
html.paloist-native-mobile #family-asset-iq-view,
html.paloist-native-mobile #family-asset-iq-content,
html.paloist-native-mobile #family-asset-iq-view .paloist-mobile-demo-page,
html.paloist-native-mobile #family-asset-iq-view .paloist-mobile-phase-stage {
  width: 100%;
  min-width: 0;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
}

html.paloist-native-mobile #family-asset-iq-content,
html.paloist-native-mobile #family-asset-iq-view .paloist-mobile-phase-stage {
  display: block;
}

html.paloist-native-mobile #family-asset-iq-view .paloist-phase-phone-shell,
html.paloist-native-mobile #family-asset-iq-view .paloist-phase-phone-screen {
  width: 100%;
  min-height: 100dvh;
  max-height: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: #f8f9fd;
  box-shadow: none;
}

html.paloist-native-mobile #family-asset-iq-view .paloist-mobile-safe-area,
html.paloist-native-mobile #family-asset-iq-view .paloist-mobile-app-main,
html.paloist-native-mobile #family-asset-iq-view .paloist-phase-phone-screen .paloist-mobile-screen,
html.paloist-native-mobile #family-asset-iq-view .paloist-mobile-landing-screen,
html.paloist-native-mobile #family-asset-iq-view .paloist-mobile-camera-screen {
  min-height: 100dvh;
  max-height: 100dvh;
  height: 100dvh;
}

html.paloist-native-mobile #family-asset-iq-view .paloist-mobile-safe-area {
  --paloist-mobile-status-offset: 0px;
}

html.paloist-native-mobile #family-asset-iq-view .paloist-phase-phone-screen .paloist-mobile-screen {
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
}

html.paloist-native-mobile #family-asset-iq-view .paloist-phase-phone-screen .paloist-mobile-family-summary-screen {
  padding-bottom: 0;
}

html.paloist-native-mobile #family-asset-iq-view .paloist-phase-phone-screen .paloist-mobile-family-preparation-screen {
  padding-bottom: 0;
}

@media (max-width: 840px) {
  #family-asset-iq-view .paloist-mobile-phase-stage {
    grid-template-columns: 1fr;
  }

  #family-asset-iq-view .paloist-phase-phone-shell {
    order: -1;
    justify-self: center;
  }
}

@media (max-width: 1180px) {
  #family-asset-iq-view .paloist-phase-phone-shell {
    min-height: 731px;
  }

  #family-asset-iq-view .paloist-phase-phone-screen {
    min-height: 721px;
    max-height: 721px;
  }
}

@media (max-width: 420px) {
  #family-asset-iq-view .paloist-phase-phone-shell {
    width: min(100%, 320px);
    min-height: 675px;
    border-width: 5px;
    border-radius: 30px;
    padding: 0;
  }

  #family-asset-iq-view .paloist-phase-phone-screen,
  #family-asset-iq-view .paloist-mobile-safe-area,
  #family-asset-iq-view .paloist-mobile-app-main,
  #family-asset-iq-view .paloist-phase-phone-screen .paloist-mobile-screen,
  #family-asset-iq-view .paloist-mobile-landing-screen,
  #family-asset-iq-view .paloist-mobile-camera-screen {
    min-height: 665px;
    max-height: 665px;
    height: 665px;
  }

  #family-asset-iq-view .paloist-mobile-collage {
    gap: 0;
  }
}

/* FamilyAsset IQ alert and Avi action overrides */
.avi-next-step {
  display: grid;
  gap: 4px;
  border: 1px solid #bdd8c5;
  border-radius: 14px;
  padding: 12px 14px;
  color: #174e31;
  background: #edf8f0;
}

.avi-next-step span {
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.avi-next-step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.app-shell.family-mode .topbar-status-stack {
  display: grid;
}

.app-shell.family-mode .alerts-top-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.avi-proposed-action {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  border: 1px solid #bdd8c5;
  border-radius: 12px;
  padding: 11px;
  color: var(--ink);
  background: #f3faf5;
}

.avi-proposed-action small {
  margin: 0;
  color: var(--muted);
}

.avi-proposed-action button {
  justify-self: start;
}

/* Scrolling application header and full-height global drawers. */
:root {
  --app-topbar-height: 0px;
}

.workspace {
  padding-top: 0;
}

.topbar {
  position: relative;
  top: auto;
  z-index: 1;
  margin: 0 -34px 22px;
  padding: 28px 34px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 20px rgba(20, 42, 29, 0.06);
  backdrop-filter: none;
}

.app-shell.family-mode .topbar {
  border-bottom-color: var(--paloist-line, var(--line));
  background: rgba(244, 245, 248, 0.97);
}

.account-drawer,
.council-drawer,
.avi-drawer,
.usage-drawer,
.stock-detail-drawer,
.research-drawer,
.alerts-drawer,
.trade-ticket-drawer,
.paper-trade-drawer {
  top: 0;
  bottom: 0;
  height: 100dvh;
}

.avi-drawer {
  z-index: 120;
}

.avi-drawer.is-open {
  pointer-events: none;
}

.avi-drawer .drawer-overlay {
  display: none;
}

.avi-drawer .drawer-panel.avi-panel {
  top: auto;
  right: auto;
  bottom: 16px;
  left: 16px;
  width: min(460px, calc(100vw - 32px));
  height: min(660px, calc(100dvh - 32px));
  max-height: calc(100dvh - 32px);
  border: 1px solid #9cc8ac;
  border-radius: 18px;
  padding: 16px;
  pointer-events: auto;
  box-shadow: 0 24px 64px rgba(20, 55, 33, 0.24);
  transform: none;
  transition: box-shadow 160ms ease;
}

.avi-drawer .avi-panel.is-dragging {
  box-shadow: 0 30px 74px rgba(20, 55, 33, 0.32);
  user-select: none;
}

.avi-drawer .avi-drag-handle {
  cursor: move;
  touch-action: none;
}

.avi-drag-cue {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
  color: #6b7b70;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.avi-drag-cue::before {
  content: "⠿";
  font-size: 13px;
  letter-spacing: 0;
}

.family-management-drawer-backdrop {
  inset: 0;
}

.family-management-drawer {
  top: 0;
  bottom: 0;
  height: 100dvh;
  max-height: 100dvh;
}

.family-asset-management-drawer-panel {
  grid-template-rows: max-content;
}

.app-shell.family-mode
  .family-asset-management-drawer-panel
  > .family-asset-intake-panel {
  min-height: calc(100dvh - 40px);
}

.app-shell.family-mode .family-protection-drawer {
  grid-template-rows: max-content;
}

.app-shell.family-mode
  .family-protection-drawer
  > .family-protection-drawer-panel-content {
  display: grid;
  min-height: calc(100dvh - 40px);
  align-content: start;
  gap: 14px;
  border: 1px solid var(--paloist-line);
  border-radius: 18px;
  padding: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.app-shell.family-mode
  .family-protection-drawer
  .family-protection-drawer-header {
  position: static;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
}

.app-shell.family-mode
  .family-protection-drawer
  .family-protection-drawer-header
  > div {
  min-width: 0;
}

.app-shell.family-mode
  .family-protection-drawer
  .family-protection-drawer-header
  h2 {
  margin: 3px 0 0;
  font-size: 22px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.app-shell.family-mode
  .family-protection-drawer
  .family-protection-drawer-header
  .panel-subtitle {
  margin: 5px 0 0;
  font-size: 12.5px;
}

.app-shell.family-mode .family-protection-drawer .family-protection-drawer-form {
  gap: 14px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.app-shell.family-mode .family-protection-drawer .family-protection-drawer-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}

.app-shell.family-mode .family-protection-drawer .family-protection-drawer-layer {
  gap: 10px;
  border-radius: 14px;
  padding: 14px;
}

.app-shell.family-mode
  .family-protection-drawer
  .family-protection-drawer-layer
  textarea {
  min-height: 84px;
}

.app-shell.family-mode .family-protection-drawer .family-asset-form-actions {
  gap: 10px;
  padding-bottom: 50px;
}

.app-shell.family-mode
  .family-protection-drawer
  .family-asset-form-actions
  button {
  min-width: 132px;
  min-height: 42px !important;
  border-radius: 999px !important;
  padding: 10px 20px !important;
}

.avi-drawer.is-open.is-helper-mode .drawer-panel.avi-panel {
  max-height: min(500px, calc(100dvh - 20px));
}

@media (max-width: 1180px) {
  .topbar {
    margin-right: -18px;
    margin-left: -18px;
    padding: 20px 18px 16px;
  }
}

@media (max-width: 560px) {
  .avi-drawer.is-open.is-helper-mode .drawer-panel.avi-panel {
    max-height: calc(100dvh - 12px);
  }
}

/* End-of-file Avi page-aware layout overrides */
.avi-drawer .drawer-panel.avi-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.avi-drawer .avi-panel > .drawer-header,
.avi-drawer .avi-panel > .avi-next-step,
.avi-drawer .avi-panel > .avi-form,
.avi-drawer .avi-panel > .avi-privacy-note {
  flex: 0 0 auto;
}

.avi-drawer .avi-panel > .avi-action-review {
  flex: 0 1 auto;
  max-height: 44vh;
  overflow: auto;
}

.avi-drawer .avi-panel > .avi-messages {
  flex: 1 1 0;
  min-height: 120px;
  max-height: none;
  overflow: auto;
}

.avi-drawer .avi-next-step {
  align-content: start;
  min-height: 0;
  padding: 9px 11px;
}

.avi-drawer .avi-next-step p {
  font-size: 12px;
}

.avi-title-row {
  flex-wrap: wrap;
}

.avi-mode-capsule,
#avi-field-help-start {
  min-height: 30px;
  border: 1px solid #9cc8ac;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--forest);
  background: #fff;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.avi-mode-capsule.is-active {
  border-color: var(--forest);
  color: #fff;
  background: var(--forest);
}

.avi-mode-capsule:disabled {
  color: var(--forest);
  background: var(--forest-soft);
  opacity: 0.78;
}

.avi-page-context {
  display: inline-flex;
  width: fit-content;
  margin: 7px 0 0;
  border-radius: 999px;
  padding: 4px 8px;
  color: #536159;
  background: rgba(255, 255, 255, 0.76);
  font-size: 10px;
  font-weight: 800;
}

.avi-drawer.is-helper-mode .drawer-panel.avi-panel {
  right: auto;
  width: min(350px, calc(100vw - 20px));
  height: auto;
  max-height: min(500px, calc(100vh - 20px));
  gap: 8px;
  overflow: auto;
  border: 1px solid #9cc8ac;
  border-radius: 15px;
  padding: 11px;
}

.avi-drawer.is-helper-mode .avi-drag-handle {
  cursor: grab;
}

.avi-drawer.is-helper-mode .avi-panel.is-dragging .avi-drag-handle {
  cursor: grabbing;
}

.avi-drawer.is-helper-mode .drawer-header {
  gap: 7px;
}

.avi-drawer.is-helper-mode .drawer-header .eyebrow {
  font-size: 9px;
}

.avi-drawer.is-helper-mode .drawer-header h2 {
  font-size: 19px;
}

.avi-drawer.is-helper-mode .avi-page-context {
  margin-top: 4px;
  padding: 3px 7px;
  font-size: 9px;
}

.avi-drawer.is-helper-mode .avi-field-help-controls {
  gap: 5px;
  margin-top: 5px;
}

.avi-drawer.is-helper-mode .avi-field-help-controls span,
.avi-drawer.is-helper-mode .avi-field-help-controls button,
.avi-drawer.is-helper-mode .avi-voice-toggle,
.avi-drawer.is-helper-mode .icon-button,
.avi-drawer.is-helper-mode .avi-composer button,
.avi-drawer.is-helper-mode .avi-action-review-actions button {
  min-width: 0;
  min-height: 25px;
  padding: 3px 7px;
  font-size: 10px;
}

.avi-drawer.is-helper-mode .icon-button {
  width: 27px;
  height: 27px;
  font-size: 17px;
}

.avi-drawer.is-helper-mode .avi-panel > .avi-messages {
  flex: 0 1 auto;
  min-height: 70px;
  max-height: 140px;
}

.avi-drawer.is-helper-mode .avi-panel > .avi-action-review {
  max-height: 260px;
}

.avi-drawer.is-helper-mode .avi-message {
  padding: 8px 10px;
  font-size: 12px;
}

.avi-drawer.is-helper-mode .avi-form,
.avi-drawer.is-helper-mode .avi-form label {
  gap: 5px;
}

.avi-drawer.is-helper-mode .avi-composer textarea {
  min-height: 48px;
  max-height: 90px;
  padding: 8px 9px;
  font-size: 12px;
}

@media (max-width: 560px) {
  .avi-drawer.is-helper-mode .drawer-panel.avi-panel {
    width: calc(100vw - 12px);
    max-height: calc(100vh - 12px);
    padding: 10px;
  }
}
.app-shell.family-mode .family-document-intelligence-actions {
  margin: 1rem 0;
}

.app-shell.family-mode .family-document-finding-list,
.app-shell.family-mode .family-document-link-list {
  display: grid;
  gap: 0.75rem;
}

.app-shell.family-mode .family-document-finding {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border-color, #dfe3eb);
  border-left: 4px solid #6b7280;
  border-radius: 14px;
  background: #fff;
}

.app-shell.family-mode .family-document-finding.is-risk {
  border-left-color: #b42318;
}

.app-shell.family-mode .family-document-finding.is-important {
  border-left-color: #b54708;
}

.app-shell.family-mode .family-document-finding-priority {
  display: block;
  margin-bottom: 0.25rem;
  color: #5b6472;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-shell.family-mode .family-document-finding p {
  margin: 0.35rem 0;
}

.app-shell.family-mode .family-document-suggested-action {
  margin-top: 0.65rem;
  color: #344054;
}

.app-shell.family-mode .family-document-finding-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.app-shell.family-mode .family-document-intelligence-detail {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 14px;
  background: #f7f8fb;
}

.app-shell.family-mode .family-document-intelligence-detail dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.app-shell.family-mode .family-document-intelligence-detail dt {
  color: #667085;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.app-shell.family-mode .family-document-intelligence-detail dd {
  margin: 0.2rem 0 0;
}

.app-shell.family-mode .family-document-link-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid #dfe3eb;
  border-radius: 12px;
  background: #fff;
}

.app-shell.family-mode .family-document-link-list span {
  display: block;
  color: #667085;
  font-size: 0.8rem;
}

.app-shell.family-mode .family-document-evidence-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.85rem;
  padding: 0.8rem;
  border: 1px solid #dfe3eb;
  border-radius: 12px;
  background: #fff;
}

.app-shell.family-mode .family-document-evidence-list h4,
.app-shell.family-mode .family-document-evidence-list p {
  margin: 0;
}

.app-shell.family-mode .family-document-classification-control {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
}

.app-shell.family-mode .family-document-classification-control select {
  min-width: 145px;
}

@media (max-width: 760px) {
  .app-shell.family-mode .family-document-finding,
  .app-shell.family-mode .family-document-link-list article {
    align-items: stretch;
    flex-direction: column;
  }

  .app-shell.family-mode .family-document-finding-actions {
    justify-content: flex-start;
  }
}

/* Final Council voice and drawer overrides */
.council-drawer.asset-council-theme .drawer-panel {
  display: grid;
  width: min(620px, 100%);
  height: 100dvh;
  grid-template-rows: auto auto auto minmax(150px, 1fr);
  align-content: start;
  gap: 14px;
  overflow-y: auto;
  padding: 20px;
  background: #f4f5f8;
}

.council-drawer.asset-council-theme .drawer-header,
.council-drawer.asset-council-theme .council-form,
.council-drawer.asset-council-theme .council-result {
  border: 1px solid var(--paloist-line);
  border-radius: 18px;
  padding: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.council-drawer.asset-council-theme .council-voice-controls,
.app-shell.family-mode #family-asset-iq-view .family-asset-council-voice-controls {
  display: flex;
  min-height: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 0;
  padding: 0 2px;
  background: transparent;
  box-shadow: none;
}

.council-drawer.asset-council-theme .council-form .voice-input-button,
.app-shell.family-mode #family-asset-iq-view .voice-input-button {
  display: inline-flex;
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0;
}

.council-drawer.asset-council-theme .voice-input-button svg,
.app-shell.family-mode #family-asset-iq-view .voice-input-button svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.voice-textarea-wrap.is-listening textarea {
  padding-top: 48px !important;
}

.voice-input-listening-indicator {
  position: absolute;
  z-index: 3;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #128044;
  font-size: 12px;
  font-weight: 850;
  pointer-events: none;
}

.voice-input-listening-indicator[hidden] {
  display: none;
}

.voice-input-listening-indicator > span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #18a957;
  box-shadow: 0 0 0 3px rgba(24, 169, 87, 0.16);
  animation: paloistListeningPulse 1.4s ease-in-out infinite;
}

.voice-input-listening-indicator strong {
  color: inherit;
  font: inherit;
}

@media (max-width: 620px) {
  .council-drawer.asset-council-theme .drawer-panel {
    width: 100%;
    padding: 12px;
  }
}

/* Quinn uses black interaction rollovers instead of inherited green states. */
.avi-drawer button:not(:disabled):hover,
.avi-drawer button:not(:disabled):focus-visible {
  border-color: #12131a !important;
  color: #fff !important;
  background: #12131a !important;
  box-shadow: 0 0 0 3px rgba(18, 19, 26, 0.12) !important;
}

.avi-drawer button:not(:disabled):hover *,
.avi-drawer button:not(:disabled):focus-visible * {
  color: inherit !important;
}

/* Mobile menu open state: the header remains above the sheet and keeps its purple cue. */
#family-asset-iq-view .paloist-mobile-phase-page .paloist-phone-screen .paloist-mobile-hamburger[aria-expanded="true"] {
  border-color: #5144df !important;
  border-radius: var(--mobile-radius-control) !important;
  background: #fff !important;
}

#family-asset-iq-view .paloist-mobile-phase-page .paloist-phone-screen .paloist-mobile-hamburger[aria-expanded="true"] img {
  filter: none !important;
}

/* Asset Management keeps its searchable list above the shared fixed action banner. */
#family-asset-iq-view .paloist-phase-phone-screen .paloist-mobile-asset-management-screen {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0;
  padding: calc(126px + env(safe-area-inset-top)) 18px 0;
  overflow: hidden;
}

/* Mobile Legacy Planning: keep beneficiary cards readable and the creation action fixed. */
#family-asset-iq-view .paloist-phase-phone-screen .paloist-mobile-inheritance-screen {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0;
  padding: calc(126px + env(safe-area-inset-top)) 18px 0;
  overflow: hidden;
}

#family-asset-iq-view .paloist-mobile-inheritance-content {
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
}

#family-asset-iq-view .paloist-mobile-inheritance-panel {
  gap: 14px;
  margin: 0;
  padding: 18px;
}

.app-shell.family-mode #family-asset-iq-view .paloist-phase-phone-screen .paloist-mobile-inheritance-panel .family-beneficiary-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

#family-asset-iq-view .paloist-mobile-inheritance-panel .family-beneficiary-card {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 110px;
  border-color: #e1e5ed;
  border-radius: 14px;
  padding: 12px;
  background: #f7f8fb;
  box-shadow: none;
}

#family-asset-iq-view .paloist-mobile-inheritance-panel .family-beneficiary-select {
  display: grid;
  min-width: 0;
  gap: 5px;
}

#family-asset-iq-view .paloist-mobile-inheritance-panel .family-beneficiary-select span,
#family-asset-iq-view .paloist-mobile-inheritance-panel .family-beneficiary-select strong,
#family-asset-iq-view .paloist-mobile-inheritance-panel .family-beneficiary-select small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#family-asset-iq-view .paloist-mobile-inheritance-panel .family-beneficiary-select span {
  padding-right: 38px;
  color: #1d2230;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.15;
}

#family-asset-iq-view .paloist-mobile-inheritance-panel .family-beneficiary-select strong {
  color: #205c91;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

#family-asset-iq-view .paloist-mobile-inheritance-panel .family-beneficiary-select small {
  color: #687183;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
}

#family-asset-iq-view .paloist-mobile-inheritance-panel .family-beneficiary-edit-button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  min-width: 32px;
  height: 32px;
  border-color: #d7e5f4;
  color: #5144df;
  background: #fff;
}

#family-asset-iq-view #paloist-mobile-inheritor-profile-section:not([open]) {
  display: none;
}

#family-asset-iq-view .paloist-mobile-inheritance-footer {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: grid;
  margin: 0 -18px;
  border-top: 1px solid var(--mobile-banner-line);
  padding: 8px 18px calc(9px + env(safe-area-inset-bottom));
  background: #fff;
}

#family-asset-iq-view .paloist-mobile-inheritance-footer .paloist-mobile-button {
  width: 100%;
}

/* Quinn's live speaking signal belongs with the active response, not the drawer header. */
.avi-drawer:not(.is-helper-mode) .avi-message > .avi-message-speaker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.avi-drawer:not(.is-helper-mode) .avi-message-speaking-indicator {
  display: inline-flex;
  align-items: center;
  color: var(--quinn-champ-deep);
}

/* Mobile Quinn is conversation-only. Photo capture stays in the Add Asset flow. */
.avi-drawer.is-mobile-context #avi-camera-button,
.avi-drawer.is-mobile-context #avi-add-button {
  display: none;
}

.avi-drawer:not(.is-helper-mode) .avi-message-speaking-indicator .quinn-wave {
  display: inline-flex;
}

/* Mobile Quinn is a screen inside the phone, never the desktop drawer. */
#family-asset-iq-view .paloist-phase-phone-screen .paloist-mobile-quinn-screen {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0;
  height: 721px;
  min-height: 721px;
  max-height: 721px;
  overflow: hidden;
  padding: calc(112px + env(safe-area-inset-top)) 0 0;
  background: #fbfaf7;
  box-sizing: border-box;
}

#family-asset-iq-view .paloist-mobile-quinn-context {
  justify-self: start;
  margin: 0 18px 12px;
  border: 1px solid #e4e7ee;
  border-radius: 999px;
  padding: 6px 10px;
  color: #687183;
  background: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

#family-asset-iq-view .paloist-mobile-quinn-messages {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  padding: 0 18px 12px;
  scrollbar-width: thin;
}

#family-asset-iq-view .paloist-mobile-quinn-messages .paloist-mobile-chat-bubble.is-user {
  color: #75521b;
  background: #f8f0e3;
}

#family-asset-iq-view .paloist-mobile-quinn-composer {
  position: sticky;
  bottom: 0;
  z-index: 4;
  display: grid;
  gap: 7px;
  border-top: 1px solid #e4e7ee;
  padding: 9px 14px calc(10px + env(safe-area-inset-bottom));
  background: #fff;
}

#family-asset-iq-view .paloist-mobile-quinn-composer form {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  border: 1px solid #e4e7ee;
  border-radius: 14px;
  padding: 5px;
  background: #fff;
}

#family-asset-iq-view .paloist-mobile-quinn-composer input {
  min-width: 0;
  flex: 1;
  border: 0;
  padding: 0 7px;
  outline: none;
  color: #30333d;
  background: transparent;
  font: inherit;
  font-size: 12px;
}

#family-asset-iq-view .paloist-mobile-quinn-composer button {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  border: 1px solid #e4e7ee;
  border-radius: 10px;
  padding: 0;
  color: #687183;
  background: #fff;
}

#family-asset-iq-view .paloist-mobile-quinn-composer button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

#family-asset-iq-view .paloist-mobile-quinn-composer button.is-send {
  border-color: #b8873e;
  color: #fff;
  background: #b8873e;
}

#family-asset-iq-view .paloist-mobile-quinn-composer p {
  margin: 0 4px;
  color: #98a1b1;
  font-size: 9px;
  line-height: 1.3;
}

/* Alerts stay in the mobile app instead of opening the desktop alert drawer. */
#family-asset-iq-view .paloist-phase-phone-screen .paloist-mobile-alerts-screen {
  gap: 14px;
  padding-top: calc(112px + env(safe-area-inset-top));
  background: #f8f9fd;
}

#family-asset-iq-view .paloist-mobile-alerts-screen .paloist-mobile-screen-copy p {
  margin: 0 0 5px;
  color: #5144df;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

#family-asset-iq-view .paloist-mobile-alerts-screen .paloist-mobile-screen-copy h3 {
  margin: 0;
  font-size: 25px;
}

#family-asset-iq-view .paloist-mobile-alerts-screen .paloist-mobile-screen-copy > span {
  display: inline-block;
  margin-top: 7px;
  color: #7a8393;
  font-size: 12px;
}

#family-asset-iq-view .paloist-mobile-alert-list {
  display: grid;
  gap: 9px;
}

#family-asset-iq-view .paloist-mobile-alert-card {
  display: grid;
  gap: 5px;
  width: 100%;
  border: 1px solid #e4e7ee;
  border-left: 4px solid #5144df;
  border-radius: 14px;
  padding: 13px 14px;
  color: #1d2230;
  background: #fff;
  box-shadow: 0 8px 20px rgba(29, 35, 55, 0.05);
  text-align: left;
}

#family-asset-iq-view .paloist-mobile-alert-card.important,
#family-asset-iq-view .paloist-mobile-alert-card.high {
  border-left-color: #f2474d;
}

#family-asset-iq-view .paloist-mobile-alert-card > span {
  color: #8b94a3;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

#family-asset-iq-view .paloist-mobile-alert-card strong {
  font-size: 14px;
  font-weight: 850;
  line-height: 1.2;
}

#family-asset-iq-view .paloist-mobile-alert-card p {
  margin: 0;
  color: #687183;
  font-size: 12px;
  line-height: 1.35;
}

#family-asset-iq-view .paloist-mobile-alert-card em {
  margin-top: 3px;
  color: #5144df;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

#family-asset-iq-view .paloist-mobile-alert-card em b {
  margin-left: 3px;
}

#family-asset-iq-view .paloist-mobile-alert-empty {
  border: 1px solid #e4e7ee;
  border-radius: 14px;
  padding: 18px;
  color: #687183;
  background: #fff;
  text-align: center;
}

#family-asset-iq-view .paloist-mobile-alert-empty strong,
#family-asset-iq-view .paloist-mobile-alert-empty p {
  margin: 0;
}

#family-asset-iq-view .paloist-mobile-alert-empty strong {
  display: block;
  color: #1d2230;
  font-size: 14px;
}

#family-asset-iq-view .paloist-mobile-alert-empty p {
  margin-top: 4px;
  font-size: 12px;
}

/* Keep the mobile rollover neutral; active selections retain their own colors. */
#family-asset-iq-view .paloist-phase-phone-screen button:not(:disabled):not(.paloist-mobile-brand-button):hover,
#family-asset-iq-view .paloist-phase-phone-screen button:not(:disabled):not(.paloist-mobile-brand-button):focus-visible,
#family-asset-iq-view .paloist-phase-phone-screen button:not(:disabled):not(.paloist-mobile-brand-button).is-interactive-hover,
#family-asset-iq-view .paloist-phase-phone-screen button:not(:disabled):not(.paloist-mobile-brand-button)[data-fr33dom-hovered="true"] {
  border-color: #dfe2e7 !important;
  color: inherit !important;
  background: #f1f2f4 !important;
  box-shadow: none !important;
  outline: none !important;
}

#family-asset-iq-view .paloist-phase-phone-screen button:not(:disabled):not(.paloist-mobile-brand-button):hover *,
#family-asset-iq-view .paloist-phase-phone-screen button:not(:disabled):not(.paloist-mobile-brand-button):focus-visible *,
#family-asset-iq-view .paloist-phase-phone-screen button:not(:disabled):not(.paloist-mobile-brand-button).is-interactive-hover *,
#family-asset-iq-view .paloist-phase-phone-screen button:not(:disabled):not(.paloist-mobile-brand-button)[data-fr33dom-hovered="true"] * {
  color: inherit !important;
}

/* Product-led public landing page. Scoped so authenticated and setup views keep their existing UI. */
.login-product-view {
  min-height: 100vh;
  padding: 0;
  color: #151620;
  background: #fff;
}

.login-product-page {
  --landing-ink: #151620;
  --landing-muted: #626879;
  --landing-primary: #4f46e5;
  --landing-purple: #8b5cf6;
  --landing-green: #12b981;
  --landing-line: #e6e8ef;
  min-width: 0;
  overflow-x: clip;
  overflow-y: visible;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.login-product-page *,
.login-product-page *::before,
.login-product-page *::after {
  box-sizing: border-box;
}

.login-product-container {
  width: min(1160px, calc(100% - 56px));
  margin: 0 auto;
}

.login-product-hero {
  border-bottom: 1px solid var(--landing-line);
  padding-bottom: 44px;
  background: linear-gradient(180deg, #eef0fe 0%, #fff 100%);
}

.login-product-sticky-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(214, 217, 232, 0.78);
  background: rgba(238, 240, 254, 0.9);
  box-shadow: 0 8px 24px rgba(20, 23, 40, 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.login-product-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 0;
}

.login-product-wordmark {
  color: var(--landing-ink);
  font-size: 27px;
  font-weight: 900;
  letter-spacing: -1.35px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.login-product-wordmark span {
  color: var(--landing-primary);
}

.login-product-nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: 40px;
}

.login-product-nav-links a {
  color: #686d7c;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.login-product-nav-links a:hover,
.login-product-nav-links a:focus-visible {
  color: var(--landing-primary);
}

.login-product-nav-links a.is-interactive-control:hover,
.login-product-nav-links a.is-interactive-control.is-interactive-hover,
.login-product-nav-links a[data-fr33dom-hovered="true"] {
  border-color: transparent !important;
  color: var(--landing-primary) !important;
  box-shadow: none !important;
  transform: none;
}

.login-product-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  border: 0 !important;
  border-radius: 12px;
  padding: 14px 24px;
  color: #fff !important;
  background: linear-gradient(135deg, #5b50ed, #493bd8) !important;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.3) !important;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.login-product-primary:hover,
.login-product-primary:focus-visible {
  border: 0 !important;
  color: #fff !important;
  background: linear-gradient(135deg, #655af1, #4031cf) !important;
  box-shadow: 0 10px 24px rgba(75, 61, 216, 0.32) !important;
  transform: translateY(-1px);
}

.login-product-demo-link {
  margin-left: auto;
}

.login-product-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 352px;
  align-items: end;
  gap: 56px;
  padding-top: 0;
}

.login-product-hero-copy {
  min-width: 0;
  padding-top: 0;
}

.login-product-hero-copy h1 {
  max-width: 780px;
  margin: 14px 0 16px;
  color: var(--landing-ink);
  font-size: 40px;
  font-weight: 900;
  font-kerning: normal;
  font-feature-settings: "kern" 1;
  letter-spacing: -1.4px;
  line-height: 1.08;
}

.login-product-hero-copy > p {
  max-width: 560px;
  margin: 0;
  color: #5e6473;
  font-size: 17.5px;
  line-height: 1.58;
}

.login-product-hero-copy > p + p {
  margin-top: 14px;
}

.login-product-dashboard {
  width: 100%;
  max-width: 720px;
  margin-top: 24px;
  border: 1px solid var(--landing-line);
  border-radius: 20px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(20, 23, 40, 0.14);
}

.login-product-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.login-product-metric-grid article {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  justify-content: center;
  border: 1px solid #e7e9f0;
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}

.login-product-metric-grid article.is-featured {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(145deg, #7768f2, #5144e0);
}

.login-product-metric-grid span,
.login-product-metric-grid small {
  color: #858a98;
  line-height: 1.25;
}

.login-product-metric-grid span {
  font-size: 11px;
}

.login-product-metric-grid small {
  font-size: 10.5px;
}

.login-product-metric-grid strong {
  margin: 6px 0 0;
  color: #252735;
  font-size: 20px;
}

.login-product-metric-grid .is-alert {
  color: #ff4c63;
}

.login-product-metric-grid .is-featured span,
.login-product-metric-grid .is-featured strong,
.login-product-metric-grid .is-featured small {
  color: #fff;
}

.login-product-dashboard-lower {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding-top: 0;
}

.login-product-donut {
  display: grid;
  position: relative;
  width: 120px;
  height: 120px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#5044e2 0 76%, #22c992 76% 94%, #4ac2ff 94%);
}

.login-product-donut::before {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.login-product-donut span {
  position: absolute;
  color: #292a36;
  font-size: 12.5px;
  font-weight: 800;
}

.login-product-action-list {
  display: grid;
  gap: 8px;
}

.login-product-action-list div {
  display: grid;
  grid-template-columns: 17px 1fr auto;
  align-items: center;
  min-height: 0;
  border: 1px solid #e8eaf0;
  border-radius: 10px;
  padding: 8px 10px;
  color: #747986;
  background: #fafbfc;
  font-size: 12px;
}

.login-product-action-list b {
  color: #4d5160;
  font-size: 12px;
}

.login-product-action-list em {
  border-radius: 999px;
  padding: 3px 8px;
  color: #fff;
  font-size: 9.5px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.login-product-action-list .is-now { background: #ff4d62; }
.login-product-action-list .is-soon { background: #ffad16; }
.login-product-action-list .is-new { background: #10b981; }

.login-product-view .login-product-signin {
  width: 352px;
  max-width: 100%;
  margin: 0;
  border: 1px solid rgba(229, 231, 238, 0.9);
  align-self: end;
  border-radius: 20px;
  padding: 28px 26px 24px;
  color: var(--landing-ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 30px 70px rgba(20, 23, 40, 0.14);
}

.login-product-auth-view {
  width: 100%;
}

.login-product-eyebrow {
  margin: 0 0 7px;
  color: #6a5ce6;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.login-product-view .login-product-signin h2 {
  margin: 10px 0 8px;
  color: var(--landing-ink);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -1px;
}

.login-product-view .login-product-signin .login-copy {
  margin: 0 0 22px;
  color: #737887;
  font-size: 14.5px;
  line-height: 1.5;
}

.login-product-signin-form {
  display: grid;
  gap: 16px;
}

.login-product-signin-form label {
  display: grid;
  gap: 7px;
  color: #31333d;
  font-size: 13px;
  font-weight: 800;
}

.login-product-view .login-product-signin-form input {
  width: 100%;
  height: auto;
  border: 1px solid #dfe2e9;
  border-radius: 12px;
  padding: 13px 14px;
  color: #20222c;
  background: #fff;
  box-shadow: none;
  font: inherit;
  font-size: 15px;
}

.login-product-view .login-product-signin-form input:focus {
  border-color: #6c61e9;
  outline: 3px solid rgba(91, 80, 237, 0.13);
}

.login-product-view .password-input-wrap {
  display: block;
  position: relative;
}

.login-product-view .password-visibility-toggle,
.login-product-view .password-visibility-toggle:hover,
.login-product-view .password-visibility-toggle:focus-visible {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  border: 0 !important;
  border-radius: 6px;
  padding: 6px;
  color: #777d89 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: translateY(-50%);
}

.login-product-view .password-visibility-toggle svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.login-product-view .login-product-signin-form > .login-product-primary {
  width: 100%;
  min-height: 0;
  margin-top: 6px;
}

.login-product-view #login-error {
  min-height: 0;
  margin: 10px 0 0;
  color: #c9364f;
  font-size: 12.5px;
}

.login-product-view #login-error:empty {
  display: none;
}

.login-product-view .login-security-note {
  margin: 18px 0 0;
  color: #7b808d;
  font-size: 12.5px;
  text-align: center;
}

.login-product-view .login-security-note span {
  margin-right: 5px;
  color: var(--landing-green);
  font-size: 8px;
}

.login-product-account-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 12px;
  color: #a2a6b2;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.login-product-account-divider::before,
.login-product-account-divider::after {
  height: 1px;
  flex: 1;
  background: #e2e4eb;
  content: "";
}

.login-product-account-divider span {
  white-space: nowrap;
}

.login-product-view .login-product-create-account-button,
.login-product-view .login-product-create-account-button:hover,
.login-product-view .login-product-create-account-button:focus-visible {
  width: 100%;
  min-height: 50px;
  border: 1.5px solid #5145ec !important;
  border-radius: 12px;
  padding: 0 16px;
  color: #5145ec !important;
  background: #fff !important;
  box-shadow: none !important;
  font-size: 15px;
  font-weight: 800;
}

.login-product-view .login-product-create-account-button:hover,
.login-product-view .login-product-create-account-button:focus-visible {
  color: #4035d4 !important;
  background: #f8f7ff !important;
}

.login-product-create-account-form {
  gap: 14px;
}

.login-product-create-account-form input::placeholder {
  color: #a5aab8;
  opacity: 1;
}

.login-product-create-account-status {
  margin: 10px 0 0;
  color: #16845d;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.login-product-create-account-status:empty {
  display: none;
}

.login-product-setup-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 15px;
  border-radius: 13px;
  padding: 13px 14px;
  color: #454957;
  background: #f0f1ff;
}

.login-product-setup-note svg {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  flex: 0 0 auto;
  fill: none;
  stroke: #5549ed;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.login-product-setup-note p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
}

.login-product-account-switch {
  margin: 17px 0 0;
  color: #777c8b;
  font-size: 13px;
  text-align: center;
}

.login-product-view .login-product-account-switch button,
.login-product-view .login-product-account-switch button:hover,
.login-product-view .login-product-account-switch button:focus-visible {
  min-height: 0;
  border: 0 !important;
  padding: 0;
  color: #5145ec !important;
  background: transparent !important;
  box-shadow: none !important;
  font: inherit;
  font-weight: 800;
}

.login-product-view .login-product-account-switch button:hover,
.login-product-view .login-product-account-switch button:focus-visible {
  text-decoration: underline;
}

.login-product-how {
  padding: 40px 0 46px;
  color: #fff;
  background: #0f101b;
}

.login-product-how h2 {
  margin: 0 0 22px;
  font-size: 26px;
  font-weight: 800;
  text-align: center;
}

.login-product-how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.login-product-how-grid article {
  min-height: 0;
  border: 1px solid #343644;
  border-radius: 16px;
  padding: 17px 20px;
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
}

.login-product-how-grid b {
  color: #9896ee;
  font-size: 13px;
}

.login-product-how-grid h3 {
  margin: 8px 0 6px;
  font-size: 18px;
}

.login-product-how-grid p {
  margin: 0;
  color: #aaaeba;
  font-size: 13.5px;
  line-height: 1.5;
}

.login-product-feature {
  padding: 80px 0;
  background: #fff;
}

.login-product-feature.is-tinted {
  background: #f7f8fa;
}

.login-product-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
}

.login-product-feature.is-reversed .login-product-feature-copy { order: 2; }
.login-product-feature.is-reversed .login-product-feature-grid > :last-child { order: 1; }

.login-product-feature-copy {
  max-width: 535px;
}

.login-product-step {
  margin-bottom: 0;
  color: #6458e8;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.login-product-step i {
  display: inline-grid;
  width: 27px;
  height: 28px;
  place-items: center;
  margin-right: 8px;
  border-radius: 8px;
  color: #6d61e9;
  background: #eceaff;
  font-style: normal;
}

.login-product-feature-copy h2 {
  max-width: 520px;
  margin: 12px 0 14px;
  color: var(--landing-ink);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
}

.login-product-feature-copy > p {
  margin: 0;
  color: #626879;
  font-size: 16px;
  line-height: 1.65;
}

.login-product-feature-copy ul {
  display: grid;
  gap: 10px;
  margin: 23px 0 0;
  padding: 0;
  list-style: none;
}

.login-product-feature-copy li {
  position: relative;
  padding-left: 23px;
  color: #434754;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.45;
}

.login-product-feature-copy li::before {
  position: absolute;
  left: 0;
  color: var(--landing-green);
  content: "✓";
  font-size: 13px;
  font-weight: 900;
}

.login-product-phone-stage {
  position: relative;
  width: 490px;
  max-width: 100%;
  height: 480px;
  justify-self: end;
}

.login-product-phone {
  position: absolute;
  top: 0;
  width: 194px;
  height: 390px;
  overflow: hidden;
  border: 7px solid #111218;
  border-radius: 28px;
  color: #171820;
  background: #fff;
  box-shadow: 0 17px 32px rgba(26, 28, 39, 0.25);
  font-size: 8px;
}

.login-product-phone:nth-child(1) { left: 0; }
.login-product-phone:nth-child(2) { top: 41px; left: 145px; z-index: 2; }
.login-product-phone:nth-child(3) { top: 82px; right: 0; z-index: 3; }

.login-product-phone-notch {
  position: absolute;
  z-index: 5;
  top: -1px;
  left: 50%;
  width: 64px;
  height: 14px;
  border-radius: 0 0 10px 10px;
  background: #111218;
  transform: translateX(-50%);
}

.login-product-phone-status {
  display: flex;
  position: relative;
  z-index: 3;
  justify-content: space-between;
  padding: 8px 12px 5px;
  font-size: 6.5px;
  font-weight: 800;
}

.login-product-phone-brand {
  padding: 8px 13px;
  font-size: 11px;
  font-weight: 900;
}

.login-product-phone-brand span { color: var(--landing-primary); }
.login-product-phone-brand small { display: block; margin-top: 2px; color: #989ca5; font-size: 5.5px; font-weight: 600; }

.login-product-phone.is-welcome {
  display: flex;
  flex-direction: column;
  background: radial-gradient(120% 90% at 50% 0%, #f7efe1 0%, #fbf7ef 52%, #fff 100%);
}

.login-product-phone-status.is-quinn-status {
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
}

.login-product-phone-status.is-quinn-status > i { flex: 1; }

.login-product-phone-signal {
  display: inline-flex;
  align-items: center;
  gap: 1.5px;
}

.login-product-phone-signal b { width: 1.5px; border-radius: 1px; background: currentColor; }
.login-product-phone-signal b:nth-child(1) { height: 2.5px; }
.login-product-phone-signal b:nth-child(2) { height: 4px; }
.login-product-phone-signal b:nth-child(3) { height: 5.5px; }

.login-product-quinn-orb-wrap {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 15px;
}

.login-product-phone.is-welcome .bloombox {
  display: flex;
  position: relative;
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  align-items: center;
  justify-content: center;
}

.login-product-phone.is-welcome .bloomwrap {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 75px;
  height: 75px;
  transform: translate(-50%, -50%);
}

.login-product-phone.is-welcome .petal {
  position: absolute;
  bottom: 50%;
  left: 50%;
  width: 20px;
  height: 32px;
  margin-left: -10px;
  border-radius: 50% 50% 46% 46% / 62% 62% 38% 38%;
  opacity: 0.55;
  transform-origin: 50% 100%;
  animation: login-product-quinn-bloom 4.6s infinite ease-in-out;
}

.login-product-phone.is-welcome .petal.c1 { background: linear-gradient(180deg, #c7d2fe, #818cf8); }
.login-product-phone.is-welcome .petal.c2 { background: linear-gradient(180deg, #ddd6fe, #a78bfa); }
.login-product-phone.is-welcome .petal.c3 { background: linear-gradient(180deg, #bbf7d0, #4ade80); }
.login-product-phone.is-welcome .petal.c4 { background: linear-gradient(180deg, #bae6fd, #38bdf8); }

.login-product-phone.is-welcome .pearl {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff, #e0e7ff 60%, #a5b4fc);
  box-shadow: 0 2px 7px rgba(99, 102, 241, 0.4);
  transform: translate(-50%, -50%);
  animation: login-product-quinn-pearl 4.6s infinite ease-in-out;
}

.login-product-phone.is-welcome .speaking {
  display: inline-flex;
  align-items: center;
  gap: 3.5px;
  width: max-content;
  border: 1px solid #e6d3ac;
  border-radius: 999px;
  padding: 3px 7px;
  color: #8a6222;
  background: #f7efe1;
  font-size: 5.75px;
  font-weight: 700;
}

.login-product-phone.is-welcome .wave {
  display: inline-flex;
  height: 5.5px;
  align-items: center;
  gap: 1px;
}

.login-product-phone.is-welcome .wave i {
  width: 1px;
  height: 2px;
  border-radius: 1px;
  background: #b8873e;
  animation: login-product-quinn-wave 0.9s infinite ease-in-out;
}

.login-product-phone.is-welcome .wave i:nth-child(2) { animation-delay: 0.15s; }
.login-product-phone.is-welcome .wave i:nth-child(3) { animation-delay: 0.3s; }
.login-product-phone.is-welcome .wave i:nth-child(4) { animation-delay: 0.45s; }
.login-product-phone.is-welcome .wave i:nth-child(5) { animation-delay: 0.6s; }

.login-product-phone.is-welcome .say {
  color: #12131a;
  font-size: 8.25px;
  line-height: 1.55;
  font-weight: 500;
  text-align: center;
}

.login-product-phone.is-welcome .wbtns {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0 13px 15px;
}

.login-product-phone.is-welcome .cta {
  flex: 1;
  border-radius: 7px;
  padding: 7.5px;
  font-size: 7.25px;
  font-weight: 700;
  text-align: center;
}

.login-product-phone.is-welcome .cta.champ {
  color: #fff;
  background: linear-gradient(135deg, #b8873e, #8a6222);
}

@keyframes login-product-quinn-pearl {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.13); }
}

@keyframes login-product-quinn-bloom {
  0%, 100% { opacity: 0.32; transform: rotate(calc(var(--a) * 0.16)) scale(0.86); }
  50% { opacity: 0.6; transform: rotate(var(--a)) scale(1); }
}

@keyframes login-product-quinn-wave {
  0%, 100% { height: 2px; }
  50% { height: 5.5px; }
}

.login-product-phone.is-camera {
  color: #fff;
  background: #111218;
}

.login-product-phone.is-camera header {
  padding: 8px 12px 11px;
  text-align: center;
}

.login-product-phone.is-camera header b,
.login-product-phone.is-camera header small {
  display: block;
}

.login-product-phone.is-camera header b { font-size: 9px; }
.login-product-phone.is-camera header small { margin-top: 3px; color: #9b9ea8; font-size: 6px; }

.login-product-phone-photo {
  height: 253px;
  overflow: hidden;
  border-top: 1px solid #242630;
  border-bottom: 1px solid #242630;
  background: #ede9df;
}

.login-product-phone-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-product-camera-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px;
  color: #8d919c;
  font-size: 5px;
}

.login-product-camera-controls i {
  width: 31px;
  height: 31px;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px #111218;
  background: #fff;
}

.login-product-review-body {
  padding: 7px 10px 10px;
}

.login-product-review-body > small { color: #a4792f; font-size: 5.25px; font-weight: 900; text-transform: uppercase; }
.login-product-review-body h3 { margin: 2px 0 10px; font-size: 10.5px; }

.login-product-review-photo {
  position: relative;
  height: 143px;
  overflow: hidden;
  border-radius: 7px;
  background: #f2eee6;
}

.login-product-review-photo img { width: 100%; height: 100%; object-fit: cover; }
.login-product-review-photo span { position: absolute; bottom: 7px; left: 7px; border-radius: 99px; padding: 4px 6px; color: #675127; background: rgba(255,255,255,.94); font-size: 5.75px; font-weight: 800; }

.login-product-review-card {
  display: grid;
  margin-top: 8px;
  border: 1px solid #eadfc9;
  border-radius: 7px;
  padding: 8px;
  background: #fbf6ec;
}

.login-product-review-card small { color: #a4792f; font-size: 5px; }
.login-product-review-card b { margin-top: 2px; font-size: 7px; }
.login-product-review-card p { margin: 3px 0 0; color: #77705f; font-size: 6px; line-height: 1.4; }

.login-product-review-actions {
  display: grid;
  position: absolute;
  right: 10px;
  bottom: 11px;
  left: 10px;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  text-align: center;
}

.login-product-review-actions span,
.login-product-review-actions strong { border-radius: 5px; padding: 8px 4px; font-size: 7.25px; }
.login-product-review-actions span { border: 1px solid #e0e2e7; }
.login-product-review-actions strong { color: #fff; background: #ad792b; }

.login-product-council-card,
.login-product-legacy-card {
  width: 400px;
  max-width: 100%;
  justify-self: center;
  border: 1px solid #e6e8ee;
  border-radius: 20px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(20, 23, 40, 0.14);
}

.login-product-council-card > header {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  color: #343746;
  font-size: 14px;
}

.login-product-council-card > header span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, #7364ed, #4d41df);
}

.login-product-card-tabs {
  display: flex;
  gap: 6px;
  margin: 12px 0;
}

.login-product-card-tabs > * {
  border-radius: 99px;
  border: 1px solid var(--landing-line);
  padding: 5px 10px;
  color: #777c89;
  background: #f3f4f7;
  font-size: 11px;
  font-weight: 700;
}

.login-product-card-tabs b { color: #6154e4; background: #eceaff; }

.login-product-council-card section {
  margin: 0 0 9px;
  border: 1px solid #e5e7ee;
  border-radius: 12px;
  padding: 12px;
  background: #f5f6f9;
}

.login-product-council-card section b { color: #5b50df; font-size: 12px; }
.login-product-council-card section p { margin: 6px 0 0; color: #5f6471; font-size: 12px; line-height: 1.5; }
.login-product-council-card section.is-green b { color: #10a778; }

.login-product-legacy-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.login-product-legacy-values section {
  display: grid;
  border: 1px solid #e5e7ed;
  border-radius: 14px;
  padding: 13px;
  background: #f7f8fb;
}

.login-product-legacy-values span { color: #484c59; font-size: 13px; font-weight: 800; }
.login-product-legacy-values b { margin: 6px 0 3px; color: #5246df; font-size: 20px; }
.login-product-legacy-values small { color: #8a8e98; font-size: 10.5px; }

.login-product-trust-note {
  display: flex;
  gap: 11px;
  margin-top: 0;
  border: 1px solid #f0d7a6;
  border-radius: 12px;
  padding: 12px;
  color: #6f5525;
  background: #fff8eb;
}

.login-product-trust-note b { font-size: 12.5px; }
.login-product-trust-note p { margin: 4px 0 0; font-size: 11.5px; line-height: 1.45; }
.login-product-private-note { margin: 10px 0 0; border-radius: 10px; padding: 10px; color: #8a8e99; background: #f7f8fa; font-size: 11.5px; text-align: center; }

.login-product-feature .mk { display: flex; justify-content: center; }
.login-product-page .sm { --panel-2: #f7f8fa; --ink-soft: #6b7280; --line: #e9ebf0; --primary: #4f46e5; --purple: #8b5cf6; width: 400px; max-width: 100%; border: 1px solid var(--line); border-radius: 20px; padding: 18px; color: #12131a; background: #fff; box-shadow: 0 30px 70px rgba(20,23,40,.14); letter-spacing: -.02em; }
.login-product-page .sm-h { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 800; }
.login-product-page .sm-mk { display: flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 9px; color: #fff; background: linear-gradient(135deg,var(--primary),var(--purple)); }
.login-product-page .sm-mk svg { width: 17px; height: 17px; }
.login-product-page .sm-enc { display: flex; align-items: center; gap: 11px; margin: 12px 0; border: 1px solid #c6f0d6; border-radius: 12px; padding: 12px; background: #ecfdf3; }
.login-product-page .sm-lock { display: flex; flex-shrink: 0; width: 32px; height: 32px; align-items: center; justify-content: center; border: 1px solid #c6f0d6; border-radius: 9px; color: #12a150; background: #fff; }
.login-product-page .sm-lock svg { width: 17px; height: 17px; }
.login-product-page .sm-enc b { display: block; font-size: 12.5px; }
.login-product-page .sm-enc > div span { color: var(--ink-soft); font-size: 11px; }
.login-product-page .sm-ok { display: flex; flex-shrink: 0; width: 22px; height: 22px; align-items: center; justify-content: center; margin-left: auto; border-radius: 50%; color: #fff; background: #12a150; }
.login-product-page .sm-ok svg { width: 13px; height: 13px; }
.login-product-page .sm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.login-product-page .sm-chips span { border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; color: var(--ink-soft); font-size: 11px; font-weight: 600; }
.login-product-page .sm-perm { display: flex; flex-direction: column; gap: 8px; }
.login-product-page .sm-row { display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--panel-2); }
.login-product-page .sm-av { display: flex; flex-shrink: 0; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg,var(--primary),#3b82f6); font-size: 11px; font-weight: 700; }
.login-product-page .sm-who { flex: 1; line-height: 1.25; }
.login-product-page .sm-who b { font-size: 12.5px; }
.login-product-page .sm-who em { display: block; color: var(--ink-soft); font-size: 10.5px; font-style: normal; }
.login-product-page .sm-tog { position: relative; flex-shrink: 0; width: 34px; height: 20px; border-radius: 999px; background: #12a150; }
.login-product-page .sm-tog.part { background: var(--primary); }
.login-product-page .sm-tog::after { position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; content: ""; }
.login-product-page .sm-note { margin-top: 12px; border-radius: 10px; padding: 10px; color: var(--ink-soft); background: var(--panel-2); font-size: 11.5px; text-align: center; }

.login-product-cta {
  padding: 90px 0;
  text-align: center;
}

.login-product-cta h2 {
  max-width: 700px;
  margin: 0 auto 14px;
  color: var(--landing-ink);
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -1.4px;
}

.login-product-cta p { margin: 0 auto 28px; color: #707584; font-size: 17px; }

.login-product-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 0;
  border-top: 1px solid #e8e9ee;
  color: #969aa4;
  font-size: 13px;
  padding: 40px 0;
}

.login-product-footer .login-product-wordmark { font-size: 16px; letter-spacing: -0.6px; }
.login-product-footer-spacer { flex: 1; }

body.demo-request-modal-open { overflow: hidden; }

.login-product-demo-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  place-items: center;
  padding: 24px;
}

.login-product-demo-modal.is-open { display: grid; }

.login-product-demo-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 19, 26, 0.58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.login-product-demo-dialog {
  position: relative;
  z-index: 1;
  width: min(500px, 100%);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  border: 1px solid #e1e3ea;
  border-radius: 22px;
  padding: 34px;
  color: #151620;
  background: #fff;
  box-shadow: 0 30px 80px rgba(18, 19, 32, 0.28);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.login-product-demo-dialog h2 {
  margin: 8px 0 9px;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.1;
}

.login-product-demo-dialog > p:not(.login-product-eyebrow) {
  margin: 0;
  color: #6b7080;
  font-size: 15px;
  line-height: 1.55;
}

.login-product-demo-dialog > small {
  display: block;
  margin-top: 17px;
  color: #858a97;
  font-size: 11.5px;
  line-height: 1.45;
  text-align: center;
}

.login-product-demo-close {
  display: grid;
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  place-items: center;
  border: 1px solid #e5e7ed;
  border-radius: 10px;
  padding: 0;
  color: #737887;
  background: #fff;
  box-shadow: none;
  font-size: 15px;
  line-height: 1;
}

button.login-product-demo-close:hover,
button.login-product-demo-close:focus-visible {
  border-color: #cbc8fa !important;
  color: #4f46e5 !important;
  background: #f2f1ff !important;
  box-shadow: none !important;
  transform: none;
}

.login-product-demo-form {
  display: grid;
  gap: 17px;
  margin-top: 25px;
}

.login-product-demo-name-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.login-product-demo-form label {
  display: grid;
  gap: 7px;
  color: #242630;
  font-size: 13px;
  font-weight: 700;
}

.login-product-demo-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #dfe2e9;
  border-radius: 12px;
  padding: 11px 13px;
  color: #151620;
  background: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  outline: none;
}

.login-product-demo-form input:focus {
  border-color: #5b50ed;
  box-shadow: 0 0 0 3px rgba(91, 80, 237, 0.13);
}

.login-product-demo-form .login-product-primary { width: 100%; }

.login-product-demo-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.login-product-demo-status {
  min-height: 18px;
  margin: -4px 0 0;
  color: #b4232e;
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.45;
  text-align: center;
}

.login-product-demo-status.is-success { color: #148354; }

@media (max-width: 1000px) {
  .login-product-hero-grid { grid-template-columns: minmax(0, 1fr) 330px; gap: 32px; }
  .login-product-feature-grid { gap: 42px; }
  .login-product-phone-stage { width: 430px; transform: scale(0.9); transform-origin: center right; }
}

@media (max-width: 820px) {
  .login-product-container { width: min(100% - 40px, 680px); }
  .login-product-nav { gap: 20px; }
  .login-product-nav-links { display: none; }
  .login-product-hero-grid { grid-template-columns: 1fr; gap: 34px; padding-top: 34px; }
  .login-product-hero-copy h1 { max-width: 650px; }
  .login-product-view .login-product-signin { width: 100%; max-width: 520px; justify-self: center; }
  .login-product-how-grid { grid-template-columns: 1fr; }
  .login-product-how-grid article { min-height: auto; }
  .login-product-feature { padding: 72px 0; }
  .login-product-feature-grid { grid-template-columns: 1fr; gap: 48px; }
  .login-product-feature.is-reversed .login-product-feature-copy,
  .login-product-feature.is-reversed .login-product-feature-grid > :last-child { order: initial; }
  .login-product-feature-copy { max-width: 610px; }
  .login-product-phone-stage { width: 490px; justify-self: center; transform: none; }
  .login-product-council-card,
  .login-product-legacy-card { width: min(100%, 480px); }
}

@media (max-width: 560px) {
  .login-product-container { width: calc(100% - 28px); }
  .login-product-nav { min-height: 62px; }
  .login-product-wordmark { font-size: 27px; }
  .login-product-demo-link { min-height: 36px; padding: 0 13px; font-size: 15px; }
  .login-product-hero { padding-bottom: 34px; }
  .login-product-hero-grid { gap: 28px; padding-top: 22px; }
  .login-product-hero-copy h1 { font-size: 36px; letter-spacing: -1.4px; }
  .login-product-hero-copy > p { font-size: 17.5px; }
  .login-product-dashboard { padding: 11px; }
  .login-product-metric-grid { grid-template-columns: 1fr 1fr; }
  .login-product-dashboard-lower { grid-template-columns: 66px 1fr; gap: 8px; }
  .login-product-donut { width: 61px; height: 61px; }
  .login-product-donut::before { width: 40px; height: 40px; }
  .login-product-action-list div { grid-template-columns: 13px 1fr auto; padding: 0 5px; }
  .login-product-view .login-product-signin { padding: 23px 20px 20px; }
  .login-product-how { padding: 31px 0; }
  .login-product-how h2 { font-size: 26px; }
  .login-product-feature { padding: 58px 0; }
  .login-product-feature-copy h2 { font-size: 34px; }
  .login-product-phone-stage { width: 490px; height: 372px; justify-self: start; transform: scale(0.73); transform-origin: top left; }
  .login-product-council-card,
  .login-product-legacy-card { border-radius: 15px; padding: 16px; }
  .login-product-card-tabs { flex-wrap: wrap; }
  .login-product-footer { flex-wrap: wrap; justify-content: center; gap: 8px 12px; padding: 20px 0; text-align: center; }
  .login-product-footer-spacer { display: none; }
  .login-product-footer .login-product-wordmark { width: 100%; }
  .login-product-demo-modal { padding: 14px; }
  .login-product-demo-dialog { max-height: calc(100dvh - 28px); border-radius: 18px; padding: 29px 20px 23px; }
  .login-product-demo-dialog h2 { font-size: 29px; }
  .login-product-demo-name-grid { grid-template-columns: 1fr; }
}

/* FAIQ Council drawer pattern */
.council-drawer.asset-council-theme {
  --council-purple: #5540ed;
  --council-purple-dark: #4431d6;
  --council-blue: #246bf2;
  --council-ink: #171924;
  --council-muted: #70788b;
  --council-line: #e2e5ec;
  z-index: 165;
}

.council-drawer.asset-council-theme .drawer-overlay {
  background: rgba(27, 31, 43, 0.2);
}

.council-drawer.asset-council-theme .drawer-panel {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  width: min(414px, calc(100vw - 24px));
  height: calc(100dvh - 24px);
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  border: 1px solid #c8ced9;
  border-radius: 22px;
  padding: 0;
  color: var(--council-ink);
  background: #fff;
  box-shadow: -18px 20px 52px rgba(29, 35, 52, 0.19);
}

.council-drawer.asset-council-theme .drawer-header {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: 42px minmax(0, 1fr) 38px 38px;
  align-items: center;
  gap: 9px;
  border: 0;
  border-bottom: 1px solid var(--council-line);
  border-radius: 0;
  padding: 16px 17px;
  background: #fff;
  box-shadow: none;
  backdrop-filter: none;
}

.council-drawer.asset-council-theme .council-drawer-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, #6648f4, #4c35e8);
  box-shadow: 0 9px 20px rgba(85, 64, 237, 0.24);
}

.council-drawer.asset-council-theme .council-drawer-mark svg {
  width: 23px;
  height: 23px;
}

.council-drawer.asset-council-theme .council-drawer-heading {
  min-width: 0;
}

.council-drawer.asset-council-theme .drawer-header h2 {
  margin: 0;
  color: var(--council-ink);
  font-size: 17px;
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.council-drawer.asset-council-theme .council-context-label {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  margin: 4px 0 0;
  overflow: hidden;
  border: 0;
  padding: 0;
  color: #9aa2b1;
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.council-drawer.asset-council-theme .council-context-label > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.council-drawer.asset-council-theme .council-context-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #20bb63;
}

.council-drawer.asset-council-theme .council-info-button,
.council-drawer.asset-council-theme .drawer-close-button {
  display: inline-grid;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  place-items: center;
  border: 1px solid var(--council-line);
  border-radius: 12px;
  padding: 0;
  color: #7b8392;
  background: #fff;
  box-shadow: none;
}

.council-drawer.asset-council-theme .council-info-button {
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #9199a7;
}

.council-drawer.asset-council-theme .council-info-button svg,
.council-drawer.asset-council-theme .drawer-close-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.council-drawer.asset-council-theme .council-info-button svg {
  fill: currentColor;
  stroke: none;
}

.council-drawer.asset-council-theme .council-form {
  display: grid;
  flex: 0 0 auto;
  gap: 14px;
  border: 0;
  border-radius: 0;
  padding: 14px 18px 12px;
  background: #fff;
  box-shadow: none;
}

.council-drawer.asset-council-theme .council-question-section {
  display: grid;
  gap: 8px;
}

.council-drawer.asset-council-theme .council-question-label {
  color: var(--council-ink);
  font-size: 13px;
  font-weight: 850;
}

.council-drawer.asset-council-theme .council-question-box {
  position: relative;
  overflow: hidden;
  border: 1.5px solid #b8c0ce;
  border-radius: 15px;
  background: #fff;
}

.council-drawer.asset-council-theme .council-question-box:focus-within {
  border-color: var(--council-purple);
  box-shadow: 0 0 0 3px rgba(85, 64, 237, 0.11);
}

.council-drawer.asset-council-theme .voice-textarea-wrap textarea,
.council-drawer.asset-council-theme .voice-textarea-wrap textarea:focus {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  border: 0;
  border-radius: 0;
  padding: 15px 16px 54px;
  color: var(--council-ink);
  background: transparent;
  box-shadow: none;
  font-size: 13px;
  font-weight: 540;
  line-height: 1.45;
}

.council-drawer.asset-council-theme .council-question-footer {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #9ba3b2;
  font-size: 11px;
  font-weight: 650;
  pointer-events: none;
}

.council-drawer.asset-council-theme .council-form .voice-input-button {
  position: static;
  width: 37px;
  min-width: 37px;
  height: 37px;
  min-height: 37px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: var(--council-purple);
  box-shadow: 0 7px 16px rgba(85, 64, 237, 0.22);
  pointer-events: auto;
}

.council-drawer.asset-council-theme .voice-input-status:empty {
  display: none;
}

.council-drawer.asset-council-theme .council-mode-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.council-drawer.asset-council-theme .council-mode-heading {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.council-drawer.asset-council-theme .council-mode-heading strong {
  color: var(--council-ink);
  font-size: 13px;
  font-weight: 850;
}

.council-drawer.asset-council-theme .council-mode-heading span {
  color: #9aa2b1;
  font-size: 10.5px;
  font-weight: 700;
}

.council-drawer.asset-council-theme .council-expert-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.council-drawer.asset-council-theme .council-form .council-expert-chip {
  min-height: 29px;
  border: 1px solid var(--council-line);
  border-radius: 999px;
  padding: 6px 11px;
  color: #343844;
  background: #fff;
  box-shadow: none;
  font-size: 11px;
  font-weight: 780;
  line-height: 1.15;
}

.council-drawer.asset-council-theme .council-form .council-expert-chip:hover,
.council-drawer.asset-council-theme .council-form .council-expert-chip:focus-visible,
.council-drawer.asset-council-theme .council-form .council-expert-chip.is-selected {
  border-color: var(--council-blue);
  color: #1758c9;
  background: #f1f6ff;
  box-shadow: none;
}

.council-drawer.asset-council-theme .council-form .council-add-expert,
.council-drawer.asset-council-theme .council-form .council-add-expert:hover,
.council-drawer.asset-council-theme .council-form .council-add-expert:focus-visible {
  border-color: #c9c2fb;
  color: var(--council-purple);
  background: #fff;
}

.council-drawer.asset-council-theme .council-routing-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--council-muted);
}

.council-drawer.asset-council-theme .council-routing-note > span {
  flex: 0 0 auto;
  border: 1px solid #b8d4ff;
  border-radius: 999px;
  padding: 4px 8px;
  color: #2465cc;
  background: #eef5ff;
  font-size: 9.5px;
  font-weight: 900;
  line-height: 1;
}

.council-drawer.asset-council-theme .council-routing-note p {
  margin: 0;
  font-size: 10.5px;
  line-height: 1.4;
}

.council-drawer.asset-council-theme #council-submit-button,
.council-drawer.asset-council-theme #council-submit-button:hover,
.council-drawer.asset-council-theme #council-submit-button:focus-visible {
  width: 100%;
  min-height: 45px;
  border: 0;
  border-radius: 13px;
  padding: 12px 18px;
  color: #fff;
  background: linear-gradient(100deg, #5547ed, #4635dc);
  box-shadow: 0 10px 22px rgba(78, 57, 224, 0.18);
  font-size: 14px;
  font-weight: 850;
}

.council-drawer.asset-council-theme #council-submit-button:disabled {
  opacity: 0.62;
  box-shadow: none;
}

.council-drawer.asset-council-theme .council-result {
  display: grid;
  min-height: 100px;
  flex: 1 1 112px;
  align-content: start;
  gap: 10px;
  overflow-y: auto;
  margin: 0 18px 8px;
  border: 1px dashed var(--council-line);
  border-radius: 14px;
  padding: 16px;
  background: #fff;
  box-shadow: none;
}

.council-drawer.asset-council-theme .council-result > .muted:only-child {
  align-self: center;
  margin: auto;
  color: #9aa2b1;
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

.council-drawer.asset-council-theme .council-voice-controls {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  border: 0;
  border-top: 1px solid var(--council-line);
  border-radius: 0;
  padding: 10px 18px 12px;
  background: #fff;
  box-shadow: none;
}

.council-drawer.asset-council-theme .council-voice-label,
.council-drawer.asset-council-theme .voice-playback-status {
  grid-column: 1 / -1;
}

.council-drawer.asset-council-theme .council-voice-label {
  margin: 0;
  color: var(--council-ink);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: none;
}

.council-drawer.asset-council-theme .voice-tool-button,
.council-drawer.asset-council-theme .voice-tool-button:hover,
.council-drawer.asset-council-theme .voice-tool-button:focus-visible {
  min-width: 0;
  min-height: 42px;
  border: 1px solid #b9c1cf;
  border-radius: 12px;
  padding: 8px;
  color: #7e8797;
  background: #fff;
  box-shadow: none;
  font-size: 10.5px;
  font-weight: 800;
  white-space: normal;
}

.council-drawer.asset-council-theme .voice-tool-button.is-active {
  border-color: #c9c2fb;
  color: var(--council-purple);
  background: #f7f5ff;
}

.council-drawer.asset-council-theme .voice-playback-status:empty {
  display: none;
}

.council-drawer.asset-council-theme .council-info-view {
  position: absolute;
  z-index: 5;
  inset: 75px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  transition: transform 220ms ease, opacity 160ms ease;
}

.council-drawer.asset-council-theme .council-info-view.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.council-drawer.asset-council-theme .council-info-view > header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--council-line);
  padding: 15px 18px;
}

.council-drawer.asset-council-theme .council-info-view > header h3 {
  margin: 0;
  color: var(--council-ink);
  font-size: 16px;
}

.council-drawer.asset-council-theme .council-info-view .icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--council-line);
  border-radius: 10px;
  padding: 0;
  color: var(--council-muted);
  background: #fff;
}

.council-drawer.asset-council-theme .council-info-view .icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.council-drawer.asset-council-theme .council-info-body {
  display: grid;
  gap: 16px;
  overflow-y: auto;
  padding: 18px;
}

.council-drawer.asset-council-theme .council-info-body article {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
}

.council-drawer.asset-council-theme .council-info-body article > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  color: var(--council-purple);
  background: #f1efff;
  font-size: 12px;
  font-weight: 900;
}

.council-drawer.asset-council-theme .council-info-body strong {
  color: var(--council-ink);
  font-size: 13px;
}

.council-drawer.asset-council-theme .council-info-body p {
  margin: 4px 0 0;
  color: var(--council-muted);
  font-size: 11.5px;
  line-height: 1.5;
}

.council-drawer.asset-council-theme .council-info-disclaimer {
  border-top: 1px solid var(--council-line);
  padding-top: 14px;
  color: #9199a7;
  font-size: 10.5px;
}

@media (max-height: 760px) {
  .council-drawer.asset-council-theme .drawer-panel {
    overflow-y: auto;
  }

  .council-drawer.asset-council-theme .council-result {
    flex-basis: 118px;
  }
}

@media (max-width: 560px) {
  .council-drawer.asset-council-theme .drawer-panel {
    top: 0;
    right: 0;
    width: 100%;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .council-drawer.asset-council-theme .drawer-header {
    padding-right: 13px;
    padding-left: 13px;
  }

  .council-drawer.asset-council-theme .council-form {
    padding-right: 14px;
    padding-left: 14px;
  }

  .council-drawer.asset-council-theme .council-result {
    margin-right: 14px;
    margin-left: 14px;
  }

  .council-drawer.asset-council-theme .council-voice-controls {
    padding-right: 14px;
    padding-left: 14px;
  }
}

/* Family Overview dashboard wireframe alignment */
.app-shell.family-mode .family-overview-urgent {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto 28px;
  align-items: center;
  gap: 12px;
  border: 1px solid #f7caca;
  border-left: 4px solid #ef4444;
  border-radius: 12px;
  padding: 10px 12px;
  color: #8f3030;
  background: #fdecec;
}

.app-shell.family-mode .family-overview-urgent.is-hidden {
  display: none;
}

.app-shell.family-mode .family-overview-urgent-icon {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #ef4444;
  font-size: 14px;
  font-weight: 900;
}

.app-shell.family-mode .family-overview-urgent p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.4;
}

.app-shell.family-mode .family-overview-urgent p strong {
  color: #652020;
}

.app-shell.family-mode #family-overview-urgent-review {
  min-height: 35px;
  border: 0;
  border-radius: 9px;
  padding: 7px 14px;
  color: #fff;
  background: #ef4444;
  font-size: 12px;
  font-weight: 800;
}

.app-shell.family-mode #family-overview-urgent-dismiss {
  border: 0;
  padding: 4px;
  color: #a25555;
  background: transparent;
  font-size: 20px;
  line-height: 1;
}

.paloist-dashboard-shell .family-overview-segments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.paloist-dashboard-shell .family-overview-segments button {
  min-height: 31px;
  border: 1px solid #e5e7ee;
  border-radius: 999px;
  padding: 6px 14px;
  color: #747b8a;
  background: #fff;
  font-size: 11.5px;
  font-weight: 700;
  box-shadow: none;
}

.paloist-dashboard-shell .family-overview-segments button:hover,
.paloist-dashboard-shell .family-overview-segments button:focus-visible,
.paloist-dashboard-shell .family-overview-segments button.is-active {
  border-color: #5148e8;
  color: #fff;
  background: #5148e8;
  box-shadow: none;
}

.family-overview-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.family-overview-metric {
  display: grid;
  min-height: 132px;
  align-content: start;
  gap: 7px;
  border: 1px solid #e9ebf0;
  border-radius: 16px;
  padding: 17px 18px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(20, 23, 40, 0.05), 0 6px 18px rgba(20, 23, 40, 0.04);
}

.family-overview-metric > span {
  color: #707888;
  font-size: 11.5px;
  font-weight: 650;
}

.family-overview-metric > strong {
  color: #1c1e26;
  font-size: clamp(23px, 2.2vw, 29px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.family-overview-metric > small,
.family-overview-metric > em {
  color: #9aa1ad;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.3;
}

.family-overview-metric small button {
  border: 0;
  padding: 0;
  color: #4f46e5;
  background: transparent;
  font: inherit;
  font-weight: 800;
}

.family-overview-metric.is-flag > strong {
  color: #ef4444;
}

.app-shell.family-mode #family-asset-iq-view .family-overview-metric.is-hero {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #6366f1 55%, #8b5cf6);
  box-shadow: 0 11px 25px rgba(79, 70, 229, 0.24);
}

.app-shell.family-mode #family-asset-iq-view .family-overview-metric.is-hero > span,
.app-shell.family-mode #family-asset-iq-view .family-overview-metric.is-hero > strong,
.app-shell.family-mode #family-asset-iq-view .family-overview-metric.is-hero > small {
  color: #fff;
}

.family-overview-primary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.95fr);
  gap: 16px;
  align-items: stretch;
}

.app-shell.family-mode #family-asset-iq-view .family-overview-panel {
  border: 1px solid #e9ebf0;
  border-radius: 18px;
  padding: 20px 22px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(20, 23, 40, 0.05), 0 6px 18px rgba(20, 23, 40, 0.04);
}

.family-overview-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.family-overview-panel-head p {
  margin: 0 0 4px;
  color: #4f46e5;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.app-shell.family-mode #family-asset-iq-view .family-overview-panel-head h2 {
  margin: 0;
  color: #1c1e26;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.family-overview-group-toggle {
  display: flex;
  gap: 2px;
  border: 1px solid #e5e7ee;
  border-radius: 999px;
  padding: 3px;
  background: #f7f8fa;
}

.family-overview-group-toggle button {
  border: 0;
  border-radius: 999px;
  padding: 6px 11px;
  color: #747b8a;
  background: transparent;
  font-size: 10.5px;
  font-weight: 800;
}

.family-overview-group-toggle button:hover,
.family-overview-group-toggle button:focus-visible,
.family-overview-group-toggle button.is-active {
  color: #fff;
  background: #5148e8;
  box-shadow: none;
}

.family-overview-composition-body {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.family-overview-donut {
  display: grid;
  width: 188px;
  height: 188px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--paloist-donut-gradient));
}

.family-overview-donut::before {
  content: "";
  grid-area: 1 / 1;
  width: 96px;
  height: 96px;
  border: 1px solid #e9ebf0;
  border-radius: 50%;
  background: #fff;
}

.family-overview-donut span {
  z-index: 1;
  grid-area: 1 / 1;
  text-align: center;
}

.family-overview-donut strong,
.family-overview-donut small {
  display: block;
}

.family-overview-donut strong {
  color: #1c1e26;
  font-size: 20px;
  letter-spacing: -0.04em;
}

.family-overview-donut small {
  margin-top: 2px;
  color: #747b8a;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.family-overview-legend {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
}

.family-overview-legend-row {
  display: grid;
  min-width: 0;
  grid-template-columns: 9px minmax(0, 1fr) auto 34px;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
}

.family-overview-legend-row i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.family-overview-legend-row span {
  overflow: hidden;
  color: #30333d;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.family-overview-legend-row strong {
  color: #1c1e26;
  font-size: 11.5px;
}

.family-overview-legend-row small {
  color: #9aa1ad;
  font-size: 10.5px;
  text-align: right;
}

.family-overview-panel-note {
  margin: 0 0 14px;
  color: #6b7280;
  font-size: 11.5px;
}

.family-overview-protection-bars {
  display: grid;
  gap: 12px;
}

.family-overview-protection-bars > div {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
}

.family-overview-protection-bars span {
  color: #30333d;
  font-size: 10.5px;
  font-weight: 750;
}

.family-overview-protection-bars i {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #f1f2f5;
}

.family-overview-protection-bars i b {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.family-overview-protection-bars strong {
  font-size: 10.5px;
  text-align: right;
}

.family-overview-protection-bars i b.is-good { background: #10b981; }
.family-overview-protection-bars i b.is-warning { background: #f59e0b; }
.family-overview-protection-bars i b.is-risk { background: #ef4444; }
.family-overview-protection-bars i b.is-na { background: transparent; }
.family-overview-protection-bars strong.is-good { color: #10b981; }
.family-overview-protection-bars strong.is-warning { color: #f59e0b; }
.family-overview-protection-bars strong.is-risk { color: #ef4444; }
.family-overview-protection-bars strong.is-na { color: #9aa1ad; }

.family-overview-footnote {
  display: block;
  margin-top: 14px;
  color: #a0a6b3;
  font-size: 9.5px;
  line-height: 1.45;
}

.family-overview-action-center {
  scroll-margin-top: 18px;
}

.family-overview-action-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.family-overview-action-split > section:first-child {
  padding-right: 24px;
}

.family-overview-action-split > section:last-child {
  border-left: 1px solid #e9ebf0;
  padding-left: 24px;
}

.family-overview-action-split h3 {
  margin: 0 0 4px;
  color: #1c1e26;
  font-size: 12px;
  font-weight: 850;
}

.family-overview-action-list {
  display: grid;
}

.family-overview-action-list > button {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  border: 0;
  border-bottom: 1px solid #e9ebf0;
  border-radius: 0;
  padding: 11px 2px;
  color: #1c1e26;
  background: #fff;
  text-align: left;
  box-shadow: none;
}

.family-overview-action-list > button:hover,
.family-overview-action-list > button:focus-visible {
  color: #1c1e26;
  background: #f8f8fd;
  box-shadow: none;
}

.family-overview-action-list i {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid #e5e7ee;
  border-radius: 9px;
  color: #747b8a;
  background: #f7f8fa;
  font-style: normal;
}

.family-overview-action-list span strong,
.family-overview-action-list span small {
  display: block;
}

.family-overview-action-list span strong {
  font-size: 12px;
  line-height: 1.3;
}

.family-overview-action-list span small {
  margin-top: 2px;
  color: #9aa1ad;
  font-size: 10.5px;
  font-weight: 550;
}

.family-overview-action-list > button > b {
  border-radius: 999px;
  padding: 4px 9px;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.family-overview-action-list > button > b.is-now { background: #ef4444; }
.family-overview-action-list > button > b.is-soon { background: #f59e0b; }
.family-overview-action-list > button > b.is-later { background: #9ca3af; }
.family-overview-action-list > button > b.is-good { background: #10b981; }

.family-overview-deadline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.family-overview-deadline-head > div {
  display: flex;
  gap: 5px;
}

.family-overview-deadline-head button {
  border: 1px solid #e5e7ee;
  border-radius: 999px;
  padding: 5px 10px;
  color: #747b8a;
  background: #fff;
  font-size: 10px;
  font-weight: 850;
}

.family-overview-deadline-head button:hover,
.family-overview-deadline-head button:focus-visible,
.family-overview-deadline-head button.is-active {
  border-color: #5148e8;
  color: #fff;
  background: #5148e8;
  box-shadow: none;
}

.family-overview-deadline-list {
  display: grid;
  margin-top: 5px;
}

.family-overview-deadline-list > div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #e9ebf0;
  padding: 10px 2px;
}

.family-overview-deadline-list > div > span {
  width: fit-content;
  border: 1px solid #e5e7ee;
  border-radius: 999px;
  padding: 4px 8px;
  color: #747b8a;
  font-size: 8.5px;
  font-weight: 850;
  text-transform: uppercase;
}

.family-overview-deadline-list strong {
  color: #30333d;
  font-size: 10.5px;
}

.family-overview-deadline-list time {
  color: #9aa1ad;
  font-size: 9.5px;
  font-weight: 650;
}

.family-overview-bottom-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.family-overview-summary-card {
  min-width: 0;
}

.family-overview-stat-list {
  display: grid;
}

.family-overview-stat-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #e9ebf0;
  padding: 13px 0;
}

.family-overview-stat-list span {
  color: #30333d;
  font-size: 11.5px;
  font-weight: 650;
}

.family-overview-stat-list strong {
  color: #4f46e5;
  font-size: 12px;
}

.family-overview-stat-list strong.is-risk {
  color: #ef4444;
}

.family-overview-table {
  display: grid;
}

.family-overview-table > .is-head,
.family-overview-table > button {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(80px, 0.8fr) 58px;
  align-items: center;
  gap: 8px;
}

.family-overview-table > .is-head {
  border-bottom: 1px solid #e9ebf0;
  padding: 6px 4px;
  color: #9aa1ad;
  font-size: 8.5px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.family-overview-table > button {
  border: 0;
  border-bottom: 1px solid #e9ebf0;
  border-radius: 0;
  padding: 11px 4px;
  color: #1c1e26;
  background: #fff;
  box-shadow: none;
  font-size: 10.5px;
  text-align: left;
}

.family-overview-table > button:hover,
.family-overview-table > button:focus-visible {
  color: #1c1e26;
  background: #f8f8fd;
  box-shadow: none;
}

.family-overview-table > button strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.family-overview-table > button b {
  color: #4f46e5;
}

.family-overview-table > button .is-up { color: #10b981; }
.family-overview-table > button .is-down { color: #ef4444; }

.family-overview-add-beneficiary {
  margin-top: 12px;
  border: 0;
  padding: 0;
  color: #4f46e5;
  background: transparent;
  font-size: 11.5px;
  font-weight: 850;
}

@media (max-width: 1180px) {
  .family-overview-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .family-overview-primary-grid,
  .family-overview-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .family-overview-action-split {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .family-overview-action-split > section:first-child {
    padding-right: 0;
  }

  .family-overview-action-split > section:last-child {
    border-top: 1px solid #e9ebf0;
    border-left: 0;
    padding-top: 20px;
    padding-left: 0;
  }
}

@media (max-width: 680px) {
  .app-shell.family-mode .family-overview-urgent {
    grid-template-columns: 27px minmax(0, 1fr) 28px;
  }

  .app-shell.family-mode #family-overview-urgent-review {
    grid-column: 1 / -1;
    width: 100%;
  }

  .app-shell.family-mode #family-overview-urgent-dismiss {
    grid-column: 3;
    grid-row: 1;
  }

  .family-overview-metrics,
  .family-overview-legend {
    grid-template-columns: 1fr;
  }

  .family-overview-metric {
    min-height: 118px;
  }

  .app-shell.family-mode #family-asset-iq-view .family-overview-panel {
    padding: 17px;
  }

  .family-overview-panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .family-overview-group-toggle {
    width: fit-content;
  }

  .family-overview-protection-bars > div {
    grid-template-columns: 108px minmax(0, 1fr) 39px;
  }

  .family-overview-deadline-list > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

/* Exact client HTML styling for Asset Management list, cards, and detail. */
.app-shell.family-mode:not(.mobile-demo-active) #family-asset-iq-view .family-asset-management-panel {
  color: #12131a;
  font-family: Inter, -apple-system, sans-serif;
  letter-spacing: -0.01em;
}

.family-management-list-head {
  min-height: 54px;
  align-items: center;
  gap: 22px;
  margin-bottom: 20px;
}

.family-management-list-title {
  margin-right: auto;
}

.family-management-list-title h2 {
  margin: 0;
  color: #12131a;
  font-size: 24px !important;
  font-weight: 800 !important;
  letter-spacing: -0.5px !important;
  line-height: normal !important;
}

.family-management-list-title .panel-subtitle {
  margin-top: 2px;
  color: #6b7280;
  font-size: 12.5px !important;
  font-weight: 400 !important;
  line-height: normal !important;
}

.family-management-toolbar {
  flex: 0 1 auto;
  align-items: flex-end;
  gap: 22px;
}

.family-management-toolbar label {
  gap: 4px;
  color: #9aa1ad;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: normal;
}

.family-management-toolbar label:first-child {
  width: 230px;
}

.family-management-toolbar input,
.family-management-toolbar select {
  height: auto !important;
  min-height: 0 !important;
  border: 1.5px solid #e6e8ee !important;
  border-radius: 10px !important;
  padding: 9px 12px !important;
  color: #12131a;
  background: #fff;
  font-family: inherit;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: normal !important;
}

.family-management-view-toggle {
  height: auto;
  border: 1.5px solid #e6e8ee;
  border-radius: 10px;
}

.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-management-view-toggle
  button {
  min-width: 0;
  min-height: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 8px 14px !important;
  color: #6b7280 !important;
  background: #fff !important;
  font-size: 13px;
  font-weight: 600;
  line-height: normal;
  box-shadow: none !important;
  transform: none !important;
}

.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-management-view-toggle
  button.is-active {
  color: #4338ca !important;
  background: #eef0fe !important;
}

.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-management-add-button {
  align-self: flex-end;
  min-height: 0 !important;
  border: 0 !important;
  border-radius: 11px !important;
  padding: 11px 18px !important;
  color: #fff !important;
  background: linear-gradient(135deg, #4f46e5, #4338ca) !important;
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.28) !important;
  font-size: 14px;
  font-weight: 700;
  line-height: normal;
  transform: none !important;
}

.family-management-list {
  gap: 10px;
}

.family-management-column-head,
.family-management-list-row {
  grid-template-columns: 19.895% 12.869% 13.608% 18.315% 19.492% 15.821%;
  gap: 0;
}

.family-management-column-head {
  min-height: 20px;
  border-radius: 0;
  padding: 0;
  color: #9aa1ad;
  background: transparent;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  line-height: normal;
}

.family-management-column-head > span {
  min-width: 0;
  padding: 0 14px 4px;
}

.family-management-list-row {
  height: 74px;
  min-height: 74px;
  overflow: hidden;
  border: 1px solid #e6e8ee;
  border-radius: 14px;
  padding: 0;
  background: #fff;
  box-shadow: none;
}

.family-management-list-row:hover,
.family-management-list-row:focus-visible {
  border-color: #e6e8ee;
  background: #fbfbfe;
  box-shadow: none;
  transform: none;
}

.family-management-list-row > * {
  min-width: 0;
  padding: 13px 14px;
}

.family-management-list-asset {
  gap: 12px;
}

.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-management-thumb.is-list {
  width: 46px;
  min-width: 46px;
  height: 46px;
  min-height: 46px !important;
  flex-basis: 46px;
  border: 1px solid #e6e8ee !important;
  border-radius: 10px !important;
}

.family-management-list-name strong {
  color: #12131a;
  font-size: 14px;
  font-weight: 800;
  line-height: normal;
}

.family-management-list-name span {
  margin-top: 0;
  color: #6b7280;
  font-size: 11.5px;
  font-weight: 400;
  line-height: normal;
}

.family-management-list-value {
  color: #4338ca;
  font-size: 13.5px;
  font-weight: 800;
  line-height: normal;
}

.family-management-list-row > span {
  color: #3a3d47;
  font-size: 13.5px;
  line-height: normal;
}

.family-management-list-row .family-management-market-trend {
  color: #1e8e57;
  font-size: 13.5px;
  font-weight: 800;
}

.family-management-list-row .family-management-market-trend.is-down {
  color: #c0392b;
}

.family-management-list-row .family-management-market-trend.is-flat {
  color: #3a3d47;
}

.family-management-list-status {
  align-items: center;
  flex-wrap: nowrap;
  gap: 7px;
  overflow: hidden;
}

.family-management-list-status > span,
.family-management-card-status > span,
.family-management-detail-chips > span {
  min-width: 0;
  overflow: hidden;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  line-height: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.family-management-list-status > span {
  font-size: 10.5px;
}

.family-management-list-status > span.is-ok,
.family-management-card-status > span.is-ok,
.family-management-detail-chips > span.is-ok {
  border: 1px solid #b6e6c9;
  color: #1e8e57;
  background: #e8f7ee;
}

.family-management-list-status > span.is-bad,
.family-management-card-status > span.is-bad,
.family-management-detail-chips > span.is-bad {
  border: 1px solid #f5c6c2;
  color: #b23127;
  background: #fdeceb;
}

.family-management-list-row .family-management-row-actions {
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
}

.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-management-row-actions
  button {
  min-height: 0 !important;
  border: 1.5px solid #e6e8ee !important;
  border-radius: 9px !important;
  padding: 7px 13px !important;
  color: #12131a !important;
  background: #fff !important;
  font-size: 12.5px;
  font-weight: 700;
  line-height: normal;
  box-shadow: none !important;
  transform: none !important;
}

.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-management-row-actions
  button:hover,
.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-management-row-actions
  button:focus-visible {
  border-color: #4f46e5 !important;
  color: #4f46e5 !important;
}

.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-management-market-info {
  display: inline-flex;
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px !important;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  border: 0 !important;
  border-radius: 50% !important;
  padding: 0 !important;
  color: #fff !important;
  background: #868d99 !important;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  box-shadow: none !important;
  transform: none !important;
}

.family-management-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.family-management-card {
  height: 184.5px;
  min-height: 184.5px;
  border: 1px solid #e6e8ee;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(20, 23, 40, 0.05);
}

.family-management-card:hover,
.family-management-card:focus-visible {
  border-color: #e6e8ee;
  box-shadow: 0 16px 40px rgba(20, 23, 40, 0.13);
  transform: translateY(-2px);
}

.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-management-card
  .family-management-thumb {
  width: 150px;
  min-width: 150px;
  height: 182.5px;
  min-height: 182.5px !important;
  flex-basis: 150px;
  border: 0 !important;
  border-radius: 0 !important;
}

.family-management-card-body {
  padding: 16px 18px;
}

.family-management-card-body header {
  gap: 10px;
}

.family-management-card-body header > div:first-child {
  min-width: 0;
}

.family-management-card-body header strong {
  overflow: hidden;
  color: #12131a;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.family-management-card-body header span {
  margin-top: 2px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 400;
  line-height: normal;
}

.family-management-card-values {
  align-items: flex-start;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin: 12px 0 4px;
}

.family-management-card-values > div > span {
  margin-bottom: 3px;
  color: #9aa1ad;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  line-height: normal;
}

.family-management-card-values strong,
.family-management-card-values .family-management-market-trend {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: normal;
}

.family-management-card-values strong {
  color: #4338ca;
}

.family-management-card-values .family-management-market-trend {
  letter-spacing: -0.4px;
}

.family-management-card-location {
  overflow: hidden;
  margin: 0 0 11px !important;
  color: #3a3d47 !important;
  font-size: 12px !important;
  font-weight: 500;
  line-height: normal !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.family-management-card-status {
  flex-wrap: nowrap;
  gap: 7px;
  overflow: hidden;
}

.family-management-detail {
  width: min(880px, 96vw);
  height: min(92vh, 980px);
  max-height: none;
  border: 0;
  color: #12131a;
  box-shadow: 0 40px 90px rgba(20, 23, 40, 0.45);
}

.family-management-detail-head {
  display: flex;
  gap: 16px;
  padding: 18px 22px;
}

.family-management-detail-mark {
  width: 56px;
  min-width: 56px;
  height: 56px;
}

.family-management-detail-heading {
  flex: 1;
}

.family-management-detail-heading > span {
  color: #4f46e5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
}

.family-management-detail-heading h2 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.family-management-detail-heading p {
  font-size: 12.5px;
}

.family-management-detail-value > span {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.family-management-detail-value > strong {
  color: #4338ca;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-management-detail-edit {
  min-height: 0 !important;
  border-radius: 10px !important;
  padding: 9px 15px !important;
  font-size: 13px;
  font-weight: 700;
}

.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-management-detail-close {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px !important;
  border-radius: 10px !important;
  padding: 0 !important;
}

.family-management-detail-body {
  padding: 8px 22px 20px;
}

.family-management-detail-hero {
  display: flex;
  align-items: stretch;
  gap: 24px;
  margin: 14px 0 6px;
}

.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-management-detail-photo {
  width: 300px;
  min-width: 300px;
  height: 225px;
  min-height: 225px !important;
  max-height: 225px;
  align-self: flex-start;
  aspect-ratio: 4 / 3;
}

.family-management-detail-photo img {
  height: 225px;
  min-height: 225px;
}

.family-management-detail-quick {
  flex: 1;
  padding: 2px 0;
}

.family-management-detail-field {
  padding: 10px 2px;
}

.family-management-detail-field span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.family-management-detail-field strong {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
}

.family-management-detail-body > h3 {
  margin: 15px 0 9px;
  color: #4f46e5;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}

@media (max-width: 1180px) {
  .family-management-list {
    overflow-x: auto;
  }

  .family-management-column-head,
  .family-management-list-row {
    min-width: 900px;
  }
}

@media (max-width: 840px) {
  .family-management-list-head {
    align-items: stretch;
    flex-direction: column;
  }

  .family-management-toolbar {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .family-management-card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .family-management-detail-hero {
    display: grid;
  }

  .app-shell.family-mode:not(.mobile-demo-active)
    #family-asset-iq-view
    .family-management-detail-photo {
    width: 100%;
    min-width: 0;
  }
}

/* Family Documents — documentation health wireframe alignment */
.family-documents-health {
  --fd-bg: #f3f4f7;
  --fd-panel: #fff;
  --fd-ink: #141428;
  --fd-muted: #6b7280;
  --fd-faint: #9ca3af;
  --fd-line: #e7e8ee;
  --fd-line-2: #eef0f4;
  --fd-indigo: #5b4fe0;
  --fd-indigo-2: #7c6bf0;
  --fd-purple-a: #6d5ef5;
  --fd-purple-b: #a855f7;
  --fd-green: #0fae7f;
  --fd-green-bg: #e7f7f0;
  --fd-amber: #c47f12;
  --fd-amber-bg: #fbf1dd;
  --fd-red: #d9534f;
  --fd-red-bg: #fdeceb;
  --fd-slate: #64748b;
  --fd-slate-bg: #eef1f6;
  color: var(--fd-ink);
  font-size: 14px;
  line-height: 1.45;
}

.family-documents-health *,
.family-documents-health *::before,
.family-documents-health *::after {
  box-sizing: border-box;
}

.family-documents-health button,
.family-documents-health input,
.family-documents-health select {
  font: inherit;
}

.family-documents-health .metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.family-documents-health .m {
  position: relative;
  display: block;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--fd-line);
  border-radius: 16px;
  padding: 18px 20px;
  color: var(--fd-ink);
  background: #fff;
  text-align: left;
}

.family-documents-health .m.feat {
  border: none;
  color: #fff;
  background: linear-gradient(135deg, var(--fd-purple-a), var(--fd-purple-b));
}

.family-documents-health .m .lab,
.family-documents-health .m .big,
.family-documents-health .m .sub {
  display: block;
}

.family-documents-health .m .lab {
  color: var(--fd-muted);
  font-size: 12px;
  font-weight: 600;
}

.family-documents-health .m.feat .lab,
.family-documents-health .m.feat .sub {
  color: rgba(255, 255, 255, 0.85);
}

.family-documents-health .m .big {
  margin: 8px 0 2px;
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -1px;
}

.family-documents-health .m .sub {
  color: var(--fd-faint);
  font-size: 12px;
}

.family-documents-health .m .pill {
  display: inline-block;
  margin-top: 8px;
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
}

.family-documents-health .warn {
  color: var(--fd-amber);
  background: var(--fd-amber-bg);
}

.family-documents-health .bad {
  color: var(--fd-red);
  background: var(--fd-red-bg);
}

.family-documents-health .m.feat .pill.on {
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
}

.family-documents-health .m.clik {
  cursor: pointer;
  transition: 0.12s;
}

.family-documents-health .drillarrow {
  margin-left: 3px;
  opacity: 0;
  font-weight: 800;
  transition: 0.12s;
}

.family-documents-health .card {
  margin-bottom: 22px;
  border: 1px solid var(--fd-line);
  border-radius: 16px;
  padding: 22px;
  background: #fff;
  box-shadow: none;
}

.family-documents-health .eyebrow {
  color: var(--fd-purple-a);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.family-documents-health .sechead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.family-documents-health .sechead .eyebrow {
  font-size: 10.5px;
}

.family-documents-health .sechead h2,
.family-documents-health .document-intake-card h2 {
  margin: 2px 0 0;
  color: var(--fd-ink);
  font-size: 18px;
  font-weight: 700;
}

.family-documents-health .count {
  border: 1px solid var(--fd-line);
  border-radius: 20px;
  padding: 3px 10px;
  color: var(--fd-faint);
  font-size: 11.5px;
  white-space: nowrap;
}

.family-documents-health .desc {
  margin: -8px 0 16px;
  color: var(--fd-muted);
  font-size: 12.5px;
}

.family-documents-health .intake {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 26px;
}

.family-documents-health .document-intake-card .desc {
  margin: 6px 0 0;
}

.family-documents-health .caps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.family-documents-health .cap {
  border-radius: 20px;
  padding: 5px 11px;
  color: var(--fd-indigo);
  background: #eef0fe;
  font-size: 11.5px;
  font-weight: 600;
}

.family-documents-health label.family-document-bulk-type {
  display: block;
  margin: 0 0 6px;
  color: var(--fd-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.family-documents-health select,
.family-documents-health input {
  width: 100%;
  border: 1px solid var(--fd-line);
  border-radius: 10px;
  padding: 11px 12px;
  color: var(--fd-ink);
  background: #fff;
  font-size: 13.5px;
}

.family-documents-health .drop {
  margin-top: 10px;
  border: 1.5px dashed #cdd0da;
  border-radius: 14px;
  padding: 26px;
  background: #fafbfc;
  text-align: center;
}

.family-documents-health .drop.is-dragging {
  border-color: var(--fd-indigo);
  background: #eef0fe;
}

.family-documents-health .drop .plus {
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  border-radius: 50%;
  color: #fff;
  background: var(--fd-indigo);
  font-size: 22px;
}

.family-documents-health .drop b {
  display: block;
  color: var(--fd-ink);
  font-size: 14px;
}

.family-documents-health .drop p {
  margin: 4px 0 0;
  color: var(--fd-faint);
  font-size: 12px;
}

.family-documents-health .family-document-bulk-choose {
  display: inline-block;
  margin-top: 12px;
}

.family-documents-health .family-document-bulk-choose input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.family-documents-health .family-document-bulk-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.family-documents-health .btn {
  min-height: 0;
  border: 1px solid var(--fd-line);
  border-radius: 10px;
  padding: 10px 16px;
  color: var(--fd-ink);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.family-documents-health .btn.ghost {
  border-color: #dcd9fb;
  color: var(--fd-indigo);
  background: #f6f5ff;
}

.family-documents-health .btn.primary {
  border-color: var(--fd-indigo);
  color: #fff;
  background: var(--fd-indigo);
}

.family-documents-health .btn.sm {
  padding: 7px 12px;
  font-size: 12.5px;
}

.family-documents-health .family-document-upload-progress {
  margin-top: 10px;
}

.family-documents-health .scopechip {
  display: inline-block;
  margin-left: 8px;
  border-radius: 20px;
  padding: 2px 8px;
  color: var(--fd-indigo);
  background: #eef0fe;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: none;
  vertical-align: middle;
}

.family-documents-health .document-overview-link {
  min-height: 0;
  border: 0;
  padding: 0;
  color: var(--fd-indigo);
  background: transparent;
  font-size: inherit;
  font-weight: 600;
  cursor: pointer;
}

.family-documents-health .acgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.family-documents-health .acleft {
  padding-right: 26px;
}

.family-documents-health .acright {
  border-left: 1px solid var(--fd-line-2);
  padding-left: 26px;
}

.family-documents-health .acsub {
  margin: 0 0 12px;
  color: #374151;
  font-size: 12.5px;
  font-weight: 700;
}

.family-documents-health .acsubrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.family-documents-health .acsubrow .acsub {
  margin: 0;
}

.family-documents-health .att {
  display: flex;
  width: 100%;
  min-height: 0;
  align-items: center;
  gap: 13px;
  border: 0;
  border-bottom: 1px solid var(--fd-line-2);
  border-radius: 0;
  padding: 12px 0;
  color: var(--fd-ink);
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.family-documents-health .att:last-child {
  border-bottom: none;
}

.family-documents-health .att .ai {
  display: flex;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #f0f1f6;
  font-size: 15px;
}

.family-documents-health .att .atxt {
  flex: 1;
  min-width: 0;
}

.family-documents-health .att .attn,
.family-documents-health .att .ats {
  display: block;
}

.family-documents-health .att .attn {
  font-size: 13.5px;
  font-weight: 600;
}

.family-documents-health .att .ats {
  margin-top: 2px;
  color: var(--fd-faint);
  font-size: 12px;
  font-weight: 400;
}

.family-documents-health .prio {
  flex-shrink: 0;
  border-radius: 20px;
  padding: 4px 11px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.family-documents-health .prio.now { background: var(--fd-red); }
.family-documents-health .prio.soon { background: #e0a83b; }
.family-documents-health .prio.later { background: #9aa1ad; }

.family-documents-health .segbtn {
  display: flex;
  gap: 6px;
}

.family-documents-health .segbtn .o {
  min-height: 0;
  border: 1px solid var(--fd-line);
  border-radius: 20px;
  padding: 5px 11px;
  color: #5b6472;
  background: #fff;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.family-documents-health .segbtn .o.on {
  border-color: var(--fd-indigo);
  color: #fff;
  background: var(--fd-indigo);
}

.family-documents-health .dl {
  display: flex;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid var(--fd-line-2);
  padding: 11px 0;
}

.family-documents-health .dl:last-child {
  border-bottom: none;
}

.family-documents-health .dtag {
  flex-shrink: 0;
  width: 96px;
  border: 1px solid var(--fd-line);
  border-radius: 20px;
  padding: 4px 9px;
  color: var(--fd-slate);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.family-documents-health .dl .dtt {
  flex: 1;
  min-width: 0;
  color: var(--fd-ink);
  font-size: 13px;
  font-weight: 600;
}

.family-documents-health .dl .ddate {
  flex-shrink: 0;
  color: var(--fd-faint);
  font-size: 12px;
}

.family-documents-health .document-empty-line {
  margin: 0;
  padding: 14px 0;
  color: var(--fd-faint);
  font-size: 12px;
}

.family-documents-health .filterrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.family-documents-health .fchip {
  min-height: 0;
  border: 1px solid var(--fd-line);
  border-radius: 20px;
  padding: 6px 13px;
  color: #5b6472;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.family-documents-health .fchip.on {
  border-color: var(--fd-indigo);
  color: #fff;
  background: var(--fd-indigo);
}

.family-documents-health .pkgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.family-documents-health .pk {
  display: block;
  width: 100%;
  min-height: 0;
  border: 1px solid var(--fd-line);
  border-radius: 13px;
  padding: 15px 16px;
  color: var(--fd-ink);
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: 0.12s;
}

.family-documents-health .pk .pkh {
  display: flex;
  align-items: center;
  gap: 11px;
}

.family-documents-health .pk .th {
  display: flex;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #f0f1f6;
  font-size: 19px;
}

.family-documents-health .pk .pn,
.family-documents-health .pk .pc {
  display: block;
}

.family-documents-health .pk .pn {
  font-size: 13.5px;
  font-weight: 700;
}

.family-documents-health .pk .pc {
  color: var(--fd-faint);
  font-size: 11.5px;
}

.family-documents-health .pk .pkval {
  margin-left: auto;
  color: var(--fd-indigo);
  font-size: 13px;
  font-weight: 700;
}

.family-documents-health .meter {
  display: block;
  height: 8px;
  margin: 12px 0 8px;
  overflow: hidden;
  border-radius: 5px;
  background: #eef0f4;
}

.family-documents-health .meter i {
  display: block;
  height: 100%;
  border-radius: 5px;
}

.family-documents-health .meter i.done { background: linear-gradient(90deg, #10b981, #34d399); }
.family-documents-health .meter i.part { background: linear-gradient(90deg, var(--fd-purple-a), var(--fd-purple-b)); }
.family-documents-health .meter i.low { background: linear-gradient(90deg, #e0a83b, #eec06a); }

.family-documents-health .pkmiss {
  display: block;
  color: var(--fd-muted);
  font-size: 11.5px;
}

.family-documents-health .miss {
  color: var(--fd-red);
  font-weight: 600;
}

.family-documents-health .complete {
  color: var(--fd-green);
  font-weight: 700;
}

.family-documents-health .document-question-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 14px;
}

.family-documents-health .document-question-answer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  border: 1px solid #dcd9fb;
  border-radius: 12px;
  padding: 12px 14px;
  background: #f7f7ff;
}

.family-documents-health .document-answer-mark {
  display: grid;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  color: var(--fd-indigo);
  background: #eef0fe;
  font-weight: 800;
}

.family-documents-health .document-question-answer > div {
  flex: 1;
}

.family-documents-health .document-question-answer strong,
.family-documents-health .document-question-answer p {
  display: block;
  margin: 0;
}

.family-documents-health .document-question-answer strong {
  font-size: 12.5px;
}

.family-documents-health .document-question-answer p {
  margin-top: 2px;
  color: var(--fd-muted);
  font-size: 11.5px;
}

.family-documents-health .document-table-scroll {
  overflow-x: auto;
}

.family-documents-health .tbl {
  width: 100%;
  border-collapse: collapse;
}

.family-documents-health .tbl thead th {
  border-bottom: 1px solid var(--fd-line-2);
  padding: 0 14px 11px;
  color: var(--fd-faint);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.family-documents-health .tbl tbody td {
  border-bottom: 1px solid var(--fd-line-2);
  padding: 13px 14px;
  vertical-align: middle;
}

.family-documents-health .tbl tbody tr:last-child td {
  border-bottom: none;
}

.family-documents-health .tbl tbody tr.clik {
  cursor: pointer;
}

.family-documents-health .doc {
  display: flex;
  align-items: center;
  gap: 12px;
}

.family-documents-health .doc .dic {
  display: flex;
  flex-shrink: 0;
  width: 34px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--fd-indigo);
  background: #eef0fe;
  font-size: 16px;
}

.family-documents-health .doc .dn,
.family-documents-health .doc .da {
  display: block;
}

.family-documents-health .doc .dn {
  color: var(--fd-ink);
  font-size: 13.5px;
  font-weight: 700;
}

.family-documents-health .doc .da {
  color: var(--fd-faint);
  font-size: 11.5px;
}

.family-documents-health .terms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.family-documents-health .term {
  display: inline-block;
  border-radius: 6px;
  padding: 3px 8px;
  color: #4b5563;
  background: #f2f3f6;
  font-size: 11px;
  white-space: nowrap;
}

.family-documents-health .linked-asset {
  color: var(--fd-muted);
  font-size: 12px;
}

.family-documents-health .st {
  display: inline-block;
  border-radius: 20px;
  padding: 4px 9px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.family-documents-health .st.ok { color: var(--fd-slate); background: var(--fd-slate-bg); }
.family-documents-health .st.review { color: var(--fd-amber); background: var(--fd-amber-bg); }
.family-documents-health .st.conflict { color: var(--fd-red); background: var(--fd-red-bg); }

.family-documents-health .rowacts {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.family-documents-health .overlay {
  position: fixed;
  z-index: 70;
  inset: 0;
  display: none;
  align-items: flex-start;
  justify-content: center;
  overflow: auto;
  padding: 40px 20px;
  background: rgba(20, 20, 40, 0.42);
  backdrop-filter: blur(2px);
}

.family-documents-health .overlay.open {
  display: flex;
}

.family-documents-health .modal {
  width: 600px;
  max-width: 100%;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(20, 20, 50, 0.25);
}

.family-documents-health .mhead {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px solid var(--fd-line-2);
  padding: 20px 24px;
}

.family-documents-health .mhead .mic {
  display: flex;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: var(--fd-indigo);
  background: #eef0fe;
  font-size: 20px;
}

.family-documents-health .mhead h3 {
  margin: 0;
  color: var(--fd-ink);
  font-size: 17px;
}

.family-documents-health .mhead p {
  margin: 3px 0 0;
  color: var(--fd-muted);
  font-size: 12.5px;
}

.family-documents-health .mclose {
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 0;
  margin-left: auto;
  border: none;
  border-radius: 9px;
  padding: 0;
  color: var(--fd-muted);
  background: #f2f3f6;
  font-size: 16px;
  cursor: pointer;
}

.family-documents-health .mbody {
  max-height: 64vh;
  overflow: auto;
  padding: 20px 24px;
}

.family-documents-health .mfoot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--fd-line-2);
  padding: 16px 24px;
  background: #fbfbfd;
}

.family-documents-health .k2 {
  margin: 16px 0 10px;
  color: var(--fd-purple-a);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.family-documents-health .k2:first-child {
  margin-top: 2px;
}

.family-documents-health .noteline {
  margin: 8px 0;
  color: var(--fd-muted);
  font-size: 12.5px;
}

.family-documents-health .msum {
  display: flex;
  gap: 26px;
  margin-bottom: 6px;
  border: 1px solid var(--fd-line-2);
  border-radius: 12px;
  padding: 14px 16px;
  background: #f7f8fb;
}

.family-documents-health .msum .k {
  color: var(--fd-faint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.family-documents-health .msum .v {
  margin-top: 3px;
  color: var(--fd-ink);
  font-size: 18px;
  font-weight: 800;
}

.family-documents-health .msum .v.is-complete {
  color: var(--fd-green);
  font-size: 15px;
}

.family-documents-health .msum .v.is-incomplete {
  color: var(--fd-amber);
  font-size: 15px;
}

.family-documents-health .fact {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--fd-line-2);
  padding: 10px 0;
  font-size: 13px;
}

.family-documents-health .fact .fk {
  color: var(--fd-muted);
}

.family-documents-health .fact .fv {
  color: var(--fd-ink);
  font-weight: 600;
  text-align: right;
}

.family-documents-health .check {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 8px;
  border: 1px solid var(--fd-line);
  border-radius: 11px;
  padding: 10px 12px;
}

.family-documents-health .check .cb {
  display: flex;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
}

.family-documents-health .check .cb.yes {
  color: var(--fd-green);
  background: var(--fd-green-bg);
}

.family-documents-health .check .cb.no {
  color: var(--fd-red);
  background: var(--fd-red-bg);
}

.family-documents-health .check .cn,
.family-documents-health .check .cs {
  display: block;
}

.family-documents-health .check .cn {
  color: var(--fd-ink);
  font-size: 13px;
  font-weight: 600;
}

.family-documents-health .check .cs {
  color: var(--fd-faint);
  font-size: 11.5px;
}

.family-documents-health .check .cact {
  margin-left: auto;
}

.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-documents-health
  .m.clik:hover,
.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-documents-health
  .m.clik:focus-visible {
  transform: translateY(-1px) !important;
  border-color: var(--fd-line) !important;
  color: var(--fd-ink) !important;
  background: #fff !important;
  box-shadow: 0 6px 18px rgba(20, 20, 50, 0.09) !important;
}

.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-documents-health
  .m.feat:hover,
.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-documents-health
  .m.feat:focus-visible {
  border-color: transparent !important;
  color: #fff !important;
  background: linear-gradient(135deg, var(--fd-purple-a), var(--fd-purple-b)) !important;
}

.family-documents-health .m.clik:hover .drillarrow,
.family-documents-health .m.clik:focus-visible .drillarrow {
  opacity: 0.55;
}

.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-documents-health
  .btn:hover,
.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-documents-health
  .btn:focus-visible {
  border-color: var(--fd-line) !important;
  color: var(--fd-ink) !important;
  background: #fff !important;
  box-shadow: none !important;
}

.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-documents-health
  .btn.primary:hover,
.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-documents-health
  .btn.primary:focus-visible {
  border-color: var(--fd-indigo) !important;
  color: #fff !important;
  background: var(--fd-indigo) !important;
}

.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-documents-health
  .btn.ghost:hover,
.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-documents-health
  .btn.ghost:focus-visible {
  border-color: #dcd9fb !important;
  color: var(--fd-indigo) !important;
  background: #f6f5ff !important;
}

.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-documents-health
  .att:hover,
.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-documents-health
  .att:focus-visible {
  border-color: var(--fd-line-2) !important;
  color: var(--fd-ink) !important;
  background: #fff !important;
  box-shadow: none !important;
}

.family-documents-health .att:hover .attn,
.family-documents-health .att:focus-visible .attn {
  color: var(--fd-indigo);
}

.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-documents-health
  .segbtn .o:hover,
.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-documents-health
  .segbtn .o:focus-visible,
.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-documents-health
  .fchip:hover,
.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-documents-health
  .fchip:focus-visible {
  border-color: var(--fd-line) !important;
  color: #5b6472 !important;
  background: #fff !important;
  box-shadow: none !important;
}

.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-documents-health
  .segbtn .o.on:hover,
.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-documents-health
  .segbtn .o.on:focus-visible,
.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-documents-health
  .fchip.on:hover,
.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-documents-health
  .fchip.on:focus-visible {
  border-color: var(--fd-indigo) !important;
  color: #fff !important;
  background: var(--fd-indigo) !important;
}

.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-documents-health
  .pk:hover,
.app-shell.family-mode:not(.mobile-demo-active)
  #family-asset-iq-view
  .family-documents-health
  .pk:focus-visible {
  border-color: var(--fd-indigo-2) !important;
  color: var(--fd-ink) !important;
  background: #fff !important;
  box-shadow: 0 0 0 2px #eef0fe !important;
}

.family-documents-health .tbl tbody tr.clik:hover {
  background: #fafbfc;
}

@media (max-width: 1150px) {
  .family-documents-health .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .family-documents-health .intake,
  .family-documents-health .pkgrid {
    grid-template-columns: minmax(0, 1fr);
  }

  .family-documents-health .tbl {
    min-width: 1000px;
  }
}

@media (max-width: 760px) {
  .family-documents-health .metrics,
  .family-documents-health .acgrid {
    grid-template-columns: minmax(0, 1fr);
  }

  .family-documents-health .acleft {
    padding-right: 0;
  }

  .family-documents-health .acright {
    margin-top: 18px;
    border-top: 1px solid var(--fd-line-2);
    border-left: 0;
    padding-top: 18px;
    padding-left: 0;
  }

  .family-documents-health .document-question-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .family-documents-health .document-question-answer,
  .family-documents-health .mfoot {
    align-items: stretch;
    flex-direction: column;
  }

  .family-documents-health .mfoot .btn {
    width: 100%;
  }
}

/* Family Documents — exact shell and wireframe overrides */
.app-shell.family-mode.family-documents-active {
  grid-template-columns: 210px minmax(0, 1fr);
  background: #f3f4f7;
}

.app-shell.family-mode.family-documents-active .sidebar {
  width: 210px;
  border-right: 1px solid #e7e8ee;
  background: #fff;
  box-shadow: none;
}

.app-shell.family-mode.family-documents-active .sidebar-brand {
  padding: 22px 16px 0;
}

.app-shell.family-mode.family-documents-active .family-sidebar-wordmark {
  color: #141428;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.app-shell.family-mode.family-documents-active .family-sidebar-wordmark span {
  color: #6d5ef5;
}

.app-shell.family-mode.family-documents-active .family-sidebar-tagline {
  margin-top: 2px;
  color: #9ca3af;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 500;
}

.app-shell.family-mode.family-documents-active .family-nav-list {
  gap: 2px;
  margin-top: 26px;
  padding: 0 16px;
}

.app-shell.family-mode.family-documents-active .family-nav-list .nav-item {
  min-height: 0;
  border: 0 !important;
  border-radius: 10px;
  padding: 9px 12px;
  color: #4b5563 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  font-size: 13.5px;
  font-weight: 400;
}

.app-shell.family-mode.family-documents-active .family-nav-list .nav-item:hover,
.app-shell.family-mode.family-documents-active .family-nav-list .nav-item:focus-visible {
  color: #4b5563 !important;
  background: #f6f7fa !important;
}

.app-shell.family-mode.family-documents-active .family-nav-list .nav-item.is-active {
  color: #5b4fe0 !important;
  background: #eef0fe !important;
  font-weight: 600;
}

.app-shell.family-mode.family-documents-active .family-nav-list .support-nav-item {
  margin-top: 14px;
  border-top: 1px solid #e7e8ee !important;
  border-radius: 0 0 10px 10px;
  padding-top: 23px;
}

.app-shell.family-mode.family-documents-active .nav-item-mobile-demo,
.app-shell.family-mode.family-documents-active .sidebar-footer {
  display: none !important;
}

.app-shell.family-mode.family-documents-active .workspace {
  width: 100%;
  max-width: 1520px;
  padding: 26px 30px 60px;
  background: #f3f4f7;
}

.app-shell.family-mode.family-documents-active .topbar {
  display: grid !important;
  gap: 18px !important;
  margin: 0 0 22px !important;
  border: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

.app-shell.family-mode.family-documents-active .topbar .eyebrow {
  margin: 0 !important;
  color: #6d5ef5 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  line-height: 1.45;
}

.app-shell.family-mode.family-documents-active .topbar h1 {
  margin: 2px 0 0 !important;
  color: #141428 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  font-size: 27px !important;
  font-weight: 700 !important;
  letter-spacing: -0.5px !important;
  line-height: 1.2 !important;
}

.app-shell.family-mode.family-documents-active .alerts-top-button,
.app-shell.family-mode.family-documents-active .family-global-search-shortcut,
.app-shell.family-mode.family-documents-active .family-global-search-voice {
  display: none !important;
}

.app-shell.family-mode.family-documents-active .family-command-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
}

.app-shell.family-mode.family-documents-active .family-global-search-form {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  min-height: 0;
  border: 1px solid #e7e8ee;
  border-radius: 12px;
  padding: 12px 16px;
  background: #fff;
  box-shadow: none;
}

.app-shell.family-mode.family-documents-active .family-global-search-icon {
  color: #141428;
}

.app-shell.family-mode.family-documents-active .family-global-search-form input {
  color: #141428;
  font-size: 13.5px;
}

.app-shell.family-mode.family-documents-active .family-global-search-form input::placeholder {
  color: #9ca3af;
}

.app-shell.family-mode.family-documents-active .council-top-button,
.app-shell.family-mode.family-documents-active .avi-top-button {
  min-height: 0;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
}

.app-shell.family-mode.family-documents-active .council-top-button,
.app-shell.family-mode.family-documents-active .council-top-button:hover,
.app-shell.family-mode.family-documents-active .council-top-button:focus-visible {
  border: 1px solid #dcd9fb !important;
  color: #5b4fe0 !important;
  background: #f6f5ff !important;
  box-shadow: none !important;
}

.app-shell.family-mode.family-documents-active .avi-top-button,
.app-shell.family-mode.family-documents-active .avi-top-button:hover,
.app-shell.family-mode.family-documents-active .avi-top-button:focus-visible {
  border: 1px solid #efe1bd !important;
  color: #7a5b12 !important;
  background: #f6edd8 !important;
  box-shadow: none !important;
}

.app-shell.family-mode.family-documents-active #family-asset-iq-content,
.app-shell.family-mode.family-documents-active .family-documents-health {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

.app-shell.family-mode.family-documents-active
  #family-asset-iq-view
  .family-documents-health
  .eyebrow {
  color: #6d5ef5;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.app-shell.family-mode.family-documents-active
  #family-asset-iq-view
  .family-documents-health
  .sechead
  .eyebrow {
  font-size: 10.5px;
}

.app-shell.family-mode.family-documents-active
  #family-asset-iq-view
  .family-documents-health
  input,
.app-shell.family-mode.family-documents-active
  #family-asset-iq-view
  .family-documents-health
  select {
  border: 1px solid #e7e8ee;
  border-radius: 10px;
  padding: 11px 12px;
  color: #141428;
  background: #fff;
  box-shadow: none;
  font-size: 13.5px;
}

.app-shell.family-mode.family-documents-active
  #family-asset-iq-view
  .family-documents-health
  .drop {
  display: block;
  min-height: 0;
  margin-top: 10px;
  border: 1.5px dashed #cdd0da;
  border-radius: 14px;
  padding: 26px;
  color: #141428;
  background: #fafbfc;
  box-shadow: none;
  text-align: center;
}

.app-shell.family-mode.family-documents-active
  #family-asset-iq-view
  .family-documents-health
  .drop::after {
  display: none;
}

.app-shell.family-mode.family-documents-active
  #family-asset-iq-view
  .family-documents-health
  .drop:hover,
.app-shell.family-mode.family-documents-active
  #family-asset-iq-view
  .family-documents-health
  .drop:focus-visible {
  border-color: #cdd0da;
  background: #fafbfc;
  box-shadow: none;
}

.app-shell.family-mode.family-documents-active
  #family-asset-iq-view
  .family-documents-health
  .drop.is-dragging {
  border-color: #5b4fe0;
  background: #eef0fe;
}

.app-shell.family-mode.family-documents-active
  #family-asset-iq-view
  .family-documents-health
  .family-document-bulk-actions
  button {
  min-width: 0;
}

.app-shell.family-mode.family-documents-active .family-documents-health .document-question-row {
  display: block;
  margin-bottom: 14px;
}

.app-shell.family-mode.family-documents-active .family-documents-health .tbl {
  min-width: 0;
}

.app-shell.family-mode.family-documents-active .family-documents-health .document-question-answer {
  margin-top: -4px;
}

@media (max-width: 1150px) {
  .app-shell.family-mode.family-documents-active {
    grid-template-columns: 210px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .app-shell.family-mode.family-documents-active {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-shell.family-mode.family-documents-active .workspace {
    padding: 20px 18px 44px;
  }
}

/* Asset Reports — exact intelligent report studio wireframe */
.app-shell.family-mode.family-reports-active {
  grid-template-columns: 210px minmax(0, 1fr);
  background: #f3f4f7;
}

.app-shell.family-mode.family-reports-active .sidebar {
  width: 210px;
  border-right: 1px solid #e7e8ee;
  background: #fff;
  box-shadow: none;
}

.app-shell.family-mode.family-reports-active .sidebar-brand { padding: 22px 16px 0; }
.app-shell.family-mode.family-reports-active .family-sidebar-wordmark {
  color: #141428;
  font: 800 19px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: -0.3px;
}
.app-shell.family-mode.family-reports-active .family-sidebar-wordmark span { color: #6d5ef5; }
.app-shell.family-mode.family-reports-active .family-sidebar-tagline {
  margin-top: 2px;
  color: #9ca3af;
  font: 500 11px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}
.app-shell.family-mode.family-reports-active .family-nav-list { gap: 2px; margin-top: 26px; padding: 0 16px; }
.app-shell.family-mode.family-reports-active .family-nav-list .nav-item {
  min-height: 0;
  border: 0 !important;
  border-radius: 10px;
  padding: 9px 12px;
  color: #4b5563 !important;
  background: transparent !important;
  box-shadow: none !important;
  font: 400 13.5px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}
.app-shell.family-mode.family-reports-active .family-nav-list .nav-item:hover,
.app-shell.family-mode.family-reports-active .family-nav-list .nav-item:focus-visible { color: #4b5563 !important; background: #f6f7fa !important; }
.app-shell.family-mode.family-reports-active .family-nav-list .nav-item.is-active { color: #5b4fe0 !important; background: #eef0fe !important; font-weight: 600; }
.app-shell.family-mode.family-reports-active .family-nav-list .support-nav-item { margin-top: 14px; border-top: 1px solid #e7e8ee !important; border-radius: 0 0 10px 10px; padding-top: 23px; }
.app-shell.family-mode.family-reports-active .nav-item-mobile-demo,
.app-shell.family-mode.family-reports-active .sidebar-footer { display: none !important; }

.app-shell.family-mode.family-reports-active .workspace {
  width: 100%;
  max-width: 1520px;
  padding: 26px 30px 60px;
  background: #f3f4f7;
}
.app-shell.family-mode.family-reports-active .topbar {
  display: grid !important;
  gap: 18px !important;
  margin: 0 0 22px !important;
  border: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.app-shell.family-mode.family-reports-active .topbar .eyebrow {
  margin: 0 !important;
  color: #6d5ef5 !important;
  font: 700 11px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif !important;
  letter-spacing: 0.14em !important;
}
.app-shell.family-mode.family-reports-active .topbar h1 {
  margin: 2px 0 0 !important;
  color: #141428 !important;
  font: 700 27px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif !important;
  letter-spacing: -0.5px !important;
}
.app-shell.family-mode.family-reports-active .alerts-top-button,
.app-shell.family-mode.family-reports-active .family-global-search-shortcut,
.app-shell.family-mode.family-reports-active .family-global-search-voice { display: none !important; }
.app-shell.family-mode.family-reports-active .family-command-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; }
.app-shell.family-mode.family-reports-active .family-global-search-form {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  min-height: 0;
  border: 1px solid #e7e8ee;
  border-radius: 12px;
  padding: 12px 16px;
  background: #fff;
  box-shadow: none;
}
.app-shell.family-mode.family-reports-active .family-global-search-icon { color: #141428; }
.app-shell.family-mode.family-reports-active .family-global-search-form input { color: #141428; font-size: 13.5px; }
.app-shell.family-mode.family-reports-active .family-global-search-form input::placeholder { color: #9ca3af; }
.app-shell.family-mode.family-reports-active .council-top-button,
.app-shell.family-mode.family-reports-active .avi-top-button { min-height: 0; border-radius: 10px; padding: 10px 16px; font-size: 13px; font-weight: 600; }
.app-shell.family-mode.family-reports-active .council-top-button,
.app-shell.family-mode.family-reports-active .council-top-button:hover,
.app-shell.family-mode.family-reports-active .council-top-button:focus-visible { border: 1px solid #dcd9fb !important; color: #5b4fe0 !important; background: #f6f5ff !important; box-shadow: none !important; }
.app-shell.family-mode.family-reports-active .avi-top-button,
.app-shell.family-mode.family-reports-active .avi-top-button:hover,
.app-shell.family-mode.family-reports-active .avi-top-button:focus-visible { border: 1px solid #b8933f !important; color: #6f5310 !important; background: #f6edd8 !important; box-shadow: none !important; }

.family-report-studio-page {
  --rs-bg: #f3f4f7;
  --rs-panel: #fff;
  --rs-ink: #141428;
  --rs-muted: #6b7280;
  --rs-faint: #9ca3af;
  --rs-line: #e7e8ee;
  --rs-line-2: #eef0f4;
  --rs-indigo: #5b4fe0;
  --rs-indigo-2: #7c6bf0;
  --rs-purple-a: #6d5ef5;
  --rs-purple-b: #a855f7;
  --rs-green: #0fae7f;
  --rs-green-bg: #e7f7f0;
  --rs-amber: #c47f12;
  --rs-amber-bg: #fbf1dd;
  --rs-red: #d9534f;
  --rs-red-bg: #fdeceb;
  --rs-slate: #64748b;
  --rs-slate-bg: #eef1f6;
  color: var(--rs-ink);
  font: 400 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}
.family-report-studio-page *, .family-report-studio-page *::before, .family-report-studio-page *::after { box-sizing: border-box; }
.app-shell.family-mode.family-reports-active #family-asset-iq-view .family-report-studio-page .eyebrow {
  color: var(--rs-purple-a);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.family-report-studio-page .report-recent-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.family-report-studio-page .report-history-link,
.family-report-studio-page .family-report-preview-show { min-height: 0; border: 0; padding: 0; color: var(--rs-indigo); background: transparent; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.family-report-studio-page .rrstrip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.family-report-studio-page .rr { border: 1px solid var(--rs-line); border-radius: 14px; padding: 15px 16px; background: #fff; transition: 0.12s; }
.family-report-studio-page .rr:hover { border-color: var(--rs-indigo-2); box-shadow: 0 0 0 2px #eef0fe; }
.family-report-studio-page .rr .rn { font-size: 13.5px; font-weight: 700; }
.family-report-studio-page .rr .rm { margin-top: 3px; color: var(--rs-faint); font-size: 11.5px; }
.family-report-studio-page .rtag { display: inline-block; margin-top: 9px; border-radius: 20px; padding: 3px 8px; font-size: 10px; font-weight: 700; }
.family-report-studio-page .rtag.shared { color: var(--rs-green); background: var(--rs-green-bg); }
.family-report-studio-page .rtag.sched { color: var(--rs-indigo); background: #eef0fe; }
.family-report-studio-page .rtag.draft { color: var(--rs-slate); background: var(--rs-slate-bg); }
.family-report-studio-page .rr .rract { display: flex; gap: 7px; margin-top: 11px; }
.family-report-studio-page .rr .rract .btn { padding: 5px 10px; font-size: 11px; }

.family-report-studio-page .card { margin-bottom: 22px; border: 1px solid var(--rs-line); border-radius: 16px; padding: 22px; background: #fff; box-shadow: none; }
.family-report-studio-page .sechead { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.app-shell.family-mode.family-reports-active #family-asset-iq-view .family-report-studio-page .sechead .eyebrow { font-size: 10.5px; }
.family-report-studio-page .sechead h2 { margin: 2px 0 0; color: var(--rs-ink); font-size: 18px; font-weight: 700; letter-spacing: 0; }
.family-report-studio-page .count { border: 1px solid var(--rs-line); border-radius: 20px; padding: 3px 10px; color: var(--rs-faint); font-size: 11.5px; white-space: nowrap; }
.family-report-studio-page .desc { margin: -8px 0 16px; color: var(--rs-muted); font-size: 12.5px; }
.family-report-studio-page label { display: block; margin: 0 0 6px; color: #6b7280; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.app-shell.family-mode.family-reports-active #family-asset-iq-view .family-report-studio-page :is(input, select, textarea) {
  width: 100%;
  border: 1px solid var(--rs-line);
  border-radius: 10px;
  padding: 11px 12px;
  color: var(--rs-ink);
  background: #fff;
  box-shadow: none;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.45;
}
.family-report-studio-page .btn { min-height: 0; border: 1px solid var(--rs-line); border-radius: 10px; padding: 10px 16px; color: var(--rs-ink); background: #fff; box-shadow: none; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.family-report-studio-page .btn.ghost { border-color: #dcd9fb; color: var(--rs-indigo); background: #f6f5ff; }
.family-report-studio-page .btn.quinn { border-color: #b8933f; color: #6f5310; background: #f6edd8; }
.family-report-studio-page .btn.primary { border-color: var(--rs-indigo); color: #fff; background: var(--rs-indigo); }
.family-report-studio-page .btn.sm { padding: 7px 12px; font-size: 12.5px; }

.family-report-studio-page .opts3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.family-report-studio-page .catalog.col1 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 0; }
.family-report-studio-page .pk { display: block; width: 100%; min-height: 0; border: 1px solid var(--rs-line); border-radius: 12px; padding: 13px 14px; color: var(--rs-ink); background: #fff; box-shadow: none; text-align: left; cursor: pointer; transition: 0.12s; }
.family-report-studio-page .pk:hover { border-color: var(--rs-indigo-2); }
.family-report-studio-page .pk.on { border-color: var(--rs-indigo); background: #fbfbff; box-shadow: 0 0 0 2px #e6e3fb; }
.family-report-studio-page .pk .pkt { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; }
.family-report-studio-page .pk .pkd { display: block; margin-top: 4px; color: var(--rs-faint); font-size: 11.5px; line-height: 1.4; }
.family-report-studio-page .pk.saved { cursor: default; }
.family-report-studio-page .pk.saved:hover { border-color: var(--rs-line); }
.family-report-studio-page .lastrun { margin-top: 9px; color: var(--rs-faint); font-size: 11px; }
.family-report-studio-page .svacts { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.family-report-studio-page .svacts .btn { padding: 6px 10px; font-size: 11.5px; }
.family-report-studio-page .quinncard { display: flex; flex-direction: column; align-items: stretch; gap: 11px; border: 1px solid #eee4d0; border-radius: 14px; padding: 16px; background: #faf6ec; }
.family-report-studio-page .quinnhead { display: flex; align-items: center; gap: 10px; }
.family-report-studio-page .quinnhead b { color: #3f3a2c; font-size: 15px; font-weight: 800; }
.family-report-studio-page .qct { color: #6a5c33; font-size: 12.5px; line-height: 1.45; }
.app-shell.family-mode.family-reports-active #family-asset-iq-view .family-report-studio-page .quinncard input { border-color: #e7dcc0; color: #5a4a1e; background: #fffdf8; }
.family-report-studio-page .quinncard input::placeholder { color: #b09a68; }
.family-report-studio-page .quinncard .btn.quinn { width: 100%; justify-content: center; }
.family-report-studio-page .bloombox { position: relative; display: flex; flex-shrink: 0; width: 34px; height: 34px; align-items: center; justify-content: center; }
.family-report-studio-page .bloomwrap { position: absolute; top: 50%; left: 50%; width: 150px; height: 150px; transform: translate(-50%, -50%) scale(0.23); }
.family-report-studio-page .petal { position: absolute; bottom: 50%; left: 50%; width: 40px; height: 64px; margin-left: -20px; border-radius: 50% 50% 46% 46% / 62% 62% 38% 38%; opacity: 0.55; transform-origin: 50% 100%; animation: report-bloom 4.6s infinite ease-in-out; }
.family-report-studio-page .petal.c1 { background: linear-gradient(180deg, #c7d2fe, #818cf8); }
.family-report-studio-page .petal.c2 { background: linear-gradient(180deg, #ddd6fe, #a78bfa); }
.family-report-studio-page .petal.c3 { background: linear-gradient(180deg, #bbf7d0, #4ade80); }
.family-report-studio-page .petal.c4 { background: linear-gradient(180deg, #bae6fd, #38bdf8); }
.family-report-studio-page .pearl { position: absolute; z-index: 4; top: 50%; left: 50%; width: 32px; height: 32px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff, #e0e7ff 60%, #a5b4fc); box-shadow: 0 3px 14px rgba(99, 102, 241, 0.4); transform: translate(-50%, -50%); animation: report-pearl 4.6s infinite ease-in-out; }
@keyframes report-pearl { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.13); } }
@keyframes report-bloom { 0%, 100% { transform: rotate(calc(var(--a) * 0.16)) scale(0.86); opacity: 0.32; } 50% { transform: rotate(var(--a)) scale(1); opacity: 0.6; } }

.family-report-studio-page .cfgbar { margin-top: 18px; border-top: 1px solid var(--rs-line-2); padding-top: 18px; text-align: center; }
.family-report-studio-page .cfglabel { display: inline-block; margin-bottom: 10px; }
.family-report-studio-page .seg { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 6px; }
.family-report-studio-page .report-audience-segment { justify-content: center; }
.family-report-studio-page .seg .opt { min-height: 0; border: 1px solid var(--rs-line); border-radius: 20px; padding: 7px 13px; color: #5b6472; background: #fff; font-size: 12px; font-weight: 600; cursor: pointer; }
.family-report-studio-page .seg .opt.on { border-color: #c9c3f5; color: var(--rs-indigo); background: #eef0fe; }
.family-report-studio-page .audience-note { max-width: 520px; margin: 9px auto 0; }
.family-report-studio-page .chkrow { display: flex; align-items: center; gap: 9px; margin: 10px 0; font-size: 13px; }
.family-report-studio-page .chkrow input { width: auto !important; }
.family-report-studio-page .report-redact-toggle { justify-content: center; margin-top: 14px; color: var(--rs-ink); font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.family-report-studio-page .report-generate-row { margin-top: 16px; }

.family-report-studio-page .preview-hidden { color: var(--rs-muted); font-size: 13px; text-align: center; }
.family-report-studio-page .preview { overflow: hidden; border: 1px solid var(--rs-line); border-radius: 14px; background: #fff; }
.family-report-studio-page .pvhead { padding: 22px 26px; color: #fff; background: #141428; }
.family-report-studio-page .pvhead .pvk { color: rgba(255,255,255,0.6); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; }
.family-report-studio-page .pvhead h3 { margin: 4px 0 0; color: #fff; font-size: 22px; }
.family-report-studio-page .pvhead .pvmeta { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 16px; }
.family-report-studio-page .pvhead .pvmeta .k { color: rgba(255,255,255,0.55); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; }
.family-report-studio-page .pvhead .pvmeta .v { margin-top: 2px; color: #fff; font-size: 15px; font-weight: 700; }
.family-report-studio-page .pvbody { padding: 24px 26px; }
.family-report-studio-page .pvsum { margin-bottom: 20px; border: 1px solid var(--rs-line-2); border-radius: 12px; padding: 16px 18px; color: #374151; background: #f7f8fb; font-size: 13.5px; line-height: 1.6; }
.family-report-studio-page .pvsum .aitag { display: block; width: max-content; margin-bottom: 8px; border-radius: 20px; padding: 2px 8px; color: var(--rs-indigo); background: #eef0fe; font-size: 10px; font-weight: 700; letter-spacing: 0.04em; }
.family-report-studio-page .ov { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 22px; }
.family-report-studio-page .ovcard { border: 1px solid var(--rs-line-2); border-radius: 12px; padding: 15px 16px; }
.family-report-studio-page .ovcard h4 { margin: 0 0 12px; color: var(--rs-muted); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.family-report-studio-page .barrow { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.family-report-studio-page .barrow .bl { flex-shrink: 0; width: 120px; overflow: hidden; color: #4b5563; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.family-report-studio-page .barrow .bt { flex: 1; height: 9px; overflow: hidden; border-radius: 5px; background: #eef0f4; }
.family-report-studio-page .barrow .bt i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--rs-purple-a), var(--rs-purple-b)); }
.family-report-studio-page .barrow .bv { flex-shrink: 0; width: 70px; color: #4b5563; font-size: 11.5px; font-weight: 700; text-align: right; }
.family-report-studio-page .covbars i.ins { background: linear-gradient(90deg, #10b981, #34d399); }
.family-report-studio-page .covbars i.unk { background: linear-gradient(90deg, #e0a83b, #eec06a); }
.family-report-studio-page .covbars i.no { background: linear-gradient(90deg, #e06a66, #ec8f8b); }
.family-report-studio-page .viewfull { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px dashed #cdd0da; border-radius: 12px; padding: 14px 16px; background: #fafbff; }
.family-report-studio-page .vfnote { color: var(--rs-muted); font-size: 12px; }
.family-report-studio-page .viewfull-actions { display: flex; flex-shrink: 0; gap: 8px; }

.family-report-studio-page .overlay { position: fixed; z-index: 80; inset: 0; display: none; align-items: flex-start; justify-content: center; overflow: auto; padding: 40px 20px; background: rgba(20,20,40,0.42); backdrop-filter: blur(2px); }
.family-report-studio-page .overlay.open { display: flex; }
.family-report-studio-page .modal { width: 520px; max-width: 100%; overflow: hidden; border-radius: 20px; background: #fff; box-shadow: 0 24px 60px rgba(20,20,50,0.25); }
.family-report-studio-page .modal.lg { width: 900px; }
.family-report-studio-page .modal.lg .mbody { max-height: 74vh; padding: 0; }
.family-report-studio-page .mhead { display: flex; align-items: flex-start; gap: 12px; border-bottom: 1px solid var(--rs-line-2); padding: 20px 24px; }
.family-report-studio-page .mhead .mic { display: flex; flex-shrink: 0; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 11px; background: #eef0fe; font-size: 20px; }
.family-report-studio-page .mhead h3 { margin: 0; color: var(--rs-ink); font-size: 17px; }
.family-report-studio-page .mhead p { margin: 3px 0 0; color: var(--rs-muted); font-size: 12.5px; }
.family-report-studio-page .mclose { flex-shrink: 0; width: 30px; min-width: 30px; height: 30px; min-height: 0; margin-left: auto; border: 0; border-radius: 9px; padding: 0; color: #6b7280; background: #f2f3f6; font-size: 16px; cursor: pointer; }
.family-report-studio-page .mbody { max-height: 64vh; overflow: auto; padding: 20px 24px; }
.family-report-studio-page .mfoot { display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--rs-line-2); padding: 16px 24px; background: #fbfbfd; }
.family-report-studio-page .k2 { margin: 16px 0 10px; color: var(--rs-purple-a); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.family-report-studio-page .k2:first-child { margin-top: 2px; }
.family-report-studio-page .grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.family-report-studio-page .fld { margin-bottom: 14px; }
.family-report-studio-page .template-note { color: var(--rs-muted); font-size: 12px; }
.family-report-studio-page .audit { display: flex; justify-content: space-between; border-bottom: 1px solid var(--rs-line-2); padding: 8px 0; color: var(--rs-muted); font-size: 12px; }
.family-report-studio-page .rptwrap .pvhead { border-radius: 0; }
.family-report-studio-page .viewer-report-body { padding: 22px 26px; }
.family-report-studio-page .viewer-detail-label { margin: 6px 0 10px; color: var(--rs-muted); }
.family-report-studio-page .ctbl, .family-report-studio-page .rtbl { width: 100%; border-collapse: collapse; }
.family-report-studio-page .ctbl th, .family-report-studio-page .rtbl th { border-bottom: 1px solid var(--rs-line-2); padding: 0 12px 9px; color: var(--rs-faint); font-size: 10px; letter-spacing: 0.04em; text-align: left; text-transform: uppercase; }
.family-report-studio-page .ctbl td { border-bottom: 1px solid var(--rs-line-2); padding: 10px 12px; font-size: 12.5px; }
.family-report-studio-page .rtbl td { border-bottom: 1px solid var(--rs-line-2); padding: 11px 12px; font-size: 12.5px; }
.family-report-studio-page .ctbl .n { font-weight: 700; text-align: right; }
.family-report-studio-page .history-table-wrap { padding: 20px 24px; }
.family-report-studio-page .history-shared { color: var(--rs-faint); }

.app-shell.family-mode:not(.mobile-demo-active) #family-asset-iq-view .family-report-studio-page :is(.btn, .pk, .opt, .mclose):hover,
.app-shell.family-mode:not(.mobile-demo-active) #family-asset-iq-view .family-report-studio-page :is(.btn, .pk, .opt, .mclose):focus-visible { transform: none !important; }
.app-shell.family-mode:not(.mobile-demo-active) #family-asset-iq-view .family-report-studio-page .btn:hover,
.app-shell.family-mode:not(.mobile-demo-active) #family-asset-iq-view .family-report-studio-page .btn:focus-visible { border-color: var(--rs-line) !important; color: var(--rs-ink) !important; background: #fff !important; box-shadow: none !important; }
.app-shell.family-mode:not(.mobile-demo-active) #family-asset-iq-view .family-report-studio-page .btn.primary:hover,
.app-shell.family-mode:not(.mobile-demo-active) #family-asset-iq-view .family-report-studio-page .btn.primary:focus-visible { border-color: var(--rs-indigo) !important; color: #fff !important; background: var(--rs-indigo) !important; }
.app-shell.family-mode:not(.mobile-demo-active) #family-asset-iq-view .family-report-studio-page .btn.ghost:hover,
.app-shell.family-mode:not(.mobile-demo-active) #family-asset-iq-view .family-report-studio-page .btn.ghost:focus-visible { border-color: #dcd9fb !important; color: var(--rs-indigo) !important; background: #f6f5ff !important; }
.app-shell.family-mode:not(.mobile-demo-active) #family-asset-iq-view .family-report-studio-page .btn.quinn:hover,
.app-shell.family-mode:not(.mobile-demo-active) #family-asset-iq-view .family-report-studio-page .btn.quinn:focus-visible { border-color: #b8933f !important; color: #6f5310 !important; background: #f6edd8 !important; }

@media (max-width: 1150px) {
  .family-report-studio-page .rrstrip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .family-report-studio-page .opts3,
  .family-report-studio-page .ov { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .app-shell.family-mode.family-reports-active { grid-template-columns: minmax(0, 1fr); }
  .app-shell.family-mode.family-reports-active .workspace { padding: 20px 18px 44px; }
  .family-report-studio-page .rrstrip,
  .family-report-studio-page .grid2 { grid-template-columns: minmax(0, 1fr); }
  .family-report-studio-page .viewfull,
  .family-report-studio-page .viewfull-actions,
  .family-report-studio-page .mfoot { align-items: stretch; flex-direction: column; }
  .family-report-studio-page .viewfull-actions .btn,
  .family-report-studio-page .mfoot .btn { width: 100%; }
}

/* Keep Value Watch wireframe radii above the shared app button treatment. */
.app-shell.family-mode #family-asset-iq-view .family-value-watch-page .vw-metric { border-radius: 16px !important; }
.app-shell.family-mode #family-asset-iq-view .family-value-watch-page .vw-suggestion { border-radius: 10px !important; }
.app-shell.family-mode #family-asset-iq-view .family-value-watch-page .vw-btn { border-radius: 9px !important; }
.app-shell.family-mode #family-asset-iq-view .family-value-watch-page .vw-selected-asset button,
.app-shell.family-mode #family-asset-iq-view .family-value-watch-page .vw-link-button { border-radius: 0 !important; }
.app-shell.family-mode #family-asset-iq-view .family-value-watch-page .vw-more { border-radius: 8px !important; }
.app-shell.family-mode #family-asset-iq-view .family-value-watch-page .vw-inventory-row,
.app-shell.family-mode #family-asset-iq-view .family-value-watch-page .vw-metric-list button { border-radius: 10px !important; }
.app-shell.family-mode #family-asset-iq-view .family-value-watch-page .vw-sale-options button { border-radius: 12px !important; }
.app-shell.family-mode #family-asset-iq-view .family-value-watch-page .vw-modal > header button { border-radius: 9px !important; }
.app-shell.family-mode #family-asset-iq-view .family-value-watch-page .vw-switch { display: inline-flex !important; flex: 0 0 38px; width: 38px !important; height: 22px; margin: 0; }
.family-value-watch-page .vw-switch .sr-only { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; }
