:root {
  font-family: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #eef3fa;
  color: #1c2b4a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #eef3fa;
  color: #1c2b4a;
  line-height: 1.45;
}

body:has(.app-shell--landing) {
  background: #f8fbff;
}

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

h1,
h2,
h3 {
  color: #0f244a;
  margin-top: 0;
}

h1 {
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  margin: 0.4rem 0 0;
}

.wordmark-title {
  margin: 0;
  font-size: clamp(2.2rem, 3.8vw, 2.9rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0d2f61;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
  line-height: 1;
}

.ipi-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.18em;
}

.ipi-letter {
  display: inline-block;
}

.ipi-divider {
  width: 1px;
  height: 0.72em;
  background: linear-gradient(180deg, rgba(36, 90, 165, 0.05) 0%, rgba(36, 90, 165, 0.52) 28%, rgba(36, 90, 165, 0.52) 72%, rgba(36, 90, 165, 0.05) 100%);
  transform: translateY(0.02em);
}

.app-shell {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 18px 40px;
}

.app-shell--landing {
  max-width: none;
  padding: 0;
  background:
    linear-gradient(180deg, #f8fbff 0%, #f8fbff 78%, #f4f8fd 100%);
}

.app-shell--landing .main-panel {
  position: relative;
  z-index: 4;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #f8fbff;
  box-shadow: none;
}

.app-shell--landing .card:has(.landing-headline) {
  width: 100%;
  margin: 0;
  padding: clamp(28px, 3.4vw, 46px) clamp(22px, 6vw, 88px) clamp(28px, 4vw, 52px);
  border-top: 0;
  border-right: 0;
  border-left: 0;
  border-radius: 0 0 22px 22px;
  background:
    linear-gradient(180deg, #f8fbff 0%, #ffffff 34%, #fbfdff 100%);
  box-shadow: 0 16px 26px rgba(14, 44, 94, 0.07);
}

.app-shell--landing .card:has(.landing-headline)::before {
  top: 0;
  bottom: clamp(28px, 4vw, 52px);
  background:
    linear-gradient(180deg, rgba(40, 86, 155, 0) 0%, rgba(40, 86, 155, 0.16) 16%, #28569b 36%, #7aa77d 100%);
}

.header {
  border: 1px solid #dbe5f3;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 10px 24px rgba(11, 35, 80, 0.08);
}

.hero-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

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

.brand-mark {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  object-fit: contain;
}

.brand-mark.compact {
  width: 24px;
  height: 24px;
}

.brand-name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #12356f;
  letter-spacing: 0.01em;
}

.wordmark-compact {
  font-size: 1.04rem;
  font-weight: 800;
  letter-spacing: 0.018em;
  color: #123b78;
}

.hero-question-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.header-landing {
  position: relative;
  overflow: hidden;
  padding: 0;
  margin-bottom: 0;
  width: 100%;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
  border-color: #cfdcf0;
  background: #f8fbff;
  box-shadow: 0 14px 30px rgba(14, 44, 94, 0.085);
}

.header-landing::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  height: 4px;
  background: linear-gradient(90deg, #28569b 0%, #7aa77d 100%);
  opacity: 0.62;
  pointer-events: none;
}

.app-shell--landing .header-landing::before {
  display: none;
}

.app-shell--landing .header-landing::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  height: clamp(58px, 6.4vw, 98px);
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0) 0%, rgba(248, 251, 255, 0.2) 46%, rgba(248, 251, 255, 0.72) 78%, #f8fbff 100%);
}

.header-landing .hero-title-row {
  margin-bottom: 16px;
}

.header-landing .brand-home-link {
  gap: 18px;
}

.header-landing .brand-mark {
  width: 56px;
  height: 56px;
}

.landing-hero-art {
  position: relative;
  margin: 0;
  border: 0;
  border-radius: inherit;
  overflow: hidden;
  background: #f8fbff;
}

.landing-hero-art > .landing-hero-art-picture {
  display: block;
  width: 100%;
}

.landing-hero-art > .landing-hero-art-picture > img,
.landing-hero-art > img {
  display: block;
  width: 100%;
  height: min(53vw, calc(100vh - 72px));
  object-fit: cover;
  object-position: center top;
}

.landing-hero-brand-overlay {
  position: absolute;
  z-index: 2;
  top: clamp(28px, 4vw, 46px);
  left: clamp(30px, 4.5vw, 52px);
  gap: 16px;
  background: transparent;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.62));
}

.landing-hero-brand-overlay .brand-mark {
  width: clamp(46px, 4.8vw, 60px);
  height: clamp(46px, 4.8vw, 60px);
  background: transparent;
}

.landing-hero-brand-overlay .wordmark-title {
  font-size: clamp(2.05rem, 4vw, 3rem);
}

.hero-question-bubble {
  margin: 0;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #cbdcf2;
  border-radius: 12px;
  background:
    linear-gradient(180deg, #fbfdff 0%, #f3f8ff 100%);
  color: #253f68;
  font-weight: 720;
  font-size: 0.88rem;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.hero-question {
  margin: 10px 0 0;
  color: #2c436a;
}

.hero-question.follow-up {
  margin: 0;
  font-size: 0.9rem;
  color: #2f4a73;
}

.hero-support-callout {
  margin-top: 8px;
  padding: 11px 13px;
  border: 1px solid #cfdff3;
  border-radius: 12px;
  border-left: 4px solid #6f9b73;
  background:
    linear-gradient(180deg, #fbfdff 0%, #f3f8ff 100%);
  text-align: center;
}

.header-compact {
  padding: 12px 16px;
}

.compact-top-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.compact-brand-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-label {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #29497b;
  padding: 2px 8px;
  border-radius: 999px;
  background: #edf3ff;
}

.header-compact--signup .page-label {
  white-space: nowrap;
}

.compact-header-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}

@media (min-width: 761px) {
  .app-shell--internal .compact-top-bar:has(.compact-header-actions) {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
  }

  .app-shell--internal .compact-top-bar:has(.compact-header-actions) .page-label {
    justify-self: start;
  }

  .app-shell--internal .compact-top-bar:has(.compact-header-actions) .compact-header-actions {
    justify-self: end;
    margin-left: 0;
  }
}

.owner-proof-review-header-action {
  width: auto;
  min-width: 0;
  min-height: 34px;
  padding: 8px 12px;
  border-color: rgba(25, 69, 124, 0.42);
  border-radius: 999px;
  background:
    radial-gradient(circle at 82% 18%, rgba(136, 191, 234, 0.24), rgba(136, 191, 234, 0) 38%),
    linear-gradient(145deg, #153b70 0%, #215492 100%);
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(20, 56, 104, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  white-space: nowrap;
}

.owner-proof-review-header-action--approved,
.owner-proof-review-header-action--approved:disabled {
  border-color: rgba(168, 183, 201, 0.78);
  background:
    linear-gradient(145deg, #eef3f8 0%, #dce6f0 100%);
  color: #52667e;
  cursor: default;
  opacity: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.workflow-menu-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0;
  line-height: 1;
}

.workflow-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  border: 1px solid #bcd0ec;
  border-radius: 8px;
  background: #ffffff;
  color: #18417e;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1;
  padding: 0 9px;
  box-shadow: 0 4px 12px rgba(12, 36, 78, 0.08);
  cursor: pointer;
  margin: 0;
  box-sizing: border-box;
}

.workflow-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 230px;
  border: 1px solid #d8e3f4;
  border-radius: 14px;
  background: #ffffff;
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 8px 20px rgba(10, 34, 77, 0.1);
  z-index: 12;
}

.workflow-menu-wrap.open .workflow-menu-panel {
  display: flex;
}

.workflow-chip {
  display: flex;
  align-items: center;
  text-decoration: none;
  border: 1px solid #cbdbf2;
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #21457b;
  background: #f7faff;
}

.workflow-chip.active {
  border-color: #164185;
  background: linear-gradient(180deg, #245fb9 0%, #18458a 100%);
  color: #ffffff;
}

.main-panel {
  border: 1px solid #dbe5f3;
  border-radius: 18px;
  background: #f9fbff;
  padding: 12px;
  box-shadow: 0 10px 24px rgba(14, 44, 94, 0.07);
}

.card {
  border: 1px solid #e2e9f4;
  border-radius: 14px;
  background: #ffffff;
  padding: 16px;
}

.card:has(.landing-headline) {
  position: relative;
  overflow: hidden;
  padding: 24px 28px 26px;
  border-color: #ccdbee;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfdff 62%, #f7fbff 100%);
  box-shadow: 0 12px 26px rgba(14, 44, 94, 0.075);
}

.card:has(.landing-headline)::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #28569b 0%, #7aa77d 100%);
}

.landing-headline {
  max-width: 24ch;
  margin-bottom: 18px;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.12;
}

.landing-tagline {
  max-width: 100%;
  margin-bottom: 16px;
  border-color: #c9d9ef;
  background:
    linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  color: #132e5c;
  font-size: 1.02rem;
}

@media (min-width: 681px) {
  .landing-headline {
    max-width: 31ch;
  }

  .landing-headline-line {
    display: block;
    white-space: nowrap;
  }
}

.landing-actions {
  margin-top: 20px;
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e2e9f4;
  padding: 8px 0;
}

.label {
  font-weight: 700;
  color: #13315f;
}

.row-value {
  margin-left: auto;
  min-width: 0;
  max-width: min(64%, 640px);
  text-align: right;
  justify-self: end;
  overflow-wrap: anywhere;
  line-height: 1.4;
}

.investor-proof-summary-row {
  align-items: flex-start;
}

.investor-proof-summary-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.investor-proof-summary-label .ipi-writing-tools {
  margin: 0;
}

.investor-proof-summary-value {
  align-self: flex-start;
  text-align: right;
}

.investor-proof-summary-value .proof-summary-display-plain {
  text-align: right;
  margin-left: auto;
}

.investor-proof-summary-value .proof-summary-display-formatted {
  display: inline-block;
  text-align: left;
  list-style-position: outside;
  padding-left: 1.1rem;
  margin-top: 0;
  margin-bottom: 0;
  max-width: 100%;
}

.button-group {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.company-settings-internal-actions {
  align-items: center;
  justify-content: flex-start;
  padding-left: 8px;
}

.company-settings-internal-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  height: 42px;
  padding: 9px 12px;
  margin-top: 0;
  line-height: 1;
  box-sizing: border-box;
}

.company-settings-logout-button {
  margin-left: 2px;
}

.company-settings-back-control.route-return-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  align-self: center;
  margin: 0;
  box-sizing: border-box;
}

.company-settings-editable-value {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.company-settings-editable-value > span {
  min-width: 0;
}

.company-settings-edit-button,
.company-settings-inline-save {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(122, 154, 198, 0.42);
  border-radius: 50%;
  color: #17365f;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(232, 242, 253, 0.94));
  box-shadow: 0 7px 16px rgba(22, 52, 91, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.94);
  cursor: pointer;
}

.company-settings-edit-button {
  width: 32px;
  height: 32px;
}

.company-settings-edit-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.company-settings-inline-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: min(100%, 620px);
}

.company-settings-inline-input-wrap {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.company-settings-inline-textarea {
  width: 100%;
  min-height: 72px;
  border: 1px solid rgba(122, 154, 198, 0.42);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(238, 247, 255, 0.92));
  color: #102346;
  font: inherit;
  line-height: 1.42;
  padding: 10px 11px;
  resize: vertical;
  box-sizing: border-box;
}

.company-settings-limit-note {
  width: fit-content;
  border: 1px solid rgba(122, 154, 198, 0.42);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(232, 242, 253, 0.94));
  color: #244f86;
  font-size: 0.73rem;
  font-weight: 850;
  line-height: 1;
  padding: 5px 8px;
}

.company-settings-inline-save {
  width: 36px;
  height: 36px;
  font-size: 1rem;
  font-weight: 900;
}

.company-settings-inline-save:disabled {
  opacity: 0.52;
  cursor: not-allowed;
  filter: grayscale(0.16);
}

.workspace-settings-overview,
.workspace-settings-account {
  border: 1px solid rgba(174, 202, 234, 0.66);
  border-radius: 14px;
  background:
    radial-gradient(circle at 86% 18%, rgba(168, 210, 242, 0.26), rgba(168, 210, 242, 0) 38%),
    linear-gradient(142deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 255, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94), 0 12px 28px rgba(22, 52, 91, 0.07);
  padding: 16px;
}

.workspace-settings-overview {
  display: grid;
  gap: 10px;
}

.workspace-settings-overview h2 {
  margin: 0;
  color: #10284a;
  font-size: clamp(1.6rem, 3vw, 2.05rem);
  letter-spacing: 0;
}

.workspace-settings-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.workspace-settings-meta span {
  border: 1px solid rgba(159, 190, 226, 0.56);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #29486e;
  font-size: 0.86rem;
  font-weight: 800;
  padding: 7px 10px;
}

.workspace-settings-account {
  display: grid;
  gap: 10px;
}

.workspace-settings-account .account-settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.auth-summary-actions {
  margin-top: 0;
  margin-left: auto;
}

.operator-status-strip--dashboard,
.operator-status-strip--users-roles,
.operator-status-strip--company-settings {
  position: relative;
  align-items: center;
  padding: 10px 12px;
  background:
    radial-gradient(circle at 86% 14%, rgba(126, 184, 228, 0.18), rgba(126, 184, 228, 0) 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(238, 247, 255, 0.92));
}

.operator-status-strip--dashboard .auth-summary-actions,
.operator-status-strip--users-roles .auth-summary-actions,
.operator-status-strip--ha-invitation .auth-summary-actions,
.operator-status-strip--company-settings .auth-summary-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
}

.operator-status-strip--dashboard .auth-summary-actions .button-small,
.operator-status-strip--users-roles .auth-summary-actions .button-small,
.operator-status-strip--ha-invitation .auth-summary-actions .button-small,
.operator-status-strip--company-settings .auth-summary-actions .button-small {
  min-height: 36px;
  width: auto;
  flex: 0 0 auto;
}

.operator-status-strip--dashboard .auth-summary-actions .button,
.operator-status-strip--dashboard .auth-summary-actions .button-small,
.operator-status-strip--company-settings .auth-summary-actions .button,
.operator-status-strip--company-settings .auth-summary-actions .button-small {
  height: 38px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.operator-status-strip--dashboard .operating-notification-bell {
  height: 38px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transform: translateY(1px);
}

.operator-status-strip--dashboard .operating-notification-bell__button {
  width: 38px;
  height: 38px;
  min-height: 38px;
  flex: 0 0 38px;
}

.operator-status-strip--users-roles .auth-summary-actions,
.operator-status-strip--ha-invitation .auth-summary-actions {
  align-items: center;
  margin-top: 0;
  min-height: 36px;
}

.operator-status-strip--users-roles .route-return-icon,
.operator-status-strip--ha-invitation .route-return-icon {
  align-self: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  margin: 0;
  transform: none;
}

.operator-status-strip--users-roles .owner-users-roles-status-back,
.operator-status-strip--ha-invitation .owner-ha-invitation-status-back {
  margin: 0;
}

.operator-status-minimal {
  margin: 10px 0 0;
  font-size: 0.88rem;
  color: #35527d;
}

.operator-status-strip {
  margin-top: 10px;
  border: 1px solid #d7e3f5;
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.operator-status-meta {
  min-width: 0;
  flex: 1 1 auto;
}

.operator-status-row {
  margin: 0;
  font-size: 0.82rem;
  color: #28497b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-pricing-toggle {
  font-size: 0.8rem;
}

.pricing-toggle-panel {
  border: 1px solid #dbe6f6;
  border-radius: 16px;
  background: linear-gradient(180deg, #fafdff 0%, #f4f8ff 100%);
  box-shadow: 0 8px 18px rgba(13, 40, 86, 0.08);
  padding: 14px;
  margin-bottom: 14px;
}

.pricing-toggle-panel-header h3 {
  margin: 0;
}

.pricing-toggle-panel-header p {
  margin: 4px 0 0;
  color: #35557f;
  font-size: 0.9rem;
}

.conversion-ask-panel {
  border: 1px solid #cfdcf0;
  border-radius: 12px;
  background: linear-gradient(180deg, #fafdff 0%, #f2f7ff 100%);
  padding: 13px;
  margin-top: 14px;
}

.conversion-ask-kicker {
  margin: 0 0 4px;
  color: #49668d;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.conversion-ask-panel h3 {
  margin: 0 0 6px;
  color: #163f76;
}

.conversion-ask-panel p {
  margin: 0;
  color: #2d4a72;
  line-height: 1.5;
}

.conversion-ask-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.conversion-ask-list span {
  border: 1px solid #c8d8ee;
  border-radius: 999px;
  background: #ffffff;
  color: #254b7e;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 9px;
}

.conversion-ask-actions {
  margin-top: 2px;
}

.audit-conversion-recap,
.company-plans-hero {
  border: 1px solid #cfdcf0;
  border-radius: 14px;
  background:
    linear-gradient(180deg, #fbfdff 0%, #f3f8ff 100%);
  padding: 14px;
  margin-top: 14px;
}

.audit-conversion-recap h3,
.company-plans-hero h2 {
  margin: 0 0 6px;
  color: #153a6f;
}

.company-plans-hero p {
  margin: 0;
  color: #2d4a72;
  line-height: 1.5;
}

.company-plan-path {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.company-plan-path span {
  border: 1px solid #cbdaf0;
  border-radius: 10px;
  background: #ffffff;
  color: #234b7e;
  font-size: 0.82rem;
  font-weight: 760;
  padding: 8px 9px;
  text-align: center;
}

.public-dashboard-shell {
  display: grid;
  gap: 14px;
}

.public-dashboard-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid #c9d8ec;
  border-radius: 14px;
  background:
    linear-gradient(135deg, #ffffff 0%, #f7fbff 54%, #eef6ff 100%);
  padding: 18px;
  box-shadow: 0 12px 28px rgba(13, 42, 84, 0.085);
}

.public-dashboard-hero::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #28569b 0%, #7aa77d 100%);
}

.public-dashboard-hero h2 {
  max-width: 780px;
  margin: 4px 0 6px;
  font-size: clamp(1.42rem, 3.2vw, 2.12rem);
  line-height: 1.14;
  color: #102d5c;
}

.public-dashboard-hero p:not(.conversion-ask-kicker) {
  max-width: 720px;
  margin: 0;
  color: #2b4d76;
  line-height: 1.52;
}

.public-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 12px;
  align-items: stretch;
}

.public-dashboard-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #d2dfef;
  border-radius: 12px;
  background: #ffffff;
  padding: 14px;
  box-shadow: 0 8px 20px rgba(17, 47, 88, 0.06);
}

.public-dashboard-claim-card {
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.public-dashboard-next-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  border-color: #bdd0e8;
  background:
    linear-gradient(180deg, #fafdff 0%, #f1f7ff 100%);
}

.public-dashboard-card-label,
.public-dashboard-chain-step span {
  display: inline-flex;
  width: fit-content;
  color: #537095;
  font-size: 0.74rem;
  font-weight: 780;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.public-dashboard-card h3 {
  margin: 6px 0 12px;
  color: #153a6f;
  line-height: 1.22;
}

.public-dashboard-next-card p {
  margin: 0;
  color: #2f5079;
  line-height: 1.5;
}

.public-dashboard-row-list {
  display: grid;
  border: 1px solid #dce6f4;
  border-radius: 10px;
  overflow: hidden;
}

.public-dashboard-row {
  display: grid;
  grid-template-columns: minmax(118px, 34%) minmax(0, 1fr);
  gap: 10px;
  padding: 9px 10px;
  background: #fbfdff;
}

.public-dashboard-row + .public-dashboard-row {
  border-top: 1px solid #e3ebf6;
}

.public-dashboard-row span {
  color: #5a6f8f;
  font-size: 0.82rem;
  font-weight: 700;
}

.public-dashboard-row strong {
  color: #1b3d68;
  line-height: 1.35;
}

.public-dashboard-actions {
  align-items: center;
  margin-top: 2px;
}

.public-dashboard-chain {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}

.public-dashboard-chain-step {
  min-height: 110px;
  border: 1px solid #d4e1f2;
  border-radius: 12px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  padding: 11px;
}

.public-dashboard-chain-step strong {
  display: block;
  margin-top: 8px;
  color: #193b67;
  font-size: 0.92rem;
  line-height: 1.36;
}

.public-objective-entry-bridge {
  display: grid;
  gap: 8px;
  border: 1px solid #c9d8ec;
  border-radius: 14px;
  background:
    linear-gradient(135deg, #ffffff 0%, #f7fbff 54%, #eef6ff 100%);
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 12px 28px rgba(13, 42, 84, 0.085);
}

.public-objective-entry-bridge h2 {
  margin: 0;
  color: #102d5c;
  font-size: clamp(1.34rem, 2.8vw, 1.9rem);
  line-height: 1.16;
}

.public-objective-entry-bridge p:not(.conversion-ask-kicker) {
  max-width: 760px;
  margin: 0;
  color: #2b4d76;
  line-height: 1.52;
}

.public-objective-entry-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.public-objective-entry-facts span {
  display: inline-flex;
  gap: 6px;
  border: 1px solid #d2dfef;
  border-radius: 999px;
  background: #fbfdff;
  color: #274a72;
  padding: 7px 10px;
  line-height: 1.35;
}

.public-objective-entry-facts strong {
  color: #153a6f;
}

.public-ha-invitation-shell {
  position: relative;
  min-height: min(500px, calc(100dvh - 220px));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 2.4vw, 22px);
}

.public-ha-invitation-bubble {
  position: relative;
  width: min(100%, 620px);
  border: 1px solid #c4d7ef;
  border-radius: 20px;
  background:
    radial-gradient(circle at 84% 12%, rgba(101, 182, 237, 0.24), rgba(101, 182, 237, 0) 28%),
    radial-gradient(circle at 18% 82%, rgba(34, 91, 153, 0.14), rgba(34, 91, 153, 0) 28%),
    linear-gradient(145deg, #ffffff 0%, #f4f9ff 54%, #e6f1ff 100%);
  padding: clamp(18px, 2.7vw, 24px);
  box-shadow: 0 22px 48px rgba(15, 42, 82, 0.14);
  animation: public-ha-invitation-enter 640ms cubic-bezier(0.22, 0.74, 0.2, 1) both;
}

.public-ha-invitation-definition {
  width: min(100%, 360px);
  margin: 0 auto;
  border: 1px solid #c7d9f0;
  border-radius: 16px;
  background:
    radial-gradient(circle at 86% 18%, rgba(122, 193, 239, 0.24), rgba(122, 193, 239, 0) 30%),
    linear-gradient(145deg, #ffffff 0%, #f5f9ff 50%, #e7f1ff 100%);
  padding: 14px 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 12px 22px rgba(19, 52, 98, 0.08);
}

.public-ha-invitation-copy {
  margin: 0;
  color: #21446f;
  font-size: clamp(0.92rem, 1.5vw, 1.08rem);
  font-weight: 560;
  line-height: 1.42;
}

.public-ha-invitation-copy span {
  display: block;
}

.public-ha-invitation-copy span:first-child {
  font-weight: 700;
}

.public-ha-invitation-copy span:first-child,
.public-ha-invitation-slot span:first-child {
  white-space: nowrap;
}

.public-ha-invitation-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 12px;
}

.public-ha-invitation-divider::before,
.public-ha-invitation-divider span,
.public-ha-invitation-divider::after {
  content: "";
  width: min(82px, 18vw);
  height: 1px;
  background: linear-gradient(90deg, rgba(153, 173, 201, 0), rgba(153, 173, 201, 0.72), rgba(153, 173, 201, 0));
}

.public-ha-invitation-slot {
  max-height: 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
  margin: 0;
  color: #15345f;
  opacity: 0;
  transform: translateY(8px);
  animation: public-ha-invitation-slot-rise 420ms cubic-bezier(0.22, 0.74, 0.2, 1) var(--public-ha-slot-delay, 1800ms) both;
}

.public-ha-invitation-slot p {
  margin: 0;
  border: 1px solid rgba(163, 189, 224, 0.78);
  border-radius: 16px;
  background: linear-gradient(180deg, #1d4f9c 0%, #153b75 100%);
  color: #ffffff;
  padding: 10px 16px;
  font-size: clamp(0.82rem, 1.4vw, 0.98rem);
  font-weight: 600;
  line-height: 1.35;
  box-shadow: 0 14px 24px rgba(17, 49, 98, 0.14);
}

.public-ha-invitation-slot span {
  display: block;
}

.public-ha-invitation-flow {
  display: grid;
  gap: 12px;
  animation: public-ha-invitation-flow-lift 420ms cubic-bezier(0.22, 0.74, 0.2, 1) var(--public-ha-slot-delay, 1800ms) both;
}

.public-ha-invitation-fields {
  display: grid;
  width: min(100%, 360px);
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0 auto;
}

.public-ha-invitation-field {
  min-height: 76px;
  display: grid;
  gap: 10px;
  align-content: center;
  border: 1px solid #c7d9f0;
  border-radius: 14px;
  background:
    radial-gradient(circle at 86% 18%, rgba(122, 193, 239, 0.24), rgba(122, 193, 239, 0) 30%),
    linear-gradient(145deg, #ffffff 0%, #f5f9ff 50%, #e7f1ff 100%);
  padding: 14px 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 12px 22px rgba(19, 52, 98, 0.08);
}

.public-ha-invitation-field > span {
  color: #5b7392;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: uppercase;
}

.public-ha-invitation-field strong {
  min-height: 1.45em;
  color: #122f5d;
  font-size: clamp(1.08rem, 2vw, 1.24rem);
  font-weight: 620;
  line-height: 1.45;
}

.public-ha-invitation-email .pre-frame-typed-copy.is-active::after {
  background: rgba(18, 47, 93, 0.68);
}

.public-ha-invitation-confirmation {
  position: relative;
  width: 68px;
  height: 68px;
  margin: 4px auto 0;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 30%, rgba(138, 205, 246, 0.45), rgba(138, 205, 246, 0) 48%),
    linear-gradient(180deg, #1d4f9c 0%, #153b75 100%);
  box-shadow: 0 18px 28px rgba(17, 49, 98, 0.18);
  opacity: 0;
  animation: public-ha-invitation-check-bounce var(--public-ha-confirmation-duration, 900ms) cubic-bezier(0.22, 0.74, 0.2, 1) var(--public-ha-confirmation-delay, 2720ms) 3 both;
}

.public-ha-invitation-check {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
}

.public-ha-invitation-check {
  font-size: 1.8rem;
}

.app-shell[data-public-locale="ja"] .public-ha-invitation-copy,
.app-shell[data-public-locale="ja"] .public-ha-invitation-slot p,
.app-shell[data-public-locale="ja"] .public-ha-invitation-field strong,
.app-shell[data-public-locale="ja"] .public-ha-waiting-lead,
.app-shell[data-public-locale="ja"] .public-ha-waiting-line,
.app-shell[data-public-locale="ja"] .public-ha-confirmation-copy p,
.app-shell[data-public-locale="ja"] .public-pricing-signup-lead,
.app-shell[data-public-locale="ja"] .public-pricing-signup-line {
  overflow-wrap: anywhere;
}

.app-shell[data-public-locale="ja"] .public-ha-invitation-copy span:first-child,
.app-shell[data-public-locale="ja"] .public-ha-invitation-slot span:first-child,
.app-shell[data-public-locale="ja"] .public-ha-waiting-lead,
.app-shell[data-public-locale="ja"] .public-pricing-signup-lead,
.app-shell[data-public-locale="ja"] .public-pricing-signup-line {
  white-space: normal;
}

@media (min-width: 701px) {
  .app-shell[data-public-locale="ja"] .public-ha-invitation-definition,
  .app-shell[data-public-locale="ja"] .public-ha-invitation-fields {
    width: min(100%, 430px);
  }

  .app-shell[data-public-locale="ja"] .public-ha-invitation-slot p {
    max-width: min(100%, 430px);
  }
}

.public-ha-desktop-controls {
  position: absolute;
  right: clamp(20px, 4vw, 40px);
  bottom: clamp(20px, 4vw, 36px);
}

.public-ha-desktop-controls .pre-frame-forward-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.public-ha-waiting-shell {
  position: relative;
  min-height: min(520px, calc(100dvh - 206px));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vw, 40px);
}

.public-ha-waiting-copy {
  width: min(100%, 760px);
  color: #374151;
}

.public-ha-waiting-lead,
.public-ha-waiting-line {
  margin: 0;
  min-height: 1.4em;
  color: #374151;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 500;
  line-height: 1.4;
  opacity: 0;
  animation: pre-frame-truth-show 1ms linear both;
  animation-delay: var(--public-ha-waiting-line-delay, 0ms);
}

.public-ha-waiting-lead {
  white-space: nowrap;
}

.public-ha-waiting-divider {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin: 18px 0 16px;
  opacity: 0;
  transform: translateY(8px);
  animation: public-ha-waiting-rise 420ms cubic-bezier(0.22, 0.74, 0.2, 1) var(--public-ha-waiting-bubble-delay, 0ms) both;
}

.public-ha-waiting-divider::before,
.public-ha-waiting-divider span,
.public-ha-waiting-divider::after {
  content: "";
  width: min(82px, 18vw);
  height: 1px;
  background: linear-gradient(90deg, rgba(153, 173, 201, 0), rgba(153, 173, 201, 0.72), rgba(153, 173, 201, 0));
}

.public-ha-waiting-bubble {
  width: min(100%, 560px);
  border: 1px solid #c7d9f0;
  border-radius: 16px;
  background:
    radial-gradient(circle at 86% 18%, rgba(122, 193, 239, 0.24), rgba(122, 193, 239, 0) 30%),
    linear-gradient(145deg, #ffffff 0%, #f5f9ff 50%, #e7f1ff 100%);
  padding: 14px 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 12px 22px rgba(19, 52, 98, 0.08);
  opacity: 0;
  transform: translateY(8px);
  animation: public-ha-waiting-rise 420ms cubic-bezier(0.22, 0.74, 0.2, 1) var(--public-ha-waiting-bubble-delay, 0ms) both;
}

.public-ha-waiting-line + .public-ha-waiting-line {
  margin-top: 8px;
}

.human-agent-truth-ready-shell .public-ha-waiting-line {
  animation: none;
  opacity: 1;
  transform: none;
}

@media (min-width: 701px) {
  .public-ha-waiting-line {
    font-size: clamp(1.066rem, 1.64vw, 1.394rem);
  }
}

.app-shell--ha-perspective {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: none;
  min-height: 100vh;
  padding-left: max(18px, calc((100vw - 1040px) / 2));
  padding-right: max(18px, calc((100vw - 1040px) / 2));
  background:
    radial-gradient(circle at 18% 8%, rgba(103, 174, 226, 0.22), rgba(103, 174, 226, 0) 28%),
    radial-gradient(circle at 86% 84%, rgba(35, 102, 169, 0.28), rgba(35, 102, 169, 0) 32%),
    linear-gradient(180deg, #122949 0%, #0d2240 100%);
}

.app-shell--ha-perspective::before {
  content: "";
  position: fixed;
  inset: -18%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.58;
  background:
    linear-gradient(
      135deg,
      transparent 0 14%,
      rgba(228, 237, 248, 0.44) 15% 25%,
      transparent 26% 38%,
      rgba(228, 237, 248, 0.36) 39% 49%,
      transparent 50% 62%,
      rgba(228, 237, 248, 0.28) 63% 73%,
      transparent 74% 100%
    );
  animation: public-ha-perspective-wisps 7s ease-in-out infinite alternate;
}

.app-shell--ha-perspective > * {
  position: relative;
  z-index: 1;
}

.app-shell--ha-perspective .header {
  border-color: rgba(208, 223, 244, 0.74);
  box-shadow: 0 16px 34px rgba(5, 18, 42, 0.26);
}

.app-shell--ha-perspective .card {
  border-color: rgba(196, 216, 241, 0.82);
  background:
    radial-gradient(circle at 84% 10%, rgba(119, 193, 238, 0.18), rgba(119, 193, 238, 0) 28%),
    linear-gradient(180deg, #f9fbff 0%, #edf4ff 100%);
  box-shadow: 0 24px 56px rgba(4, 18, 42, 0.3);
}

.app-shell--ha-settings {
  overflow: auto;
  background:
    radial-gradient(circle at 18% 8%, rgba(124, 184, 229, 0.2), rgba(124, 184, 229, 0) 30%),
    linear-gradient(180deg, #eef5fe 0%, #f8fbff 100%);
}

.app-shell--ha-settings::before {
  display: none;
}

.app-shell--ha-settings .header,
.app-shell--ha-settings .card {
  box-shadow: 0 18px 42px rgba(16, 46, 88, 0.12);
}

.public-ha-truth-shell {
  position: relative;
  display: grid;
  gap: 20px;
  padding: clamp(16px, 2.8vw, 24px);
}

.public-ha-truth-header {
  display: grid;
  gap: 10px;
}

.public-ha-truth-kicker,
.public-ha-truth-intro {
  margin: 0;
  color: #24466f;
}

.public-ha-truth-kicker {
  font-size: clamp(1.12rem, 2vw, 1.34rem);
  font-weight: 720;
}

.public-ha-truth-intro {
  max-width: 680px;
}

.public-ha-truth-identifier {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(175, 198, 229, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  padding: 7px;
  color: #21446f;
}

.public-ha-truth-identifier strong {
  border-radius: 999px;
  background: linear-gradient(180deg, #1d4f9c 0%, #153b75 100%);
  color: #ffffff;
  padding: 5px 10px;
  font-size: 0.86rem;
}

.public-ha-truth-form {
  display: grid;
  gap: 18px;
}

.public-ha-truth-grid {
  display: grid;
  grid-template-columns: minmax(0, min(100%, 560px));
  gap: 12px;
}

.public-ha-truth-field {
  position: relative;
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 7px;
  border: 1px solid rgba(181, 203, 232, 0.96);
  border-radius: 14px;
  background:
    radial-gradient(circle at 84% 14%, rgba(123, 193, 240, 0.18), rgba(123, 193, 240, 0) 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.96));
  padding: 14px 48px 14px 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 14px 22px rgba(16, 42, 82, 0.08);
}

.public-ha-truth-field > span {
  color: #5c7392;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.public-ha-truth-field strong {
  min-height: 1.4em;
  color: #132f5e;
  font-size: clamp(1rem, 1.7vw, 1.14rem);
  font-weight: 650;
}

.public-ha-truth-edit,
.human-agent-truth-confirm-button {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(173, 197, 229, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: #20467a;
  transform: translateY(-50%);
}

.human-agent-truth-edit-button {
  right: 48px;
  cursor: pointer;
}

.human-agent-truth-confirm-button {
  right: 14px;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(180deg, #1d4f9c 0%, #153b75 100%);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 8px 14px rgba(16, 54, 110, 0.2);
  transform: translateY(-50%) scale(0.92);
  transition: opacity 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.human-agent-truth-field.is-editing .human-agent-truth-confirm-button,
.human-agent-truth-field.is-confirmed .human-agent-truth-confirm-button {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}

.human-agent-truth-field.is-confirmed {
  border-color: rgba(61, 111, 181, 0.5);
  background:
    radial-gradient(circle at 84% 14%, rgba(74, 134, 215, 0.16), rgba(74, 134, 215, 0) 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(226, 239, 255, 0.82));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 0 0 1px rgba(54, 105, 178, 0.16),
    0 14px 22px rgba(16, 42, 82, 0.08);
  animation: human-agent-truth-confirm-field 520ms cubic-bezier(0.22, 0.74, 0.2, 1) both;
}

.human-agent-truth-field.is-confirmed .human-agent-truth-confirm-button {
  background: linear-gradient(180deg, #2d67ba 0%, #194883 100%);
  box-shadow: 0 8px 14px rgba(25, 72, 131, 0.2);
}

@keyframes human-agent-truth-confirm-field {
  0% {
    transform: translateY(0);
  }

  45% {
    transform: translateY(-2px);
  }

  100% {
    transform: translateY(0);
  }
}

.human-agent-truth-field input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #132f5e;
  font: inherit;
  font-size: clamp(1rem, 1.7vw, 1.14rem);
  font-weight: 650;
}

.human-agent-truth-field input[readonly] {
  cursor: default;
  caret-color: transparent;
}

.human-agent-truth-field.is-editing input {
  cursor: text;
  caret-color: #1d4f9c;
}

.public-ha-truth-edit svg {
  width: 15px;
  height: 15px;
}

.public-ha-truth-edit path {
  fill: currentColor;
}

.public-ha-truth-motivation {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(181, 203, 232, 0.96);
  border-radius: 16px;
  background:
    radial-gradient(circle at 14% 10%, rgba(126, 194, 240, 0.2), rgba(126, 194, 240, 0) 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(236, 244, 255, 0.96));
  padding: 16px;
}

.public-ha-truth-motivation-copy,
.public-ha-truth-motivation-scale {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #284a78;
  font-size: 0.84rem;
  font-weight: 620;
}

.public-ha-truth-motivation-track {
  position: relative;
  height: 28px;
  display: flex;
  align-items: center;
  touch-action: none;
}

.public-ha-truth-motivation-track::before {
  content: "";
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #dce8f8;
}

.public-ha-truth-motivation-fill {
  position: absolute;
  left: 0;
  width: 0;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6aa7df 0%, #325f9f 100%);
  animation: public-ha-truth-motivation-fill 700ms cubic-bezier(0.22, 0.74, 0.2, 1) var(--public-ha-motivation-delay, 6000ms) both;
}

.public-ha-truth-motivation-knob {
  position: absolute;
  left: 0;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  background: linear-gradient(180deg, #2458a2 0%, #173d78 100%);
  box-shadow: 0 8px 16px rgba(17, 49, 98, 0.18);
  transform: translateX(-1px);
  animation: public-ha-truth-motivation-knob 700ms cubic-bezier(0.22, 0.74, 0.2, 1) var(--public-ha-motivation-delay, 6000ms) both;
}

.public-ha-truth-motivation-hand {
  position: absolute;
  left: -4px;
  top: -28px;
  width: 22px;
  height: 24px;
  color: #16396e;
  opacity: 0;
  animation: public-ha-truth-motivation-hand 700ms cubic-bezier(0.22, 0.74, 0.2, 1) var(--public-ha-motivation-delay, 6000ms) both;
}

.public-ha-truth-motivation-hand path {
  fill: currentColor;
}

.public-ha-truth-motivation-range {
  position: absolute;
  z-index: 4;
  inset: -12px 0;
  width: 100%;
  height: 52px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  touch-action: none;
}

.public-ha-truth-motivation-range::-webkit-slider-thumb {
  appearance: none;
  width: 44px;
  height: 44px;
}

.public-ha-truth-motivation-range::-moz-range-thumb {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
}

.public-ha-truth-motivation--manual .public-ha-truth-motivation-fill,
.public-ha-truth-motivation--manual .public-ha-truth-motivation-knob,
.public-ha-truth-motivation--manual .public-ha-truth-motivation-hand {
  animation: none;
}

.public-ha-truth-motivation--manual .public-ha-truth-motivation-fill {
  width: var(--public-ha-motivation-position, 44.44%);
}

.public-ha-truth-motivation--manual .public-ha-truth-motivation-knob {
  left: var(--public-ha-motivation-position, 44.44%);
}

.public-ha-truth-motivation--manual .public-ha-truth-motivation-hand {
  opacity: 0;
}

.public-ha-truth-ramble {
  display: grid;
  gap: 12px;
}

.public-ha-truth-context-frame {
  max-width: min(100%, 760px);
  border: 1px solid rgba(174, 199, 231, 0.96);
  border-radius: 16px;
  background:
    radial-gradient(circle at 84% 14%, rgba(127, 194, 241, 0.18), rgba(127, 194, 241, 0) 30%),
    linear-gradient(145deg, rgba(248, 252, 255, 0.98), rgba(232, 242, 255, 0.94));
  padding: 15px 16px;
  color: #17396f;
  font-weight: 720;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 14px 22px rgba(16, 42, 82, 0.08);
}

.public-ha-truth-prompt {
  border: 1px solid rgba(181, 203, 232, 0.96);
  border-radius: 16px;
  background:
    radial-gradient(circle at 10% 12%, rgba(125, 191, 239, 0.18), rgba(125, 191, 239, 0) 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(235, 244, 255, 0.92));
  padding: 16px 16px 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 14px 22px rgba(16, 42, 82, 0.08);
}

.public-ha-truth-prompt ol {
  display: grid;
  gap: 8px;
  margin: 0;
  color: #21446f;
  font-weight: 680;
}

.public-ha-truth-prompt li span {
  display: block;
  font-weight: 560;
}

.public-ha-truth-tools-row::before,
.public-ha-truth-tools-row::after {
  display: none;
}

.public-ha-truth-textarea {
  min-height: 210px;
  line-height: 1.5;
}

.public-ha-truth-forward-control {
  display: flex;
  justify-content: flex-end;
}

.public-ha-truth-forward-control .pre-frame-forward-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.public-ha-confirmation-shell {
  position: relative;
  min-height: min(520px, calc(100dvh - 206px));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vw, 40px);
}

.public-ha-confirmation-copy {
  display: grid;
  gap: 24px;
  justify-items: center;
  width: min(100%, 760px);
}

.public-ha-confirmation-copy p {
  margin: 0;
  color: #24466f;
  font-size: clamp(1.2rem, 1.9vw, 1.56rem);
  font-weight: 560;
  line-height: 1.4;
  text-align: center;
}

.public-ha-confirmation-copy .human-agent-account-ready-status {
  color: #5f789a;
  font-size: clamp(0.92rem, 1.35vw, 1.08rem);
  font-weight: 650;
  letter-spacing: 0;
}

.public-ha-confirmation-copy .pre-frame-typed-copy.is-active::after {
  background: rgba(36, 70, 111, 0.72);
}

.public-ha-confirmation-ball {
  margin: 0;
}

.human-agent-role-offer-shell {
  min-height: min(520px, calc(100dvh - 206px));
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: clamp(16px, 3vw, 28px);
  align-items: center;
  justify-items: center;
  padding: clamp(24px, 5vw, 48px) clamp(18px, 5vw, 64px);
  background:
    radial-gradient(circle at 50% 10%, rgba(117, 190, 238, 0.16), rgba(117, 190, 238, 0) 32%),
    linear-gradient(180deg, rgba(250, 253, 255, 0.98) 0%, rgba(234, 243, 255, 0.96) 100%);
  color: #17345f;
}

.human-agent-role-offer-shell--closure {
  grid-template-rows: auto 1fr;
}

.human-agent-role-offer-brand {
  display: grid;
  gap: 10px;
  justify-items: center;
  color: #17345f;
  font-weight: 760;
  letter-spacing: 0;
}

.human-agent-role-offer-brand img {
  width: clamp(58px, 9vw, 92px);
  height: auto;
  filter: drop-shadow(0 14px 28px rgba(25, 63, 116, 0.14));
}

.human-agent-role-offer-copy {
  width: min(100%, 640px);
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
}

.human-agent-role-offer-copy h2 {
  max-width: min(100%, 820px);
  margin: 0;
  color: #122b52;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 760;
  line-height: 1.08;
  text-align: center;
}

.human-agent-role-offer-copy p {
  width: min(100%, 520px);
  margin: 0;
  color: #294b77;
  line-height: 1.55;
  text-align: center;
}

.human-agent-role-offer-allocation {
  border: 1px solid rgba(175, 198, 229, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  padding: 8px 14px;
  color: #153b75 !important;
  font-weight: 760;
  text-align: center !important;
  width: fit-content !important;
}

.human-agent-role-offer-question {
  color: #122b52 !important;
  font-size: clamp(1.12rem, 2vw, 1.36rem);
  font-weight: 760;
  text-align: center !important;
}

.human-agent-role-offer-form {
  position: relative;
  width: min(100%, 560px);
  display: grid;
  gap: 16px;
  justify-items: center;
}

.human-agent-role-offer-toggle {
  position: relative;
  width: min(100%, 420px);
  height: 58px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  border: 1px solid rgba(172, 198, 231, 0.96);
  border-radius: 999px;
  background:
    radial-gradient(circle at 22% 18%, rgba(124, 193, 240, 0.18), rgba(124, 193, 240, 0) 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(232, 241, 254, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 18px 32px rgba(17, 47, 91, 0.12);
  cursor: grab;
  touch-action: pan-y;
}

.human-agent-role-offer-toggle:focus-visible {
  outline: 3px solid rgba(52, 110, 190, 0.3);
  outline-offset: 4px;
}

.human-agent-role-offer-toggle__track {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 6px;
  width: calc(50% - 6px);
  border-radius: 999px;
  background: linear-gradient(180deg, #1d4f9c 0%, #153b75 100%);
  box-shadow: 0 10px 22px rgba(22, 62, 120, 0.22);
  opacity: 0;
  transform: translateX(0);
  transition:
    transform 180ms cubic-bezier(0.22, 0.74, 0.2, 1),
    opacity 160ms ease;
}

.human-agent-role-offer-toggle.is-yes .human-agent-role-offer-toggle__track,
.human-agent-role-offer-toggle.is-no .human-agent-role-offer-toggle__track {
  opacity: 1;
}

.human-agent-role-offer-toggle.is-no .human-agent-role-offer-toggle__track {
  transform: translateX(calc(100% + 6px));
}

.human-agent-role-offer-toggle__option {
  position: relative;
  z-index: 1;
  height: 100%;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #24466f;
  cursor: pointer;
  font: inherit;
  font-weight: 760;
}

.human-agent-role-offer-toggle.is-yes .human-agent-role-offer-toggle__option--yes,
.human-agent-role-offer-toggle.is-no .human-agent-role-offer-toggle__option--no {
  color: #ffffff;
}

.human-agent-role-offer-forward-control {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  min-height: 54px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.human-agent-role-offer-forward-control.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.human-agent-role-offer-forward-control .pre-frame-forward-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.human-agent-role-offer-continue-button {
  min-width: 0;
  justify-content: center;
}

.human-agent-truth-internal-shell {
  background:
    radial-gradient(circle at 84% 10%, rgba(119, 193, 238, 0.16), rgba(119, 193, 238, 0) 28%),
    linear-gradient(180deg, #f9fbff 0%, #edf4ff 100%);
}

.human-agent-truth-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #132f5e;
  font: inherit;
  font-size: clamp(1rem, 1.7vw, 1.14rem);
  font-weight: 650;
}

.human-agent-truth-field input:disabled {
  opacity: 0.72;
}

.human-agent-truth-field-helper {
  display: block;
  margin-top: 4px;
  color: #5f7190;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
}

.human-agent-truth-field input[type="date"] {
  color-scheme: light;
}

.human-agent-truth-field input[type="date"]:required:invalid::-webkit-datetime-edit {
  color: transparent;
}

.human-agent-truth-field.is-editing input[type="date"]:required:invalid::-webkit-datetime-edit {
  color: #132f5e;
}

.human-agent-truth-field input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(24%) sepia(47%) saturate(1231%) hue-rotate(185deg) brightness(86%) contrast(91%);
}

.human-agent-truth-textarea {
  resize: vertical;
}

.human-agent-truth-motivation {
  position: relative;
}

.human-agent-truth-slider-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.human-agent-truth-range {
  position: absolute;
  inset: 50px 16px auto;
  z-index: 2;
  width: calc(100% - 32px);
  height: 28px;
  opacity: 0;
  cursor: pointer;
}

.human-agent-truth-internal-shell .public-ha-truth-motivation-fill {
  width: var(--ha-truth-motivation-position, 44%);
  animation: none;
}

.human-agent-truth-internal-shell .public-ha-truth-motivation-knob {
  left: var(--ha-truth-motivation-position, 44%);
  animation: none;
  transform: translateX(-50%);
}

.human-agent-truth-internal-shell .public-ha-truth-motivation-hand {
  display: none;
}

.app-shell--ha-sequence .human-agent-role-offer-shell,
.app-shell--ha-sequence .human-agent-truth-internal-shell {
  background: transparent;
}

.app-shell--ha-sequence .human-agent-entry-shell,
.app-shell--ha-sequence .human-agent-context-shell,
.app-shell--ha-sequence .human-agent-context-frame-shell,
.app-shell--ha-sequence .human-agent-context-frame-readiness,
.app-shell--ha-sequence .human-agent-context-work {
  border: 1px solid rgba(174, 199, 231, 0.96);
  border-radius: 16px;
  background:
    radial-gradient(circle at 84% 14%, rgba(127, 194, 241, 0.18), rgba(127, 194, 241, 0) 30%),
    linear-gradient(145deg, rgba(248, 252, 255, 0.98), rgba(232, 242, 255, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 14px 22px rgba(16, 42, 82, 0.08);
}

.app-shell--ha-sequence .human-agent-entry-shell,
.app-shell--ha-sequence .human-agent-context-shell {
  padding: clamp(18px, 3vw, 28px);
}

.app-shell--ha-sequence .human-agent-entry-header,
.app-shell--ha-sequence .human-agent-context-header {
  border-bottom-color: rgba(190, 211, 238, 0.82);
}

.app-shell--ha-sequence .human-agent-entry-header h2,
.app-shell--ha-sequence .human-agent-context-header h2,
.app-shell--ha-sequence .human-agent-context-frame-shell > h2 {
  color: #122b52;
  font-weight: 760;
  letter-spacing: 0;
}

.app-shell--ha-sequence .human-agent-entry-header--landing h2 {
  max-width: 16ch;
  font-size: clamp(2.05rem, 5vw, 4.1rem);
  line-height: 1;
}

.app-shell--ha-sequence .human-agent-entry-header p,
.app-shell--ha-sequence .human-agent-context-header p,
.app-shell--ha-sequence .human-agent-context-frame-lede,
.app-shell--ha-sequence .human-agent-context-frame-boundary,
.app-shell--ha-sequence .human-agent-context-next {
  color: #24466f;
}

.app-shell--ha-sequence .human-agent-context-grid,
.app-shell--ha-sequence .human-agent-entry-panel,
.app-shell--ha-sequence .human-agent-context-frame-card,
.app-shell--ha-sequence .human-agent-assigned-work-row {
  border: 1px solid rgba(181, 203, 232, 0.96);
  border-radius: 14px;
  background:
    radial-gradient(circle at 84% 14%, rgba(123, 193, 240, 0.18), rgba(123, 193, 240, 0) 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 14px 22px rgba(16, 42, 82, 0.08);
}

.app-shell--ha-sequence .human-agent-entry-tabs {
  border-color: rgba(172, 198, 231, 0.96);
  border-radius: 999px;
  background:
    radial-gradient(circle at 22% 18%, rgba(124, 193, 240, 0.18), rgba(124, 193, 240, 0) 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(232, 241, 254, 0.92));
}

.app-shell--ha-sequence .human-agent-entry-tab {
  border-radius: 999px;
  color: #24466f;
}

.app-shell--ha-sequence .human-agent-entry-tab.active,
.app-shell--ha-sequence .button:not(.secondary):not(.pre-frame-forward-button) {
  background: linear-gradient(180deg, #1d4f9c 0%, #153b75 100%);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(22, 62, 120, 0.18);
}

.app-shell--ha-sequence .button.secondary:not(.pre-frame-forward-button) {
  border-color: rgba(173, 197, 229, 0.9);
  background: rgba(255, 255, 255, 0.84);
  color: #20467a;
}

.app-shell--ha-sequence .human-agent-entry-form-panel {
  grid-template-columns: minmax(0, min(100%, 560px));
  gap: 12px;
}

.app-shell--ha-sequence .human-agent-entry-panel--arrow {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.app-shell--ha-sequence .human-agent-entry-forward-control {
  justify-self: end;
}

.app-shell--ha-sequence .human-agent-entry-field {
  min-height: 72px;
}

.app-shell--ha-sequence .human-agent-entry-field input {
  border: 0;
  outline: 0;
  background: transparent;
  color: #132f5e;
  font: inherit;
  font-size: clamp(1rem, 1.7vw, 1.14rem);
  font-weight: 650;
}

.app-shell--ha-sequence .human-agent-entry-field--password {
  padding-right: 76px;
}

.app-shell--ha-sequence .human-agent-entry-password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  min-height: 30px;
  border: 1px solid rgba(173, 197, 229, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: #20467a;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 9px;
  transform: translateY(-50%);
}

.app-shell--ha-sequence .auth-form-control,
.app-shell--ha-sequence .operator-form-control {
  border-color: rgba(181, 203, 232, 0.96);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #132f5e;
}

.app-shell--ha-sequence .human-agent-context-frame-form {
  gap: 18px;
}

.app-shell--ha-sequence .context-frame-input-stack > label strong {
  display: grid;
  gap: 10px;
  max-width: none;
  font-size: clamp(1.02rem, 1.35vw, 1.22rem);
  line-height: 1.24;
}

.human-agent-question-part {
  display: block;
}

.human-agent-question-divider {
  display: block;
  width: 100%;
  height: 14px;
  border: 1px solid rgba(174, 199, 231, 0.48);
  border-radius: 999px;
  background:
    linear-gradient(
      135deg,
      transparent 0 14%,
      rgba(228, 237, 248, 0.42) 15% 25%,
      transparent 26% 38%,
      rgba(228, 237, 248, 0.34) 39% 49%,
      transparent 50% 62%,
      rgba(228, 237, 248, 0.26) 63% 73%,
      transparent 74% 100%
    ),
    linear-gradient(180deg, #122949 0%, #0d2240 100%);
  background-size: 160% 160%, 100% 100%;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.2),
    0 8px 18px rgba(13, 34, 64, 0.12);
  animation: human-agent-question-divider-wisps 7s ease-in-out infinite alternate;
}

@keyframes human-agent-question-divider-wisps {
  from {
    background-position: 0% 0%, 0 0;
  }
  to {
    background-position: 100% 100%, 0 0;
  }
}

.app-shell--ha-sequence .human-agent-context-frame-forward-control {
  align-items: center;
  gap: 12px;
}

.app-shell--ha-sequence .human-agent-invite-kicker {
  color: #24466f;
  font-weight: 720;
}

.app-shell--ha-sequence .bucket4-status-token--recorded,
.app-shell--ha-sequence .bucket4-status-token--approved,
.app-shell--ha-sequence .bucket4-status-token--healthy,
.app-shell--ha-sequence .bucket4-status-token--ok {
  border-color: rgba(72, 127, 200, 0.42);
  background: rgba(226, 239, 255, 0.82);
  color: #1f5598;
}

.human-agent-outcome-panel {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(181, 203, 232, 0.96);
  border-radius: 14px;
  background:
    radial-gradient(circle at 84% 14%, rgba(123, 193, 240, 0.14), rgba(123, 193, 240, 0) 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.96));
  padding: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 14px 22px rgba(16, 42, 82, 0.08);
}

.public-pricing-signup-shell {
  position: relative;
  min-height: min(520px, calc(100dvh - 206px));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vw, 40px);
}

.public-pricing-signup-copy {
  width: min(100%, 760px);
  color: #374151;
}

.public-pricing-signup-lead,
.public-pricing-signup-line {
  margin: 0;
  font-size: clamp(1.24rem, 1.75vw, 1.5rem);
  font-weight: 500;
  line-height: 1.4;
}

.public-pricing-signup-lead {
  white-space: nowrap;
}

.public-pricing-signup-divider {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin: 18px 0 16px;
  opacity: 0;
  transform: translateY(8px);
  animation: public-ha-waiting-rise 420ms cubic-bezier(0.22, 0.74, 0.2, 1) var(--public-pricing-signup-bubble-delay, 0ms) both;
}

.public-pricing-signup-divider::before,
.public-pricing-signup-divider span,
.public-pricing-signup-divider::after {
  content: "";
  width: min(82px, 18vw);
  height: 1px;
  background: linear-gradient(90deg, rgba(153, 173, 201, 0), rgba(153, 173, 201, 0.72), rgba(153, 173, 201, 0));
}

.public-pricing-signup-bubble {
  width: fit-content;
  max-width: 100%;
  border: 1px solid #c7d9f0;
  border-radius: 16px;
  background:
    radial-gradient(circle at 86% 18%, rgba(122, 193, 239, 0.24), rgba(122, 193, 239, 0) 30%),
    linear-gradient(145deg, #ffffff 0%, #f5f9ff 50%, #e7f1ff 100%);
  padding: 14px 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 12px 22px rgba(19, 52, 98, 0.08);
  opacity: 0;
  transform: translateY(8px);
  animation: public-ha-waiting-rise 420ms cubic-bezier(0.22, 0.74, 0.2, 1) var(--public-pricing-signup-bubble-delay, 0ms) both;
}

.public-pricing-signup-line {
  display: block;
  white-space: nowrap;
}

.public-payout-controls {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 14px;
}

.public-payout-controls .route-return-icon {
  margin-top: 0;
  width: 30px;
  height: 30px;
  transform: translateY(5px);
}

.public-payout-next-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  margin-top: 0;
  padding: 9px 18px;
  line-height: 1.2;
}

.public-proof-preview-panel {
  padding-top: 54px;
}

.public-proof-preview-video-frame {
  margin-bottom: 0;
}

.app-shell--artwork {
  max-width: none;
  min-height: 100svh;
  min-height: 100dvh;
  padding: 0;
}

.app-shell--artwork .header {
  display: none;
}

.app-shell--artwork .main-panel {
  margin: 0;
  min-height: 100svh;
  min-height: 100dvh;
}

.app-shell--artwork .card {
  min-height: 100svh;
  min-height: 100dvh;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.public-company-setup-complete-shell {
  position: relative;
  margin: 0;
  min-height: 100svh;
  min-height: 100dvh;
  overflow-x: hidden;
  background: #eef3fa;
}

html.public-full-artwork-top-lock,
html.public-full-artwork-top-lock body {
  scroll-behavior: auto;
  overscroll-behavior-y: none;
}

html.public-full-artwork-top-lock #app {
  min-height: 100svh;
  min-height: 100dvh;
}

.public-company-setup-complete-artwork,
.public-responsive-artwork-picture,
.public-company-setup-complete-artwork-image {
  display: block;
  width: 100%;
}

.public-company-setup-complete-artwork-image {
  height: auto;
  margin: 0;
}

.public-company-setup-complete-artwork-image--mobile {
  display: none;
}

.public-responsive-artwork-picture--mobile {
  display: none;
}

.public-objective-section-divider {
  height: 12px;
  margin: 15px 2px 14px;
  border: 1px solid rgba(214, 224, 238, 0.82);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(237, 242, 249, 0.5), rgba(205, 216, 231, 0.9), rgba(237, 242, 249, 0.5));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 8px 18px rgba(20, 42, 74, 0.08);
}

.public-company-setup-complete-forward-control {
  position: fixed;
  right: clamp(18px, 3vw, 32px);
  bottom: clamp(18px, 3vw, 28px);
  z-index: 30;
}

.public-company-setup-complete-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.public-company-setup-complete-forward-control .pre-frame-forward-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.public-company-setup-complete-controls .public-company-setup-complete-back-control {
  width: 34px;
  height: 34px;
  margin-top: 0;
  align-self: center;
}

.public-company-setup-recovery-back-control {
  display: none;
}

.public-ha-logo-return-overlay {
  position: fixed;
  inset: 0;
  z-index: 206;
  overflow: hidden;
}

.public-ha-swipe-transition-overlay {
  pointer-events: none;
  z-index: 207;
}

.public-ha-swipe-transition-surface {
  padding: 24px 18px;
}

.public-ha-swipe-transition-surface > .public-ha-invitation-shell,
.public-ha-swipe-transition-surface > .public-ha-waiting-shell {
  width: min(100%, 1040px);
  min-height: 100dvh;
}

@keyframes public-ha-invitation-enter {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.992);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes public-ha-invitation-slot-rise {
  0% {
    opacity: 0;
    max-height: 0;
    margin-bottom: 0;
    transform: translateY(8px);
  }

  100% {
    opacity: 1;
    max-height: 72px;
    margin-bottom: 0;
    transform: translateY(0);
  }
}

@keyframes public-ha-invitation-flow-lift {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-10px);
  }
}

@keyframes public-ha-invitation-check-bounce {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.82);
  }

  45% {
    opacity: 1;
    transform: translateY(-5px) scale(1.06);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes public-ha-waiting-rise {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes public-ha-truth-edit-bounce {
  0% {
    opacity: 0;
    transform: translateY(calc(-50% + 6px)) scale(0.86);
  }

  45% {
    opacity: 1;
    transform: translateY(calc(-50% - 3px)) scale(1.05);
  }

  100% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}

@keyframes public-ha-perspective-wisps {
  from {
    transform: translate3d(-5%, -3%, 0);
  }

  to {
    transform: translate3d(5%, 3%, 0);
  }
}

@keyframes owner-internal-perspective-wisps {
  from {
    transform: translate3d(4%, -2%, 0);
  }

  to {
    transform: translate3d(-4%, 2%, 0);
  }
}

@keyframes public-ha-truth-motivation-fill {
  to {
    width: var(--public-ha-motivation-position, 44.44%);
  }
}

@keyframes public-ha-truth-motivation-knob {
  to {
    left: var(--public-ha-motivation-position, 44.44%);
  }
}

@keyframes public-ha-truth-motivation-hand {
  0% {
    opacity: 0;
    left: -4px;
  }

  16%,
  84% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    left: calc(var(--public-ha-motivation-position, 44.44%) - 4px);
  }
}

.audit-recap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.audit-recap-card {
  border: 1px solid #d5e2f3;
  border-radius: 10px;
  background: #ffffff;
  padding: 10px;
}

.audit-recap-card span {
  display: block;
  color: #557198;
  font-size: 0.74rem;
  font-weight: 760;
  text-transform: uppercase;
}

.audit-recap-card strong {
  display: block;
  margin-top: 4px;
  color: #173763;
  line-height: 1.35;
}

.pilot-intake-panel {
  max-width: 760px;
  margin: 0 auto;
}

.pilot-intake-panel h2 {
  margin: 0 0 8px;
  color: #153a6f;
}

.pilot-intake-lede {
  margin: 0;
  color: #2f4c75;
  line-height: 1.55;
}

.pilot-intake-path {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 14px;
}

.pilot-intake-path div {
  border: 1px solid #d5e2f3;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
  padding: 10px;
}

.pilot-intake-path span {
  display: block;
  color: #557198;
  font-size: 0.74rem;
  font-weight: 760;
  text-transform: uppercase;
}

.pilot-intake-path strong {
  display: block;
  margin-top: 4px;
  color: #173763;
  line-height: 1.35;
}

.pilot-intake-form {
  margin-top: 16px;
  padding: 18px;
}

.pilot-intake-form-note {
  margin: 0 0 14px;
  color: #35557f;
  line-height: 1.45;
}

.pilot-intake-section-label {
  margin: 14px 0 8px;
  color: #49668d;
  font-size: 0.74rem;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pilot-intake-form .pilot-intake-section-label:first-of-type {
  margin-top: 0;
}

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

.pilot-intake-form label,
.pilot-evidence-fieldset legend {
  color: #132f5c;
  font-weight: 720;
}

.pilot-intake-form label span {
  display: block;
}

.pilot-intake-textarea {
  min-height: 110px;
  resize: vertical;
}

.pilot-evidence-fieldset {
  border: 1px solid #d8e4f4;
  border-radius: 10px;
  padding: 12px;
  margin: 14px 0 12px;
  background: #fbfdff;
}

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

.pilot-evidence-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border: 1px solid #dbe6f6;
  border-radius: 8px;
  background: #ffffff;
  padding: 8px 10px;
  font-weight: 650;
  color: #254b7e;
}

.pilot-evidence-option input {
  margin-top: 2px;
  accent-color: #28569b;
}

.pilot-intake-ready {
  border: 1px solid #cfdcf0;
  border-radius: 10px;
  background: linear-gradient(180deg, #fafdff 0%, #f2f7ff 100%);
  padding: 12px;
  margin-top: 14px;
}

.pilot-intake-ready p {
  margin: 5px 0 10px;
  color: #2d4a72;
  line-height: 1.45;
}

.pilot-intake-actions {
  margin-top: 10px;
}

.route-controls {
  align-items: center;
}

.route-return-icon {
  width: 28px;
  height: 28px;
  margin-top: 11px;
  border: 1px solid #bfd0ea;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #355884;
  background: #ffffff;
  font-size: 0.9rem;
  line-height: 1;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), background 198ms cubic-bezier(0.16, 1, 0.3, 1), color 198ms cubic-bezier(0.16, 1, 0.3, 1), border-color 198ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 198ms cubic-bezier(0.16, 1, 0.3, 1);
}


.route-return-icon--internal-aligned {
  margin-top: 16px;
}


.route-return-icon:hover {
  border-color: #9fb9dd;
  color: #1d4275;
}

.route-return-icon:not([disabled]):active {
  transform: scale(1.044);
  transition: transform 60ms cubic-bezier(0.16, 1, 0.3, 1), background 198ms cubic-bezier(0.16, 1, 0.3, 1), color 198ms cubic-bezier(0.16, 1, 0.3, 1), border-color 198ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 198ms cubic-bezier(0.16, 1, 0.3, 1);
  background: #153b75;
  color: #ffffff;
  border-color: #153b75;
}

.explore-demo {
  margin-top: 18px;
  border-top: 1px solid #e4ebf8;
  padding-top: 14px;
}

.explore-demo h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: #1d3f74;
}

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

.explore-demo-card {
  display: block;
  text-decoration: none;
  border: 1px solid #d7e3f6;
  border-radius: 10px;
  padding: 9px 10px;
  background: #f8fbff;
  color: #1f3f70;
  font-weight: 700;
  font-size: 0.88rem;
}

.button {
  display: inline-block;
  margin-top: 12px;
  padding: 9px 13px;
  border: 1px solid #143b79;
  border-radius: 10px;
  text-decoration: none;
  color: #ffffff;
  background: linear-gradient(180deg, #1d4f9c 0%, #153b75 100%);
  font-weight: 600;
  cursor: pointer;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), background 198ms cubic-bezier(0.16, 1, 0.3, 1), color 198ms cubic-bezier(0.16, 1, 0.3, 1), border-color 198ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 198ms cubic-bezier(0.16, 1, 0.3, 1);
}

.button:not([disabled]):active,
button.button:not([disabled]):active {
  transform: scale(1.044);
  transition: transform 60ms cubic-bezier(0.16, 1, 0.3, 1), background 198ms cubic-bezier(0.16, 1, 0.3, 1), color 198ms cubic-bezier(0.16, 1, 0.3, 1), border-color 198ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 198ms cubic-bezier(0.16, 1, 0.3, 1);
}

.button:not(.secondary):not([disabled]):active {
  background: #ffffff;
  color: #153b75;
  border-color: #153b75;
}

.button.secondary:not([disabled]):active,
button.button.secondary:not([disabled]):active {
  background: #153b75;
  color: #ffffff;
  border-color: #153b75;
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: background 80ms linear, color 80ms linear, border-color 80ms linear;
  }

  .route-return-icon,
  .segment-pill,
  .workspace-seed-icon-button,
  .workspace-seed-ready-close,
  .owner-inline-modal__close {
    transition: background 80ms linear, color 80ms linear, border-color 80ms linear;
  }

  .button:not([disabled]):active,
  button.button:not([disabled]):active,
  .route-return-icon:not([disabled]):active,
  .segment-pill:not([disabled]):active,
  .workspace-seed-icon-button:not([disabled]):active,
  .workspace-seed-ready-close:not([disabled]):active,
  .owner-inline-modal__close:active {
    transform: none;
  }
}

.button[disabled],
button.button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.25);
}

button.button,
#logout-button,
#workflow-menu-toggle,
#global-notification-close {
  cursor: pointer;
}

.button-small {
  padding: 6px 10px;
  font-size: 0.82rem;
  margin-top: 12px;
}

.compact-header-actions .top-pricing-toggle,
.compact-header-actions .workflow-menu-toggle {
  height: 32px;
  min-height: 32px;
  margin: 0;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.compact-header-actions .top-pricing-toggle {
  padding: 0 10px;
}

.compact-header-actions .button-small {
  margin-top: 0;
  min-height: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.compact-header-actions .company-settings-staff-header-action {
  display: none;
}

.compact-header-actions:has(.dashboard-mobile-header-action),
.compact-header-actions .dashboard-mobile-header-action {
  display: none;
}

.company-settings-staff-header-action {
  min-width: 74px;
  white-space: nowrap;
}

.compact-header-actions .route-return-icon--compact-header {
  width: 32px;
  height: 32px;
  margin-top: 0;
  flex: 0 0 auto;
}

.secondary {
  background: #ffffff;
  color: #173b73;
  border-color: #b3c7e9;
}

.warning {
  border: 1px solid #4a6da3;
  border-radius: 10px;
  background: linear-gradient(180deg, #305788 0%, #23466f 100%);
  color: #f2f7ff;
  padding: 9px 10px;
  margin-top: 10px;
  box-shadow: 0 8px 18px rgba(18, 41, 72, 0.2);
}

.tagline {
  border: 1px solid #d5e4fa;
  border-radius: 10px;
  background: #f4f8ff;
  padding: 9px;
}

.demo-note,
.demo-mode-banner {
  font-size: 12px;
  color: #546987;
}

.state-list,
.example-block {
  border: 1px solid #dfe8f7;
  border-radius: 12px;
  background: #fbfdff;
  padding: 10px;
  margin-top: 12px;
}

.commitment-mirror-card {
  border: 1px solid #d7e5fb;
  border-radius: 12px;
  background: #f6faff;
  padding: 10px;
  margin-bottom: 10px;
}

.proof-submit-panel {
  display: grid;
  gap: 12px;
}

.proof-submit-panel form {
  display: grid;
  gap: 12px;
}

.proof-anchor-card,
.proof-support-card {
  border: 1px solid #d7e5fb;
  border-radius: 8px;
  background: #fbfdff;
  padding: 12px;
}

.proof-anchor-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
  box-shadow: 0 10px 22px rgba(22, 55, 96, 0.07);
}

.proof-anchor-card::before {
  content: '';
  position: absolute;
  inset: 10px auto 10px 0;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2b5da4 0%, #7aa77d 100%);
}

.proof-anchor-kicker {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 8px 7px;
  padding: 4px 8px;
  border: 1px solid #cfe0f5;
  border-radius: 999px;
  background: #f4f8ff;
  color: #244d85;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.proof-anchor-card label,
.proof-anchor-card .helper-text,
.proof-anchor-card .proof-anchor-tools-row,
.proof-anchor-card textarea {
  margin-left: 7px;
}

.proof-anchor-card label {
  display: block;
  color: #142c55;
  font-size: 1rem;
  margin-bottom: 4px;
}

.proof-anchor-tools-row {
  margin-top: 8px;
}

.proof-anchor-tools-row .ipi-writing-tools--primary {
  display: grid;
  grid-template-columns: minmax(112px, 0.66fr) minmax(0, 1.34fr);
  width: min(100%, 560px);
  gap: 6px;
  padding: 6px;
  border-radius: 16px;
  border-color: #c7d9f2;
  background: linear-gradient(180deg, #f9fcff 0%, #eef5ff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.proof-anchor-tools-row .ipi-writing-tool-button {
  min-height: 38px;
  justify-content: center;
  border-radius: 12px;
  padding: 7px 9px;
}

.proof-anchor-tools-row .ipi-writing-tool-format {
  border-color: #244f93;
  background: linear-gradient(180deg, #2b5da6 0%, #1d447f 100%);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 6px 12px rgba(28, 69, 128, 0.18);
}

.proof-anchor-textarea {
  min-height: 178px;
  line-height: 1.5;
}

.ipi-writing-tool-status {
  min-height: 16px;
  margin: 2px 0 0;
  color: #5b6e8a;
  font-size: 12px;
}

.ipi-writing-tool-status:empty {
  display: none;
}

.ipi-writing-tool-status[data-tone="active"] {
  color: #234f87;
  font-weight: 700;
}

.ipi-writing-tool-status[data-tone="warning"] {
  color: #7a4d18;
}

.ipi-writing-tool-status[data-tone="success"] {
  color: #2f6a43;
}

.internal-summarize-format-suggestion {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #bfd5ed;
  border-radius: 8px;
  background: #f7fbff;
}

.internal-summarize-format-suggestion__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.internal-summarize-format-suggestion__header h3,
.internal-summarize-format-suggestion__kicker {
  margin: 0;
}

.internal-summarize-format-suggestion__kicker {
  color: #285686;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.internal-summarize-format-suggestion__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.internal-summarize-format-suggestion__badges span {
  padding: 4px 7px;
  border: 1px solid #cbd9e7;
  border-radius: 999px;
  background: #ffffff;
  color: #314963;
  font-size: 11px;
  font-weight: 700;
}

.internal-summarize-format-suggestion__text {
  min-height: 132px;
  background: #ffffff;
}

.internal-summarize-format-suggestion__notes {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #40536b;
  font-size: 12px;
}

.internal-summarize-format-suggestion__actions {
  margin-top: 10px;
}

.internal-voice-transcription-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 2px 0 8px 5px;
  padding: 9px 10px;
  border: 1px solid #d4e2f2;
  border-radius: 8px;
  background: #fbfdff;
}

.internal-voice-transcription-controls__kicker,
.internal-voice-transcription-suggestion__kicker {
  margin: 0;
  color: #285686;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.internal-voice-transcription-controls .helper-text {
  margin: 2px 0 0;
}

.internal-voice-transcription-controls__actions {
  flex-shrink: 0;
  margin: 0;
}

.internal-voice-transcription-controls--recording {
  border-color: #244f93;
  background: #203f6f;
  color: #ffffff;
}

.internal-voice-transcription-controls--recording .internal-voice-transcription-controls__kicker,
.internal-voice-transcription-controls--recording .helper-text {
  color: #ffffff;
}

.internal-voice-transcription-button {
  min-width: 92px;
}

.internal-voice-transcription-button--recording {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-color: #ffffff;
  background: #ffffff;
  color: #203f6f;
}

.internal-voice-transcription-button--processing {
  opacity: 0.82;
}

.internal-voice-transcription-wave {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 14px;
}

.internal-voice-transcription-wave i {
  display: block;
  width: 3px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  animation: internal-voice-transcription-wave 900ms ease-in-out infinite;
}

.internal-voice-transcription-wave i:nth-child(2) {
  animation-delay: 120ms;
}

.internal-voice-transcription-wave i:nth-child(3) {
  animation-delay: 240ms;
}

@keyframes internal-voice-transcription-wave {
  0%,
  100% {
    transform: scaleY(0.72);
    opacity: 0.72;
  }

  50% {
    transform: scaleY(1.45);
    opacity: 1;
  }
}

.internal-voice-transcription-suggestion {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #bfd5ed;
  border-radius: 8px;
  background: #f7fbff;
}

.internal-voice-transcription-suggestion__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.internal-voice-transcription-suggestion__header h3,
.internal-voice-transcription-suggestion__kicker {
  margin: 0;
}

.internal-voice-transcription-suggestion__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.internal-voice-transcription-suggestion__badges span {
  padding: 4px 7px;
  border: 1px solid #cbd9e7;
  border-radius: 999px;
  background: #ffffff;
  color: #314963;
  font-size: 11px;
  font-weight: 700;
}

.internal-voice-transcription-suggestion__text {
  min-height: 132px;
  background: #ffffff;
}

.internal-voice-transcription-suggestion__notes {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #40536b;
  font-size: 12px;
}

.internal-voice-transcription-suggestion__actions {
  margin-top: 10px;
}

.internal-advisory-suggestion-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 2px 0 8px 5px;
  padding: 9px 10px;
  border: 1px solid #d8dfca;
  border-radius: 8px;
  background: #fcfdf8;
}

.internal-advisory-suggestion-control__kicker,
.internal-advisory-suggestion__kicker {
  margin: 0;
  color: #4b5d2c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.internal-advisory-suggestion-control .helper-text {
  margin: 2px 0 0;
}

.internal-advisory-suggestion {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #d8dfca;
  border-radius: 8px;
  background: #fcfdf8;
}

.internal-advisory-suggestion__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.internal-advisory-suggestion__header h3 {
  margin: 0;
}

.internal-advisory-suggestion__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.internal-advisory-suggestion__badges span {
  padding: 4px 7px;
  border: 1px solid #d6ddc8;
  border-radius: 999px;
  background: #ffffff;
  color: #3f4d2a;
  font-size: 11px;
  font-weight: 700;
}

.internal-advisory-suggestion__text {
  margin: 0 0 10px;
  color: #27324a;
  line-height: 1.55;
}

.internal-advisory-suggestion__columns,
.internal-advisory-objectives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.internal-advisory-suggestion__columns article,
.internal-advisory-objective {
  padding: 10px;
  border: 1px solid #e0e5d4;
  border-radius: 8px;
  background: #ffffff;
}

.internal-advisory-suggestion__columns h4,
.internal-advisory-objective h4 {
  margin: 0 0 6px;
  color: #263348;
  font-size: 13px;
}

.internal-advisory-objective p {
  margin: 0 0 8px;
}

.internal-advisory-suggestion__list {
  margin: 0;
  padding-left: 18px;
  color: #40536b;
  font-size: 12px;
}

.internal-advisory-suggestion__actions {
  margin-top: 10px;
}

.proof-support-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.proof-support-heading span {
  padding: 3px 7px;
  border: 1px solid #d5e4f6;
  border-radius: 999px;
  background: #f5f9ff;
  color: #436184;
  font-size: 11px;
  font-weight: 700;
}

.proof-evidence-limit-strip,
.proof-url-chip-row,
.proof-file-preview-list,
.proof-url-evidence-list,
.proof-readability-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.proof-evidence-limit-strip {
  margin: 8px 0;
}

.proof-evidence-limit-pill,
.proof-url-chip,
.proof-file-preview-chip,
.proof-url-evidence-chip,
.proof-readability-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  max-width: 100%;
  padding: 6px 8px;
  border: 1px solid #d7e5f5;
  border-radius: 8px;
  background: #ffffff;
  color: #24446f;
  font-size: 12px;
  text-decoration: none;
}

.proof-evidence-limit-pill span,
.proof-url-chip small,
.proof-file-preview-chip small,
.proof-url-evidence-chip small,
.proof-readability-chip small {
  color: #60748f;
  font-size: 11px;
  line-height: 1.25;
}

.proof-url-chip--video,
.proof-url-evidence-chip--video {
  border-color: #b7cceb;
  background: #f3f8ff;
}

.proof-readability-chip--primary {
  border-color: #b7cceb;
  background: #f5f9ff;
}

.proof-readability-chip--read {
  border-color: #b9d9c2;
  background: #f5fbf6;
}

.proof-readability-chip--metadata {
  border-color: #d7e5f5;
  background: #ffffff;
}

.proof-readability-chip--human,
.proof-readability-chip--unavailable {
  border-color: #dfd0aa;
  background: #fffaf0;
}

.proof-readability-chip--failed {
  border-color: #e2c6b4;
  background: #fff8f4;
}

.proof-url-metadata-preview,
.proof-file-preview,
.proof-readability-cue {
  display: grid;
  gap: 5px;
  margin-top: 8px;
  padding: 9px 10px;
  border: 1px solid #d8e6f6;
  border-radius: 8px;
  background: #f7fbff;
  color: #294a75;
  font-size: 13px;
}

.proof-url-metadata-preview--error,
.proof-file-preview--error {
  border-color: #e2c6b4;
  background: #fff8f4;
  color: #7a401f;
}

.proof-url-video-note {
  color: #2f4e78;
  font-weight: 700;
}

.proof-submit-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 0 0;
}

.proof-save-button {
  min-height: 42px;
}

.helper-text {
  margin: 6px 0;
  font-size: 13px;
  color: #4f6382;
}

#forgot-password-link {
  color: #2b5f9b;
  text-decoration: underline;
  text-decoration-color: #8eafdb;
  text-underline-offset: 2px;
  transition: color 140ms ease, text-decoration-color 140ms ease;
}

#forgot-password-link:visited {
  color: #345f93;
  text-decoration-color: #93afd3;
}

#forgot-password-link:hover {
  color: #1f4f86;
  text-decoration-color: #5d87b8;
}

#forgot-password-link:focus,
#forgot-password-link:focus-visible {
  color: #1f4f86;
  text-decoration-color: #5d87b8;
  outline: 2px solid #8cb2ea;
  outline-offset: 2px;
  border-radius: 3px;
}

.proof-summary-display {
  margin: 0;
}

ul.proof-summary-display {
  padding-left: 1.1rem;
}

.operator-form-control {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 9px;
  border: 1px solid #c8d8ef;
  border-radius: 10px;
  background: #ffffff;
  font-family: inherit;
  font-size: 14px;
  color: #1e3254;
}

#objective-create-form .operator-form-control {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

#objective-create-form .operator-date-display {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: calc(100% - 40px);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  border-radius: 10px;
  padding: 9px 12px;
  min-height: 42px;
}

#objective-create-form .operator-date-display-text {
  pointer-events: none;
}

#objective-create-form #objective-due-date-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  min-width: 0;
  box-sizing: border-box;
}

.auth-form {
  max-width: 560px;
}

.auth-gate {
  max-width: 640px;
  margin: 0 auto;
}

.auth-gate h2 {
  position: relative;
  max-width: 12ch;
  margin-bottom: 16px;
  padding-left: 14px;
  font-size: clamp(1.74rem, 4.4vw, 2.42rem);
  line-height: 1.15;
}

.auth-gate h2::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #28569b 0%, #7aa77d 100%);
}

.auth-gate .auth-form {
  position: relative;
  max-width: none;
  margin-top: 0;
  padding: 18px;
  border-color: #cfe0f5;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 251, 255, 0.98) 100%);
  box-shadow: 0 10px 22px rgba(15, 45, 92, 0.075);
}

.auth-gate .auth-form::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(90deg, #28569b 0%, #8bb28a 100%);
  opacity: 0.68;
}

.auth-gate label,
.auth-gate .auth-field-label {
  display: block;
  color: #132f5c;
  font-weight: 720;
}

.auth-gate .auth-form-control,
.auth-gate .password-toggle {
  border-color: #bfd2ef;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.auth-gate .auth-form-control:focus,
.auth-gate .password-toggle:focus-visible {
  outline: 2px solid #8fb5ea;
  outline-offset: 2px;
  border-color: #6f99d4;
}

.auth-gate .auth-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-confirmation-panel {
  text-align: center;
}

.access-pending-panel {
  max-width: 620px;
}

.access-pending-content {
  border: 1px solid #dfe8f7;
  border-radius: 12px;
  background: #fbfdff;
  padding: 18px 16px 14px;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.access-pending-content p {
  margin: 0;
}

.access-pending-personalized {
  color: #183862;
  font-weight: 600;
  line-height: 1.5;
}

.access-pending-message-block {
  border: 1px solid #d8e4f7;
  border-radius: 10px;
  background: #f3f8ff;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.access-pending-main {
  color: #13315f;
  font-weight: 700;
  line-height: 1.45;
}

.access-pending-secondary {
  color: #35527d;
  line-height: 1.45;
}

.access-pending-support {
  font-size: 0.88rem;
  color: #597093;
  margin-top: 2px;
}

.access-pending-actions {
  margin-top: 12px;
}

.auth-confirmation-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin: 4px auto 10px;
  display: block;
}

.password-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  gap: 8px;
  align-items: center;
}

.password-input-row .auth-form-control {
  min-width: 0;
  margin: 6px 0 10px;
}

.password-toggle {
  width: 64px;
  max-width: 64px;
  min-width: 64px;
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  padding: 0 8px;
  border: 1px solid #c6d1e6;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  line-height: 1;
  flex: 0 0 auto;
  align-self: center;
  box-sizing: border-box;
  margin: 6px 0 10px;
}
.auth-form-control {
  width: 100%;
  max-width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #c8d8ef;
  border-radius: 10px;
  background: #ffffff;
  font-family: inherit;
  font-size: 14px;
  color: #1e3254;
  margin: 6px 0 10px;
}

.auth-form-control:focus {
  outline: 2px solid #8cb2ea;
  outline-offset: 1px;
  border-color: #7ea4dc;
}


.setup-message-callout {
  border: 1px solid #d7e3f5;
  border-radius: 10px;
  background: #f7faff;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.setup-message-callout p {
  margin: 0;
}

#membership-setup-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 560px;
}

#membership-setup-form .button {
  margin-top: 10px;
}

.setup-summary-card {
  border: 1px solid #d7e3f5;
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
  padding: 10px 12px;
}

.setup-summary-card .row {
  padding: 9px 0;
}

.setup-summary-card .row + .row {
  border-top: 1px solid #e2ebf9;
}

.auth-form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 38px;
  background-image: linear-gradient(45deg, transparent 50%, #486996 50%), linear-gradient(135deg, #486996 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}


.auth-custom-select { position: relative; width: 100%; }
.auth-custom-select__trigger {
  display:flex; justify-content:space-between; align-items:center;
  text-align:left; cursor:pointer;
}
.auth-custom-select__chevron { color:#486996; font-size:12px; }
.auth-custom-select__menu {
  position:absolute; left:0; right:0; top:calc(100% + 6px); z-index:30;
  border:1px solid #c7d8ef; border-radius:12px; background:#fff;
  box-shadow:0 12px 24px rgba(12,32,64,.14); overflow:hidden;
}
.auth-custom-select__option { width:100%; border:0; background:#fff; text-align:left; padding:10px 12px; cursor:pointer; color:#12345f; }
.auth-custom-select__option + .auth-custom-select__option { border-top:1px solid #e8eef8; }
.auth-custom-select__option:hover { background:#f2f7ff; }
.auth-custom-select__option.is-selected { background:#eaf3ff; color:#1f436c; font-weight:600; }

.auth-action-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.auth-action-button {
  flex: 1 1 170px;
  margin-top: 0;
  text-align: center;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
}

.form-save-note {
  border: 1px solid #d0e2fb;
  border-radius: 10px;
  background: #f4f9ff;
  padding: 9px;
  margin: 8px 0 12px;
}

.global-notification-shell {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
}

body.global-notification-modal-open {
  overflow: hidden;
}

.global-notification-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(20px, env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) max(20px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
  background: rgba(38, 47, 64, 0.56);
}

.global-notification {
  position: fixed;
  right: 16px;
  bottom: 16px;
  max-width: min(420px, calc(100vw - 32px));
  border: 1px solid #365a92;
  border-radius: 12px;
  padding: 11px 40px 11px 12px;
  z-index: 1000;
  color: #edf4ff;
  box-shadow: 0 14px 28px rgba(7, 20, 44, 0.34);
  background: linear-gradient(180deg, #1f3f6f 0%, #162f52 100%);
}

.global-notification--requires-close {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  width: min(420px, calc(100vw - 40px));
  max-width: 420px;
  padding: 20px 44px 18px 18px;
  z-index: 10000;
  text-align: left;
}

.global-notification-backdrop .global-notification {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  box-sizing: border-box;
  max-width: min(420px, calc(100vw - 40px));
}

.global-notification.success {
  border-color: #3f679f;
  background: linear-gradient(180deg, #285087 0%, #1b3963 100%);
}

.global-notification.error {
  border-color: #4b6fa6;
  background: linear-gradient(180deg, #2b476f 0%, #1c344f 100%);
}

.global-notification p {
  margin: 0;
  font-weight: 600;
}

.global-notification-action {
  margin-top: 14px;
  width: 100%;
  justify-content: center;
  border-color: rgba(221, 231, 245, 0.78);
  color: #f5f9ff;
  background: rgba(255, 255, 255, 0.1);
}

.global-notification button {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 1px solid #6186bc;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.12);
  color: #f5f9ff;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 760px) {
  .global-notification-shell {
    top: calc(env(safe-area-inset-top, 0px) + 12px);
    bottom: auto;
    right: 12px;
    left: 12px;
  }

  .global-notification {
    top: calc(env(safe-area-inset-top, 0px) + 12px);
    bottom: auto;
    right: 12px;
    left: 12px;
    max-width: none;
    box-sizing: border-box;
  }

  .global-notification--requires-close {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: min(420px, calc(100vw - 40px));
    max-width: 420px;
  }
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.metric-card,
.plan-card {
  border: 1px solid #dbe4f4;
  border-radius: 12px;
  background: #fdfefe;
  padding: 10px;
}

.plan-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 16px;
  border-color: color-mix(in srgb, var(--plan-accent, #2f65a7) 28%, #dbe4f4);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--plan-accent, #2f65a7) 7%, #ffffff) 0%, #ffffff 46%, #f7fbff 100%);
  box-shadow: 0 12px 26px rgba(11, 35, 80, 0.08);
}

.plan-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--plan-accent, #2f65a7), color-mix(in srgb, var(--plan-accent, #2f65a7) 35%, #ffffff));
}

.plan-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
}

.plan-card-topline span {
  border: 1px solid color-mix(in srgb, var(--plan-accent, #2f65a7) 28%, #d6e3f5);
  border-radius: 999px;
  background: #ffffff;
  color: color-mix(in srgb, var(--plan-accent, #2f65a7) 78%, #18355e);
  font-size: 0.72rem;
  font-weight: 780;
  padding: 4px 8px;
}

.plan-card h3 {
  margin: 10px 0 2px;
  color: #102f5f;
}

.plan-card-price {
  margin: 0;
  color: #102f5f;
  font-size: 1.45rem;
}

.plan-card-price span {
  color: #587193;
  font-size: 0.9rem;
  font-weight: 650;
}

.plan-card-staff {
  margin: 8px 0 0;
  color: #244a7c;
  font-weight: 760;
}

.plan-card-focus {
  margin: 9px 0 0;
  color: #2d4a72;
  line-height: 1.45;
}

.plan-card-details {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.plan-card-details li {
  position: relative;
  padding-left: 16px;
  color: #263f64;
  line-height: 1.35;
}

.plan-card-details li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.56em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--plan-accent, #2f65a7);
}

.plan-card-cta {
  align-self: flex-start;
  margin-top: auto;
}

.metric-label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #4b6082;
}

.metric-value {
  margin: 6px 0 0;
  font-size: 20px;
  font-weight: 700;
  color: #143f7f;
}

.metric-detail {
  margin: 8px 0 0;
  color: #41587a;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.35;
}

.details-block {
  border: 1px solid #dbe5f5;
  border-radius: 12px;
  background: #f7faff;
  padding: 10px;
  margin-top: 12px;
}

.details-block summary {
  cursor: pointer;
  font-weight: 700;
  color: #1c427d;
}

.details-content {
  margin-top: 8px;
  color: #2a4268;
  line-height: 1.58;
}

.rental-fee-details {
  overflow: hidden;
  padding: 0;
}

.rental-fee-details summary {
  padding: 10px;
}

.rental-fee-details .details-content {
  margin-top: 0;
  position: relative;
}

.rental-fee-artwork,
.public-responsive-artwork-picture,
.rental-fee-artwork-image {
  display: block;
  width: 100%;
}

.rental-fee-artwork-image {
  height: auto;
}

.rental-fee-artwork-image--mobile {
  display: none;
}

.rental-fee-signup-control {
  position: absolute;
  right: 14px;
  bottom: 14px;
}

.rental-fee-signup-control .pre-frame-forward-button,
.public-payout-controls .pre-frame-forward-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.rental-fee-signup-control .pre-frame-forward-button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 0.98rem;
}

.section-heading-soft {
  color: #244b7d;
  font-weight: 650;
  letter-spacing: 0.003em;
}

.dense-block-heading {
  margin: 12px 0 8px;
  color: #284870;
  font-weight: 620;
}

.dense-list {
  margin: 6px 0 0;
  padding-left: 20px;
}

.dense-list li {
  margin: 0 0 7px;
  line-height: 1.55;
}

.segmented-display {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border: 1px solid #d4e1f4;
  border-radius: 999px;
  background: #f4f8ff;
}

.segment-pill {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #c8d8ef;
  background: #ffffff;
  font-size: 12px;
  font-weight: 600;
  color: #274a7e;
  cursor: pointer;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), background 198ms cubic-bezier(0.16, 1, 0.3, 1), color 198ms cubic-bezier(0.16, 1, 0.3, 1), border-color 198ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 198ms cubic-bezier(0.16, 1, 0.3, 1);
}

.segment-pill.active {
  border-color: #1d4a90;
  background: #1f57ac;
  color: #ffffff;
}

.segment-pill:not([disabled]):active {
  transform: scale(1.044);
  transition: transform 60ms cubic-bezier(0.16, 1, 0.3, 1), background 198ms cubic-bezier(0.16, 1, 0.3, 1), color 198ms cubic-bezier(0.16, 1, 0.3, 1), border-color 198ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 198ms cubic-bezier(0.16, 1, 0.3, 1);
  border-color: #153b75;
  background: #153b75;
  color: #ffffff;
}

.segment-pill.active:not([disabled]):active {
  background: #ffffff;
  color: #153b75;
}


.segment-pill--with-tooltip {
  position: relative;
}

.segment-pill--with-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  pointer-events: none;
  width: max-content;
  max-width: min(280px, 85vw);
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid #c7d8f0;
  background: #f8fbff;
  color: #294a78;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  box-shadow: 0 6px 18px rgba(28, 58, 104, 0.12);
  z-index: 6;
  white-space: normal;
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.segment-pill--with-tooltip::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translateX(-50%) translateY(4px) rotate(45deg);
  opacity: 0;
  width: 8px;
  height: 8px;
  background: #f8fbff;
  border-right: 1px solid #c7d8f0;
  border-bottom: 1px solid #c7d8f0;
  pointer-events: none;
  z-index: 6;
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.segment-pill--with-tooltip:hover::after,
.segment-pill--with-tooltip:hover::before,
.segment-pill--with-tooltip:focus-visible::after,
.segment-pill--with-tooltip:focus-visible::before,
.segment-pill--with-tooltip:active::after,
.segment-pill--with-tooltip:active::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.segment-pill--with-tooltip:hover::before,
.segment-pill--with-tooltip:focus-visible::before,
.segment-pill--with-tooltip:active::before {
  transform: translateX(-50%) translateY(0) rotate(45deg);
}

.ipi-writing-tools {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 8px 0 8px;
  padding: 4px;
  border: 1px solid #d9e4f5;
  border-radius: 999px;
  background: #f7faff;
}

.ipi-writing-tool-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #d2def2;
  background: #ffffff;
  font-size: 11px;
  font-weight: 600;
  color: #2a4e81;
  cursor: pointer;
  line-height: 1.25;
}

.ipi-writing-tool-button:hover,
.ipi-writing-tool-button:focus-visible {
  border-color: #7b98c7;
  background: #eef5ff;
  outline: none;
}

.ipi-writing-tool-button::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  pointer-events: none;
  width: max-content;
  max-width: min(280px, 85vw);
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid #c7d8f0;
  background: #f8fbff;
  color: #294a78;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  box-shadow: 0 6px 18px rgba(28, 58, 104, 0.12);
  z-index: 6;
  white-space: normal;
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.ipi-writing-tool-button::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translateX(-50%) translateY(4px) rotate(45deg);
  opacity: 0;
  width: 8px;
  height: 8px;
  background: #f8fbff;
  border-right: 1px solid #c7d8f0;
  border-bottom: 1px solid #c7d8f0;
  box-shadow: 1px 1px 6px rgba(28, 58, 104, 0.06);
  pointer-events: none;
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.ipi-writing-tool-button:hover::after,
.ipi-writing-tool-button:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.ipi-writing-tool-button:hover::before,
.ipi-writing-tool-button:focus-visible::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0) rotate(45deg);
}

.ipi-writing-tool-icon {
  width: 12px;
  height: 12px;
  display: inline-block;
  flex-shrink: 0;
  fill: currentColor;
}

.inline-help {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: 1px solid #c5d7f2;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #315788;
  background: #f3f8ff;
  vertical-align: middle;
  margin-left: 4px;
  cursor: pointer;
  text-transform: lowercase;
}

.inline-help::after {
  content: attr(data-tooltip);
  text-transform: none;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  pointer-events: none;
  width: max-content;
  max-width: min(260px, 82vw);
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid #c7d8f0;
  background: #f8fbff;
  color: #294a78;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  box-shadow: 0 6px 18px rgba(28, 58, 104, 0.12);
  z-index: 6;
  white-space: normal;
  overflow-wrap: anywhere;
}

.inline-help::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translateX(-50%) translateY(4px) rotate(45deg);
  opacity: 0;
  width: 8px;
  height: 8px;
  background: #f8fbff;
  border-right: 1px solid #c7d8f0;
  border-bottom: 1px solid #c7d8f0;
  pointer-events: none;
  z-index: 6;
}

.inline-help:hover::after,
.inline-help:hover::before,
.inline-help:focus-visible::after,
.inline-help:focus-visible::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.inline-help:focus-visible::before {
  transform: translateX(-50%) translateY(0) rotate(45deg);
}

.inline-help--mini {
  margin-left: 4px;
  width: 15px;
  height: 15px;
  font-size: 10px;
  font-weight: 600;
  text-transform: lowercase;
}

.inline-help:active::after,
.inline-help:active::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.inline-help:active::before {
  transform: translateX(-50%) translateY(0) rotate(45deg);
}

.score-meter-wrap {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  min-width: 150px;
}

.score-meter-wrap.compact {
  min-width: 130px;
  gap: 3px;
}

.score-meter-label {
  font-size: 12px;
  color: #355680;
}

.score-meter {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e5eefb;
  overflow: hidden;
}

.score-meter-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #759ddd 0%, #325f9f 100%);
}

.context-frame-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.context-frame-prompt {
  color: inherit;
}

.context-frame-tools-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.context-frame-tools-row::after {
  content: '';
  position: absolute;
  left: 178px;
  top: calc(100% + 2px);
  width: 42px;
  height: 14px;
  border-left: 1.5px solid rgba(83, 114, 165, 0.5);
  border-bottom: 1.5px solid rgba(83, 114, 165, 0.5);
  border-bottom-left-radius: 12px;
  pointer-events: none;
  opacity: 0.7;
}

.context-frame-tools-row::before {
  content: '';
  position: absolute;
  left: 175px;
  top: calc(100% - 2px);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 6px solid rgba(83, 114, 165, 0.52);
  pointer-events: none;
  opacity: 0.72;
}

.context-frame-tools-row .ipi-writing-tools {
  margin: 0;
}

.context-frame-tools-row .ipi-writing-tool-button-highlight {
  border-color: #7e9dcb;
  box-shadow: 0 0 0 3px rgba(101, 136, 190, 0.14);
}

.context-frame-format-tap-cue {
  display: none;
}

.context-frame-format-tap-wrap {
  position: relative;
  display: inline-flex;
}

.context-frame-forward-control {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.context-frame-forward-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}


.context-frame-main-textarea {
  min-height: 170px;
  line-height: 1.52;
}

.context-frame-secondary h3 {
  margin: 0 0 8px;
  font-size: 14px;
  color: #274a7e;
}

.context-frame-secondary--agreement {
  display: grid;
  gap: 15px;
  border-color: #bccfea;
  background: #f8fbff;
}

.context-frame-agreement-copy {
  max-width: none;
}

.context-frame-agreement-copy p {
  margin: 0;
  color: #183965;
  font-size: 15px;
  line-height: 1.48;
}

.context-frame-agreement-copy p:first-child {
  font-weight: 800;
}

.context-frame-agreement-label {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.2;
}

.context-frame-agreement-statement {
  display: block;
  font-size: 15px;
  line-height: 1.34;
}

.context-frame-agreement-copy p + p {
  margin-top: 6px;
  color: #345476;
}

.context-frame-helper-box {
  border: 1px solid #cbdaf0;
  border-radius: 10px;
  background: #ffffff;
  color: #223f6a;
  line-height: 1.5;
  padding: 10px 11px;
}

.context-frame-helper-box--agreement {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
}

.context-frame-section-divider {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 11px;
  margin: 15px 2px 14px;
}

.context-frame-section-divider::before,
.context-frame-section-divider span,
.context-frame-section-divider::after {
  content: '';
  height: 1px;
  background: linear-gradient(90deg, rgba(40, 86, 155, 0.08), rgba(122, 167, 125, 0.38), rgba(40, 86, 155, 0.08));
}

.context-frame-section-divider span {
  display: block;
}

.context-frame-secondary-textarea {
  min-height: 72px;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}

.file-chip {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid #ccdcef;
  background: #f7faff;
  font-size: 12px;
  color: #2a4e81;
  white-space: nowrap;
}

.file-chip-button {
  font-family: inherit;
  border-color: #95afd5;
  cursor: pointer;
}

.file-chip-button:hover {
  border-color: #9fb9dd;
  background: #eef5ff;
}

.public-proof-chip-list {
  --public-proof-cue-delay: 1800ms;
  position: relative;
  flex-wrap: nowrap;
  gap: 5px;
}

.public-proof-chip-list::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 4px);
  height: 28px;
  pointer-events: none;
  opacity: 0;
  animation: context-frame-format-cue-window 3s linear var(--public-proof-cue-delay) forwards;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg transform='rotate(180 32 32)'%3E%3Cpath fill='%2317396f' d='M31 4c-3.6 0-6.5 2.9-6.5 6.5V27h-2.8c-3.7 0-6.7 3-6.7 6.7v8.1C15 52 23 60 33.2 60h4.6C48 60 56 52 56 41.8v-8.1c0-3.1-2.5-5.7-5.7-5.7-2 0-3.8 1.1-4.8 2.7-.8-2.1-2.9-3.6-5.3-3.6-1.6 0-3.1.7-4.2 1.8V10.5C36 6.9 34.6 4 31 4Z'/%3E%3C/g%3E%3C/svg%3E") 52% 100% / 18px 20px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg transform='rotate(180 32 32)'%3E%3Cpath fill='%2317396f' d='M31 4c-3.6 0-6.5 2.9-6.5 6.5V27h-2.8c-3.7 0-6.7 3-6.7 6.7v8.1C15 52 23 60 33.2 60h4.6C48 60 56 52 56 41.8v-8.1c0-3.1-2.5-5.7-5.7-5.7-2 0-3.8 1.1-4.8 2.7-.8-2.1-2.9-3.6-5.3-3.6-1.6 0-3.1.7-4.2 1.8V10.5C36 6.9 34.6 4 31 4Z'/%3E%3C/g%3E%3C/svg%3E") 68% 100% / 18px 20px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg transform='rotate(180 32 32)'%3E%3Cpath fill='%2317396f' d='M31 4c-3.6 0-6.5 2.9-6.5 6.5V27h-2.8c-3.7 0-6.7 3-6.7 6.7v8.1C15 52 23 60 33.2 60h4.6C48 60 56 52 56 41.8v-8.1c0-3.1-2.5-5.7-5.7-5.7-2 0-3.8 1.1-4.8 2.7-.8-2.1-2.9-3.6-5.3-3.6-1.6 0-3.1.7-4.2 1.8V10.5C36 6.9 34.6 4 31 4Z'/%3E%3C/g%3E%3C/svg%3E") 84% 100% / 18px 20px no-repeat;
}

.public-proof-chip-list--cue-released {
  --public-proof-cue-delay: 180ms;
}

.public-proof-chip-list--cue-seen::after {
  animation: none;
  opacity: 0;
}

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

ol {
  padding-left: 20px;
}

@media (max-width: 860px) {
  .plan-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .company-plan-path,
  .pilot-intake-path,
  .audit-recap-grid,
  .public-dashboard-grid,
  .public-dashboard-chain {
    grid-template-columns: 1fr;
  }

  .explore-demo-grid {
    grid-template-columns: 1fr;
  }

  .hero-question-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .app-shell--landing {
    padding-top: 0;
  }

  .app-shell--landing .main-panel {
    margin-top: 0;
    padding: 0;
    background: #f8fbff;
  }

  .app-shell--landing .card:has(.landing-headline) {
    padding: 20px 18px 22px;
    border-radius: 0 0 16px 16px;
  }

  .app-shell--landing .card:has(.landing-headline)::before {
    top: 0;
    bottom: 22px;
  }

  .app-shell--landing .header-landing::after {
    height: clamp(72px, 10vw, 150px);
    background:
      linear-gradient(180deg, rgba(248, 251, 255, 0) 0%, rgba(248, 251, 255, 0.34) 42%, rgba(248, 251, 255, 0.82) 74%, #f8fbff 100%);
  }

  .header-compact--signup .compact-top-bar {
    flex-wrap: nowrap;
  }

  .app-shell--frame .header-compact {
    padding: 10px 12px;
  }

  .app-shell--frame .compact-top-bar {
    gap: 6px;
  }

  .app-shell--frame .page-label {
    display: none;
  }

  .context-frame-tools-row::before,
  .context-frame-tools-row::after {
    display: none;
  }

  .app-shell--frame .context-frame-format-tap-cue {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 2px);
    display: block;
    height: 28px;
    pointer-events: none;
    opacity: 0;
    animation: context-frame-format-cue-window 3s linear 1800ms forwards;
  }

  .app-shell--frame .context-frame-format-tap-hand {
    position: absolute;
    bottom: 0;
    width: 18px;
    height: 20px;
    color: #17396f;
  }

  .app-shell--frame .context-frame-format-tap-hand path {
    fill: currentColor;
  }

  .app-shell--frame .context-frame-format-tap-hand--left {
    left: 14%;
  }

  .app-shell--frame .context-frame-format-tap-hand--middle {
    left: 50%;
    transform: translateX(-50%);
  }

  .app-shell--frame .context-frame-format-tap-hand--right {
    right: 14%;
  }

  .ipi-writing-tool-button.ipi-writing-tool-speak::after {
    left: 0;
    transform: translateY(4px);
    max-width: min(260px, calc(100vw - 32px));
    text-align: center;
  }

  .ipi-writing-tool-button.ipi-writing-tool-speak::before {
    left: 18px;
    transform: translateY(4px) rotate(45deg);
  }

  .ipi-writing-tool-button.ipi-writing-tool-speak:hover::after,
  .ipi-writing-tool-button.ipi-writing-tool-speak:focus-visible::after {
    transform: translateY(0);
  }

  .ipi-writing-tool-button.ipi-writing-tool-speak:hover::before,
  .ipi-writing-tool-button.ipi-writing-tool-speak:focus-visible::before {
    transform: translateY(0) rotate(45deg);
  }

  .auth-form-control,
  .operator-form-control {
    font-size: 16px;
  }

  #objective-create-form .operator-date-display {
    width: calc(100% - 32px);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .operator-status-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .compact-header-actions {
    margin-left: 4px;
    width: 100%;
    justify-content: flex-end;
  }

  .auth-summary-actions {
    width: 100%;
    margin-left: 0;
  }

  
.auth-custom-select { position: relative; width: 100%; }
.auth-custom-select__trigger {
  display:flex; justify-content:space-between; align-items:center;
  text-align:left; cursor:pointer;
}
.auth-custom-select__chevron { color:#486996; font-size:12px; }
.auth-custom-select__menu {
  position:absolute; left:0; right:0; top:calc(100% + 6px); z-index:30;
  border:1px solid #c7d8ef; border-radius:12px; background:#fff;
  box-shadow:0 12px 24px rgba(12,32,64,.14); overflow:hidden;
}
.auth-custom-select__option { width:100%; border:0; background:#fff; text-align:left; padding:10px 12px; cursor:pointer; color:#12345f; }
.auth-custom-select__option + .auth-custom-select__option { border-top:1px solid #e8eef8; }
.auth-custom-select__option:hover { background:#f2f7ff; }
.auth-custom-select__option.is-selected { background:#eaf3ff; color:#1f436c; font-weight:600; }

.auth-action-row {
    flex-direction: column;
  }

  .auth-action-button {
    width: 100%;
    flex-basis: auto;
  }

  .pilot-intake-grid,
  .pilot-evidence-grid {
    grid-template-columns: 1fr;
  }

  .context-frame-main-textarea {
    font-size: 15px;
  }

  .context-frame-secondary-textarea,
  .context-frame-main-textarea.is-structured {
    font-size: 14px;
  }

  .context-frame-main-textarea.is-structured {
    line-height: 1.48;
  }

  .row {
    display: grid;
    grid-template-columns: minmax(122px, 43%) minmax(0, 1fr);
    align-items: start;
    gap: 8px 12px;
  }

  .label {
    min-width: 0;
  }

  .row-value {
    max-width: none;
    width: 100%;
    text-align: right;
    align-self: start;
  }

  .row.long-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .row.long-row .row-value {
    text-align: left;
    justify-self: start;
  }

  .row.long-row .chip-list {
    justify-content: flex-start;
  }

  .row.investor-proof-summary-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .investor-proof-summary-value {
    justify-self: stretch;
    text-align: left;
  }

  .investor-proof-summary-value .proof-summary-display-plain,
  .investor-proof-summary-value .proof-summary-display-formatted {
    text-align: left;
    margin-left: 4px;
  }

  .investor-proof-summary-label .ipi-writing-tools {
    width: fit-content;
    max-width: 100%;
  }

  .section-heading-soft {
    color: #2f5688;
    font-size: 1rem;
    font-weight: 610;
  }

  .details-block {
    padding: 11px 10px;
    margin-top: 13px;
  }

  .details-block summary {
    line-height: 1.42;
    color: #234b82;
  }

  .details-content {
    margin-top: 10px;
    line-height: 1.62;
  }

  .details-content .example-block {
    margin-top: 10px;
  }

  .dense-list {
    margin-top: 8px;
    padding-left: 18px;
  }

  .dense-list li {
    margin-bottom: 8px;
    line-height: 1.62;
  }

  .row:not(.long-row) .row-value {
    text-wrap: pretty;
  }

  .hero-question-row {
    gap: 7px;
  }

  .header-landing {
    overflow: hidden;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 0;
    border-top: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0 0 16px 16px;
  }

  .header-landing::before {
    display: none;
  }

  .header-landing .hero-title-row {
    margin-bottom: 10px;
  }

  .header-landing .brand-home-link {
    gap: 12px;
  }

  .header-landing .brand-mark {
    width: 42px;
    height: 42px;
  }

  .landing-hero-art {
    width: 100%;
    margin: 0;
    border-radius: inherit;
  }

  .landing-hero-art img {
    height: auto;
    object-fit: contain;
  }

  .landing-hero-brand-overlay {
    top: 6px;
    left: 18px;
    gap: 8px;
  }

  .landing-hero-brand-overlay .brand-mark {
    width: 30px;
    height: 30px;
  }

  .landing-hero-brand-overlay .wordmark-title {
    font-size: 1.48rem;
  }

  .hero-question-bubble {
    min-height: 34px;
    padding: 7px 10px;
  }

  .hero-support-callout {
    margin-top: 10px;
    padding: 10px 11px;
  }

  .hero-question.follow-up {
    text-align: center;
    line-height: 1.45;
  }

  .landing-tagline {
    font-size: clamp(0.87rem, 3.75vw, 0.96rem);
    letter-spacing: 0;
    padding: 8px 8px;
  }

  .card:has(.landing-headline) {
    padding: 16px 16px 18px;
  }

  .landing-headline {
    max-width: 100%;
    margin-bottom: 14px;
    font-size: clamp(1.38rem, 6.35vw, 1.72rem);
    line-height: 1.08;
    text-wrap: balance;
  }

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

  .landing-actions .button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .context-frame-helper-box--agreement {
    font-size: 15px;
  }

  .context-frame-agreement-label {
    margin-bottom: 7px;
    font-size: 12.5px;
  }

  .context-frame-secondary--agreement {
    padding-inline: 6px;
  }

  .context-frame-agreement-copy .context-frame-agreement-statement {
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.34;
  }

  .context-frame-agreement-copy .context-frame-agreement-support {
    font-size: 13px;
    line-height: 1.36;
  }

  .context-frame-section-divider {
    gap: 8px;
    margin: 12px 2px;
  }
}

@keyframes context-frame-format-cue-window {
  0%,
  18% {
    opacity: 1;
  }
  19%,
  38%,
  59%,
  78%,
  100% {
    opacity: 0;
  }
  39%,
  58%,
  79%,
  98% {
    opacity: 1;
  }
}

.workspace-setup-panel {
  padding: 22px 20px 20px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fbfdff 0%, #f6f9ff 100%);
}

.workspace-setup-heading {
  font-size: clamp(1.34rem, 3.9vw, 1.74rem);
  line-height: 1.26;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  max-width: 34ch;
  display: grid;
  gap: 8px;
}

.workspace-setup-heading-intro {
  display: block;
}

.workspace-setup-heading-highlight {
  display: inline-block;
  justify-self: center;
  text-align: center;
  font-size: 0.88em;
  font-weight: 560;
  line-height: 1.28;
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(30, 77, 151, 0.1) 0%, rgba(30, 77, 151, 0.05) 100%);
  border: 1px solid rgba(30, 77, 151, 0.16);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) inset;
}

.workspace-setup-form {
  margin-top: 0;
}

.workspace-setup-summary-card {
  padding: 14px 16px;
  border-color: #dce6f4;
  border-radius: 12px;
}

.workspace-setup-summary-card .row {
  padding: 10px 0;
}

.workspace-setup-summary-card .row:first-child {
  padding-top: 4px;
}

.workspace-setup-summary-card .row:last-child {
  border-bottom: 0;
  padding-bottom: 4px;
}

.workspace-setup-summary-card .label {
  color: #1b3a69;
}

.workspace-setup-summary-card .row-value {
  line-height: 1.36;
}

.workspace-setup-summary-card .segmented-display {
  justify-content: flex-end;
  gap: 5px;
}

.workspace-setup-cta {
  margin-top: 16px;
}

.operator-status-strip {
  padding: 7px 10px;
  gap: 10px;
}

.operator-status-meta {
  display: grid;
  gap: 2px;
}

@media (max-width: 680px) {
  .workspace-setup-panel {
    padding: 16px 14px 14px;
  }

  .workspace-setup-heading {
    font-size: clamp(1.2rem, 5.7vw, 1.44rem);
    line-height: 1.3;
    margin-bottom: 14px;
    gap: 7px;
  }

  .workspace-setup-heading-highlight {
    font-size: 0.86em;
    padding: 6px 12px;
  }

  .workspace-setup-summary-card {
    padding: 12px;
  }

  .workspace-setup-summary-card .row {
    padding: 9px 0;
  }

  .workspace-setup-summary-card .segmented-display {
    justify-content: flex-start;
  }

.workspace-setup-cta {
  width: 100%;
    margin-top: 14px;
  }
}

.workspace-intake-panel {
  display: grid;
  gap: 1rem;
}

.workspace-intake-context-card,
.workspace-intake-secondary {
  margin-top: 0;
  border: 1px solid rgba(96, 139, 199, 0.3);
  background:
    linear-gradient(180deg, rgba(249, 252, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow: 0 8px 18px rgba(16, 46, 88, 0.05);
}

.workspace-intake-context-card {
  position: relative;
  overflow: hidden;
}

.workspace-intake-context-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #2b5da4 0%, #7aa77d 100%);
}

.workspace-intake-context-card .context-frame-tools-row,
.workspace-intake-context-card .context-frame-main-textarea,
.workspace-intake-main-prompt {
  margin-left: 5px;
}

.workspace-intake-main-prompt {
  margin: 0 0 8px;
  color: #102a56;
  font-size: 1rem;
  line-height: 1.35;
}

.workspace-intake-main-prompt .inline-help {
  margin-left: 2px;
  vertical-align: baseline;
}


.workspace-intake-panel textarea.is-placeholder-value {
  color: #7d8fa8;
}

.workspace-intake-panel .context-frame-main-textarea {
  border-color: #bfd2ef;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.workspace-intake-finish-wrap {
  margin-top: 2px;
}

.workspace-intake-cycle-control .segmented-display {
  justify-content: flex-start;
}

.workspace-intake-main-prompt .inline-help::after {
  left: auto;
  right: 0;
  transform: translateY(4px);
  max-width: min(300px, calc(100vw - 40px));
}

.workspace-intake-main-prompt .inline-help::before {
  left: auto;
  right: 4px;
  transform: translateY(4px) rotate(45deg);
}

.workspace-intake-main-prompt .inline-help:hover::after,
.workspace-intake-main-prompt .inline-help:focus-visible::after,
.workspace-intake-main-prompt .inline-help:active::after {
  transform: translateY(0);
}

.workspace-intake-main-prompt .inline-help:hover::before,
.workspace-intake-main-prompt .inline-help:focus-visible::before,
.workspace-intake-main-prompt .inline-help:active::before {
  transform: translateY(0) rotate(45deg);
}



@media (max-width: 640px) {
  .human-agent-dashboard-header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .human-agent-dashboard-header-actions .operating-notification-bell {
    margin-left: auto;
  }

  .owner-inherited-will-objective-row__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .owner-inherited-will-row-action {
    justify-self: start;
  }

  .workspace-intake-main-prompt .inline-help::after {
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(4px);
    width: min(300px, calc(100vw - 24px));
    max-width: min(300px, calc(100vw - 24px));
  }

  .workspace-intake-main-prompt .inline-help::before {
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(4px) rotate(45deg);
  }

  .workspace-intake-main-prompt .inline-help:hover::after,
  .workspace-intake-main-prompt .inline-help:focus-visible::after,
  .workspace-intake-main-prompt .inline-help:active::after {
    transform: translateX(-50%) translateY(0);
  }

  .workspace-intake-main-prompt .inline-help:hover::before,
  .workspace-intake-main-prompt .inline-help:focus-visible::before,
  .workspace-intake-main-prompt .inline-help:active::before {
    transform: translateX(-50%) translateY(0) rotate(45deg);
  }
}

.preview-playground .tagline {
  margin-bottom: 12px;
}

.preview-summary-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid #d8e3f3;
  border-radius: 12px;
  background: #f5f9ff;
  color: #1c3f73;
  font-size: 0.88rem;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.preview-input-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.preview-input-grid label {
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
  color: #264a7a;
}

.preview-input-grid textarea {
  resize: vertical;
  min-height: 72px;
}

.preview-playground pre {
  margin: 0;
  max-height: 320px;
  overflow: auto;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #dde7f6;
  background: #fdfefe;
  font-size: 0.8rem;
}

.preview-shadow-block {
  margin-top: 1.25rem;
  padding: 1rem;
  border: 1px solid rgba(60, 74, 114, 0.24);
  border-radius: 0.75rem;
  background: linear-gradient(180deg, rgba(243, 246, 255, 0.78) 0%, rgba(248, 250, 255, 0.95) 100%);
}

.preview-shadow-badge {
  display: inline-block;
  margin: 0 0 0.35rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(38, 70, 182, 0.12);
  color: #2848a4;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.preview-shadow-block h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.preview-shadow-note {
  margin: 0 0 0.75rem;
  color: #41507c;
  font-size: 0.9rem;
}

.preview-compare-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.25rem;
}

.preview-compare-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #34507f;
}

.preview-compare-state {
  font-size: 0.82rem;
  font-weight: 700;
  color: #20447a;
  padding: 0.14rem 0.5rem;
  border-radius: 999px;
  border: 1px solid #c7d7f2;
  background: #edf3ff;
}

.preview-compare-reason {
  margin: 0 0 0.65rem;
  color: #3f547d;
  font-size: 0.85rem;
}

.investor-entry-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 18, 38, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(2px);
}

.investor-entry-overlay--transition {
  padding: 0;
  background: #0B2548;
  backdrop-filter: none;
}

.investor-entry-overlay--transition-exit {
  background:
    radial-gradient(circle at 50% 46%, rgba(118, 187, 232, 0.2), rgba(118, 187, 232, 0) 34%),
    linear-gradient(180deg, #0B2548 0%, #112f5d 54%, #f8fbff 180%);
}

.investor-entry-overlay--transition-exit::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34vh;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(248, 251, 255, 0.18));
  opacity: 0;
  transform: translateY(28%);
  animation: investor-clickable-demo-floor 620ms cubic-bezier(0.22, 0.74, 0.2, 1) forwards;
  pointer-events: none;
}

.investor-entry-transition-mark-wrap {
  position: relative;
  width: clamp(188px, 62vw, 360px);
  opacity: 1;
  transform: scale(0.985);
  animation: investor-entry-logo-fade 780ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.investor-entry-transition-mark-wrap.exit {
  animation-name: investor-entry-logo-fade-exit;
  animation-duration: 620ms;
}

.investor-entry-transition-mark {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.32));
}

.investor-entry-overlay--signup-transition {
  background: linear-gradient(180deg, #f8fbff 0%, #edf5ff 56%, #123a72 100%);
  overflow: hidden;
  animation: public-signup-transition-shell 2600ms cubic-bezier(0.22, 0.74, 0.2, 1) both;
}

.investor-entry-overlay--signup-transition picture {
  position: absolute;
  inset: 0;
  display: block;
}

.public-signup-transition-artwork {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transform: scale(0.985);
  will-change: opacity, transform;
  animation: public-signup-transition-artwork 2600ms cubic-bezier(0.22, 0.74, 0.2, 1) both;
}

.investor-entry-transition-whisk {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(68vw, 420px);
  height: 2px;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg, rgba(196, 222, 255, 0), rgba(196, 222, 255, 0.82), rgba(196, 222, 255, 0));
  opacity: 0;
  mix-blend-mode: screen;
  pointer-events: none;
  animation: investor-entry-center-whisk 560ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}


.investor-entry-overlay--walkthrough-closing {
  background: rgba(8, 18, 38, 0.76);
}

.investor-walkthrough-panel--closing {
  animation: investor-walkthrough-dismiss 210ms cubic-bezier(0.32, 0.72, 0, 1) forwards;
}
.investor-walkthrough-panel {
  width: min(100%, 720px);
  max-height: min(92vh, 760px);
  border: 1px solid rgba(180, 201, 236, 0.45);
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fd 100%);
  box-shadow: 0 20px 42px rgba(5, 17, 44, 0.32);
  padding: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.investor-walkthrough-panel h2 {
  margin: 0 0 10px;
  font-size: clamp(1.05rem, 4.5vw, 1.3rem);
}

.investor-walkthrough-note {
  margin: -4px 0 12px;
  color: #2d4a72;
  font-size: 0.92rem;
}

.investor-walkthrough-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 1px solid #c9d8ef;
  background: #ffffff;
  color: #17396f;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.investor-walkthrough-video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(60vh, 420px);
  border-radius: 12px;
  border: 1px solid #d4e1f5;
  background: #0b1935;
  overflow: hidden;
  margin-bottom: 12px;
}

.investor-walkthrough-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #0b1935;
}

.investor-walkthrough-skip {
  width: 100%;
}

.pre-frame-authored-sequence {
  position: fixed;
  inset: 0;
  z-index: 205;
  overflow: hidden;
}

.pre-frame-static-surface,
.pre-frame-teaching {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pre-frame-static-surface {
  z-index: 0;
  background:
    radial-gradient(circle at 50% 46%, rgba(118, 187, 232, 0.2), rgba(118, 187, 232, 0) 34%),
    linear-gradient(180deg, #0B2548 0%, #112f5d 54%, #f8fbff 180%);
}

.pre-frame-static-surface::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34vh;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(248, 251, 255, 0.18));
  pointer-events: none;
}

.pre-frame-teaching {
  z-index: 1;
  background: linear-gradient(180deg, #fbfdff 0%, #f7faff 100%);
  color: #374151;
}

.pre-frame-teaching-shell {
  position: relative;
  width: min(100%, 980px);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  padding: clamp(24px, 5vw, 48px);
}

.pre-frame-teaching-copy {
  width: min(100%, 900px);
}

.pre-frame-teaching-intro {
  margin: 0;
  color: #374151;
  font-size: clamp(1.45rem, 2.2vw, 1.8rem);
  font-weight: 500;
  line-height: 1.35;
}

.pre-frame-truth-list {
  counter-reset: pre-frame-truth;
  display: grid;
  gap: 4px;
  margin: clamp(24px, 3vw, 30px) 0 0;
  padding: 0;
  list-style: none;
  color: #414957;
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  font-weight: 450;
  line-height: 1.38;
}

.owner-inherited-will-intro-list {
  margin-top: 0;
}

.public-add-on-intro .owner-inherited-will-intro-list {
  gap: clamp(28px, 3.6vw, 40px);
  max-width: min(94vw, 980px);
  font-size: clamp(1rem, 1.36vw, 1.18rem);
  line-height: 1.32;
}

.public-add-on-intro-lead {
  margin: 0 0 clamp(30px, 4vw, 42px);
  max-width: min(94vw, 980px);
  color: #374151;
  font-size: clamp(1.12rem, 1.52vw, 1.32rem);
  white-space: nowrap;
}

.pre-frame-truth {
  counter-increment: pre-frame-truth;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  min-height: 1.38em;
}

.pre-frame-truth::before {
  content: counter(pre-frame-truth) ":";
}

.pre-frame-truth--typed {
  opacity: 0;
  animation: pre-frame-truth-show 1ms linear both;
  animation-delay: var(--pre-frame-line-delay, 0ms);
}

.pre-frame-typed-copy {
  display: inline;
}

.pre-frame-typed-copy-shell {
  position: relative;
  display: inline-block;
  width: 100%;
}

.pre-frame-typed-copy-reserve {
  visibility: hidden;
}

.pre-frame-typed-copy--reserved {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
}

.pre-frame-truth-mobile-copy {
  display: none;
}

.pre-frame-typed-copy.is-active::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.14em;
  background: rgba(55, 65, 81, 0.68);
  animation: pre-frame-cursor-blink 700ms steps(2, end) infinite;
}

.pre-frame-teaching-cue {
  display: none;
}

.pre-frame-teaching-shell--ceo {
  justify-content: center;
}

.pre-frame-ceo-copy {
  max-width: 920px;
  margin: 0;
  color: #374151;
  font-size: clamp(1.45rem, 2.2vw, 1.8rem);
  font-weight: 500;
  line-height: 1.4;
}

.pre-frame-ceo-line {
  display: block;
  min-height: 1.4em;
  opacity: 0;
  animation: pre-frame-truth-show 1ms linear both;
  animation-delay: var(--pre-frame-line-delay, 0ms);
}

.pre-frame-teaching--ceo {
  animation: pre-frame-ceo-enter 460ms cubic-bezier(0.22, 0.74, 0.2, 1) both;
}

.pre-frame-teaching--frame-exit {
  animation: pre-frame-frame-exit 560ms cubic-bezier(0.22, 0.74, 0.2, 1) both;
}

.pre-frame-teaching--frame-exit-up {
  animation-name: pre-frame-frame-exit-up;
}

.pre-frame-static-transition-mark-wrap {
  width: clamp(188px, 62vw, 360px);
}

.pre-frame-static-transition-mark {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.32));
}

.pre-frame-desktop-controls {
  position: absolute;
  right: clamp(20px, 4vw, 40px);
  bottom: clamp(20px, 4vw, 36px);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pre-frame-forward-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid #143b79;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(180deg, #1d4f9c 0%, #153b75 100%);
  box-shadow: 0 10px 18px rgba(17, 49, 98, 0.14);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

@keyframes pre-frame-truth-show {
  to {
    opacity: 1;
  }
}

@keyframes pre-frame-cursor-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@keyframes pre-frame-ceo-enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pre-frame-frame-exit {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100vw);
  }
}

@keyframes pre-frame-frame-exit-up {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-100dvh);
  }
}

@keyframes pre-frame-mobile-cue-window {
  0%,
  100% {
    opacity: 0;
  }
  8%,
  92% {
    opacity: 1;
  }
}

@keyframes pre-frame-mobile-cue-up {
  0% {
    transform: translate(0, 54px);
  }
  48% {
    transform: translate(10px, -18px);
  }
  68% {
    transform: translate(26px, -48px);
  }
  84% {
    transform: translate(48px, -66px);
  }
  100% {
    transform: translate(0, 54px);
  }
}

@keyframes pre-frame-mobile-cue-left {
  0% {
    transform: translate(54px, 34px);
  }
  34% {
    transform: translate(18px, 10px);
  }
  62% {
    transform: translate(-28px, 0);
  }
  84% {
    transform: translate(-66px, 0);
  }
  100% {
    transform: translate(54px, 34px);
  }
}

@keyframes pre-frame-mobile-cue-up-straight {
  0% {
    transform: translateY(54px);
  }
  70% {
    transform: translateY(-48px);
  }
  100% {
    transform: translateY(-66px);
  }
}

@keyframes pre-frame-mobile-cue-left-straight {
  0% {
    transform: translateX(54px);
  }
  70% {
    transform: translateX(-48px);
  }
  100% {
    transform: translateX(-66px);
  }
}

@keyframes pre-frame-mobile-cue-down {
  0% {
    transform: translateY(-54px);
  }
  70% {
    transform: translateY(48px);
  }
  100% {
    transform: translateY(66px);
  }
}

@keyframes investor-walkthrough-dismiss {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0.84;
    transform: translateY(8px) scale(0.985);
  }
}

@keyframes investor-entry-logo-fade {
  0% {
    opacity: 0.9;
    transform: scale(0.985);
  }
  45% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1.015);
  }
}

@keyframes investor-entry-logo-fade-exit {
  0% {
    opacity: 0.9;
    transform: scale(0.99);
  }
  45% {
    opacity: 1;
    transform: scale(1.02);
  }
  100% {
    opacity: 1;
    transform: scale(1.035);
  }
}

@keyframes public-signup-transition-shell {
  0% {
    opacity: 0;
  }

  12%,
  86% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes public-signup-transition-artwork {
  0% {
    opacity: 0;
    transform: scale(0.985);
  }

  18% {
    opacity: 1;
    transform: scale(0.992);
  }

  78% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1);
  }
}

@keyframes investor-entry-center-whisk {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scaleX(0.35);
    filter: blur(1.2px);
  }
  24% {
    opacity: 0.34;
    transform: translate(-50%, -50%) scaleX(1);
    filter: blur(0.7px);
  }
  62% {
    opacity: 0;
    transform: translate(-50%, -50%) scaleX(1.12);
    filter: blur(1.2px);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scaleX(1.18);
    filter: blur(1.4px);
  }
}

@keyframes investor-clickable-demo-floor {
  0% {
    opacity: 0;
    transform: translateY(28%);
  }
  58% {
    opacity: 1;
    transform: translateY(2%);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


.frame-dashboard-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 210;
  pointer-events: none;
  overflow: hidden;
}

.frame-dashboard-transition-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 520ms cubic-bezier(0.22, 0.74, 0.2, 1),
    transform 520ms cubic-bezier(0.22, 0.74, 0.2, 1);
}

.frame-dashboard-transition-layer--blue {
  background:
    radial-gradient(circle at 50% 44%, rgba(58, 97, 158, 0.28) 0%, rgba(11, 37, 72, 0) 38%),
    #0B2548;
  opacity: 1;
}

.frame-dashboard-transition-layer--white {
  background: #fbfdff;
  opacity: 0;
  transform: scale(1.012);
}

.frame-dashboard-transition-overlay--white .frame-dashboard-transition-layer--white,
.frame-dashboard-transition-overlay--handoff .frame-dashboard-transition-layer--white {
  opacity: 1;
  transform: scale(1);
}

.frame-dashboard-transition-overlay--white .frame-dashboard-transition-layer--blue,
.frame-dashboard-transition-overlay--handoff .frame-dashboard-transition-layer--blue {
  opacity: 0;
  transform: scale(0.992);
}


.frame-dashboard-transition-logo {
  width: clamp(108px, 20vw, 168px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.frame-dashboard-transition-mark-frame,
.frame-dashboard-transition-logo-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: opacity, transform;
}

.frame-dashboard-transition-mark-frame {
  animation: frame-dashboard-mark-settle 560ms cubic-bezier(0.22, 0.74, 0.2, 1) both;
}

.frame-dashboard-transition-logo-frame {
  opacity: 0;
  transform: scale(0.965);
}

.frame-dashboard-transition-status {
  position: absolute;
  left: 50%;
  bottom: clamp(92px, 18vh, 156px);
  width: min(82vw, 420px);
  margin: 0;
  transform: translateX(-50%);
  color: #f8fbff;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  transition: color 440ms cubic-bezier(0.22, 0.74, 0.2, 1), text-shadow 440ms cubic-bezier(0.22, 0.74, 0.2, 1);
}

.frame-dashboard-transition-overlay--white .frame-dashboard-transition-status,
.frame-dashboard-transition-overlay--handoff .frame-dashboard-transition-status {
  color: #0B2548;
  text-shadow: none;
}

.frame-dashboard-transition-overlay--white .frame-dashboard-transition-logo-frame,
.frame-dashboard-transition-overlay--handoff .frame-dashboard-transition-logo-frame {
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 440ms cubic-bezier(0.22, 0.74, 0.2, 1),
    transform 520ms cubic-bezier(0.22, 0.74, 0.2, 1);
}

@keyframes frame-dashboard-mark-settle {
  0% {
    opacity: 0;
    transform: scale(0.94);
  }

  55% {
    opacity: 1;
    transform: scale(1.018);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@media (max-width: 767px) {
  .pre-frame-teaching-shell {
    min-height: 100%;
    justify-content: center;
    padding: 24px 20px;
  }

  .pre-frame-teaching-intro,
  .pre-frame-ceo-copy {
    font-size: 1.18rem;
  }

  .pre-frame-truth-list {
    gap: 6px;
    margin-top: 22px;
    font-size: 1.08rem;
  }

  .public-add-on-intro .pre-frame-teaching-shell {
    padding: 24px 16px 88px;
  }

  .owner-inherited-will-intro-sequence .pre-frame-teaching-shell {
    justify-content: flex-start;
    padding-top: clamp(56px, 12vh, 112px);
  }

  .public-add-on-intro .owner-inherited-will-intro-list {
    gap: 28px;
    width: min(100%, 355px);
    font-size: clamp(0.78rem, 3.1vw, 0.84rem);
    line-height: 1.28;
  }

  .public-add-on-intro-lead {
    margin-bottom: 28px;
    width: min(100%, 355px);
    font-size: clamp(0.84rem, 3.25vw, 0.9rem);
    line-height: 1.22;
  }

  .public-add-on-intro .pre-frame-truth {
    gap: 5px;
    min-height: 1.28em;
  }

  .pre-frame-truth--6 .pre-frame-truth-desktop-copy {
    display: none;
  }

  .pre-frame-truth--6 .pre-frame-truth-mobile-copy {
    display: block;
  }

  .pre-frame-truth-mobile-line {
    display: block;
    min-height: 1.38em;
    white-space: nowrap;
  }

  .pre-frame-teaching-cue {
    position: absolute;
    left: 50%;
    bottom: clamp(72px, 14vh, 112px);
    display: block;
    width: 84px;
    height: 132px;
    transform: translateX(-50%);
    opacity: 0;
    animation: pre-frame-mobile-cue-window 3s linear var(--pre-frame-cue-delay, 0ms) both;
  }

  .pre-frame-ceo-copy {
    max-width: none;
    width: min(100%, 350px);
    font-size: 0.84rem;
    line-height: 1.42;
  }

  .pre-frame-ceo-line {
    white-space: nowrap;
  }

  .app-shell[data-public-locale="ja"] .pre-frame-ceo-copy {
    width: min(100%, 340px);
    max-width: calc(100vw - 40px);
  }

  .app-shell[data-public-locale="ja"] .pre-frame-ceo-line,
  .app-shell[data-public-locale="ja"] .public-ha-waiting-line {
    white-space: normal;
    overflow-wrap: anywhere;
    line-break: strict;
  }

  .pre-frame-teaching--truths-exit-up {
    animation: pre-frame-frame-exit-up 560ms cubic-bezier(0.22, 0.74, 0.2, 1) both;
  }

  .pre-frame-pointer-hand {
    position: absolute;
    left: 30px;
    top: 53px;
    width: 24px;
    height: 26px;
    color: #17396f;
    overflow: visible;
  }

  .pre-frame-pointer-hand path {
    fill: currentColor;
  }

  .pre-frame-teaching-cue--logo .pre-frame-pointer-hand {
    color: rgba(255, 255, 255, 0.95);
  }

  .pre-frame-teaching-cue--up .pre-frame-pointer-hand {
    animation: pre-frame-mobile-cue-up 1s cubic-bezier(0.22, 0.74, 0.2, 1) var(--pre-frame-cue-delay, 0ms) 3 both;
  }

  .pre-frame-teaching-cue--left .pre-frame-pointer-hand {
    animation: pre-frame-mobile-cue-left 1s cubic-bezier(0.22, 0.74, 0.2, 1) var(--pre-frame-cue-delay, 0ms) 3 both;
  }

  .pre-frame-teaching-cue--logo.pre-frame-teaching-cue--up .pre-frame-pointer-hand {
    animation-name: pre-frame-mobile-cue-up-straight;
  }

  .pre-frame-teaching-cue--logo.pre-frame-teaching-cue--left .pre-frame-pointer-hand {
    animation-name: pre-frame-mobile-cue-left-straight;
  }

  .pre-frame-teaching-cue--down .pre-frame-pointer-hand {
    animation: pre-frame-mobile-cue-down 1s cubic-bezier(0.22, 0.74, 0.2, 1) var(--pre-frame-cue-delay, 0ms) 3 both;
  }

  .pre-frame-desktop-controls {
    display: none;
  }

  .frame-dashboard-transition-logo {
    width: clamp(116px, 32vw, 168px);
  }

  .frame-dashboard-transition-logo--dark {
    width: clamp(128px, 35vw, 184px);
  }

  .frame-dashboard-transition-logo--light {
    width: clamp(100px, 30vw, 152px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-shell--ha-perspective::before,
  .pre-frame-typed-copy.is-active::after,
  .pre-frame-teaching-cue,
  .pre-frame-teaching-cue--up .pre-frame-pointer-hand,
  .pre-frame-teaching-cue--left .pre-frame-pointer-hand,
  .pre-frame-teaching-cue--down .pre-frame-pointer-hand,
  .pre-frame-teaching--ceo,
  .pre-frame-teaching--frame-exit {
    animation: none;
  }

  .pre-frame-teaching-cue {
    opacity: 0;
  }

  .public-ha-invitation-bubble,
  .public-ha-invitation-flow,
  .public-ha-invitation-slot,
  .public-ha-invitation-check,
  .public-ha-truth-edit,
  .human-agent-truth-confirm-button,
  .public-ha-truth-motivation-fill,
  .public-ha-truth-motivation-knob,
  .public-ha-truth-motivation-hand,
  .public-ha-waiting-lead,
  .public-ha-waiting-divider,
  .public-ha-waiting-bubble,
  .public-ha-waiting-line,
  .public-pricing-signup-divider,
  .public-pricing-signup-bubble {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 700px) {
  .public-ha-invitation-shell {
    min-height: calc(100dvh - 182px);
    justify-content: center;
    padding: 12px 0;
  }

  .public-ha-invitation-bubble {
    width: 100%;
    max-width: calc(100vw - 34px);
    padding: 16px;
  }

  .public-ha-invitation-copy {
    font-size: 0.78rem;
  }

  .public-ha-invitation-slot {
    width: 100%;
  }

  .public-ha-invitation-slot p {
    width: min(100%, 308px);
    font-size: 0.79rem;
  }

  .public-ha-invitation-field {
    min-height: 72px;
  }

  .public-ha-invitation-confirmation {
    width: 62px;
    height: 62px;
  }

  .public-ha-mobile-cue {
    position: fixed;
    left: 50%;
    bottom: clamp(72px, 14vh, 112px);
    display: block;
    transform: translateX(-50%);
    z-index: 2;
  }

  .public-ha-desktop-controls {
    display: none;
  }

  .human-agent-invite-decline-forward {
    display: none;
  }

  .human-agent-invite-decline-cue {
    position: fixed;
    left: 50%;
    bottom: clamp(72px, 14vh, 112px);
    display: block;
    transform: translateX(-50%);
    z-index: 2;
  }

  .public-ha-waiting-shell {
    min-height: calc(100dvh - 182px);
    padding: 24px 20px;
  }

  .public-ha-waiting-copy {
    width: min(100%, 350px);
  }

  .public-ha-waiting-lead {
    font-size: 0.84rem;
  }

  .public-ha-waiting-divider {
    margin: 16px 0 14px;
  }

  .public-ha-waiting-bubble {
    width: 100%;
    padding: 14px 16px;
  }

  .app-shell[data-public-locale="ja"] .public-ha-waiting-copy {
    width: min(100%, 330px);
  }

  .app-shell[data-public-locale="ja"] .public-ha-waiting-bubble {
    max-width: 100%;
  }

  .public-ha-waiting-line {
    font-size: 0.72rem;
    line-height: 1.42;
    white-space: nowrap;
  }

  .app-shell--ha-perspective {
    padding: 12px;
  }

  .public-ha-truth-shell {
    gap: 16px;
    padding: 14px 0;
  }

  .public-ha-truth-kicker {
    font-size: 1rem;
  }

  .public-ha-truth-intro {
    font-size: 0.86rem;
  }

  .public-ha-truth-grid {
    grid-template-columns: 1fr;
  }

  .public-ha-truth-field {
    min-height: 70px;
  }

  .public-ha-truth-motivation-copy,
  .public-ha-truth-motivation-scale {
    font-size: 0.76rem;
  }

  .public-ha-truth-prompt {
    padding: 14px 14px 12px;
  }

  .public-ha-truth-context-frame {
    padding: 14px;
    font-size: 0.9rem;
  }

  .public-ha-truth-prompt ol {
    padding-left: 18px;
    font-size: 0.82rem;
  }

  .public-ha-truth-textarea {
    min-height: 220px;
    font-size: 0.88rem;
  }

  .public-ha-confirmation-shell {
    min-height: calc(100dvh - 182px);
    padding: 24px 20px;
  }

  .public-ha-confirmation-copy {
    width: min(100%, 350px);
  }

  .public-ha-confirmation-copy p {
    font-size: 0.92rem;
  }

  .public-pricing-signup-shell {
    min-height: calc(100dvh - 182px);
    padding: 24px 20px;
  }

  .public-pricing-signup-copy {
    width: min(calc(100% + 24px), 374px);
    max-width: none;
    transform: none;
  }

  .public-pricing-signup-lead,
  .public-pricing-signup-line {
    font-size: 0.84rem;
    line-height: 1.42;
  }

  .public-pricing-signup-divider {
    margin: 16px 0 14px;
  }

  .public-pricing-signup-bubble {
    width: 100%;
    margin-left: -8px;
    padding: 14px 10px 14px 0;
  }

  .public-company-setup-complete-shell {
    min-height: 100dvh;
  }

  .public-company-setup-complete-artwork-image--desktop {
    display: none;
  }

  .public-responsive-artwork-picture--desktop {
    display: none;
  }

  .public-responsive-artwork-picture--mobile {
    display: block;
  }

  .public-company-setup-complete-artwork-image--mobile {
    display: block;
  }

  .rental-fee-artwork-image--desktop {
    display: none;
  }

  .rental-fee-artwork-image--mobile {
    display: block;
  }

  .rental-fee-signup-control {
    right: 14px;
    bottom: 14px;
  }

  .rental-fee-signup-control .pre-frame-forward-button {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }

  .public-proof-chip-list {
    justify-content: flex-start;
  }

  .file-chip {
    font-size: 10px;
    padding: 2px 6px;
  }

  .public-company-setup-complete-forward-control {
    right: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom));
  }

  .public-artwork-split-controls {
    left: 18px;
    justify-content: space-between;
    pointer-events: none;
  }

  .public-artwork-split-controls .pre-frame-forward-button,
  .public-artwork-split-controls .public-company-setup-complete-back-control {
    pointer-events: auto;
  }

  .public-company-setup-recovery-back-control {
    display: inline-flex;
  }

  .public-artwork-split-controls .pre-frame-forward-button {
    order: 2;
  }

  .public-artwork-split-controls .public-company-setup-complete-back-control {
    order: 1;
  }
}

.public-ha-swipe-transition-surface--from-bottom {
  align-items: stretch;
  justify-content: flex-start;
  min-height: 100svh;
  min-height: 100dvh;
  padding: 0;
  transform-origin: 50% 100%;
  animation: public-ha-swipe-from-bottom-up 560ms cubic-bezier(0.22, 0.74, 0.2, 1) both;
}

.public-ha-swipe-transition-surface--from-bottom > .public-ha-invitation-shell,
.public-ha-swipe-transition-surface--from-bottom > .public-ha-waiting-shell {
  width: 100%;
  max-width: none;
  min-height: 100svh;
  min-height: 100dvh;
}

@keyframes public-ha-swipe-from-bottom-up {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(0, -100svh, 0);
  }
}

.details-inline {
  display: inline-block;
  margin-top: 2px;
}

.details-inline summary {
  display: inline-block;
  width: fit-content;
}

.details-chip summary {
  border: 1px solid #c7d8ef;
  border-radius: 999px;
  background: linear-gradient(180deg, #f9fcff 0%, #eef5ff 100%);
  color: #2c5486;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
}

.details-chip[open] summary {
  border-color: #adc5e7;
  background: #eaf3ff;
}

.details-inline-summary summary {
  border: 1px solid #d3deed;
  border-radius: 8px;
  background: #f8fbff;
  color: #355b89;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
}

.details-inline-summary[open] summary {
  border-color: #9ebde4;
  background: #edf5ff;
}

.signal-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 10px;
  margin: 8px 0 12px;
}

.signal-card {
  border: 1px solid #d7e5f7;
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfdff 0%, #f2f8ff 100%);
  padding: 9px 10px;
}

.signal-card-label {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #547099;
}

.signal-card-label--with-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.signal-card-value {
  margin: 5px 0 0;
  color: #1f436c;
  font-weight: 700;
}

.signal-card-detail {
  margin: 4px 0 0;
  color: #4f6481;
  font-size: 12px;
}

.mode-value-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mode-value-primary {
  font-weight: 700;
  color: #1f436c;
}

.mode-value-secondary .policy-source-badge {
  margin-left: 0;
}

.policy-layer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.policy-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(120, 134, 166, 0.18);
}
.policy-row-title {
  font-weight: 600;
  color: #24405f;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}
.policy-controls { display: grid; gap: 8px; align-content: start; }
.policy-controls--follow { gap: 0; }
.policy-controls--custom { gap: 6px; }
.segmented { display: inline-flex; border: 1px solid #cfd8e6; border-radius: 999px; overflow: hidden; width: fit-content; }
.segment-btn { border: none; background: #f4f7fb; color: #4a607e; padding: 6px 12px; cursor: pointer; font-size: 12px; }
.segment-btn.active { background: #224f85; color: white; }

.policy-stepbar { display:flex; flex-wrap:wrap; gap:8px; margin: 10px 0 14px; }
.policy-step-btn { border:1px solid #c8d8ef; border-radius:12px; background:#f5f9ff; color:#27466f; padding:8px 12px; display:inline-flex; align-items:center; gap:8px; font-weight:600; cursor:pointer; }
.policy-step-btn.active { background:linear-gradient(180deg,#245fb9 0%,#18458a 100%); color:#fff; border-color:#18458a; }
.policy-step-index { width:20px; height:20px; border-radius:999px; background:rgba(255,255,255,0.28); display:inline-flex; align-items:center; justify-content:center; font-size:12px; }
.policy-attachment-step--defaults {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 14%, rgba(127, 188, 232, 0.15), rgba(127, 188, 232, 0) 36%),
    linear-gradient(145deg, #ffffff 0%, #f9fcff 48%, #eef6fe 100%);
}

.policy-attachment-step--defaults::before {
  content: "";
  position: absolute;
  inset: -18%;
  pointer-events: none;
  background:
    linear-gradient(
      135deg,
      transparent 0 15%,
      rgba(166, 183, 206, 0.18) 16% 22%,
      transparent 23% 38%,
      rgba(199, 212, 229, 0.25) 39% 45%,
      transparent 46% 60%,
      rgba(131, 158, 194, 0.12) 61% 66%,
      transparent 67% 100%
    );
  opacity: 0.6;
  animation: owner-summary-card-wisps 5.2s ease-in-out infinite alternate;
}

.policy-attachment-step--defaults > * {
  position: relative;
  z-index: 1;
}

.policy-attachment-scope {
  background:
    radial-gradient(circle at 86% 18%, rgba(168, 210, 242, 0.16), rgba(168, 210, 242, 0) 38%),
    linear-gradient(142deg, rgba(255, 255, 255, 0.96), rgba(241, 248, 255, 0.82));
}

.policy-attachment-footer-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.policy-attachment-footer-nav .workspace-back-button.button {
  min-height: 38px;
  height: 38px;
  padding-top: 0;
  padding-bottom: 0;
}

.policy-attachment-footer-nav .route-return-icon {
  width: 38px;
  height: 38px;
  margin-top: 0 !important;
  align-self: center;
  flex: 0 0 38px;
}

.policy-glossary-grid, .policy-simpler-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:8px; }
.policy-glossary-item, .policy-simple-card { border:1px solid #d9e5f7; border-radius:10px; background:#f8fbff; padding:8px 10px; }
.policy-glossary-item p, .policy-simple-card p { margin:4px 0 0; font-size:13px; color:#35527c; }
.policy-orientation-note { padding:10px 12px; border:1px solid #c3d7f3; border-radius:10px; background:#eaf3ff; color:#1f436c; }
.policy-source-badge { display:inline-flex; margin-left:8px; padding:2px 8px; border-radius:999px; border:1px solid #c7d8ef; background:#eef4ff; color:#3b5d8c; font-size:12px; }
.internal-source-badge { display:inline-flex; align-items:center; padding:1px 6px; border-radius:999px; border:1px solid #d5e2f2; background:#f5f8fd; color:#627c9d; font-size:10px; font-weight:600; text-transform:none; letter-spacing:0; line-height:1.2; }
.policy-row--follow { padding: 6px 0; }
.policy-row--custom { padding: 8px 0; }
.policy-impact-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:10px; margin-top:10px; }
.policy-impact-card { border:1px solid #d9e5f7; border-radius:12px; background:#fbfdff; padding:10px 12px; }
.policy-impact-card h4 { margin:0 0 2px; color:#1f436c; }

.internal-header-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.internal-header-inline .policy-custom-select--compact {
  display: inline-flex;
  width: auto;
  max-width: 100%;
  vertical-align: middle;
}

.policy-custom-select--compact .policy-custom-select__trigger {
  width: auto;
  max-width: 100%;
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
  gap: 6px;
  white-space: nowrap;
}

.policy-custom-select--compact .policy-custom-select__trigger > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.bucket4-operations-spine {
  border-color: #d1def0;
  background: #fbfdff;
  padding: 12px;
}

.bucket4-operations-heading,
.bucket4-queue-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.bucket4-operations-heading h3,
.bucket4-queue-item h4 {
  margin: 0;
  color: #1f436c;
  line-height: 1.2;
}

.bucket4-operations-spine .signal-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.bucket4-operations-spine .signal-card {
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(18, 52, 95, 0.05);
}

.bucket4-operations-spine .signal-card-value {
  font-size: 1.1rem;
}

.bucket4-queue-count,
.bucket4-queue-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid #cbd9eb;
  border-radius: 999px;
  background: #f6f9fe;
  color: #355884;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.bucket4-queue-badge {
  border-color: #b9cce5;
  background: #eff5fc;
}

.bucket4-queue-item--critical .bucket4-queue-badge {
  border-color: #e1a8a8;
  background: #fff0f0;
  color: #8b3434;
}

.bucket4-queue-item--high .bucket4-queue-badge {
  border-color: #e5bd8c;
  background: #fff7ea;
  color: #79501f;
}

.bucket4-operations-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.bucket4-filter-group {
  width: fit-content;
  max-width: 100%;
}

.bucket4-search-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.bucket4-search-input {
  min-height: 36px;
}

.bucket4-queue-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.bucket4-queue-item {
  position: relative;
  overflow: hidden;
  border: 1px solid #d6e2f2;
  border-radius: 8px;
  background: #ffffff;
  padding: 11px;
  box-shadow: 0 7px 18px rgba(17, 47, 88, 0.06);
}

.bucket4-queue-item::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #7f9fc9;
}

.bucket4-queue-item--critical {
  border-color: #efc2c2;
  background: #fffafa;
}

.bucket4-queue-item--critical::before {
  background: #c65b5b;
}

.bucket4-queue-item--high {
  border-color: #f1d0a8;
  background: #fffdf8;
}

.bucket4-queue-item--high::before {
  background: #c98a36;
}

.bucket4-queue-item--medium {
  border-color: #d8e4f4;
}

.bucket4-queue-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
  padding-left: 2px;
}

.bucket4-queue-kicker span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border: 1px solid #d3dfef;
  border-radius: 999px;
  background: #f7faff;
  color: #395b86;
  font-size: 11px;
  font-weight: 700;
}

.bucket4-queue-reason {
  margin: 10px 0;
  padding: 9px 10px;
  border: 1px solid #d8e4f4;
  border-left: 4px solid #7f9fc9;
  border-radius: 8px;
  background: #f7faff;
  color: #244163;
  line-height: 1.45;
}

.bucket4-queue-item--critical .bucket4-queue-reason {
  border-color: #efc2c2;
  border-left-color: #c65b5b;
  background: #fff5f5;
}

.bucket4-queue-item--high .bucket4-queue-reason {
  border-color: #f1d0a8;
  border-left-color: #c98a36;
  background: #fffaf0;
}

.bucket4-truth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 8px;
  border: 1px solid #dce6f4;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.bucket4-truth-cell {
  min-width: 0;
  padding: 8px 9px;
  border-right: 1px solid #e2e9f4;
  border-bottom: 1px solid #e2e9f4;
  background: #fbfdff;
}

.bucket4-truth-cell:nth-child(2n) {
  border-right: 0;
}

.bucket4-truth-cell:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.bucket4-truth-cell--control {
  grid-column: 1 / -1;
  border-right: 0;
  border-top: 1px solid #e2e9f4;
  border-bottom: 0;
  background: #f4f8ff;
}

.bucket4-truth-cell span,
.bucket4-operator-copy span,
.bucket4-staff-source {
  display: block;
  color: #5a6f8f;
  font-size: 12px;
  line-height: 1.35;
}

.bucket4-truth-cell span {
  margin-bottom: 3px;
  font-weight: 700;
}

.bucket4-truth-cell strong,
.bucket4-operator-copy strong {
  display: block;
  min-width: 0;
  color: #1d3d66;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.bucket4-queue-actions {
  margin-top: 10px;
  align-items: center;
}

.bucket4-queue-actions .button,
.bucket4-control-actions .button {
  justify-content: center;
}

.bucket4-action-note {
  margin: 10px 0 0;
  color: #28517c;
  font-weight: 700;
}

.bucket4-control-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  color: #28517c;
  font-size: 13px;
  font-weight: 700;
}

.bucket4-bulk-list li,
.bucket4-control-list li,
.bucket4-decision-list li,
.bucket4-signal-list li,
.bucket4-history-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e4ebf6;
}

.bucket4-bulk-list li:last-child,
.bucket4-control-list li:last-child {
  border-bottom: 0;
}

.bucket4-operator-row {
  min-width: 0;
}

.bucket4-operator-copy {
  min-width: 0;
}

.bucket4-status-token {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-right: 4px;
  padding: 1px 6px;
  border: 1px solid #cddbef;
  border-radius: 999px;
  background: #f7faff;
  color: #33577f;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}

.bucket4-status-token--open,
.bucket4-status-token--warning {
  border-color: #e5bd8c;
  background: #fff7ea;
  color: #79501f;
}

.bucket4-status-token--approved,
.bucket4-status-token--healthy,
.bucket4-status-token--ok,
.bucket4-status-token--backend,
.bucket4-status-token--recorded {
  border-color: #9fcaab;
  background: #f0fbf3;
  color: #2f683d;
}

.bucket4-status-token--critical,
.bucket4-status-token--rejected,
.bucket4-status-token--revoked,
.bucket4-status-token--needs_attention {
  border-color: #e1a8a8;
  background: #fff0f0;
  color: #8b3434;
}

.bucket4-status-token--resolved,
.bucket4-status-token--controlled,
.bucket4-status-token--local_runtime,
.bucket4-status-token--none {
  border-color: #b9cce5;
  background: #eff5fc;
  color: #28517c;
}

.bucket4-control-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 0;
}

.bucket4-signal-list {
  padding-left: 0;
  list-style: none;
}

.bucket4-signal-row,
.bucket4-staff-state-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e4ebf6;
}

.bucket4-signal-row:last-child,
.bucket4-staff-state-row:last-child {
  border-bottom: 0;
}

.bucket4-signal-row > span:first-child {
  min-width: 0;
}

.bucket4-signal-row > span:first-child span {
  display: block;
  color: #526987;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.bucket4-staff-operations {
  background: #fbfdff;
}

.bucket4-staff-state-row {
  list-style: none;
}

.bucket4-decision-panel {
  background: #fcfbff;
}

@media (hover: hover) and (min-width: 721px) {
  .bucket4-queue-item {
    transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
  }

  .bucket4-queue-item:hover {
    border-color: #b8cbe4;
    box-shadow: 0 10px 24px rgba(17, 47, 88, 0.09);
    transform: translateY(-1px);
  }
}

@media (max-width: 720px) {
  .bucket4-operations-spine {
    padding: 11px;
  }

  .bucket4-operations-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .bucket4-queue-count {
    width: fit-content;
  }

  .bucket4-operations-spine .signal-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bucket4-operations-spine .signal-card {
    padding: 8px;
  }

  .bucket4-search-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .bucket4-filter-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    border-radius: 16px;
  }

  .bucket4-filter-group .segment-pill {
    min-height: 34px;
    padding-left: 7px;
    padding-right: 7px;
    text-align: center;
  }

  .bucket4-queue-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .bucket4-queue-item {
    padding: 10px;
  }

  .bucket4-queue-item-header {
    gap: 10px;
  }

  .bucket4-truth-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .bucket4-truth-cell,
  .bucket4-truth-cell:nth-child(2n),
  .bucket4-truth-cell:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid #e2e9f4;
  }

  .bucket4-truth-cell--control {
    border-top: 0;
  }

  .bucket4-truth-cell:last-child {
    border-bottom: 0;
  }

  .bucket4-queue-actions,
  .bucket4-control-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .bucket4-queue-actions .button,
  .bucket4-queue-actions button,
  .bucket4-control-actions .button,
  .bucket4-control-actions button,
  .bucket4-bulk-list button {
    width: 100%;
  }

  .bucket4-signal-row,
  .bucket4-staff-state-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }

  .bucket4-bulk-list li,
  .bucket4-control-list li,
  .bucket4-decision-list li,
  .bucket4-signal-list li,
  .bucket4-history-list li {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
}

.policy-custom-select--compact .policy-custom-select__menu {
  left: 0;
  right: auto;
  min-width: 100%;
  width: max-content;
  max-width: min(92vw, 340px);
}

.policy-custom-select { position: relative; width: 100%; }
.policy-custom-select__trigger {
  width: 100%; display:flex; justify-content:space-between; align-items:center;
  border: 1px solid #c8d8ef; border-radius: 10px; background: #fff; color:#1e3254;
  padding: 9px 12px; font: inherit; font-size: 14px; cursor:pointer;
}
.policy-custom-select__trigger:hover { border-color:#a8c0e2; background:#fafdff; }
.policy-custom-select__trigger:focus-visible { outline:2px solid #8cb2ea; outline-offset:1px; border-color:#6f99d4; }
.policy-custom-select__chevron { color:#486996; font-size:12px; }
.policy-custom-select__menu {
  position:absolute; top: calc(100% + 6px); left:0; right:0; z-index: 25; background:#fff;
  border:1px solid #c8d8ef; border-radius: 10px; box-shadow:0 12px 24px rgba(20,45,79,0.16);
  overflow:hidden; max-height: 240px; overflow-y:auto;
}
.policy-custom-select__option {
  width:100%; border:none; background:#fff; text-align:left; padding:9px 12px; font:inherit;
  font-size:14px; color:#1e3254; cursor:pointer;
}
.policy-custom-select__option + .policy-custom-select__option { border-top:1px solid #e8eef8; }
.policy-custom-select__option:hover { background:#f2f7ff; }
.policy-custom-select__option.is-selected { background:#eaf3ff; color:#1f436c; font-weight:600; }

.workspace-seed-hero .tagline {
  margin-top: 8px;
  background: linear-gradient(180deg, #eff6ff 0%, #e7f1ff 100%);
}

.workspace-seed-main {
  border-color: #cfe0f8;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f9ff 100%);
}


.workspace-seed-identity-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 6px;
  margin: 8px 0 10px;
}

.workspace-seed-identity-item {
  border: 1px solid #dce7f7;
  border-radius: 10px;
  background: #f8fbff;
  padding: 7px 9px;
  min-height: 52px;
}

.workspace-seed-identity-item h4 {
  margin: 0 0 3px;
  font-size: 10px;
  color: #5d7aa2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.workspace-seed-identity-item p {
  margin: 0;
  color: #173a64;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.25;
}

.workspace-seed-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.workspace-seed-status-card {
  border: 1px solid #d8e4f7;
  border-radius: 12px;
  background: #ffffff;
  padding: 10px;
}

.workspace-seed-status-card h4 {
  margin: 0 0 6px;
  color: #1b4679;
}

.workspace-seed-card-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.workspace-seed-card-heading-row h4 {
  margin: 0;
}

.workspace-seed-icon-button {
  width: 26px;
  height: 26px;
  border: 1px solid #b9cbea;
  border-radius: 999px;
  background: #ffffff;
  color: #1d477c;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(24, 64, 118, 0.08);
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), background 198ms cubic-bezier(0.16, 1, 0.3, 1), color 198ms cubic-bezier(0.16, 1, 0.3, 1), border-color 198ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 198ms cubic-bezier(0.16, 1, 0.3, 1);
}

.workspace-seed-icon-button:hover,
.workspace-seed-icon-button:focus-visible {
  border-color: #8eb0df;
  color: #123d76;
  outline: none;
}

.workspace-seed-icon-button:not([disabled]):active {
  transform: scale(1.044);
  transition: transform 60ms cubic-bezier(0.16, 1, 0.3, 1), background 198ms cubic-bezier(0.16, 1, 0.3, 1), color 198ms cubic-bezier(0.16, 1, 0.3, 1), border-color 198ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 198ms cubic-bezier(0.16, 1, 0.3, 1);
  background: #153b75;
  color: #ffffff;
  border-color: #153b75;
}

.workspace-seed-department-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.workspace-seed-department-row input[type="text"] {
  min-width: 0;
  width: 100%;
}

.workspace-seed-trash-button {
  color: #6b7d9a;
}

.workspace-seed-trash-button:hover,
.workspace-seed-trash-button:focus-visible {
  color: #143f76;
}

.workspace-seed-trash-icon {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.workspace-seed-status-card p {
  margin: 0;
  color: #2d4c73;
}

.workspace-seed-status-card--wide {
  grid-column: 1 / -1;
}

.workspace-seed-ready-popup {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(10, 27, 49, 0.18);
}

.workspace-seed-ready-card {
  position: relative;
  width: min(330px, calc(100vw - 44px));
  border: 1px solid #bfd4f4;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(20, 54, 96, 0.22);
  padding: 22px 22px 18px;
  color: #173a64;
}

.workspace-seed-ready-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border: 1px solid #d5e3f6;
  border-radius: 999px;
  background: #f8fbff;
  color: #1d477c;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), background 198ms cubic-bezier(0.16, 1, 0.3, 1), color 198ms cubic-bezier(0.16, 1, 0.3, 1), border-color 198ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 198ms cubic-bezier(0.16, 1, 0.3, 1);
}

.workspace-seed-ready-close:hover,
.workspace-seed-ready-close:focus-visible {
  outline: none;
  border-color: #8eb0df;
  background: #eef6ff;
}

.workspace-seed-ready-close:not([disabled]):active {
  transform: scale(1.044);
  transition: transform 60ms cubic-bezier(0.16, 1, 0.3, 1), background 198ms cubic-bezier(0.16, 1, 0.3, 1), color 198ms cubic-bezier(0.16, 1, 0.3, 1), border-color 198ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 198ms cubic-bezier(0.16, 1, 0.3, 1);
  background: #153b75;
  color: #ffffff;
  border-color: #153b75;
}

.workspace-seed-ready-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin: 0 0 8px;
  border: 1px solid #bedfd0;
  border-radius: 999px;
  background: #eaf7f1;
  color: #24664f;
  padding: 2px 9px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: none;
}

.workspace-seed-ready-card h3 {
  margin: 0 28px 6px 0;
  color: #17365f;
  font-size: 1.08rem;
  overflow-wrap: anywhere;
}

.workspace-seed-ready-card p:not(.workspace-seed-ready-kicker) {
  margin: 0;
  color: #34577d;
  font-size: 0.92rem;
  line-height: 1.42;
}

.workspace-seed-ready-choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: #34577d;
  font-size: 0.84rem;
  font-weight: 700;
}

.workspace-seed-ready-choice input {
  width: 15px;
  height: 15px;
  accent-color: #1f5fa8;
}


.workspace-seed-workflow {
  display: flex;
  flex-wrap: nowrap;
  gap: 2px;
  align-items: center;
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.workspace-seed-workflow::-webkit-scrollbar {
  display: none;
}

.workspace-seed-workflow-pill {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid #c9daf3;
  background: #f3f8ff;
  color: #22456f;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.workspace-seed-workflow-connector {
  flex: 0 0 auto;
  color: #6384af;
  font-weight: 700;
  font-size: 11px;
  margin: 0 1px;
}

.workspace-seed-setup {
  border-color: #c8dcfb;
  background: linear-gradient(180deg, #f7fbff 0%, #edf5ff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.workspace-seed-setup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 8px;
}

.workspace-seed-setting-item {
  border: 1px solid #d6e4f8;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 10px 11px;
  box-shadow: 0 1px 0 rgba(150, 176, 212, 0.12);
  border-top: 3px solid #bfd4f4;
}

.workspace-seed-setting-item h4 {
  margin: 0 0 4px;
  font-size: 10px;
  color: #57759f;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.workspace-seed-setting-item p {
  margin: 0;
  color: #173a64;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.3;
}

.workspace-seed-setting-item--with-tooltip {
  position: relative;
  cursor: pointer;
}

.workspace-seed-setting-item--with-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px);
  min-width: 190px;
  max-width: min(300px, calc(100vw - 48px));
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid #9db8df;
  background: #f4f8ff;
  color: #1f3e67;
  font-size: 11px;
  line-height: 1.35;
  box-shadow: 0 8px 18px rgba(26, 53, 91, 0.16);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 3;
}

.workspace-seed-setting-item--with-tooltip::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translateX(-50%) translateY(4px);
  width: 9px;
  height: 9px;
  background: #f4f8ff;
  border-left: 1px solid #9db8df;
  border-top: 1px solid #9db8df;
  rotate: 225deg;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 3;
}

.workspace-seed-setting-item--with-tooltip:hover::after,
.workspace-seed-setting-item--with-tooltip:hover::before,
.workspace-seed-setting-item--with-tooltip:focus-visible::after,
.workspace-seed-setting-item--with-tooltip:focus-visible::before,
.workspace-seed-setting-item--with-tooltip:active::after,
.workspace-seed-setting-item--with-tooltip:active::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.workspace-seed-next-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  padding: 6px 8px;
  min-height: 48px;
  border: 1px solid #c5d8f5;
  border-radius: 14px;
  background: linear-gradient(180deg, #f9fcff 0%, #eff6ff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.workspace-seed-action {
  position: relative;
  min-height: 34px;
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid #afc6e8;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #f2f8ff 100%);
  color: #1f4774;
  box-shadow: 0 1px 0 rgba(145, 172, 209, 0.22);
}

.workspace-seed-next--locked .workspace-seed-next-actions {
  border-color: #d2dce9;
  background: linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%);
}

.workspace-seed-action--locked {
  opacity: 0.56;
  cursor: not-allowed;
  color: #5d728d;
  border-color: #c7d4e4;
  background: linear-gradient(180deg, #ffffff 0%, #eef3f8 100%);
}

.workspace-seed-action--locked:not([disabled]):active {
  transform: none;
  color: #5d728d;
  border-color: #c7d4e4;
  background: linear-gradient(180deg, #ffffff 0%, #eef3f8 100%);
}

.workspace-seed-action--locked::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  transform: translateX(-50%) translateY(4px);
  width: max-content;
  max-width: min(280px, calc(100vw - 48px));
  padding: 8px 10px;
  border: 1px solid #aebfd8;
  border-radius: 8px;
  background: #f7faff;
  color: #1f3e67;
  font-size: 11px;
  line-height: 1.35;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 8px 18px rgba(26, 53, 91, 0.14);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 5;
}

.workspace-seed-action--locked:hover::after,
.workspace-seed-action--locked:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.workspace-seed-action:hover,
.workspace-seed-action:focus-visible {
  border-color: #86a9d8;
  background: linear-gradient(180deg, #fafdff 0%, #e8f2ff 100%);
  box-shadow: 0 0 0 3px rgba(122, 161, 214, 0.2);
}

.policy-footer-nav {
  margin-top: 14px;
}

.workspace-seed-inline-list { margin: 0; padding-left: 18px; color: #2d4c73; }
.workspace-seed-inline-list li + li { margin-top: 3px; }
.workspace-seed-inline-list--small { font-size: 13px; line-height: 1.35; }
.workspace-seed-inline-list--match { font-size: inherit; line-height: 1.42; max-width: 34ch; }
.workspace-seed-inline-list--bullet li { display: list-item; }
.workspace-seed-inline-list--staff {
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: none;
  max-height: min(42vh, 390px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-left: 0;
  padding-right: 4px;
  font-size: inherit;
  line-height: 1.42;
  list-style: none;
}
.workspace-seed-inline-list--judged-staff { max-width: 36ch; }
.workspace-seed-inline-list li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.workspace-seed-inline-list--staff li + li {
  margin-top: 0;
}

.workspace-seed-inline-list--staff > .workspace-seed-staff-item {
  display: block;
  min-width: 0;
}
.workspace-seed-inline-list--bullet li {
  display: list-item;
}
.workspace-seed-inline-list--bullet li::marker {
  color: #2d4c73;
}
.workspace-seed-staff-item {
  display: block;
  width: 100%;
  border: 1px solid rgba(158, 184, 217, 0.52);
  border-radius: 8px;
  background:
    linear-gradient(
      135deg,
      transparent 0 16%,
      rgba(255, 255, 255, 0.46) 16.5% 17.4%,
      transparent 18% 41%,
      rgba(199, 211, 226, 0.34) 41.5% 42.6%,
      transparent 43.2% 66%,
      rgba(172, 204, 236, 0.22) 66.5% 67.5%,
      transparent 68% 100%
    ),
    linear-gradient(135deg, #ffffff 0%, #f4f7fb 46%, #d8e7f8 100%);
  padding: 10px 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 10px 22px rgba(21, 54, 93, 0.06);
}

.workspace-seed-staff-main-row,
.workspace-seed-staff-edit-row {
  display: grid;
  grid-template-columns: minmax(112px, 0.88fr) minmax(130px, 1fr) minmax(178px, 1.28fr) minmax(126px, 0.95fr) auto;
  gap: 10px;
  align-items: center;
}

.workspace-seed-staff-main-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.workspace-seed-staff-identity {
  min-width: 0;
}

.workspace-seed-staff-identity strong {
  color: #163961;
  overflow-wrap: anywhere;
}

.workspace-seed-staff-name-input {
  width: 100%;
}

.workspace-seed-field {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.workspace-seed-field-label {
  color: #5d7593;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.workspace-seed-staff-identity .bucket4-status-token {
  width: fit-content;
}

.workspace-seed-staff-department {
  min-width: 0;
}

.workspace-seed-staff-actions {
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  min-width: max-content;
  padding-top: 14px;
}
.workspace-seed-staff-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.workspace-seed-staff-row--top {
  margin-bottom: 5px;
}
.workspace-seed-fire-confirm-label {
  margin: 0;
  color: #2d4c73;
  white-space: nowrap;
}

.workspace-seed-fire-button {
  white-space: nowrap;
}
.workspace-seed-status-helper { margin: 0 0 6px; color: #46688f; }
.workspace-seed-inline-list input[type="text"],
.workspace-seed-inline-list select {
  min-height: 26px;
  border: 1px solid #afc6e8;
  border-radius: 8px;
  background: #f8fbff;
  color: #1f4774;
  padding: 3px 7px;
  font-size: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.workspace-seed-inline-list input[type="text"] { min-width: 118px; max-width: 150px; }
.workspace-seed-inline-list--staff input[type="text"] {
  min-width: 0;
  max-width: none;
}
.workspace-seed-inline-list select { min-width: 94px; max-width: 120px; }
.workspace-seed-inline-list--staff select {
  width: 100%;
  min-width: 0;
  max-width: none;
}
.workspace-seed-inline-list input[type="text"]:focus-visible,
.workspace-seed-inline-list select:focus-visible {
  outline: 2px solid #8cb2ea;
  outline-offset: 1px;
  border-color: #6f99d4;
  background: #ffffff;
}

.workspace-seed-salary-field {
  display: inline-grid;
  gap: 3px;
  min-width: 118px;
  color: #46688f;
  font-size: 11px;
  font-weight: 800;
}

.workspace-seed-salary-field--wide {
  display: grid;
  grid-template-columns: minmax(92px, auto) minmax(118px, 1fr);
  align-items: center;
  gap: 8px;
  width: min(100%, 330px);
}

.workspace-seed-salary-field--wide span {
  white-space: nowrap;
}

.workspace-seed-salary-field input {
  min-height: 26px;
  max-width: 126px;
  border: 1px solid #afc6e8;
  border-radius: 8px;
  background: #f8fbff;
  color: #1f4774;
  padding: 3px 7px;
  font-size: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.workspace-seed-salary-field--wide input {
  width: 100%;
  max-width: none;
}

.workspace-seed-staff-edit-row .workspace-seed-salary-field--wide {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  gap: 4px;
}

.workspace-seed-salary-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid #bed4c8;
  border-radius: 999px;
  background: #f2fbf5;
  color: #1d6542;
  font-size: 12px;
  font-weight: 900;
  padding: 4px 8px;
}

.workspace-back-button { min-height: 34px; padding: 7px 12px; }
.workspace-seed-setup h3 { margin-bottom: 8px; }
.workspace-seed-next { padding-top: 10px; padding-bottom: 10px; }
.workspace-seed-next h3 { margin-bottom: 4px; }
.workspace-seed-next-helper { margin: 0 0 4px; color: #46688f; }
.workspace-config-actions-row {
  margin-top: 10px;
  display: flex;
  justify-content: flex-start;
  gap: 10px;
}

.workspace-config-action {
  min-height: 36px;
  padding: 8px 16px;
}


.context-frame-status-setting-grid {
  margin: 10px 0 12px;
}

.context-recommendation-interstitial {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.context-recommendation-logo {
  width: 42px;
  height: 42px;
}

.context-recommendation-interstitial p {
  margin: 0;
  color: #2d4c73;
}

.context-recommendation-interstitial-actions {
  justify-content: center;
}
.context-frame-internal .policy-footer-nav {
  display: flex;
  gap: 10px;
}

.context-frame-footer-button {
  min-width: 96px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
}

.context-frame-footer-button--saved {
  opacity: 0.72;
  cursor: default;
}
.context-frame-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin: 10px 0 12px;
}
.context-frame-chip {
  border: 1px solid #d1def2;
  border-radius: 999px;
  background: #f8fbff;
  padding: 6px 10px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}
.context-frame-chip span {
  font-size: 11px;
  color: #4b688e;
}
.context-frame-chip strong {
  font-size: 12px;
  color: #1f4774;
}
.context-frame-input-stack {
  margin-top: 10px;
}
.context-frame-input-stack label {
  display: block;
  margin-bottom: 6px;
}
.context-frame-header-actions {
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.context-frame-department-card + .context-frame-department-card {
  margin-top: 8px;
}

.internal-source-badge--with-tooltip {
  position: relative;
  cursor: pointer;
}

.internal-source-badge--with-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  pointer-events: none;
  min-width: 150px;
  max-width: min(280px, calc(100vw - 40px));
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #c7d8f0;
  background: #f8fbff;
  color: #294a78;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  box-shadow: 0 6px 18px rgba(28, 58, 104, 0.12);
  z-index: 6;
  white-space: normal;
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.internal-source-badge--with-tooltip::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  width: 8px;
  height: 8px;
  background: #f8fbff;
  border-left: 1px solid #c7d8f0;
  border-top: 1px solid #c7d8f0;
  transform: translateX(-50%) translateY(4px) rotate(45deg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease, transform 0.12s ease;
  z-index: 6;
}

.internal-source-badge--with-tooltip:hover::after,
.internal-source-badge--with-tooltip:hover::before,
.internal-source-badge--with-tooltip:focus-visible::after,
.internal-source-badge--with-tooltip:focus-visible::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.details-block--compact-inline {
  padding: 5px 8px;
  margin-top: 6px;
  border-radius: 10px;
  background: #f9fbff;
}

.details-block--compact-inline summary {
  font-size: 12px;
  font-weight: 600;
  color: #2a4e81;
  list-style: none;
}

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

.details-block--compact-inline .details-content {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.45;
}

.app-shell--internal {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  overflow-x: clip;
  overflow-y: visible;
  max-width: 1120px;
  min-height: 100vh;
}

.app-shell--internal .main-panel--internal,
.app-shell--internal .card--internal {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.app-shell--internal:not(.app-shell--ha-perspective) {
  max-width: none;
  padding-left: max(18px, calc((100vw - 1120px) / 2));
  padding-right: max(18px, calc((100vw - 1120px) / 2));
  background:
    radial-gradient(circle at 82% 10%, rgba(128, 184, 229, 0.17), rgba(128, 184, 229, 0) 30%),
    linear-gradient(180deg, #eef3fa 0%, #f8fbff 100%);
}

.app-shell--internal:not(.app-shell--ha-perspective)::before {
  content: "";
  position: fixed;
  inset: -18%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.36;
  background:
    linear-gradient(
      135deg,
      transparent 0 13%,
      rgba(23, 54, 95, 0.16) 14% 23%,
      transparent 24% 36%,
      rgba(23, 54, 95, 0.12) 37% 46%,
      transparent 47% 59%,
      rgba(23, 54, 95, 0.09) 60% 69%,
      transparent 70% 100%
    );
  animation: owner-internal-perspective-wisps 6.2s ease-in-out infinite alternate;
}

.app-shell--internal > * {
  position: relative;
  z-index: 1;
}

.app-shell--internal .card--internal > h2:first-child {
  margin-bottom: 10px;
  line-height: 1.18;
}

.app-shell--internal .example-block,
.app-shell--internal .details-block,
.app-shell--internal .metric-card,
.app-shell--internal .signal-card {
  border-radius: 8px;
}

.app-shell--internal .example-block {
  border-color: #d7e3f2;
  background: #fcfdff;
}

.app-shell--internal .metric-card,
.app-shell--internal .signal-card {
  border-top: 3px solid #bfd4f4;
}

.app-shell--internal .metric-value,
.app-shell--internal .signal-card-value {
  line-height: 1.18;
}

.app-shell--internal .card--internal:has(.internal-dashboard-home),
.app-shell--internal .card--internal:has(.internal-restored-workflow--settings-card),
.app-shell--internal .card--internal:has(.owner-users-roles-workflow),
.app-shell--internal .card--internal:has(.owner-review-operating-workflow) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: rgba(186, 207, 235, 0.94);
  background:
    radial-gradient(circle at 10% 12%, rgba(45, 82, 128, 0.08), rgba(45, 82, 128, 0) 34%),
    radial-gradient(circle at 92% 82%, rgba(125, 184, 229, 0.16), rgba(125, 184, 229, 0) 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 255, 0.96) 48%, rgba(232, 240, 250, 0.94) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 18px 34px rgba(16, 46, 88, 0.09);
}

.app-shell--internal .card--internal:has(.internal-dashboard-home)::before,
.app-shell--internal .card--internal:has(.internal-restored-workflow--settings-card)::before,
.app-shell--internal .card--internal:has(.owner-users-roles-workflow)::before,
.app-shell--internal .card--internal:has(.owner-review-operating-workflow)::before {
  content: "";
  position: absolute;
  inset: -26%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.42;
  background:
    linear-gradient(
      45deg,
      transparent 0 16%,
      rgba(191, 206, 226, 0.36) 17% 24%,
      transparent 25% 42%,
      rgba(166, 184, 207, 0.3) 43% 50%,
      transparent 51% 68%,
      rgba(206, 218, 232, 0.28) 69% 76%,
      transparent 77% 100%
    );
  animation: owner-internal-perspective-wisps 5.4s ease-in-out infinite alternate;
}

.internal-restored-workflow--settings-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.internal-restored-workflow--settings-card::before {
  content: "";
  position: absolute;
  inset: -24%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.34;
  background:
    linear-gradient(
      45deg,
      transparent 0 14%,
      rgba(183, 199, 221, 0.34) 15% 22%,
      transparent 23% 40%,
      rgba(210, 222, 238, 0.32) 41% 48%,
      transparent 49% 66%,
      rgba(154, 177, 207, 0.26) 67% 74%,
      transparent 75% 100%
    );
  animation: owner-internal-perspective-wisps 4.9s ease-in-out infinite alternate;
}

.internal-restored-workflow--settings-card > * {
  position: relative;
  z-index: 1;
}

.owner-users-roles-workflow {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.owner-users-roles-workflow::before {
  content: "";
  position: absolute;
  inset: -24%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.28;
  background:
    linear-gradient(
      45deg,
      transparent 0 14%,
      rgba(179, 197, 221, 0.34) 15% 22%,
      transparent 23% 39%,
      rgba(214, 226, 240, 0.32) 40% 48%,
      transparent 49% 65%,
      rgba(151, 176, 207, 0.24) 66% 73%,
      transparent 74% 100%
    );
  animation: owner-internal-perspective-wisps 5.2s ease-in-out infinite alternate;
}

.owner-users-roles-workflow > * {
  position: relative;
  z-index: 1;
}

.owner-review-operating-workflow {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  gap: 12px;
}

.owner-review-operating-workflow::before {
  content: "";
  position: absolute;
  inset: -24%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.3;
  background:
    linear-gradient(
      45deg,
      transparent 0 14%,
      rgba(179, 197, 221, 0.36) 15% 22%,
      transparent 23% 39%,
      rgba(214, 226, 240, 0.34) 40% 48%,
      transparent 49% 65%,
      rgba(151, 176, 207, 0.26) 66% 73%,
      transparent 74% 100%
    );
  animation: owner-internal-perspective-wisps 5.2s ease-in-out infinite alternate;
}

.owner-review-operating-workflow > * {
  position: relative;
  z-index: 1;
}

.internal-dashboard-home {
  gap: 14px;
}

.internal-dashboard-title-row {
  position: relative;
  z-index: 12;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.internal-dashboard-title-row h2 {
  margin: 0;
  color: #102346;
}

.internal-dashboard-title-row .tagline {
  margin: 4px 0 0;
  color: #486484;
}

.internal-dashboard-title-row .operating-notification-bell {
  flex: 0 0 auto;
  margin-left: auto;
}

.internal-dashboard-title-row .operating-notification-panel {
  width: min(360px, calc(100vw - 48px));
}

.internal-dashboard-home .metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 0;
}

.internal-dashboard-home .metric-card {
  position: relative;
  overflow: hidden;
  min-height: 88px;
  padding: 14px;
  border-color: rgba(177, 200, 228, 0.82);
  background:
    radial-gradient(circle at 86% 14%, rgba(117, 176, 221, 0.18), rgba(117, 176, 221, 0) 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(238, 247, 255, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 9px 18px rgba(16, 46, 88, 0.045);
}

.internal-dashboard-home .metric-label {
  color: #657696;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.internal-dashboard-home .metric-value {
  color: #102346;
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1.25;
}

.internal-dashboard-home .metric-card:first-child {
  grid-column: span 3;
  min-height: 72px;
}

.internal-dashboard-home .metric-card:first-child .metric-value {
  font-size: 1.05rem;
}

.internal-dashboard-home .metric-card:first-child .metric-detail {
  max-width: 68ch;
}

.auth-education-notice-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(20px, env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) max(20px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
  background: rgba(38, 47, 64, 0.58);
  backdrop-filter: blur(4px);
}

body.auth-education-notice-open {
  overflow: hidden;
}

.auth-education-notice {
  position: relative;
  width: min(420px, calc(100vw - 40px));
  max-width: 420px;
  border: 1px solid #365a92;
  border-radius: 12px;
  background: linear-gradient(180deg, #285087 0%, #1b3963 100%);
  padding: 22px 44px 18px 18px;
  color: #edf4ff;
  box-shadow: 0 18px 38px rgba(7, 20, 44, 0.36);
}

.auth-education-notice__kicker {
  margin: 0 0 6px;
  color: #bfd2f0;
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

.auth-education-notice p {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.38;
}

.auth-education-notice p.auth-education-notice__kicker {
  margin: 0 0 8px;
  color: #bfd2f0;
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1.2;
}

.auth-education-notice__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border: 1px solid #6186bc;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.12);
  color: #f5f9ff;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.auth-education-notice__choice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: #dce9fb;
  font-size: 0.88rem;
  font-weight: 750;
}

.auth-education-notice__choice input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #dbeafe;
}

.dashboard-home-actions {
  margin-top: 2px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.dashboard-home-actions .button {
  width: auto;
  flex: 0 0 auto;
}

.dashboard-support-widget {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: grid;
  justify-items: end;
  gap: 9px;
}

.dashboard-support-widget__button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(199, 216, 234, 0.98);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.44) 0 14%, transparent 14% 24%, rgba(213, 225, 239, 0.5) 24% 34%, transparent 34% 100%),
    linear-gradient(145deg, #ffffff 0%, #eaf4ff 48%, #cfe3f8 100%);
  color: #17365f;
  box-shadow: 0 16px 30px rgba(17, 43, 78, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.88);
  cursor: pointer;
  animation: dashboard-support-bounce 90s ease-in-out infinite;
  transform-origin: 50% 100%;
}

.dashboard-support-widget--open .dashboard-support-widget__button {
  animation: none;
}

.dashboard-support-widget__chat-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 2px solid #17365f;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #17365f;
}

.dashboard-support-widget__chat-icon::after {
  display: none;
}

.dashboard-support-widget__chat-icon span {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1;
}

.dashboard-support-widget__panel {
  position: relative;
  width: min(318px, calc(100vw - 26px));
  overflow: hidden;
  border: 1px solid rgba(194, 211, 229, 0.98);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(226, 234, 244, 0.7) 0 7%, transparent 7% 15%, rgba(198, 215, 233, 0.52) 15% 23%, transparent 23% 100%),
    linear-gradient(180deg, #ffffff 0%, #f4f8fd 100%);
  box-shadow: 0 22px 52px rgba(17, 42, 78, 0.23), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  padding: 15px;
}

.dashboard-support-widget__panel::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #17365f, #86b8e8, #d9e3ef);
}

.dashboard-support-widget__heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #17365f;
}

.dashboard-support-widget__heading strong {
  font-size: 14px;
  letter-spacing: 0;
}

.dashboard-support-widget__mini-icon {
  width: 18px;
  height: 14px;
  border: 1.5px solid #2d5d96;
  border-radius: 9px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.58);
}

.dashboard-support-widget__panel label,
.dashboard-support-widget__panel textarea {
  display: block;
  width: 100%;
}

.dashboard-support-widget__panel span {
  display: block;
  margin-bottom: 6px;
  color: #17365f;
  font-size: 13px;
  font-weight: 900;
}

.dashboard-support-widget__panel textarea {
  resize: vertical;
  min-height: 82px;
  border: 1px solid #cbdbea;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: #213850;
  padding: 10px;
  font: inherit;
  line-height: 1.4;
}

.dashboard-support-widget__panel .button {
  margin-top: 10px;
}

.dashboard-support-widget__reply {
  margin: 11px 0 0;
  border: 1px solid rgba(183, 205, 229, 0.78);
  border-radius: 10px;
  background: linear-gradient(145deg, #eef6ff 0%, #ffffff 100%);
  color: #2d4665;
  font-size: 13px;
  line-height: 1.4;
  padding: 9px 10px;
}

.dashboard-support-widget__close {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 0;
  background: transparent;
  color: #637891;
  font-weight: 900;
  cursor: pointer;
}

@keyframes dashboard-support-bounce {
  0%,
  0.76%,
  1.52%,
  2.28%,
  100% {
    transform: translateY(0) scale(1);
  }

  0.38%,
  1.14%,
  1.9% {
    transform: translateY(-5px) scale(1.025);
  }
}

@media (max-width: 640px) {
  .dashboard-support-widget {
    right: 12px;
    bottom: 12px;
  }

  .dashboard-support-widget__button {
    width: 42px;
    height: 42px;
  }

  .dashboard-support-widget__panel {
    width: min(304px, calc(100vw - 24px));
    padding: 14px;
  }
}

.dashboard-current-work-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(180, 202, 229, 0.78);
  border-radius: 10px;
  background:
    radial-gradient(circle at 92% 12%, rgba(124, 185, 229, 0.16), rgba(124, 185, 229, 0) 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(241, 247, 255, 0.88));
  padding: 14px;
}

.dashboard-current-work-card strong,
.dashboard-current-work-card span {
  display: block;
}

.dashboard-current-work-card strong {
  color: #102346;
  line-height: 1.35;
}

.dashboard-current-work-card span {
  margin-top: 4px;
  color: #60758f;
  font-size: 0.86rem;
}

.app-shell--internal .details-block summary {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ipi-review-digest {
  border: 1px solid #cfdae8;
  border-radius: 8px;
  background: #fbfcfe;
  margin: 14px 0;
  padding: 14px;
  box-shadow: 0 8px 18px rgba(20, 43, 71, 0.055);
}

.ipi-review-digest__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.ipi-review-digest__kicker {
  margin: 0 0 3px;
  color: #59708f;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ipi-review-digest h3 {
  margin: 0;
  color: #1d3556;
  font-size: 18px;
}

.ipi-review-digest__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.ipi-review-digest__chips span {
  border: 1px solid #cfdae8;
  border-radius: 999px;
  background: #ffffff;
  color: #345579;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 6px 8px;
}

.ipi-review-digest__notice,
.ipi-review-digest__provenance,
.ipi-review-digest__runtime,
.ipi-review-digest-empty {
  color: #4f6684;
  font-size: 13px;
  line-height: 1.45;
}

.ipi-review-digest__notice {
  margin: 10px 0 12px;
}

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

.ipi-review-digest__section {
  min-width: 0;
}

.ipi-review-digest__section--wide {
  grid-column: 1 / -1;
}

.ipi-review-digest__section h4 {
  margin: 0 0 6px;
  color: #264867;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ipi-review-digest__section p {
  margin: 0;
}

.ipi-review-digest-list {
  margin: 0;
  padding-left: 18px;
  color: #263f5f;
  display: grid;
  gap: 5px;
}

.ipi-review-digest__provenance {
  border-top: 1px solid #e2e9f2;
  margin: 13px 0 0;
  padding-top: 10px;
}

.ipi-review-digest__runtime {
  margin: 6px 0 0;
}

.ipi-provider-preview {
  border: 1px solid #bfd6d0;
  border-radius: 8px;
  background: #f8fcfb;
  margin: 14px 0;
  padding: 14px;
  box-shadow: 0 8px 18px rgba(22, 68, 56, 0.055);
}

.ipi-provider-preview__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.ipi-provider-preview__kicker {
  margin: 0 0 3px;
  color: #52736a;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ipi-provider-preview h3 {
  margin: 0;
  color: #1f473f;
  font-size: 18px;
}

.ipi-provider-preview__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.ipi-provider-preview__chips span {
  border: 1px solid #bfd6d0;
  border-radius: 999px;
  background: #ffffff;
  color: #2e5b51;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 6px 8px;
}

.ipi-provider-preview__notice,
.ipi-provider-preview__provenance,
.ipi-provider-preview__source,
.ipi-provider-preview-empty {
  color: #496c64;
  font-size: 13px;
  line-height: 1.45;
}

.ipi-provider-preview__notice {
  margin: 10px 0 12px;
}

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

.ipi-provider-preview__section {
  min-width: 0;
}

.ipi-provider-preview__section--wide {
  grid-column: 1 / -1;
}

.ipi-provider-preview__section h4 {
  margin: 0 0 6px;
  color: #28584e;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ipi-provider-preview__section p {
  margin: 0;
}

.ipi-provider-preview-list {
  margin: 0;
  padding-left: 18px;
  color: #25463f;
  display: grid;
  gap: 5px;
}

.ipi-provider-preview__provenance {
  border-top: 1px solid #dcebe7;
  margin: 13px 0 0;
  padding-top: 10px;
}

.ipi-provider-preview__source {
  margin: 6px 0 0;
}

.app-shell--internal .policy-stepbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.app-shell--internal .policy-step-btn {
  min-width: 0;
  justify-content: center;
}

.app-shell--internal .policy-row {
  border: 1px solid #d9e5f4;
  border-radius: 8px;
  background: #fbfdff;
  padding: 10px;
}

.app-shell--internal .policy-row + .policy-row {
  margin-top: 8px;
}

.app-shell--internal .policy-controls .segmented {
  width: fit-content;
}

.app-shell--internal .context-frame-tools-row {
  flex-wrap: wrap;
}

.app-shell--internal .context-frame-tools-row .ipi-writing-tools {
  padding: 5px;
  border-color: #cfe0f5;
  border-radius: 999px;
  background: linear-gradient(180deg, #f9fcff 0%, #f0f6ff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.app-shell--internal .context-frame-tools-row .ipi-writing-tool-button {
  min-height: 30px;
  border-color: #bed1ee;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), background 198ms cubic-bezier(0.16, 1, 0.3, 1), color 198ms cubic-bezier(0.16, 1, 0.3, 1), border-color 198ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 198ms cubic-bezier(0.16, 1, 0.3, 1);
}

.app-shell--internal .context-frame-tools-row .ipi-writing-tool-format {
  border-color: #99b5dc;
  background: #ffffff;
  color: #214678;
  font-weight: 760;
}

.app-shell--internal .context-frame-tools-row .ipi-writing-tool-button:not([disabled]):active {
  transform: scale(1.044);
  border-color: #153b75;
  background: #153b75;
  color: #ffffff;
  transition: transform 60ms cubic-bezier(0.16, 1, 0.3, 1), background 198ms cubic-bezier(0.16, 1, 0.3, 1), color 198ms cubic-bezier(0.16, 1, 0.3, 1), border-color 198ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 198ms cubic-bezier(0.16, 1, 0.3, 1);
}

.app-shell--internal .context-frame-input-stack {
  position: relative;
  overflow: hidden;
  padding: 10px;
  border: 1px solid #d9e5f4;
  border-radius: 8px;
  background:
    linear-gradient(180deg, #fbfdff 0%, #f7fbff 100%);
  box-shadow: 0 7px 16px rgba(16, 46, 88, 0.045);
}

.app-shell--internal .context-frame-input-stack::before {
  content: '';
  position: absolute;
  inset: 10px auto 10px 0;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #315f9f 0%, #8aad86 100%);
  opacity: 0.72;
}

.app-shell--internal .context-frame-input-stack:focus-within {
  border-color: #abc5e8;
  box-shadow: 0 0 0 3px rgba(120, 158, 211, 0.16), 0 9px 18px rgba(16, 46, 88, 0.06);
}

.app-shell--internal .context-frame-input-stack textarea[readonly] {
  border-color: #d0deef;
  background:
    linear-gradient(180deg, #f7fafc 0%, #eef5f2 100%);
  color: #324965;
}

.app-shell--internal .header-compact {
  position: relative;
  z-index: 30;
  background:
    radial-gradient(circle at 88% 12%, rgba(126, 184, 228, 0.16), rgba(126, 184, 228, 0) 38%),
    linear-gradient(145deg, #ffffff 0%, #f7fbff 58%, #eef5fd 100%);
  border-color: #d4e0f0;
}

.app-shell--internal .page-label {
  background: #eef4ff;
  border: 1px solid #d7e4f6;
  color: #254876;
}

.app-shell--internal .top-pricing-toggle,
.app-shell--internal .workflow-menu-toggle {
  box-shadow: none;
}

.internal-decision-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  margin-bottom: 12px;
  padding: 13px 14px 13px 16px;
  border: 1px solid #ccdaf0;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(244, 249, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 58%, rgba(243, 249, 244, 0.86) 100%);
  box-shadow: 0 8px 20px rgba(14, 48, 92, 0.06);
  overflow: hidden;
}

.internal-decision-header::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #28569b 0%, #7aa77d 100%);
}

.internal-decision-title-block {
  min-width: 0;
}

.internal-decision-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin: 0;
  color: #557096;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.internal-decision-title {
  margin: 2px 0 0;
  gap: 9px;
}

.internal-decision-title > span:first-child {
  min-width: 0;
}

.internal-decision-caption {
  max-width: 70ch;
  margin: 5px 0 0;
  color: #35527d;
  font-size: 0.92rem;
  line-height: 1.42;
}

.internal-decision-chip-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  align-self: center;
}

.internal-decision-chip {
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid #d5e2f3;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
}

.internal-decision-chip span,
.app-shell--internal .card--internal > .row .label {
  display: block;
  color: #5a6f8f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: uppercase;
}

.internal-decision-chip strong {
  display: block;
  min-width: 0;
  margin-top: 2px;
  color: #16335f;
  font-size: 0.92rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.app-shell--internal .card--internal > .row {
  display: grid;
  grid-template-columns: minmax(160px, 0.32fr) minmax(0, 1fr);
  align-items: start;
  gap: 10px 18px;
  margin-top: 7px;
  padding: 10px 12px;
  border: 1px solid #dde7f4;
  border-radius: 8px;
  background: #fbfdff;
}

.app-shell--internal .card--internal > .row.long-row {
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  background: linear-gradient(180deg, #fbfdff 0%, #f7faff 100%);
}

.app-shell--internal .card--internal > .row .row-value {
  max-width: none;
  width: 100%;
  margin-left: 0;
  color: #102346;
  text-align: left;
}

.app-shell--internal .card--internal > .row.long-row .row-value {
  max-width: 78ch;
}

.human-agent-invite-foundation {
  display: grid;
  gap: 12px;
  border-color: #cfdceb;
  background: #fbfcfe;
}

.human-agent-invite-foundation__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  border-bottom: 1px solid #e1e8f1;
  padding-bottom: 10px;
}

.human-agent-invite-kicker {
  margin: 0 0 3px;
  color: #60758f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.human-agent-invite-foundation h3,
.human-agent-invite-records h4 {
  margin: 0;
  color: #1c3559;
}

.human-agent-invite-truth-grid {
  display: grid;
  gap: 6px;
}

.human-agent-invite-form {
  display: grid;
  gap: 10px;
}

.human-agent-invite-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.human-agent-invite-field-grid label {
  display: grid;
  gap: 6px;
}

.human-agent-invite-action {
  justify-self: start;
  margin-top: 0;
}

.human-agent-invite-records {
  display: grid;
  gap: 8px;
  border-top: 1px solid #e1e8f1;
  padding-top: 10px;
}

.human-agent-invite-list {
  display: grid;
  gap: 8px;
}

.human-agent-invite-row {
  display: grid;
  gap: 7px;
  border: 1px solid #d9e3f0;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
}

.human-agent-invite-row__main {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.human-agent-invite-row__main strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #162f53;
}

.human-agent-invite-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: #536a86;
  font-size: 12px;
}

.human-agent-invite-blocker {
  margin: 0;
  border: 1px solid #e1b4b4;
  border-radius: 8px;
  background: #fff6f6;
  color: #783434;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.45;
}

.human-agent-invite-blocker p {
  margin: 0;
}

.human-agent-invite-page-status {
  border-color: #d8e3f0;
  background: #f8fbff;
  color: #314866;
}

.human-agent-invite-page-shell {
  min-height: min(520px, calc(100dvh - 206px));
}

.human-agent-invite-page-bubble {
  width: min(100%, 620px);
}

.human-agent-invite-page-bubble .public-ha-invitation-definition {
  display: grid;
  min-height: 50px;
  place-items: center;
  text-align: center;
}

.human-agent-invite-page-bubble .public-ha-invitation-copy {
  overflow-wrap: anywhere;
  text-align: center;
}

.human-agent-invite-page-bubble .public-ha-invitation-copy span:first-child,
.human-agent-invite-page-bubble .public-ha-invitation-slot span:first-child {
  white-space: normal;
}

.human-agent-invite-page-form,
.human-agent-invite-page-slot,
.human-agent-invite-send-control {
  animation: none;
  opacity: 1;
  transform: none;
}

.human-agent-invite-page-slot {
  max-height: none;
}

.human-agent-invite-page-fields {
  width: min(100%, 360px);
}

.human-agent-invite-page-field {
  text-align: left;
}

.human-agent-invite-page-control {
  width: 100%;
  min-height: 42px;
  border: 1px solid #bfd2eb;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  color: #122f5d;
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.25;
  padding: 9px 10px;
}

.human-agent-invite-page-control::placeholder {
  color: #7588a1;
  font-weight: 560;
}

.human-agent-invite-send-control {
  width: auto;
  min-width: 118px;
  height: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 999px;
  padding: 0 16px;
  justify-self: center;
  margin: 4px auto 0;
  appearance: none;
  border: 0;
  cursor: pointer;
}

.human-agent-invite-send-control .public-ha-invitation-check {
  position: static;
  inset: auto;
  display: inline-flex;
  width: auto;
  height: auto;
  font-size: 0.92rem;
  line-height: 1;
}

.human-agent-invite-send-label {
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 820;
  line-height: 1;
  white-space: nowrap;
}

.human-agent-invite-send-control--sent {
  animation: public-ha-invitation-check-bounce 1000ms cubic-bezier(0.22, 0.74, 0.2, 1) 3 both;
}

.human-agent-invite-send-control:disabled {
  cursor: not-allowed;
  filter: grayscale(0.25);
  opacity: 0.58;
}

.human-agent-invite-page-helper,
.human-agent-invite-page-note {
  width: min(100%, 620px);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

@media (max-width: 700px) {
  .human-agent-invite-page-bubble,
  .human-agent-invite-page-helper,
  .human-agent-invite-page-note,
  .human-agent-invite-page-history {
    max-width: calc(100vw - 72px);
  }

  .human-agent-invite-page-history-side {
    justify-content: flex-start;
  }
}

.human-agent-invite-page-history {
  display: grid;
  gap: 8px;
  width: min(100%, 620px);
  margin: 12px auto 0;
}

.human-agent-invite-page-history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #d8e3f0;
  border-radius: 12px;
  background: #ffffff;
  color: #21446f;
  padding: 10px 12px;
  font-size: 0.92rem;
  font-weight: 720;
  line-height: 1.25;
}

.human-agent-invite-page-history-main {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.human-agent-invite-page-history-main small {
  color: #657a95;
  font-size: 0.76rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.human-agent-invite-page-history-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.human-agent-invite-page-history-row span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.human-agent-invite-replace-action {
  display: block;
  width: fit-content;
  margin: 14px auto 0;
}

.human-agent-invite-page-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #bfd2eb;
  border-radius: 999px;
  background: #f7fbff;
  color: #21446f;
  font-size: 0.74rem;
  font-weight: 760;
  line-height: 1;
  padding: 7px 10px;
  white-space: nowrap;
}

.human-agent-invite-decline-forward {
  width: min(100%, 620px);
  display: flex;
  justify-content: flex-end;
  margin: 4px auto 0;
}

.human-agent-invite-decline-cue {
  display: none;
}

.human-agent-invite-target-stub {
  border-radius: 8px;
}

.human-agent-entry-shell,
.human-agent-context-shell,
.human-agent-context-frame-readiness {
  display: grid;
  gap: 14px;
  border: 1px solid #cfdceb;
  border-radius: 8px;
  background: #fbfcfe;
  padding: clamp(16px, 3vw, 26px);
}

.human-agent-entry-shell--landing {
  border-color: #c8d6e6;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 250, 253, 0.98) 100%),
    #fbfcfe;
  box-shadow: 0 18px 42px rgba(24, 48, 82, 0.08);
}

.human-agent-entry-header,
.human-agent-context-header {
  display: grid;
  gap: 6px;
  border-bottom: 1px solid #e1e8f1;
  padding-bottom: 12px;
}

.human-agent-context-header--split {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
}

.human-agent-entry-header h2,
.human-agent-context-header h2 {
  margin: 0;
  color: #152f52;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  letter-spacing: 0;
}

.human-agent-entry-header--landing h2 {
  max-width: 14ch;
  color: #10284a;
  font-size: clamp(1.85rem, 4vw, 3rem);
  line-height: 0.98;
}

.human-agent-entry-header p,
.human-agent-context-header p {
  max-width: 72ch;
  margin: 0;
  color: #4d6078;
  line-height: 1.55;
}

.human-agent-context-grid {
  display: grid;
  gap: 7px;
  border: 1px solid #d9e3f0;
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.human-agent-entry-shell--landing .human-agent-context-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: #ffffff;
}

.human-agent-entry-note {
  margin: 0;
  border: 1px solid #d7e2f0;
  border-radius: 8px;
  background: #ffffff;
  color: #334a66;
  padding: 10px 12px;
  line-height: 1.5;
}

.human-agent-entry-tabs {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  border: 1px solid #cfdceb;
  border-radius: 8px;
  background: #ffffff;
  padding: 3px;
}

.human-agent-entry-tab {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #52677f;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 8px 12px;
}

.human-agent-entry-tab.active {
  background: #17365f;
  color: #ffffff;
}

.human-agent-entry-panel {
  display: grid;
  gap: 10px;
  border: 1px solid #d9e3f0;
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
}

.human-agent-ipi-review-shell {
  min-height: min(420px, calc(100dvh - 220px));
  align-content: center;
}

.human-agent-ipi-review-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-inline: auto;
  width: min(100%, 520px);
  text-align: center;
}

.human-agent-ipi-review-card .human-agent-context-header {
  text-align: center;
}

.human-agent-ipi-review-card .human-agent-entry-note {
  max-width: 34ch;
  margin: 0;
}

.human-agent-proof-decision-card {
  position: relative;
  overflow: hidden;
  justify-items: center;
  width: min(100%, 640px);
  max-width: 640px;
  border: 1px solid rgba(174, 202, 234, 0.84);
  border-radius: 14px;
  background:
    linear-gradient(135deg, transparent 0 10%, rgba(177, 196, 219, 0.18) 10.2% 10.8%, transparent 11% 100%),
    linear-gradient(135deg, transparent 0 17%, rgba(205, 219, 235, 0.26) 17.2% 17.8%, transparent 18% 100%),
    linear-gradient(135deg, transparent 0 24%, rgba(177, 196, 219, 0.16) 24.2% 24.8%, transparent 25% 100%),
    radial-gradient(circle at 86% 10%, rgba(128, 190, 232, 0.18), rgba(128, 190, 232, 0) 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.99) 0 32%, rgba(246, 249, 253, 0.97) 33% 62%, rgba(235, 247, 255, 0.95) 63% 100%);
  background-size: 160% 160%, 150% 150%, 140% 140%, 100% 100%, 100% 100%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 22px 48px rgba(16, 48, 96, 0.13);
  padding: 20px clamp(16px, 3vw, 24px);
  animation: human-agent-question-divider-wisps 7.2s ease-in-out infinite alternate;
}

.human-agent-proof-decision-card .human-agent-ipi-review-mark,
.human-agent-proof-decision-card .human-agent-context-header,
.human-agent-proof-decision-card .human-agent-entry-actions {
  justify-self: center;
}

.human-agent-proof-decision-card .human-agent-context-header h2 {
  max-width: 20ch;
  margin-inline: auto;
  text-align: center;
}

.human-agent-proof-decision-panel {
  width: min(100%, 560px);
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-color: rgba(174, 202, 234, 0.88);
  border-radius: 12px;
  background:
    linear-gradient(135deg, transparent 0 18%, rgba(205, 219, 235, 0.17) 18.4% 19%, transparent 19.4% 100%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.99) 0 36%, rgba(247, 249, 252, 0.97) 37% 64%, rgba(239, 248, 255, 0.95) 65% 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 12px 26px rgba(18, 49, 88, 0.08);
}

.human-agent-proof-decision-panel .row {
  grid-template-columns: minmax(98px, 0.52fr) minmax(0, 1.48fr);
  align-items: center;
  gap: 14px;
  min-height: 56px;
  border-bottom: 1px solid rgba(202, 216, 233, 0.76);
  padding: 12px 14px;
}

.human-agent-proof-decision-panel .row:last-child {
  border-bottom: 0;
}

.human-agent-proof-decision-panel .label {
  align-self: center;
  color: #17365f;
  font-size: 0.78rem;
  font-weight: 840;
  letter-spacing: 0;
  text-align: left;
  text-transform: uppercase;
}

.human-agent-proof-decision-panel .row-value {
  justify-self: stretch;
  color: #233d62;
  font-size: 0.96rem;
  font-weight: 720;
  line-height: 1.42;
  text-align: left;
}

.human-agent-ipi-review-mark {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(181, 203, 232, 0.92);
  border-radius: 999px;
  background:
    linear-gradient(
      135deg,
      transparent 0 16%,
      rgba(228, 237, 248, 0.54) 17% 28%,
      transparent 29% 44%,
      rgba(228, 237, 248, 0.36) 45% 58%,
      transparent 59% 100%
    ),
    linear-gradient(180deg, #153b75 0%, #102f60 100%);
  background-size: 180% 180%, 100% 100%;
  box-shadow: 0 14px 24px rgba(16, 48, 96, 0.18);
  animation: human-agent-question-divider-wisps 5.8s ease-in-out infinite alternate;
}

.human-agent-inherited-will-teaching-card {
  position: relative;
  overflow: hidden;
  justify-items: stretch;
  width: min(100%, 760px);
  max-width: 760px;
  border: 1px solid rgba(174, 202, 234, 0.8);
  border-radius: 12px;
  background:
    linear-gradient(135deg, transparent 0 12%, rgba(178, 196, 219, 0.18) 12.2% 12.8%, transparent 13% 100%),
    linear-gradient(135deg, transparent 0 18%, rgba(198, 211, 228, 0.26) 18.2% 18.8%, transparent 19% 100%),
    linear-gradient(135deg, transparent 0 24%, rgba(178, 196, 219, 0.16) 24.2% 24.8%, transparent 25% 100%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.99) 0 34%, rgba(245, 248, 252, 0.97) 35% 60%, rgba(233, 245, 255, 0.94) 61% 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 20px 44px rgba(16, 48, 96, 0.12);
  padding: 18px;
}

.human-agent-inherited-will-teaching-card .human-agent-ipi-review-mark,
.human-agent-inherited-will-teaching-card .human-agent-context-header,
.human-agent-inherited-will-teaching-card .human-agent-entry-actions {
  justify-self: center;
}

.human-agent-inherited-will-teaching-card .human-agent-context-header h2 {
  max-width: 22ch;
  margin-inline: auto;
  text-align: center;
}

.human-agent-inherited-will-teaching-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  width: 100%;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.human-agent-inherited-will-teaching-list li {
  position: relative;
  border: 1px solid rgba(174, 202, 234, 0.76);
  border-radius: 10px;
  background:
    linear-gradient(135deg, transparent 0 20%, rgba(205, 219, 235, 0.18) 20.4% 21%, transparent 21.4% 100%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.99) 0 34%, rgba(246, 248, 251, 0.96) 35% 62%, rgba(239, 248, 255, 0.94) 63% 100%);
  color: #17365f;
  font-size: 0.94rem;
  font-weight: 670;
  line-height: 1.45;
  padding: 10px 12px 10px 32px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 9px 20px rgba(18, 49, 88, 0.05);
  overflow-wrap: anywhere;
}

.human-agent-inherited-will-teaching-list li::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 14px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #265f9f;
  box-shadow: 0 0 0 4px rgba(38, 95, 159, 0.1);
}

.human-agent-entry-panel--primary {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border-color: #bdd0e6;
  background: #ffffff;
}

.human-agent-entry-panel h3 {
  margin: 0;
  color: #1c3559;
}

.human-agent-entry-panel p {
  margin: 0;
  color: #536a86;
  line-height: 1.5;
}

.human-agent-entry-start-button {
  white-space: nowrap;
}

@media (max-width: 720px) {
  .human-agent-entry-shell--landing .human-agent-context-grid,
  .human-agent-entry-panel--primary {
    grid-template-columns: minmax(0, 1fr);
  }

  .human-agent-entry-start-button {
    justify-self: stretch;
    white-space: normal;
  }

  .app-shell--ha-sequence .human-agent-entry-panel--arrow {
    grid-template-columns: minmax(0, 1fr);
  }
}

.human-agent-entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.human-agent-surface-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.human-agent-dashboard-shell,
.human-agent-settings-shell,
.human-agent-work-request-shell {
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfdff 54%, #f7faf8 100%);
}

.human-agent-context-frame-readiness {
  gap: 12px;
  background: #ffffff;
  padding: 14px;
}

.human-agent-context-frame-readiness--compact {
  padding: 12px;
}

.human-agent-context-frame-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.human-agent-context-frame-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #d9e3f0;
  border-radius: 8px;
  background: #fbfdff;
  padding: 10px;
}

.human-agent-context-frame-card strong,
.human-agent-context-frame-card span {
  display: block;
}

.human-agent-context-frame-card strong {
  color: #17365f;
}

.human-agent-context-frame-card span {
  color: #536a86;
  font-size: 12px;
  line-height: 1.45;
}

.human-agent-context-frame-shell {
  display: grid;
  gap: 14px;
}

.human-agent-context-frame-shell > h2 {
  margin: 0;
  color: #152f52;
}

.human-agent-context-frame-lede,
.human-agent-context-frame-boundary {
  margin: 0;
  color: #536a86;
  line-height: 1.5;
}

.human-agent-context-frame-form {
  display: grid;
  gap: 14px;
}

.human-agent-context-frame-textarea {
  min-height: 168px;
}

.human-agent-context-next {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border-top: 1px solid #e1e8f1;
  color: #4b6079;
  padding-top: 12px;
}

.human-agent-context-next strong {
  color: #17365f;
}

.human-agent-dashboard-actions {
  margin-top: 4px;
}

.human-agent-dashboard-header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.human-agent-current-task-button {
  min-height: 38px;
  border-color: rgba(29, 79, 156, 0.82);
  background:
    linear-gradient(135deg, transparent 0 18%, rgba(255, 255, 255, 0.24) 18.4% 19.2%, transparent 19.8% 100%),
    linear-gradient(160deg, #2d6db6 0%, #174f94 52%, #113a72 100%);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 10px 22px rgba(29, 79, 156, 0.16);
}

.human-agent-work-request-form,
.human-agent-proof-ready,
.human-agent-settings-rows,
.human-agent-settings-history {
  display: grid;
  gap: 12px;
}

.human-agent-payment-method-action {
  justify-content: flex-start;
}

.human-agent-payment-method-list,
.human-agent-payment-method-fields,
.owner-payment-method-summary {
  display: grid;
  gap: 10px;
}

.human-agent-payment-method-row {
  border: 1px solid rgba(193, 211, 232, 0.92);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 10px;
}

.human-agent-payment-method-row.is-enabled {
  border-color: rgba(64, 122, 176, 0.42);
  background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
}

.app-shell--ha-settings .card {
  border-color: rgba(183, 207, 236, 0.92);
  background:
    radial-gradient(circle at 8% 12%, rgba(79, 124, 182, 0.08), rgba(79, 124, 182, 0) 34%),
    linear-gradient(180deg, #ffffff 0%, #f6fbff 64%, #edf5fe 100%);
}

.app-shell--ha-settings .human-agent-settings-shell {
  position: relative;
  overflow: hidden;
  border-color: rgba(166, 196, 230, 0.96);
  background:
    radial-gradient(circle at 8% 18%, rgba(65, 112, 174, 0.16), rgba(65, 112, 174, 0) 36%),
    radial-gradient(circle at 92% 84%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 42%),
    linear-gradient(145deg, #fafdff 0%, #f1f7ff 58%, #e5effa 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 20px 38px rgba(16, 46, 88, 0.12);
}

.app-shell--ha-settings .human-agent-settings-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(23, 65, 126, 0.12) 0, rgba(23, 65, 126, 0.045) 18%, rgba(255, 255, 255, 0) 42%);
}

.app-shell--ha-settings .human-agent-settings-shell > * {
  position: relative;
  z-index: 1;
}

.app-shell--ha-settings .human-agent-context-header {
  border: 1px solid rgba(174, 202, 234, 0.92);
  border-radius: 14px;
  background:
    radial-gradient(circle at 10% 18%, rgba(40, 90, 158, 0.16), rgba(40, 90, 158, 0) 36%),
    linear-gradient(135deg, #fafdff 0%, #f0f7ff 56%, #e0edf9 100%);
  padding: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 12px 22px rgba(18, 51, 95, 0.07);
}

.app-shell--ha-settings .human-agent-context-header h2 {
  font-size: clamp(1.62rem, 4vw, 2.08rem);
}

.app-shell--ha-settings .human-agent-settings-rows .row {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(100px, 0.34fr) minmax(0, 1fr);
  align-items: center;
  gap: 10px 14px;
  min-height: 56px;
  border: 1px solid rgba(179, 205, 235, 0.92);
  border-radius: 12px;
  background:
    radial-gradient(circle at 88% 18%, rgba(119, 183, 228, 0.2), rgba(119, 183, 228, 0) 34%),
    linear-gradient(145deg, #ffffff 0%, #f5faff 52%, #e7f1fb 100%);
  padding: 12px 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 8px 16px rgba(16, 46, 88, 0.04);
}

.app-shell--ha-settings .human-agent-settings-rows .row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, rgba(28, 79, 148, 0.38), rgba(117, 169, 222, 0.18));
}

.app-shell--ha-settings .human-agent-settings-rows .label {
  color: #5d7194;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.app-shell--ha-settings .human-agent-settings-rows .row-value {
  color: #102346;
  font-size: 1rem;
  font-weight: 650;
  text-align: right;
}

.app-shell--ha-settings .human-agent-payment-method-action,
.app-shell--ha-settings .account-settings-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid rgba(174, 202, 234, 0.82);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82) 0%, rgba(235, 245, 255, 0.82) 100%);
  padding: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.app-shell--ha-settings .human-agent-payment-method-action {
  grid-template-columns: minmax(0, 1fr);
}

.app-shell--ha-settings .human-agent-payment-method-action .button,
.app-shell--ha-settings .account-settings-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin-top: 0;
  text-align: center;
}

.human-agent-payment-methods-panel {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(174, 202, 234, 0.92);
  border-radius: 8px;
  background:
    linear-gradient(145deg, #ffffff 0%, #f4faff 100%);
  padding: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 10px 18px rgba(16, 46, 88, 0.055);
}

.human-agent-payment-methods-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.human-agent-payment-methods-panel__header h3,
.human-agent-payment-method-detail-panel h4 {
  margin: 0;
  color: #17365f;
}

.human-agent-payment-methods-panel__close {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(93, 126, 170, 0.46);
  border-radius: 999px;
  background: #ffffff;
  color: #315071;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.human-agent-payment-method-detail-panel {
  display: grid;
  gap: 10px;
}

.human-agent-payment-method-row__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.human-agent-payment-method-row__label {
  color: #17365f;
  font-weight: 800;
  text-decoration: none;
}

.human-agent-payment-method-row__actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.human-agent-payment-method-row__actions .public-ha-truth-edit,
.human-agent-payment-method-row__actions .human-agent-truth-confirm-button {
  position: static;
  flex: 0 0 28px;
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.human-agent-payment-method-row__actions .human-agent-truth-edit-button,
.human-agent-payment-method-row__actions .human-agent-truth-confirm-button {
  right: auto;
}

.human-agent-payment-edit-button svg {
  pointer-events: none;
}

.human-agent-payment-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.human-agent-payment-toggle input {
  appearance: none;
  width: 38px;
  height: 22px;
  margin: 0;
  border: 1px solid #b9cbea;
  border-radius: 999px;
  background: #eef3fa;
  cursor: pointer;
  position: relative;
  transition: background 160ms ease, border-color 160ms ease;
}

.human-agent-payment-toggle input::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(23, 54, 95, 0.2);
  transition: transform 160ms ease;
}

.human-agent-payment-toggle input:checked {
  border-color: #2c7a62;
  background: #2c7a62;
}

.human-agent-payment-toggle input:checked::after {
  transform: translateX(16px);
}

.human-agent-payment-method-fields {
  margin-top: 10px;
}

.human-agent-payment-field {
  min-height: 64px;
}

.owner-admin-payment-method-panel,
.owner-payment-method-summary__item {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(193, 211, 232, 0.9);
  border-radius: 8px;
  background: #fbfdff;
  padding: 10px;
}

.owner-admin-payment-method-panel > strong,
.owner-payment-method-summary__item > strong {
  color: #17365f;
}

.owner-payment-method-summary__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #17365f;
}

.owner-payment-method-summary__heading span {
  color: #2c7a62;
  font-size: 0.78rem;
  font-weight: 800;
}

.owner-payment-method-summary__details {
  color: #17365f;
}

.owner-payment-method-summary__details summary {
  cursor: pointer;
  color: #315d91;
  font-size: 0.82rem;
  font-weight: 800;
}

.human-agent-work-request-form {
  border: 1px solid rgba(181, 203, 232, 0.96);
  border-radius: 14px;
  background:
    radial-gradient(circle at 84% 14%, rgba(123, 193, 240, 0.18), rgba(123, 193, 240, 0) 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.96));
  padding: 14px;
}

.human-agent-work-cycle-chip {
  white-space: nowrap;
  width: auto;
  justify-self: end;
  align-self: start;
}

.human-agent-work-request-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
}

.human-agent-work-request-grid label,
.human-agent-work-request-form > label {
  display: grid;
  gap: 8px;
  color: #17365f;
}

.human-agent-work-request-textarea {
  min-height: 132px;
}

.human-agent-work-request-waiting-state {
  border: 1px solid rgba(176, 198, 225, 0.78);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(239, 247, 255, 0.86));
  color: #17365f;
  font-weight: 800;
  padding: 13px 14px;
  text-align: center;
}

.human-agent-work-request-date .operator-form-control[readonly] {
  cursor: default;
  background: rgba(244, 248, 253, 0.82);
  color: #17365f;
}

.human-agent-proof-ready {
  border-top: 1px solid rgba(197, 211, 229, 0.94);
  margin-top: 6px;
  padding-top: 14px;
}

.human-agent-account-ready-transition {
  min-height: min(520px, calc(100dvh - 206px));
}

@media (max-width: 720px) {
  .human-agent-work-request-grid {
    grid-template-columns: 1fr;
  }
}

.human-agent-context-work__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.human-agent-settings-job-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(174, 199, 231, 0.46);
  border-radius: 14px;
  color: #eef5ff;
  background:
    linear-gradient(
      135deg,
      transparent 0 14%,
      rgba(228, 237, 248, 0.22) 15% 25%,
      transparent 26% 38%,
      rgba(228, 237, 248, 0.16) 39% 49%,
      transparent 50% 62%,
      rgba(228, 237, 248, 0.12) 63% 73%,
      transparent 74% 100%
    ),
    linear-gradient(180deg, #122949 0%, #0d2240 100%);
  padding: 14px;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.18),
    0 16px 28px rgba(13, 34, 64, 0.16);
}

.human-agent-settings-job-card__eyebrow {
  color: #f6fbff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.human-agent-settings-job-card .row {
  border-color: rgba(219, 232, 248, 0.26);
}

.human-agent-settings-job-card .label {
  color: rgba(238, 245, 255, 0.82);
}

.human-agent-settings-job-card .row-value {
  color: #ffffff;
}

.human-agent-context-work h3 {
  margin: 0;
  color: #1c3559;
}

.human-agent-assigned-work-list {
  display: grid;
  gap: 8px;
}

.human-agent-assigned-work-row {
  display: grid;
  gap: 7px;
  border: 1px solid #d9e3f0;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
}

.human-agent-assigned-work-row__main {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.human-agent-assigned-work-row__main strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  color: #162f53;
}

.human-agent-assigned-work-row__main span:not(.bucket4-status-token) {
  color: #536a86;
  font-size: 12px;
}

.human-agent-assigned-work-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: #536a86;
  font-size: 12px;
}

.human-agent-assigned-work-proof {
  margin: 0;
  border-top: 1px solid #edf2f8;
  color: #334a66;
  font-size: 13px;
  line-height: 1.45;
  padding-top: 8px;
}

.human-agent-proof-status-row {
  display: grid;
  gap: 6px;
  border-top: 1px solid #edf2f8;
  padding-top: 8px;
}

.owner-ha-jobs-done-list,
.owner-ha-task-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.owner-ha-person-jobs-row,
.owner-ha-task-row {
  border: 1px solid #d9e3f0;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.owner-ha-task-row.owner-ha-task-objective-row {
  border-color: rgba(151, 172, 199, 0.5);
  background:
    linear-gradient(
      135deg,
      transparent 0 14%,
      rgba(205, 214, 226, 0.26) 15% 21%,
      transparent 22% 37%,
      rgba(182, 196, 214, 0.24) 38% 44%,
      transparent 45% 60%,
      rgba(224, 231, 239, 0.22) 61% 67%,
      transparent 68% 100%
    ),
    linear-gradient(135deg, #153255 0%, #24496f 48%, #f6f9fc 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    0 12px 26px rgba(20, 45, 78, 0.08);
  padding: 5px;
}

.human-agent-work-done-objective-row {
  background:
    linear-gradient(
      135deg,
      transparent 0 14%,
      rgba(205, 214, 226, 0.26) 15% 21%,
      transparent 22% 37%,
      rgba(182, 196, 214, 0.24) 38% 44%,
      transparent 45% 60%,
      rgba(224, 231, 239, 0.22) 61% 67%,
      transparent 68% 100%
    ),
    linear-gradient(135deg, #153255 0%, #24496f 48%, #f6f9fc 100%);
}

.human-agent-work-done-objective-row + .human-agent-work-done-objective-row,
.owner-inherited-will-objective-row + .owner-inherited-will-objective-row {
  border-top: 1px solid rgba(173, 192, 216, 0.58);
  padding-top: 10px;
}

.owner-ha-person-jobs-row > summary,
.owner-ha-task-row > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  list-style: none;
  padding: 10px;
}

.owner-ha-task-row > summary {
  grid-template-columns: minmax(0, 1fr) auto;
}

.owner-ha-person-jobs-row > summary::-webkit-details-marker,
.owner-ha-task-row > summary::-webkit-details-marker {
  display: none;
}

.owner-ha-task-row > summary span {
  color: #17365f;
  font-size: 0.82rem;
  font-weight: 800;
}

.owner-ha-task-row > summary strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #162f53;
}

.owner-ha-person-jobs-row > summary strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #162f53;
}

.owner-ha-person-jobs-row > summary span {
  color: #536a86;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: right;
}

.owner-ha-task-row > summary em {
  border-radius: 8px;
  background: #194f99;
  color: #ffffff;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
  padding: 8px 12px;
  text-align: right;
}

.owner-ha-task-objective-row__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(158, 184, 217, 0.46);
  border-radius: 8px;
  background:
    linear-gradient(135deg, #ffffff 0%, #f3f6fa 38%, #dfe6ee 68%, #c4d5e8 100%);
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.owner-ha-task-objective-row__inner > * {
  position: relative;
  z-index: 1;
}

.owner-ha-task-objective-row__inner strong {
  color: #132d52;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.44);
}

.owner-ha-summary-button {
  justify-self: end;
  margin-top: 0;
}

.owner-ha-person-jobs-detail,
.owner-ha-task-detail {
  border-top: 1px solid #edf2f8;
}

.owner-ha-task-detail {
  display: grid;
  gap: 10px;
}

.app-shell--internal .card--internal:has(.owner-ha-task-detail) {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 12%, rgba(127, 188, 232, 0.18), rgba(127, 188, 232, 0) 34%),
    radial-gradient(circle at 6% 92%, rgba(72, 108, 162, 0.09), rgba(72, 108, 162, 0) 42%),
    linear-gradient(145deg, #ffffff 0%, #f8fbff 44%, #edf5fd 100%);
}

.app-shell--internal .card--internal:has(.owner-ha-task-detail)::before {
  content: "";
  position: absolute;
  inset: -18%;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      135deg,
      transparent 0 14%,
      rgba(166, 183, 206, 0.24) 15% 22%,
      transparent 23% 36%,
      rgba(199, 212, 229, 0.32) 37% 43%,
      transparent 44% 57%,
      rgba(131, 158, 194, 0.16) 58% 64%,
      transparent 65% 100%
    );
  opacity: 0.58;
  animation: owner-summary-card-wisps 4.8s ease-in-out infinite alternate;
}

.app-shell--internal .card--internal:has(.owner-ha-task-detail)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.08) 54%, rgba(17, 49, 92, 0.035));
}

.app-shell--internal .card--internal:has(.owner-ha-task-detail) > * {
  position: relative;
  z-index: 1;
}

@keyframes owner-summary-card-wisps {
  0% {
    transform: translate3d(-2.2%, -1.4%, 0);
  }

  100% {
    transform: translate3d(2.6%, 1.8%, 0);
  }
}

.owner-ha-task-detail-heading h3,
.owner-ha-task-detail-heading p {
  margin: 0;
}

.owner-ha-task-detail-heading__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.owner-ha-person-jobs-detail {
  padding: 10px;
}

.owner-ha-task-bubbles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 10px;
}

.owner-ha-task-iteration + .owner-ha-task-iteration {
  margin-top: 14px;
}

.owner-ha-task-iteration--next {
  border-top: 1px solid rgba(111, 145, 189, 0.28);
  padding-top: 12px;
}

.owner-ha-task-iteration__label {
  margin: 0 0 8px;
  color: #46688f;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.owner-ha-task-bubble {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(38px, 1fr);
  gap: 8px;
  align-content: stretch;
  min-height: 116px;
  border: 1px solid rgba(158, 188, 225, 0.42);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 255, 0.78));
  padding: 12px 12px 52px;
}

.owner-ha-task-bubble--link {
  color: inherit;
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.owner-ha-task-bubble--link:hover,
.owner-ha-task-bubble--link:focus-visible {
  border-color: rgba(70, 117, 180, 0.46);
  box-shadow: 0 10px 22px rgba(22, 52, 91, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.94);
  outline: none;
  transform: translateY(-1px);
}

.owner-ha-task-bubble strong {
  color: #17365f;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.owner-ha-task-bubble p {
  margin: 0;
  color: #263f5f;
  font-size: 0.88rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.owner-click-in-button,
.owner-proof-files-button {
  justify-self: start;
}

.owner-click-in-button {
  position: absolute;
  left: 12px;
  bottom: 12px;
  margin-top: 0;
}

.manual-payout-closeout-row {
  display: flex;
  justify-content: flex-start;
  margin: 12px 0 0;
}

.manual-payout-closeout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-color: #183d70;
  background: linear-gradient(180deg, #1f5fa7 0%, #17365f 100%);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(23, 54, 95, 0.18);
  text-align: center;
}

.manual-payout-closeout-button--complete {
  border-color: #bac7d7;
  background: linear-gradient(180deg, #eef3f8 0%, #d9e2ee 100%);
  color: #4d6178;
  box-shadow: none;
}

.payout-reminder-diagnostics {
  margin: 12px 0 0;
  padding: 12px;
  border: 1px solid rgba(188, 204, 223, 0.9);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(249, 252, 255, 0.96), rgba(237, 244, 251, 0.84));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.payout-reminder-diagnostics__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #17365f;
}

.payout-reminder-diagnostics__header strong {
  font-size: 0.84rem;
}

.payout-reminder-diagnostics__header span {
  font-size: 0.74rem;
  font-weight: 800;
  color: #60758f;
  text-transform: uppercase;
}

.payout-reminder-diagnostics__grid {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.payout-reminder-diagnostics__row {
  display: grid;
  grid-template-columns: 44px 118px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #4d6178;
}

.payout-reminder-diagnostics__row span,
.payout-reminder-diagnostics__row strong {
  color: #17365f;
  font-size: 0.78rem;
}

.payout-reminder-diagnostics__row em {
  min-width: 0;
  color: #60758f;
  font-size: 0.76rem;
  font-style: normal;
  line-height: 1.35;
}

.manual-payout-method-modal .owner-inline-modal__card,
.manual-payout-proof-modal .owner-inline-modal__card {
  border-color: #c3d5e9;
  background:
    repeating-linear-gradient(135deg, rgba(183, 197, 215, 0.16) 0 1px, transparent 1px 16px),
    linear-gradient(145deg, #ffffff 0%, #f6fbff 58%, #e7f1fb 100%);
  box-shadow: 0 24px 54px rgba(18, 45, 83, 0.18);
}

.manual-payout-method-surface__hero,
.manual-payout-approved-amount {
  border: 1px solid #cbddee;
  border-radius: 10px;
  background: linear-gradient(145deg, #ffffff 0%, #edf6ff 100%);
  padding: 14px;
}

.manual-payout-method-surface__hero span,
.manual-payout-approved-amount span {
  display: block;
  color: #5f748f;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.manual-payout-method-surface__hero strong,
.manual-payout-approved-amount strong {
  display: block;
  margin-top: 4px;
  color: #10284a;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.1;
}

.manual-payout-method-surface__hero p {
  margin: 8px 0 0;
  color: #38516f;
}

.manual-payout-method-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.manual-payout-method-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  overflow: hidden;
  border: 1px solid #d2e1f1;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(218, 229, 242, 0.22) 0 10%, transparent 10% 100%),
    rgba(255, 255, 255, 0.9);
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.manual-payout-method-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #17365f 0%, #8db9e6 62%, #d9e3ef 100%);
}

.manual-payout-method-card__main,
.manual-payout-method-card__main > div {
  min-width: 0;
}

.manual-payout-method-card--inactive {
  opacity: 0.62;
  background:
    linear-gradient(135deg, rgba(220, 227, 235, 0.18) 0 10%, transparent 10% 100%),
    rgba(247, 250, 253, 0.86);
}

.manual-payout-method-card__main strong {
  display: block;
  color: #17365f;
  line-height: 1.2;
}

.manual-payout-method-detail {
  display: inline-flex;
  flex-direction: column;
  min-width: min(180px, 100%);
  margin: 8px 8px 0 0;
  padding: 7px 9px;
  border: 1px solid #dde8f4;
  border-radius: 8px;
  background: #f8fbff;
}

.manual-payout-method-detail span {
  color: #687d95;
  font-size: 11px;
  font-weight: 700;
}

.manual-payout-method-detail strong {
  color: #203b62;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.manual-payout-method-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 116px;
  white-space: nowrap;
  text-align: center;
}

.manual-payout-proof-modal-body {
  display: grid;
  gap: 12px;
}

.manual-payout-selected-method {
  border: 1px solid #d1dfef;
  border-radius: 10px;
  background: #ffffff;
  padding: 12px;
}

.manual-payout-selected-method > span {
  color: #17365f;
  font-weight: 900;
}

.manual-payout-upload-bubble {
  position: relative;
  display: grid;
  gap: 6px;
  overflow: hidden;
  border: 1px dashed #9dbadd;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(207, 222, 239, 0.42) 0 12%, transparent 12% 22%, rgba(233, 240, 248, 0.66) 22% 30%, transparent 30% 100%),
    linear-gradient(145deg, #fafdff 0%, #eaf5ff 100%);
  padding: 16px;
  color: #17365f;
  cursor: pointer;
}

.manual-payout-upload-bubble span {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.manual-payout-upload-bubble input {
  max-width: 100%;
  color: #38516f;
  font-size: 13px;
}

.manual-payout-confirm-button {
  justify-self: start;
  min-width: 178px;
  text-align: center;
}

.manual-payout-confirm-button:disabled {
  border-color: #ccd5df;
  background: #e0e6ee;
  color: #75869a;
  box-shadow: none;
}

.human-agent-payout-status-bubble {
  border-color: rgba(108, 151, 207, 0.54);
  background:
    repeating-linear-gradient(135deg, rgba(178, 193, 214, 0.14) 0 1px, transparent 1px 14px),
    linear-gradient(145deg, #f8fbff 0%, #e8f3ff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 12px 26px rgba(24, 68, 118, 0.1);
}

.human-agent-payout-status-bubble strong {
  color: #123a72;
}

@media (max-width: 640px) {
  .manual-payout-method-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .manual-payout-method-action {
    justify-self: start;
    width: 100%;
  }

  .manual-payout-confirm-button {
    width: 100%;
  }
}

.work-summary-pdf-row {
  display: flex;
  justify-content: flex-start;
  margin-top: 14px;
}

.work-summary-pdf-button {
  border-color: rgba(122, 154, 198, 0.38);
  color: #17365f;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(232, 242, 253, 0.94));
  box-shadow: 0 8px 18px rgba(22, 52, 91, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.owner-proof-files-button {
  margin-top: 2px;
  border-color: #bfd0e8;
  background: linear-gradient(180deg, #f8fbff 0%, #eaf2fc 100%);
  color: #1d4f9c;
}

.owner-click-in-bullets {
  margin: 0;
  color: #2f4968;
  line-height: 1.45;
}

.owner-click-in-paragraph,
.owner-admin-rationale-copy {
  margin: 0 0 8px;
  color: #2f4968;
  line-height: 1.5;
}

.owner-click-in-proof-stack {
  display: grid;
  gap: 8px;
}

.owner-click-in-proof-stack .owner-click-in-paragraph {
  margin-bottom: 0;
}

.owner-click-in-proof-evidence {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(180, 195, 215, 0.74);
}

.owner-inline-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 22, 40, 0.52);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.owner-inline-modal__card {
  position: relative;
  display: grid;
  gap: 12px;
  width: min(520px, 100%);
  max-width: calc(100vw - 40px);
  max-height: min(72vh, 620px);
  overflow: auto;
  border: 1px solid rgba(174, 202, 234, 0.78);
  border-radius: 12px;
  background:
    radial-gradient(circle at 88% 10%, rgba(168, 210, 242, 0.24), rgba(168, 210, 242, 0) 36%),
    linear-gradient(145deg, #ffffff, #f1f8ff);
  color: #213b5c;
  box-shadow: 0 24px 56px rgba(22, 47, 83, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  padding: 18px;
}

.owner-inline-modal__body {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.owner-inline-modal__body > * {
  min-width: 0;
  max-width: 100%;
}

.owner-admin-decision-modal .owner-inline-modal__card {
  width: min(560px, 100%);
  gap: 16px;
  border-radius: 16px;
  overflow: hidden auto;
  background:
    radial-gradient(circle at 94% 8%, rgba(116, 183, 231, 0.3), rgba(116, 183, 231, 0) 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(235, 245, 255, 0.96));
  box-shadow: 0 30px 70px rgba(15, 40, 78, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.owner-admin-decision-modal .owner-inline-modal__card::before {
  content: "";
  position: absolute;
  inset: -24%;
  pointer-events: none;
  background:
    linear-gradient(
      135deg,
      transparent 0 14%,
      rgba(158, 178, 204, 0.16) 15% 21%,
      transparent 22% 37%,
      rgba(204, 218, 236, 0.22) 38% 44%,
      transparent 45% 60%,
      rgba(127, 153, 190, 0.12) 61% 66%,
      transparent 67% 100%
    );
  opacity: 0.68;
  animation: owner-summary-card-wisps 5.4s ease-in-out infinite alternate;
}

.owner-admin-decision-modal .owner-inline-modal__card > * {
  position: relative;
  z-index: 1;
}

.owner-inline-modal__card h3 {
  margin: 0;
  color: #162f53;
}

.owner-review-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.owner-review-proof-summary {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(174, 202, 234, 0.74);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(232, 243, 255, 0.82));
  padding: 12px;
}

.owner-review-proof-summary span {
  display: block;
  margin-bottom: 6px;
  color: #5f7394;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.owner-review-proof-summary p {
  margin: 0;
  color: #17365f;
  font-weight: 800;
  line-height: 1.4;
}

.owner-review-proof-click-in {
  position: static;
  left: auto;
  bottom: auto;
  justify-self: start;
  margin-top: 0;
}

.owner-review-proof-expanded {
  margin-top: 2px;
  border-top: 1px solid rgba(180, 198, 222, 0.72);
  padding-top: 10px;
}

.owner-review-proof-files {
  margin-top: 2px;
}

.owner-review-proof-files .owner-proof-file-list {
  margin-top: 0;
}

.owner-proof-review-advisory-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(166, 190, 220, 0.72);
  border-radius: 10px;
  background: rgba(249, 252, 255, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 10px 22px rgba(20, 48, 84, 0.05);
  padding: 12px;
}

.owner-proof-review-advisory-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.owner-proof-review-advisory-card__header h3 {
  margin: 0;
  color: #17365f;
  font-size: 0.98rem;
}

.owner-proof-review-advisory-card__header p,
.owner-proof-review-advisory-card__quiet {
  margin: 3px 0 0;
  color: #526884;
  font-size: 0.82rem;
  line-height: 1.45;
}

.owner-proof-review-advisory-card__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.owner-proof-review-advisory-card__grid article {
  min-width: 0;
  border: 1px solid rgba(200, 214, 232, 0.84);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 10px;
}

.owner-proof-review-advisory-card__grid h4 {
  margin: 0 0 6px;
  color: #203a5f;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.owner-proof-review-advisory-card__grid p,
.owner-proof-review-advisory-card__grid li {
  color: #40536b;
  font-size: 0.8rem;
  line-height: 1.45;
}

.owner-proof-review-advisory-card__grid p,
.owner-proof-review-advisory-card__grid ul {
  margin: 0;
}

.owner-proof-review-advisory-card__grid ul {
  padding-left: 17px;
}

.owner-review-ipi-decision {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(174, 202, 234, 0.72);
  border-radius: 10px;
  background:
    linear-gradient(135deg, transparent 0 12%, rgba(178, 196, 219, 0.2) 12.2% 12.8%, transparent 13% 100%),
    linear-gradient(135deg, transparent 0 18%, rgba(198, 211, 228, 0.26) 18.2% 18.8%, transparent 19% 100%),
    linear-gradient(135deg, transparent 0 24%, rgba(178, 196, 219, 0.18) 24.2% 24.8%, transparent 25% 100%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.99) 0 36%, rgba(239, 247, 255, 0.94) 37% 61%, rgba(255, 255, 255, 0.97) 62% 100%);
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94), 0 10px 22px rgba(20, 48, 84, 0.05);
}

.owner-review-ipi-decision__head,
.owner-review-ipi-salary-row,
.owner-review-custom-payout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.owner-review-ipi-decision__head span,
.owner-review-ipi-salary-row span,
.owner-review-custom-payout span:first-child {
  color: #5f7394;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.owner-review-ipi-decision__head strong,
.owner-review-ipi-salary-row strong {
  color: #17365f;
  font-size: 0.94rem;
}

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

.owner-review-payout-choice {
  position: relative;
  cursor: pointer;
}

.owner-review-payout-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.owner-review-payout-choice span {
  display: grid;
  gap: 3px;
  min-height: 54px;
  align-content: center;
  justify-items: center;
  border: 1px solid rgba(144, 180, 222, 0.62);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  padding: 9px;
  color: #18365f;
  box-shadow: 0 8px 18px rgba(18, 49, 88, 0.05);
  text-align: center;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.owner-review-payout-choice strong {
  font-size: 0.94rem;
  line-height: 1;
}

.owner-review-payout-choice em {
  color: #4d6689;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 800;
}

.owner-review-payout-choice:has(input:checked) span {
  border-color: rgba(29, 79, 156, 0.74);
  background:
    linear-gradient(135deg, transparent 0 16%, rgba(255, 255, 255, 0.66) 16.4% 17.1%, transparent 17.5% 100%),
    linear-gradient(145deg, rgba(236, 246, 255, 0.99), rgba(211, 231, 255, 0.94));
  box-shadow: 0 12px 22px rgba(29, 79, 156, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.owner-review-payout-choice:hover span,
.owner-review-payout-choice:focus-within span {
  transform: translateY(-1px);
  border-color: rgba(29, 79, 156, 0.62);
}

.owner-review-custom-payout {
  border-top: 1px solid rgba(180, 198, 222, 0.62);
  padding-top: 9px;
}

.owner-review-custom-payout__input {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #afc6e8;
  border-radius: 8px;
  background:
    linear-gradient(135deg, transparent 0 24%, rgba(196, 209, 226, 0.22) 24.5% 25.4%, transparent 25.8% 100%),
    #f8fbff;
  padding: 4px 7px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.owner-review-custom-payout__input b {
  color: #46688f;
  font-size: 12px;
}

.owner-review-custom-payout__input input {
  width: 96px;
  border: 0;
  background: transparent;
  color: #17365f;
  font-weight: 850;
  outline: none;
}

.owner-review-choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  border: 1px solid rgba(144, 180, 222, 0.66);
  border-radius: 14px;
  background:
    radial-gradient(circle at 92% 12%, rgba(122, 184, 229, 0.14), rgba(122, 184, 229, 0) 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(237, 246, 255, 0.9));
  padding: 14px 15px;
  color: #18365f;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(18, 49, 88, 0.06);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.owner-review-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.owner-review-choice span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.owner-review-choice span::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 1px solid rgba(44, 86, 142, 0.56);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: inset 0 0 0 4px #ffffff;
}

.owner-review-choice:has(input:checked) {
  border-color: rgba(29, 79, 156, 0.7);
  background:
    radial-gradient(circle at 90% 10%, rgba(108, 178, 228, 0.24), rgba(108, 178, 228, 0) 38%),
    linear-gradient(145deg, rgba(242, 248, 255, 0.98), rgba(220, 237, 255, 0.92));
  box-shadow: 0 14px 26px rgba(29, 79, 156, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.owner-review-choice:has(input:checked) span::before {
  border-color: #1d4f9c;
  background: #1d4f9c;
  box-shadow: inset 0 0 0 4px #ffffff;
}

.owner-review-choice:hover,
.owner-review-choice:focus-within {
  transform: translateY(-1px);
  border-color: rgba(29, 79, 156, 0.62);
}

.owner-review-choice:not(:has(input:disabled)):active {
  transform: scale(1.018);
  border-color: rgba(21, 59, 117, 0.82);
  background:
    radial-gradient(circle at 90% 10%, rgba(108, 178, 228, 0.22), rgba(108, 178, 228, 0) 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(225, 240, 255, 0.94));
  box-shadow: 0 10px 20px rgba(21, 59, 117, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transition: transform 60ms cubic-bezier(0.16, 1, 0.3, 1), border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.owner-review-choice:not(:has(input:disabled)):active span::before {
  border-color: #153b75;
  background: #153b75;
  box-shadow: inset 0 0 0 4px #ffffff;
}

.owner-review-note textarea {
  min-height: 96px;
}

.owner-inline-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid #d5e0ef;
  border-radius: 999px;
  color: #17365f;
  text-decoration: none;
  background: #f8fbff;
  font-weight: 900;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), background 198ms cubic-bezier(0.16, 1, 0.3, 1), color 198ms cubic-bezier(0.16, 1, 0.3, 1), border-color 198ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 198ms cubic-bezier(0.16, 1, 0.3, 1);
}

.owner-inline-modal__close:active {
  transform: scale(1.044);
  transition: transform 60ms cubic-bezier(0.16, 1, 0.3, 1), background 198ms cubic-bezier(0.16, 1, 0.3, 1), color 198ms cubic-bezier(0.16, 1, 0.3, 1), border-color 198ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 198ms cubic-bezier(0.16, 1, 0.3, 1);
  background: #153b75;
  color: #ffffff;
  border-color: #153b75;
}

.owner-ha-jobs-done-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  white-space: nowrap;
}

.owner-users-roles-workflow .row {
  align-items: center !important;
  min-height: 52px;
}

.owner-users-roles-workflow .row-value {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
}

.owner-users-roles-ha-actions {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: flex-end;
}

.owner-ha-person-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  line-height: 1.25;
}

.owner-ha-person-label__main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.owner-ha-person-label__name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.owner-ha-person-label__slot {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(47, 101, 167, 0.18);
  border-radius: 999px;
  background: #ffffff;
  color: #2f65a7;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.owner-ha-dob-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  flex: 0 0 auto;
  border: 1px solid #ccdbef;
  border-radius: 999px;
  background: #f6f9ff;
  color: #365981;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.owner-users-roles-workflow > .row:last-of-type {
  border-bottom: 0 !important;
}

.owner-users-roles-mobile-back {
  display: none;
}

.owner-review-title-row {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.owner-review-title-row h2 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.owner-review-title-dash {
  color: #13315f;
  font-weight: 900;
}

.owner-review-title-row .policy-custom-select--compact {
  flex: 0 1 auto;
  width: auto;
  max-width: min(100%, 420px);
}

.owner-review-selector-cluster {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
}

.owner-review-title-row .policy-custom-select--compact .policy-custom-select__trigger {
  min-height: 42px;
  padding: 5px 12px;
  border-radius: 8px;
  border-color: rgba(159, 190, 226, 0.94);
  background:
    radial-gradient(circle at 82% 18%, rgba(119, 184, 231, 0.2), rgba(119, 184, 231, 0) 38%),
    radial-gradient(circle at 12% 88%, rgba(59, 103, 160, 0.09), rgba(59, 103, 160, 0) 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 248, 255, 0.96) 48%, rgba(221, 235, 249, 0.94) 100%);
  color: #13315f;
  font-size: inherit;
  font-weight: 900;
  line-height: 1.1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 8px 18px rgba(19, 56, 105, 0.08);
}

.owner-review-title-row .policy-custom-select--compact .policy-custom-select__trigger > span:first-child {
  max-width: min(48vw, 360px);
}

.owner-review-title-row .policy-custom-select__chevron {
  font-size: 0.64em;
}

.owner-review-title-row .policy-custom-select__menu {
  z-index: 80;
  border-color: rgba(154, 187, 224, 0.92);
  background:
    radial-gradient(circle at 84% 12%, rgba(116, 183, 231, 0.18), rgba(116, 183, 231, 0) 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.99) 0%, rgba(239, 247, 255, 0.98) 54%, rgba(222, 236, 250, 0.96) 100%);
  box-shadow: 0 18px 32px rgba(21, 55, 101, 0.16);
}

.owner-review-title-row .policy-custom-select__option {
  color: #14345f;
}

.owner-review-title-row .policy-custom-select__option.is-selected,
.owner-review-title-row .policy-custom-select__option:hover,
.owner-review-title-row .policy-custom-select__option:focus {
  background: #1d4f9c;
  color: #ffffff;
}

.owner-review-objective-selector {
  display: inline-flex;
  flex: 0 0 auto;
}

.owner-review-objective-selector .policy-custom-select--compact {
  max-width: 82px;
}

.owner-review-objective-selector .policy-custom-select--compact .policy-custom-select__trigger {
  min-width: 64px;
  padding-inline: 10px;
}

.owner-review-objective-selector .policy-custom-select__menu {
  left: 0;
  right: auto;
  width: 64px;
  min-width: 64px;
  max-width: 64px;
}

.owner-review-objective-selector .policy-custom-select__option {
  text-align: center;
  padding-inline: 8px;
}

.app-shell--internal .card--internal .owner-review-operating-workflow .row-value:not(:has(.policy-custom-select)):not(:has(.button)):not(:has(details)):not(:has(.score-meter)):not(:has(.numeric-score-meter)) {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.owner-proof-file-list,
.human-agent-work-proof-file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.owner-proof-file-chip,
.owner-proof-file-link {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.owner-proof-file-more {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.owner-proof-file-more summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #bcd0ec;
  border-radius: 999px;
  background: #f5f9ff;
  color: #163b70;
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.owner-proof-file-more summary::-webkit-details-marker {
  display: none;
}

.owner-proof-file-more__list {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: min(76vw, 320px);
  max-width: min(86vw, 420px);
  padding: 8px;
  border: 1px solid #d7e3f1;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(16, 46, 88, 0.14);
}

.proof-attachment-resolver-card {
  display: grid;
  gap: 12px;
  align-content: center;
  min-height: 42vh;
}

.proof-attachment-resolver-card h2,
.proof-attachment-resolver-card p {
  margin: 0;
}

.proof-attachment-resolver-card p {
  color: #365981;
  font-weight: 700;
}

.owner-approval-form {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.owner-approval-button,
.owner-approval-check {
  white-space: nowrap;
}

.owner-approval-check {
  color: #53667f;
  background: #eef2f6;
  border-color: #d4dde8;
  opacity: 1;
}

.owner-review-approve-row {
  align-items: center !important;
}

.human-agent-proof-status-row .row {
  margin: 0;
}

.human-agent-proof-form {
  display: grid;
  gap: 10px;
  border-top: 1px solid #dfe7f1;
  margin-top: 2px;
  padding-top: 10px;
}

.human-agent-proof-form__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.human-agent-proof-form__header strong,
.human-agent-proof-form__header span {
  display: block;
}

.human-agent-proof-form__header span:not(.bucket4-status-token) {
  color: #536a86;
  font-size: 12px;
  line-height: 1.45;
}

.human-agent-proof-textarea {
  min-height: 124px;
}

.human-agent-proof-statement-label strong {
  color: #17365f;
  font-size: 0.9rem;
}

.human-agent-proof-evidence {
  display: grid;
  gap: 8px;
}

.human-agent-proof-upload-bar {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 4px;
  column-gap: 12px;
  align-items: center;
  border: 1px solid rgba(181, 203, 232, 0.9);
  border-radius: 14px;
  background:
    radial-gradient(circle at 12% 18%, rgba(125, 191, 239, 0.16), rgba(125, 191, 239, 0) 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(236, 245, 255, 0.94));
  color: #17365f;
  cursor: pointer;
  padding: 14px;
  box-shadow: 0 12px 22px rgba(16, 42, 82, 0.08);
}

.human-agent-proof-upload-bar::before {
  content: "↑";
  display: grid;
  grid-row: 1 / span 2;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background:
    linear-gradient(160deg, rgba(45, 105, 184, 0.96), rgba(15, 55, 113, 1));
  color: #fff;
  font-size: 1.18rem;
  font-weight: 850;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 10px 20px rgba(16, 55, 113, 0.24);
}

.human-agent-proof-upload-bar strong,
.human-agent-proof-upload-bar span {
  display: block;
  grid-column: 2;
}

.human-agent-proof-upload-bar strong {
  font-size: 1rem;
}

.human-agent-proof-upload-bar span,
.human-agent-proof-upload-note {
  color: #536a86;
  font-size: 0.82rem;
  line-height: 1.38;
}

.human-agent-proof-upload-note {
  margin: 0;
}

.human-agent-proof-upload-bar:hover,
.human-agent-proof-upload-bar:focus-within {
  border-color: rgba(78, 128, 197, 0.92);
  box-shadow: 0 16px 26px rgba(16, 42, 82, 0.13);
}

.human-agent-proof-upload-bar:hover::before,
.human-agent-proof-upload-bar:focus-within::before {
  background:
    linear-gradient(160deg, rgba(36, 96, 176, 1), rgba(9, 43, 96, 1));
}

.human-agent-proof-upload-note.is-error {
  color: #8a2f2f;
  font-weight: 760;
}

.human-agent-proof-attachments {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.human-agent-proof-upload-bar:focus-within,
.human-agent-proof-attachments:focus-visible + .human-agent-proof-upload-note {
  outline: 3px solid rgba(72, 127, 200, 0.18);
  outline-offset: 2px;
}

.human-agent-proof-submit {
  justify-self: start;
}

.human-agent-inherited-will-form {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.human-agent-inherited-will-form__header,
.human-agent-memory-records-panel__header,
.human-agent-memory-record-row__main {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.human-agent-memory-records-panel__header > .bucket4-status-token {
  justify-self: start;
  width: auto;
}

.owner-inherited-will-header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.owner-inherited-will-header-chip {
  align-self: center;
}

.owner-inherited-will-inherit-button {
  display: inline-grid;
  place-items: center;
  align-self: center;
  margin: 0;
  min-width: 82px;
  border-color: rgba(29, 79, 156, 0.86);
  background:
    linear-gradient(135deg, transparent 0 18%, rgba(255, 255, 255, 0.28) 18.4% 19.2%, transparent 19.8% 100%),
    linear-gradient(160deg, #2d6db6 0%, #174f94 52%, #113a72 100%);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 10px 22px rgba(29, 79, 156, 0.18);
  text-align: center;
}

.human-agent-inherited-will-form__header strong,
.human-agent-inherited-will-form__header span {
  display: block;
}

.human-agent-inherited-will-form__header strong,
.human-agent-memory-records-panel__header h3,
.human-agent-memory-record-row__main strong {
  margin: 0;
  color: #162f53;
}

.human-agent-inherited-will-form__header span:not(.bucket4-status-token),
.human-agent-memory-record-row__main span:not(.bucket4-status-token) {
  color: #536a86;
  font-size: 12px;
  line-height: 1.45;
}

.human-agent-inherited-will-context-grid,
.human-agent-memory-boundary,
.human-agent-memory-record-grid {
  display: grid;
  gap: 6px;
  border: 1px solid #d9e3f0;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
}

.human-agent-inherited-will-prompt {
  margin: 0;
  border-left: 3px solid #7f95b5;
  background: #f8fbff;
  color: #233d62;
  line-height: 1.55;
  padding: 9px 10px;
}

.human-agent-inherited-will-textarea {
  min-height: 210px;
}

.human-agent-inherited-will-boundary {
  margin: 0;
  color: #536a86;
  font-size: 12px;
  line-height: 1.45;
}

.human-agent-inherited-will-submit {
  justify-self: start;
}

.human-agent-settings-job-card__actions {
  justify-content: flex-start;
  margin-top: 4px;
}

.human-agent-work-done-detail {
  color: #132d52;
  background:
    radial-gradient(circle at 88% 12%, rgba(124, 177, 220, 0.16), rgba(124, 177, 220, 0) 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(236, 246, 255, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 14px 30px rgba(22, 52, 91, 0.1);
}

.human-agent-work-done-detail .human-agent-settings-job-card__eyebrow {
  color: #5f7394;
}

.human-agent-work-done-detail .owner-ha-task-bubble {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.9));
  border-color: rgba(151, 181, 219, 0.42);
}

.human-agent-work-done-review-chip-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -2px;
}

.human-agent-work-done-review-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  min-width: 126px;
  border: 1px solid rgba(163, 176, 195, 0.54);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(240, 244, 249, 0.94), rgba(224, 231, 239, 0.9));
  color: #73839a;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
  padding: 7px 13px;
  text-align: center;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.human-agent-work-done-review-chip--active {
  border-color: rgba(139, 181, 224, 0.82);
  background:
    linear-gradient(135deg, transparent 0 16%, rgba(178, 196, 218, 0.28) 16.2% 17%, transparent 17.2% 100%),
    linear-gradient(135deg, transparent 0 31%, rgba(205, 219, 235, 0.3) 31.2% 32%, transparent 32.2% 100%),
    linear-gradient(135deg, transparent 0 46%, rgba(178, 196, 218, 0.24) 46.2% 47%, transparent 47.2% 100%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.99) 0 30%, rgba(245, 249, 253, 0.98) 31% 62%, rgba(224, 242, 255, 0.94) 63% 100%);
  color: #153b75;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 9px 18px rgba(26, 72, 126, 0.1);
}

.human-agent-memory-records-panel {
  display: grid;
  gap: 12px;
  border-top: 1px solid #dfe7f1;
  padding-top: 12px;
}

.human-agent-memory-records-list {
  display: grid;
  gap: 10px;
}

.human-agent-memory-record-row {
  display: grid;
  gap: 10px;
  border: 1px solid #d5e0ef;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
}

.owner-inherited-will-page {
  gap: 12px;
}

.owner-inherited-will-records-panel {
  border-top: 0;
  padding-top: 0;
}

.owner-inherited-will-people-list,
.owner-inherited-will-objective-list {
  margin-top: 10px;
}

.owner-ha-task-row.owner-inherited-will-objective-row {
  display: block;
  border: 0;
  background: transparent;
  color: inherit;
  overflow: visible;
  text-decoration: none;
}

.owner-inherited-will-objective-row__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 62px;
  border: 1px solid rgba(177, 198, 226, 0.58);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.94));
  padding: 10px 12px;
}

.owner-inherited-will-objective-row__inner strong {
  color: #17365f;
  font-size: 0.96rem;
  line-height: 1.35;
}

.owner-inherited-will-row-action {
  min-width: 74px;
  justify-content: center;
}

.owner-inherited-will-insight-card {
  display: grid;
  gap: 12px;
  border: 1px solid #d8e2ef;
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
}

.owner-inherited-will-insight-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.owner-inherited-will-insight-header h3,
.owner-inherited-will-insight-header p {
  margin: 0;
}

.owner-inherited-will-insight-header p {
  margin-top: 3px;
  color: #536a86;
  font-size: 0.86rem;
  font-weight: 800;
}

.owner-inherited-will-blue-bubble {
  display: block;
  max-width: 760px;
  border: 1px solid #bfd0e8;
  border-radius: 8px;
  background: #f3f8ff;
  padding: 12px;
}

.owner-inherited-will-insight-copy,
.owner-inherited-will-full-note-copy {
  margin: 0;
  color: #17365f;
  font-size: 0.98rem;
  font-weight: 680;
  line-height: 1.56;
}

.owner-inherited-will-full-note-copy {
  color: #2f4968;
  font-weight: 650;
}

.owner-inherited-will-date-chip {
  white-space: nowrap;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #6b7d93;
  font-size: 0.76rem;
  font-weight: 760;
  padding: 0;
}

.owner-inherited-will-note-button {
  justify-self: start;
  margin-top: 0;
}

.owner-inherited-will-teaching-modal .owner-inline-modal__card {
  overflow: hidden auto;
  max-width: min(680px, calc(100vw - 28px));
  border-color: rgba(174, 202, 234, 0.82);
  background:
    linear-gradient(135deg, transparent 0 12%, rgba(178, 196, 219, 0.18) 12.2% 12.8%, transparent 13% 100%),
    linear-gradient(135deg, transparent 0 18%, rgba(198, 211, 228, 0.26) 18.2% 18.8%, transparent 19% 100%),
    linear-gradient(135deg, transparent 0 24%, rgba(178, 196, 219, 0.16) 24.2% 24.8%, transparent 25% 100%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.99) 0 34%, rgba(244, 248, 252, 0.97) 35% 60%, rgba(232, 244, 255, 0.94) 61% 100%);
  box-shadow:
    0 28px 66px rgba(15, 40, 78, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.owner-inherited-will-teaching-modal .owner-inline-modal__card h3 {
  justify-self: center;
  text-align: center;
}

.owner-inherited-will-teaching-modal-body {
  display: grid;
  gap: 14px;
  justify-items: stretch;
}

.owner-inherited-will-teaching-modal-copy {
  margin: 0;
  border: 1px solid rgba(174, 202, 234, 0.72);
  border-radius: 10px;
  background:
    linear-gradient(135deg, transparent 0 18%, rgba(205, 219, 235, 0.2) 18.3% 18.9%, transparent 19.3% 100%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0 35%, rgba(245, 248, 252, 0.96) 36% 64%, rgba(238, 247, 255, 0.94) 65% 100%);
  color: #17365f;
  font-size: 0.98rem;
  font-weight: 720;
  line-height: 1.5;
  padding: 12px 14px;
  text-align: center;
}

.owner-inherited-will-teaching-list {
  display: grid;
  gap: 10px;
}

.owner-inherited-will-teaching-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(174, 202, 234, 0.74);
  border-radius: 8px;
  background:
    linear-gradient(135deg, transparent 0 13%, rgba(178, 196, 219, 0.16) 13.2% 13.8%, transparent 14.2% 100%),
    linear-gradient(135deg, transparent 0 21%, rgba(198, 211, 228, 0.22) 21.2% 21.8%, transparent 22.2% 100%),
    linear-gradient(135deg, transparent 0 29%, rgba(178, 196, 219, 0.14) 29.2% 29.8%, transparent 30.2% 100%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.99) 0 34%, rgba(246, 248, 251, 0.96) 35% 62%, rgba(239, 248, 255, 0.94) 63% 100%);
  padding: 10px 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 10px 22px rgba(22, 52, 91, 0.06);
}

.owner-inherited-will-teaching-row > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.owner-inherited-will-teaching-row strong {
  color: #162f53;
  font-size: 0.94rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.owner-inherited-will-teaching-row span:not(.bucket4-status-token) {
  color: #536a86;
  font-size: 0.78rem;
  font-weight: 720;
  line-height: 1.35;
}

.owner-inherited-will-teaching-form {
  margin: 0;
}

.owner-inherited-will-teaching-activate {
  display: inline-grid;
  place-items: center;
  min-width: 82px;
  margin: 0;
  border-color: rgba(29, 79, 156, 0.72);
  background:
    linear-gradient(135deg, transparent 0 18%, rgba(255, 255, 255, 0.24) 18.4% 19.2%, transparent 19.8% 100%),
    linear-gradient(160deg, #2d6db6 0%, #174f94 100%);
  color: #ffffff;
  text-align: center;
  box-shadow: 0 8px 18px rgba(29, 79, 156, 0.14);
}

.human-agent-memory-agent-group {
  border-color: #d8e2ef;
  background: #fbfdff;
}

.human-agent-memory-agent-group__body {
  display: grid;
  gap: 10px;
}

.human-agent-memory-record-advice-list {
  margin: 0;
  color: #2f4968;
  line-height: 1.5;
}

.human-agent-memory-record-body {
  margin: 0;
  border-top: 1px solid #edf2f8;
  color: #334a66;
  line-height: 1.55;
  padding-top: 8px;
  white-space: pre-wrap;
}

.human-agent-operating-chain-panel {
  display: grid;
  gap: 12px;
  border-color: #d3deec;
  background: #fbfcfe;
}

.human-agent-operating-chain-panel__header,
.human-agent-operating-chain-row__main {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.human-agent-operating-chain-panel__header h3,
.human-agent-operating-chain-row__main strong {
  margin: 0;
  color: #162f53;
}

.human-agent-operating-chain-row__main span:not(.bucket4-status-token) {
  display: block;
  color: #536a86;
  font-size: 12px;
  line-height: 1.45;
}

.human-agent-operating-chain-boundary,
.human-agent-operating-chain-grid {
  display: grid;
  gap: 6px;
  border: 1px solid #d9e3f0;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
}

.human-agent-operating-chain-list {
  display: grid;
  gap: 10px;
}

.human-agent-operating-chain-row {
  display: grid;
  gap: 10px;
  border: 1px solid #d5e0ef;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
}

.human-agent-operating-chain-steps {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.human-agent-operating-chain-step {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 1px solid #dfe7f1;
  border-radius: 8px;
  background: #f9fbfe;
  color: #3e536e;
  padding: 7px;
}

.human-agent-operating-chain-step strong,
.human-agent-operating-chain-step span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.human-agent-operating-chain-step strong {
  color: #17365f;
  font-size: 11px;
}

.human-agent-operating-chain-step span {
  color: #536a86;
  font-size: 11px;
}

.human-agent-operating-chain-step--recorded {
  border-color: #bdd5c7;
  background: #f6fbf8;
}

.human-agent-operating-chain-step--warning {
  border-color: #dfcf9f;
  background: #fffaf0;
}

.human-agent-operating-chain-step--critical {
  border-color: #e1b4b4;
  background: #fff6f6;
}

.human-agent-chain-memory-preview {
  margin: 0;
  border-top: 1px solid #edf2f8;
  color: #334a66;
  line-height: 1.55;
  padding-top: 8px;
  white-space: pre-wrap;
}

.human-agent-operating-chain-continuity {
  margin: 0;
}

.human-agent-chain-audit {
  display: grid;
  gap: 7px;
}

.human-agent-chain-audit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: center;
  border: 1px solid #e1e8f1;
  border-radius: 8px;
  background: #fbfcfe;
  padding: 8px;
}

.human-agent-chain-audit-row strong,
.human-agent-chain-audit-row span,
.human-agent-chain-audit-row small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.human-agent-chain-audit-row strong {
  display: block;
  color: #17365f;
}

.human-agent-chain-audit-row span:not(.bucket4-status-token),
.human-agent-chain-audit-row small {
  color: #536a86;
  font-size: 12px;
  line-height: 1.45;
}

.human-agent-chain-audit-row small {
  grid-column: 1 / -1;
}

.human-agent-proof-review-panel {
  display: grid;
  gap: 12px;
  border-color: rgba(174, 202, 234, 0.72);
  background:
    radial-gradient(circle at 90% 8%, rgba(168, 210, 242, 0.22), rgba(168, 210, 242, 0) 34%),
    linear-gradient(145deg, #ffffff 0%, #f2f8ff 100%);
}

.human-agent-proof-review-panel__header,
.human-agent-proof-review-row__main,
.human-agent-proof-review-form__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.human-agent-proof-review-panel__header h3,
.human-agent-proof-review-row__main strong {
  margin: 0;
  color: #162f53;
}

.human-agent-proof-review-row__main span:not(.bucket4-status-token),
.human-agent-proof-review-form__header span:not(.bucket4-status-token),
.human-agent-proof-review-readonly span {
  color: #536a86;
  font-size: 12px;
  line-height: 1.45;
}

.human-agent-proof-review-boundary,
.human-agent-proof-review-context-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid rgba(174, 202, 234, 0.72);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 255, 0.82));
  padding: 12px;
}

.human-agent-proof-review-context-grid article {
  display: grid;
  gap: 6px;
  min-height: 80px;
  border: 1px solid rgba(174, 202, 234, 0.56);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  padding: 10px;
}

.human-agent-proof-review-context-grid article strong {
  color: #5f7394;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.human-agent-proof-review-context-grid article p {
  margin: 0;
  color: #17365f;
  font-weight: 750;
  line-height: 1.35;
}

.human-agent-proof-review-list {
  display: grid;
  gap: 10px;
}

.human-agent-proof-review-row {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(174, 202, 234, 0.72);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(241, 248, 255, 0.9));
  padding: 12px;
}

.human-agent-proof-review-evidence {
  border-top: 1px solid #edf2f8;
  padding-top: 8px;
}

.human-agent-proof-review-form {
  display: grid;
  gap: 9px;
  border-top: 1px solid #dfe7f1;
  padding-top: 10px;
}

.human-agent-proof-review-rationale {
  min-height: 112px;
}

.human-agent-proof-review-submit {
  justify-self: start;
}

.human-agent-proof-review-readonly {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: center;
  border-top: 1px solid #edf2f8;
  padding-top: 8px;
}

.human-agent-proof-review-readonly strong,
.human-agent-proof-review-readonly span {
  min-width: 0;
}

.human-agent-proof-review-readonly .button {
  grid-row: 1 / span 2;
  grid-column: 2;
}

.human-agent-context-work {
  display: grid;
  gap: 10px;
  border-top: 1px solid #e1e8f1;
  padding-top: 12px;
}

.app-shell--internal .signal-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 9px;
  margin-bottom: 12px;
}

.app-shell--internal .signal-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fbfdff 0%, #f6f9fe 100%);
  border-color: #d3e0f2;
  border-top: 0;
  box-shadow: 0 8px 18px rgba(16, 46, 88, 0.055);
}

.app-shell--internal .signal-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #6f92c4;
}

.app-shell--internal .signal-card-label {
  color: #557096;
}

.app-shell--internal .signal-card-value {
  color: #18345d;
}

.context-recommendation-interstitial {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px 18px;
  align-items: center;
  padding: 18px;
  background:
    linear-gradient(135deg, #fbfdff 0%, #f2f7ff 56%, #f4faf4 100%);
}

.context-recommendation-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 1px solid #d2dfef;
  border-radius: 999px;
  background: #ffffff;
}

.context-recommendation-logo {
  width: 34px;
  height: 34px;
}

.context-recommendation-copy h2 {
  margin: 2px 0 4px;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
}

.context-recommendation-copy p:last-child {
  max-width: 56ch;
  margin: 0;
  color: #36537d;
}

.context-recommendation-path {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.context-recommendation-path span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border: 1px solid #d3e0f2;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: #294b7a;
  font-size: 12px;
  font-weight: 800;
}

.context-recommendation-interstitial-actions {
  grid-column: 1 / -1;
  margin-top: 0;
}

.workspace-seed-hero,
.context-frame-internal {
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfdff 54%, #f6faf7 100%);
}

.workspace-seed-hero .tagline {
  border-left: 4px solid #6f9b73;
}

.workspace-seed-identity-item,
.workspace-seed-status-card,
.workspace-seed-setting-item {
  box-shadow: 0 6px 16px rgba(16, 46, 88, 0.045);
}

.context-frame-status-setting-grid .workspace-seed-setting-item {
  border-top: 3px solid #c5d8f3;
}

.app-shell--internal .context-frame-input-stack label {
  display: block;
  max-width: 58ch;
  color: #142b52;
  line-height: 1.32;
}

.app-shell--internal .context-frame-main-textarea {
  border-radius: 12px;
  border-color: #bed1ef;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.app-shell--internal .route-return-icon {
  box-shadow: 0 6px 14px rgba(16, 46, 88, 0.08);
}

@media (max-width: 720px) {
  .app-shell--internal {
    padding: 12px 10px 32px;
    max-width: 100vw;
    overflow-x: clip;
  }

  .app-shell--internal .main-panel--internal,
  .app-shell--internal .card--internal,
  .app-shell--internal .card--internal > *,
  .app-shell--internal .internal-restored-workflow,
  .app-shell--internal .owner-review-operating-workflow,
  .app-shell--internal .owner-inherited-will-page,
  .app-shell--internal .human-agent-capacity-gate,
  .app-shell--internal .commercial-capacity-gate-body,
  .app-shell--internal .owner-inherited-will-addon-gate,
  .app-shell--internal .human-agent-memory-records-panel {
    min-width: 0;
    max-width: 100%;
  }

  .app-shell--internal .card--internal:has(.internal-dashboard-home),
  .app-shell--internal .card--internal:has(.owner-review-operating-workflow),
  .app-shell--internal .card--internal:has(.owner-inherited-will-page),
  .app-shell--internal .card--internal:has(.human-agent-capacity-gate) {
    overflow: visible;
  }

  .app-shell--internal :where(p, li, span, strong, small, a, button, label, summary, .row-value, .label, .helper-text, .button, .bucket4-status-token) {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .app-shell--internal .human-agent-invite-page-shell {
    padding-inline: 0;
  }

  .app-shell--internal .human-agent-invite-page-bubble,
  .app-shell--internal .human-agent-invite-page-helper,
  .app-shell--internal .human-agent-invite-page-note,
  .app-shell--internal .human-agent-invite-page-history {
    width: 100%;
    max-width: 100%;
  }

  .app-shell--internal .header-compact {
    padding: 10px;
    border-radius: 14px;
    margin-bottom: 10px;
  }

  .app-shell--internal .compact-top-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .app-shell--internal .compact-top-bar:has(.compact-header-actions) {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .app-shell--internal .compact-top-bar:has(.owner-proof-review-header-action) {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .app-shell--internal .header-compact--signup .compact-top-bar {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
  }

  .app-shell--internal .compact-brand-row {
    min-width: 0;
  }

  .app-shell--internal .brand-name {
    white-space: nowrap;
  }

  .app-shell--internal .page-label {
    display: none;
  }

  .app-shell--internal .header-compact--signup .page-label {
    display: block;
    grid-column: auto;
    white-space: nowrap;
  }

  .app-shell--internal .compact-header-actions {
    grid-column: 2;
    width: auto;
    margin-left: auto;
    display: inline-flex;
    justify-self: end;
    justify-content: flex-end;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
  }

  .app-shell--internal .compact-header-actions:has(.company-settings-staff-header-action) {
    grid-column: 2;
    width: auto;
    margin-left: auto;
    justify-self: end;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }

  .app-shell--internal .compact-header-actions:has(.owner-proof-review-header-action) {
    grid-column: 2;
    width: auto;
    margin-left: auto;
    justify-self: end;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }

  .app-shell--internal .compact-header-actions:has(> a.button) {
    display: inline-flex;
  }

  .app-shell--internal .compact-header-actions .button-small {
    width: auto;
    min-width: 0;
    max-width: 100%;
    padding-inline: 10px;
    font-size: 0.74rem;
    white-space: nowrap;
  }

  .app-shell--internal .compact-header-actions .company-settings-staff-header-action {
    display: inline-flex;
    min-width: 74px;
  }

  .app-shell--internal .compact-header-actions:has(.dashboard-mobile-header-action) {
    display: inline-flex;
  }

  .app-shell--internal .compact-header-actions .dashboard-mobile-header-action {
    display: inline-flex;
    min-width: 0;
  }

  .app-shell--internal .top-pricing-toggle {
    width: auto;
    justify-content: center;
    min-height: 32px;
    background: #fafdff;
  }

  .app-shell--internal .workflow-menu-wrap {
    justify-self: end;
  }

  .app-shell--internal .workflow-menu-panel {
    right: 0;
    min-width: min(88vw, 320px);
    max-height: min(70vh, 520px);
    overflow: auto;
  }

  .app-shell--internal .operator-status-strip {
    padding: 9px;
    border-radius: 12px;
    min-width: 0;
    max-width: 100%;
  }

  .app-shell--internal .operator-status-strip--dashboard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
  }

  .app-shell--internal .operator-status-strip--users-roles {
    align-items: stretch;
  }

  .app-shell--internal .operator-status-strip--company-settings {
    align-items: flex-start;
  }

  .app-shell--internal .operator-status-strip--company-settings .auth-summary-actions {
    display: none;
  }

  .app-shell--internal .operator-status-strip--dashboard .auth-summary-actions {
    grid-column: 2;
    width: auto;
    margin-left: 0;
    display: flex;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 0;
  }

  .app-shell--internal .operator-status-strip--users-roles .auth-summary-actions {
    display: none;
  }

  .app-shell--internal .operator-status-row {
    white-space: normal;
    overflow: visible;
  }

  .app-shell--internal .owner-review-title-row {
    margin-bottom: 10px;
  }

  .app-shell--internal .owner-review-title-row h2 {
    width: 100%;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 0.92rem;
    line-height: 1.12;
  }

  .app-shell--internal .owner-review-title-row .policy-custom-select--compact {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
  }

  .app-shell--internal .owner-review-selector-cluster {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
    gap: 4px;
    white-space: normal;
  }

  .app-shell--internal .owner-review-selector-cluster > .policy-custom-select--compact {
    flex: 1 1 auto;
    min-width: 0;
    max-width: min(128px, calc(100% - 62px));
  }

  .app-shell--internal .owner-review-title-row .owner-review-objective-selector,
  .app-shell--internal .owner-review-title-row .owner-review-objective-selector .policy-custom-select--compact {
    flex: 0 0 auto;
    max-width: 58px;
  }

  .app-shell--internal .owner-review-title-row .policy-custom-select--compact .policy-custom-select__trigger {
    min-height: 32px;
    padding: 4px 6px;
    font-size: 0.78em;
    line-height: 1;
  }

  .app-shell--internal .owner-review-title-row .owner-review-objective-selector .policy-custom-select__trigger {
    min-width: 54px;
    padding-inline: 6px;
  }

  .app-shell--internal .owner-review-title-row .policy-custom-select--compact .policy-custom-select__trigger > span:first-child {
    max-width: 100%;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .app-shell--internal .main-panel--internal {
    padding: 8px;
    border-radius: 14px;
    min-width: 0;
    max-width: 100%;
  }

  .app-shell--internal .card--internal {
    padding: 12px;
    border-radius: 12px;
    min-width: 0;
    max-width: 100%;
  }

  .app-shell--internal .card--internal > h2:first-child {
    font-size: clamp(1.34rem, 7vw, 1.72rem);
  }

  .internal-decision-header {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .internal-decision-title {
    align-items: flex-start;
    flex-direction: column;
    font-size: clamp(1.34rem, 7vw, 1.72rem);
  }

  .internal-decision-title .policy-custom-select--compact {
    width: fit-content;
    max-width: 100%;
  }

  .internal-decision-caption {
    font-size: 0.88rem;
  }

  .internal-decision-chip-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .human-agent-invite-foundation__header,
  .human-agent-invite-row__main,
  .human-agent-assigned-work-row__main,
  .human-agent-context-header--split,
  .human-agent-context-frame-card,
  .human-agent-proof-form__header,
  .human-agent-inherited-will-form__header,
  .human-agent-context-work__header,
  .human-agent-proof-review-panel__header,
  .human-agent-proof-review-row__main,
  .human-agent-proof-review-form__header,
  .human-agent-proof-review-readonly,
  .human-agent-memory-records-panel__header,
  .human-agent-memory-record-row__main,
  .human-agent-operating-chain-panel__header,
  .human-agent-operating-chain-row__main,
  .human-agent-chain-audit-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .human-agent-invite-field-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .human-agent-operating-chain-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .human-agent-chain-audit-row small {
    grid-column: auto;
  }

  .human-agent-invite-action,
  .human-agent-context-frame-card .button,
  .human-agent-surface-actions .button,
  .human-agent-proof-submit,
  .human-agent-inherited-will-submit,
  .human-agent-proof-review-submit,
  .human-agent-proof-review-readonly .button,
  .human-agent-entry-panel .button,
  .human-agent-entry-actions .button {
    width: 100%;
    justify-content: center;
  }

  .human-agent-proof-review-readonly .button {
    grid-row: auto;
    grid-column: auto;
  }

  .human-agent-entry-tabs {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .human-agent-context-next {
    display: grid;
    gap: 4px;
  }

  .human-agent-context-frame-card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-shell--internal .metric-grid,
  .app-shell--internal .signal-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .app-shell--internal .metric-card,
  .app-shell--internal .signal-card {
    padding: 9px;
  }

  .app-shell--internal .metric-label,
  .app-shell--internal .signal-card-label {
    font-size: 10px;
    line-height: 1.25;
  }

  .app-shell--internal .metric-value,
  .app-shell--internal .signal-card-value {
    font-size: 1rem;
  }

  .app-shell--internal .row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 10px 0;
  }

  .app-shell--internal .card--internal > .row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 9px 10px;
  }

  .app-shell--internal .card--internal > .row.long-row .row-value {
    max-width: none;
  }

  .app-shell--internal .label {
    font-size: 0.94rem;
  }

  .app-shell--internal .row-value {
    width: 100%;
    margin-left: 0;
    text-align: left;
    justify-self: stretch;
  }

  .app-shell--internal .chip-list {
    justify-content: flex-start;
  }

  .app-shell--internal .button-group,
  .app-shell--internal .route-controls,
  .app-shell--internal .policy-footer-nav,
  .app-shell--internal .company-settings-internal-actions,
  .app-shell--internal .workspace-config-actions-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .app-shell--internal .button-group .button,
  .app-shell--internal .button-group button,
  .app-shell--internal .route-controls .button,
  .app-shell--internal .workspace-config-action,
  .app-shell--internal .context-frame-footer-button {
    width: 100%;
    justify-content: center;
  }

  .app-shell--internal .operator-status-strip--dashboard .auth-summary-actions {
    display: flex;
    grid-template-columns: none;
    grid-column: 2;
    width: auto;
    margin-left: 0;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 0;
  }

  .app-shell--internal .operator-status-strip--dashboard .auth-summary-actions .operating-notification-bell + .button {
    margin-left: 0;
  }

  .app-shell--internal .operator-status-strip--dashboard .auth-summary-actions .button {
    display: none;
  }

  .app-shell--internal .operator-status-strip--dashboard .operating-notification-bell {
    flex: 0 0 auto;
  }

  .app-shell--internal .operator-status-strip--dashboard .operating-notification-bell__button {
    width: 38px;
    height: 38px;
  }

  .app-shell--internal .dashboard-home-actions {
    display: flex;
    grid-template-columns: none;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }

  .app-shell--internal .dashboard-home-actions .button {
    width: auto;
    flex: 0 0 auto;
  }

  .app-shell--internal .internal-voice-transcription-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .app-shell--internal .internal-voice-transcription-controls__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .app-shell--internal .route-return-icon {
    width: 36px;
    height: 36px;
    margin-top: 0;
    justify-self: start;
  }

  .app-shell--internal .policy-attachment-footer-nav {
    display: flex;
    grid-template-columns: none;
    align-items: center;
    gap: 10px;
  }

  .app-shell--internal .policy-attachment-footer-nav .workspace-back-button.button {
    width: auto;
    min-height: 38px;
    height: 38px;
    min-width: 0;
    padding: 0 16px;
  }

  .app-shell--internal .policy-attachment-footer-nav .route-return-icon {
    width: 38px;
    height: 38px;
    margin-top: 0 !important;
    align-self: center;
    justify-self: auto;
    flex: 0 0 38px;
  }

  .app-shell--internal .details-block {
    padding: 10px;
  }

  .app-shell--internal .details-content {
    overflow-wrap: anywhere;
  }

  .app-shell--internal .segmented-display,
  .app-shell--internal .policy-stepbar {
    width: 100%;
  }

  .app-shell--internal .segmented-display {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 14px;
  }

  .app-shell--internal .segment-pill {
    min-height: 34px;
    text-align: center;
  }

  .app-shell--internal .policy-stepbar {
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 10px;
  }

  .app-shell--internal .policy-step-btn {
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 999px;
  }

  .app-shell--internal .policy-step-btn > span:not(.policy-step-index) {
    display: none;
  }

  .app-shell--internal .policy-step-index {
    width: auto;
    height: auto;
    background: transparent;
    font-size: 0.92rem;
  }

  .app-shell--internal .policy-company-default-card {
    display: none;
  }

  .app-shell--internal .policy-layer-grid,
  .app-shell--internal .policy-impact-grid,
  .app-shell--internal .policy-glossary-grid,
  .app-shell--internal .policy-simpler-grid,
  .app-shell--internal .workspace-seed-status-grid,
  .app-shell--internal .workspace-seed-setup-grid,
  .app-shell--internal .context-frame-chip-grid,
  .app-shell--internal .preview-summary-strip,
  .app-shell--internal .preview-grid,
  .app-shell--internal .preview-input-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-shell--internal .policy-controls .segmented {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 14px;
  }

  .app-shell--internal .segment-btn {
    min-height: 34px;
  }

  .app-shell--internal .policy-source-badge {
    margin: 4px 0 0;
    width: fit-content;
  }

  .app-shell--internal .policy-custom-select__trigger,
  .app-shell--internal .auth-custom-select__trigger {
    min-height: 42px;
  }

  .app-shell--internal .workspace-seed-identity-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell--internal .workspace-seed-workflow {
    padding: 4px 2px 6px;
    scroll-snap-type: x proximity;
  }

  .app-shell--internal .workspace-seed-workflow-pill {
    min-height: 28px;
    scroll-snap-align: start;
  }

  .app-shell--internal .workspace-seed-next-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    padding: 8px;
  }

  .app-shell--internal .workspace-seed-action:last-child {
    grid-column: 1 / -1;
  }

  .app-shell--internal .workspace-seed-action {
    width: 100%;
    justify-content: center;
    border-radius: 10px;
  }

  .app-shell--internal .workspace-seed-staff-row {
    align-items: stretch;
    flex-direction: column;
  }

  .app-shell--internal .workspace-seed-staff-main-row,
  .app-shell--internal .workspace-seed-staff-edit-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-shell--internal .workspace-seed-staff-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    min-width: 0;
  }

  .app-shell--internal .workspace-seed-salary-field--wide {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .app-shell--internal .workspace-seed-fire-confirm-label {
    white-space: normal;
  }

  .app-shell--internal .workspace-seed-inline-list input[type="text"],
  .app-shell--internal .workspace-seed-inline-list select {
    max-width: none;
    width: 100%;
  }

  .app-shell--internal .context-frame-chip {
    border-radius: 10px;
  }

  .app-shell--internal .context-frame-status-setting-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .app-shell--internal .context-frame-status-setting-grid .workspace-seed-setting-item {
    padding: 9px;
    min-height: 74px;
  }

  .app-shell--internal .context-frame-tools-row .ipi-writing-tools {
    display: grid;
    grid-template-columns: minmax(92px, 0.62fr) minmax(0, 1.38fr);
    gap: 6px;
    width: 100%;
    padding: 6px;
    border-radius: 16px;
    background: linear-gradient(180deg, #f9fcff 0%, #eef5ff 100%);
    border-color: #cfe0f5;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }

  .app-shell--internal .context-frame-tools-row .ipi-writing-tool-button {
    min-height: 38px;
    justify-content: center;
    border-radius: 12px;
    padding: 7px 8px;
    text-align: center;
  }

  .app-shell--internal .context-frame-tools-row .ipi-writing-tool-format {
    border-color: #244f93;
    background: linear-gradient(180deg, #2b5da6 0%, #1d447f 100%);
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 6px 12px rgba(28, 69, 128, 0.18);
  }

  .app-shell--internal .context-frame-main-textarea {
    min-height: 190px;
  }

  .context-recommendation-interstitial {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    padding: 14px;
  }

  .context-recommendation-path {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .context-recommendation-interstitial-actions {
    width: 100%;
  }

  .context-recommendation-interstitial-actions .button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .context-frame-agreement-copy .context-frame-agreement-statement {
    font-size: 10.95px;
  }

  .app-shell--internal .metric-grid,
  .app-shell--internal .signal-card-grid,
  .app-shell--internal .ipi-review-digest__grid,
  .app-shell--internal .ipi-provider-preview__grid,
  .app-shell--internal .workspace-seed-identity-strip,
  .app-shell--internal .segmented-display {
    grid-template-columns: minmax(0, 1fr);
  }

  .ipi-review-digest__header,
  .ipi-provider-preview__header {
    display: grid;
  }

  .ipi-review-digest__chips,
  .ipi-provider-preview__chips {
    justify-content: flex-start;
  }

  .app-shell--internal .context-frame-tools-row .ipi-writing-tools {
    grid-template-columns: minmax(0, 1fr);
  }

  .proof-anchor-tools-row .ipi-writing-tools--primary {
    grid-template-columns: minmax(0, 1fr);
  }

  .proof-submit-flow .button,
  .proof-submit-flow .helper-text {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .context-frame-secondary--agreement {
    padding-inline: 4px;
  }

  .context-frame-agreement-copy .context-frame-agreement-statement {
    font-size: 10.5px;
  }
}

.internal-restored-workflow {
  display: grid;
  gap: 12px;
}

.internal-restored-workflow > h2 {
  margin-bottom: 2px;
}

.internal-restored-workflow > .helper-text {
  margin-top: -4px;
}

.app-shell--internal .card--internal .internal-restored-workflow .row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-top: 0;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid #e2e9f4;
  border-radius: 0;
  background: transparent;
}

.app-shell--internal .card--internal .internal-restored-workflow .label {
  display: block;
  color: #13315f;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
}

.app-shell--internal .card--internal .internal-restored-workflow .row-value {
  width: auto;
  max-width: min(64%, 640px);
  margin-left: auto;
  color: #102346;
  text-align: right;
  justify-self: end;
}

.app-shell--internal .card--internal .internal-restored-workflow .row.long-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.app-shell--internal .card--internal .internal-restored-workflow .row.long-row .row-value {
  max-width: min(64%, 640px);
  margin-left: auto;
  text-align: right;
  justify-self: end;
}

.app-shell--internal .card--internal .internal-restored-workflow--settings-card .row {
  position: relative;
  overflow: hidden;
  min-height: 58px;
  padding: 12px 16px;
  border: 1px solid rgba(188, 209, 236, 0.96);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 18%, rgba(127, 188, 232, 0.24), rgba(127, 188, 232, 0) 34%),
    radial-gradient(circle at 8% 88%, rgba(75, 112, 166, 0.1), rgba(75, 112, 166, 0) 42%),
    linear-gradient(145deg, #ffffff 0%, #f4f9ff 48%, #e7f1fb 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -12px 24px rgba(71, 112, 164, 0.045),
    0 8px 16px rgba(17, 48, 92, 0.035);
}

.app-shell--internal .card--internal .internal-restored-workflow--settings-card .row::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(112deg, rgba(255, 255, 255, 0) 0 16%, rgba(221, 231, 243, 0.42) 17% 27%, rgba(255, 255, 255, 0) 28% 100%);
  opacity: 0.54;
}

.app-shell--internal .card--internal .internal-restored-workflow--settings-card .row:nth-of-type(even) {
  background:
    radial-gradient(circle at 82% 16%, rgba(114, 180, 226, 0.3), rgba(114, 180, 226, 0) 36%),
    radial-gradient(circle at 12% 90%, rgba(56, 98, 156, 0.12), rgba(56, 98, 156, 0) 42%),
    linear-gradient(145deg, #f9fcff 0%, #edf6ff 50%, #dfeaf7 100%);
}

.app-shell--internal .card--internal .internal-restored-workflow--settings-card .label {
  position: relative;
  z-index: 1;
  color: #657696;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.app-shell--internal .card--internal .internal-restored-workflow--settings-card .row-value {
  position: relative;
  z-index: 1;
  max-width: min(68%, 760px);
  font-size: 1rem;
  text-align: right;
}

.app-shell--internal .card--internal .internal-restored-workflow .details-block--compact-inline {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  margin-top: 0;
  text-align: left;
}

.app-shell--internal .card--internal .owner-review-operating-workflow .row {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 12px 16px;
  border: 1px solid rgba(188, 209, 236, 0.94);
  border-radius: 8px;
  background:
    radial-gradient(circle at 86% 16%, rgba(127, 188, 232, 0.24), rgba(127, 188, 232, 0) 35%),
    radial-gradient(circle at 10% 88%, rgba(72, 112, 164, 0.1), rgba(72, 112, 164, 0) 42%),
    linear-gradient(145deg, #ffffff 0%, #f4f9ff 48%, #e7f1fb 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -12px 24px rgba(71, 112, 164, 0.045),
    0 8px 16px rgba(17, 48, 92, 0.035);
}

.app-shell--internal .card--internal .owner-review-operating-workflow .row::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(112deg, rgba(255, 255, 255, 0) 0 16%, rgba(221, 231, 243, 0.42) 17% 27%, rgba(255, 255, 255, 0) 28% 100%);
  opacity: 0.54;
}

.app-shell--internal .card--internal .owner-review-operating-workflow .row:nth-of-type(even) {
  background:
    radial-gradient(circle at 82% 16%, rgba(114, 180, 226, 0.3), rgba(114, 180, 226, 0) 36%),
    radial-gradient(circle at 12% 90%, rgba(56, 98, 156, 0.12), rgba(56, 98, 156, 0) 42%),
    linear-gradient(145deg, #f9fcff 0%, #edf6ff 50%, #dfeaf7 100%);
}

.app-shell--internal .card--internal .owner-review-operating-workflow .label,
.app-shell--internal .card--internal .owner-review-operating-workflow .row-value {
  position: relative;
  z-index: 1;
}

.app-shell--internal .card--internal .owner-review-operating-workflow .label {
  color: #657696;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.app-shell--internal .card--internal .owner-review-operating-workflow .row-value {
  max-width: min(68%, 760px);
  font-size: 1rem;
  margin-left: auto;
  text-align: right;
  justify-self: end;
}

.app-shell--internal .card--internal .owner-review-operating-workflow .row-value:has(.policy-custom-select),
.app-shell--internal .card--internal .owner-review-operating-workflow .row-value:has(.button),
.app-shell--internal .card--internal .owner-review-operating-workflow .row-value:has(details),
.app-shell--internal .card--internal .owner-review-operating-workflow .row-value:has(.score-meter),
.app-shell--internal .card--internal .owner-review-operating-workflow .row-value:has(.numeric-score-meter) {
  text-align: left;
}

.app-shell--internal .card--internal .owner-review-operating-workflow .details-block--compact-inline {
  background: transparent;
  padding: 0;
}

.app-shell--internal .card--internal .owner-review-operating-workflow .details-block--compact-inline summary,
.app-shell--internal .card--internal .owner-review-operating-workflow .button.secondary.button-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border: 1px solid rgba(22, 61, 115, 0.44);
  border-radius: 8px;
  background: #1d4f9c;
  color: #ffffff;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(24, 67, 126, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.app-shell--internal .card--internal .owner-review-operating-workflow .details-block--compact-inline .details-content {
  margin-top: 8px;
  color: #203b5c;
}

.internal-workflow-section-divider {
  width: 100%;
  margin-block: 12px 14px;
}

.internal-workflow-action-row {
  justify-content: flex-end;
  margin-top: 14px;
}

.context-recommendation-interstitial {
  display: grid;
  gap: 12px;
}

.context-recommendation-interstitial .button-group,
.context-recommendation-interstitial-actions {
  margin-top: 4px;
}

.context-recommendation-interstitial--foundation {
  min-height: 300px;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-content: center;
  text-align: center;
  padding: 34px 18px;
  background:
    linear-gradient(180deg, #fbfdff 0%, #f3f7fc 100%);
}

.context-recommendation-interstitial--foundation .context-recommendation-logo {
  width: 44px;
  height: 44px;
}

.context-recommendation-interstitial--foundation h2 {
  margin: 2px 0 0;
}

.context-recommendation-interstitial--foundation .helper-text {
  max-width: 44ch;
  margin: 0;
}

.internal-workflow-hidden-diagnostics {
  display: none !important;
}

@media (max-width: 760px) {
  .app-shell--internal .card--internal .internal-restored-workflow .row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 10px 0;
  }

  .app-shell--internal .card--internal .internal-restored-workflow .row-value {
    width: 100%;
    max-width: none;
    margin-left: 0;
    text-align: left;
    justify-self: stretch;
  }

  .app-shell--internal .card--internal .owner-review-operating-workflow {
    gap: 10px;
  }

  .app-shell--internal .card--internal .owner-review-operating-workflow .row-value:not(:has(.policy-custom-select)):not(:has(.button)):not(:has(details)):not(:has(.score-meter)):not(:has(.numeric-score-meter)) {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    line-clamp: unset;
  }

  .app-shell--internal .card--internal .owner-review-operating-workflow .row {
    min-height: 56px;
    padding: 12px 14px;
    border: 1px solid rgba(188, 209, 236, 0.94);
    border-radius: 8px;
  }

  .app-shell--internal .card--internal .owner-review-operating-workflow .row-value {
    max-width: none;
    text-align: left;
  }

  .app-shell--internal .card--internal .owner-review-operating-workflow .details-block--compact-inline summary,
  .app-shell--internal .card--internal .owner-review-operating-workflow .button.secondary.button-small {
    width: auto;
    max-width: 100%;
    white-space: normal;
  }

  .app-shell--internal .card--internal .owner-users-roles-workflow .row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 12px;
  }

  .app-shell--internal .card--internal .owner-users-roles-workflow .label {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .app-shell--internal .card--internal .owner-users-roles-workflow .owner-ha-person-label {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 6px;
    align-items: center;
    max-width: 100%;
    min-width: 0;
  }

  .app-shell--internal .card--internal .owner-users-roles-workflow .owner-ha-person-label__main {
    display: inline-flex;
    align-items: center;
    flex: 0 1 auto;
    gap: 6px;
    min-width: 0;
  }

  .app-shell--internal .card--internal .owner-users-roles-workflow .owner-ha-person-label__name {
    flex: 0 1 auto;
    max-width: 112px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app-shell--internal .card--internal .owner-users-roles-workflow .owner-ha-dob-chip {
    flex: 0 0 auto;
    padding-inline: 7px;
    font-size: 0.68rem;
    white-space: nowrap;
  }

  .app-shell--internal .card--internal .owner-users-roles-workflow .owner-ha-dob-chip__label {
    display: none;
  }

  .app-shell--internal .card--internal .owner-users-roles-workflow .row-value {
    width: 100%;
    max-width: none;
    margin-left: 0;
    text-align: left;
    justify-content: flex-start;
  }

  .app-shell--internal .card--internal .owner-users-roles-workflow .row:has(.owner-users-roles-ha-actions) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center !important;
    column-gap: 8px;
    row-gap: 8px;
  }

  .app-shell--internal .card--internal .owner-users-roles-workflow .row:has(.owner-users-roles-ha-actions) .label {
    grid-column: 1;
    align-self: center;
    text-align: left;
  }

  .app-shell--internal .card--internal .owner-users-roles-workflow .row:has(.owner-users-roles-ha-actions) .row-value {
    grid-column: 2;
    width: auto;
    max-width: none;
    margin-left: 0;
    text-align: right;
    justify-content: flex-end;
    align-self: center;
  }

  .app-shell--internal .card--internal .owner-users-roles-workflow .owner-users-roles-ha-actions {
    display: flex;
    justify-content: flex-end;
    width: auto;
  }

  .app-shell--internal .card--internal .owner-users-roles-workflow .owner-users-roles-ha-actions .button {
    justify-content: center;
    min-height: 32px;
    padding: 7px 9px;
    font-size: 0.72rem;
    width: auto;
  }

  .app-shell--internal .card--internal .owner-users-roles-mobile-back {
    display: flex;
    justify-content: flex-start;
    margin-top: 4px;
  }

  .app-shell--internal .card--internal .owner-users-roles-mobile-back .route-return-icon {
    width: 36px;
    height: 36px;
    margin-top: 0;
  }

  .app-shell--internal .card--internal .internal-restored-workflow .owner-review-approve-row {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .app-shell--internal .card--internal .internal-restored-workflow .owner-review-approve-row .row-value {
    width: auto;
    max-width: 56%;
    margin-left: auto;
    text-align: right;
    justify-content: flex-end;
  }
}


.app-shell--ha-sequence .human-agent-context-frame-forward-control .route-return-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  margin-top: 0;
}

.app-shell--ha-sequence .human-agent-context-frame-forward-control .pre-frame-forward-button {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
}

.app-shell--ha-sequence .human-agent-context-frame-shell .context-frame-tools-row .ipi-writing-tools {
  display: inline-flex;
  flex-wrap: nowrap;
  width: auto;
  max-width: 100%;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
}

.app-shell--ha-sequence .human-agent-context-frame-shell .context-frame-tools-row .ipi-writing-tool-button {
  min-height: 30px;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  line-height: 1.25;
}

@media (max-width: 720px) {
  .app-shell--ha-sequence .human-agent-context-frame-shell .context-frame-input-stack > label strong {
    font-size: clamp(0.9rem, 3.6vw, 1rem);
    line-height: 1.24;
  }

  .app-shell--ha-sequence .human-agent-context-frame-shell .context-frame-tools-row {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .app-shell--ha-sequence .human-agent-context-frame-shell .context-frame-tools-row::-webkit-scrollbar {
    display: none;
  }

  .app-shell--ha-sequence .human-agent-context-frame-shell .human-agent-context-frame-textarea {
    min-height: 190px;
    font-size: 16px;
    line-height: 1.45;
  }

  .app-shell--ha-sequence .human-agent-inherited-will-shell .human-agent-inherited-will-submit {
    width: 34px;
    height: 34px;
    justify-content: center;
  }
}


.human-agent-capacity-gate {
  gap: 20px;
}

.human-agent-capacity-gate .public-ha-invitation-definition {
  width: min(100%, 330px);
  min-height: 58px;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 78% 18%, rgba(124, 185, 229, 0.32), rgba(124, 185, 229, 0) 36%),
    radial-gradient(circle at 14% 82%, rgba(58, 105, 165, 0.16), rgba(58, 105, 165, 0) 38%),
    linear-gradient(145deg, #f9fcff 0%, #edf5ff 48%, #dbe9f8 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    inset 0 -14px 28px rgba(59, 103, 160, 0.07),
    0 16px 28px rgba(19, 52, 98, 0.1);
}

.human-agent-capacity-gate .public-ha-invitation-copy {
  text-align: center;
}

.commercial-capacity-gate-body,
.owner-inherited-will-addon-gate,
.subscription-capacity-section,
.objective-approval-section {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(47, 101, 167, 0.16);
  border-radius: 8px;
  background:
    repeating-linear-gradient(135deg, rgba(47, 101, 167, 0.055) 0 1px, rgba(47, 101, 167, 0) 1px 15px),
    radial-gradient(circle at 84% 12%, rgba(122, 185, 230, 0.22), rgba(122, 185, 230, 0) 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(239, 247, 255, 0.95) 56%, rgba(225, 236, 248, 0.94) 100%);
  padding: 18px;
  box-sizing: border-box;
  max-width: 100%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 10px 22px rgba(16, 46, 88, 0.045);
}

.commercial-capacity-gate-status,
.owner-inherited-will-addon-gate__header,
.subscription-capacity-section__header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.commercial-capacity-gate-status {
  align-items: flex-start;
  margin-bottom: 14px;
}

.commercial-capacity-gate-status p {
  margin: 0;
  color: #102346;
  font-size: 1.02rem;
  line-height: 1.38;
}

.commercial-capacity-authority-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(47, 101, 167, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: #365981;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.commercial-capacity-slot-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}

.commercial-capacity-slot-actions--primary {
  display: block;
  margin-bottom: 12px;
}

.commercial-capacity-slot-action {
  margin: 0;
}

.commercial-capacity-slot-action .button {
  box-sizing: border-box;
  text-align: center;
}

.commercial-capacity-slot-button {
  min-width: min(100%, 304px);
  min-height: 44px;
  margin-top: 0;
}

.commercial-capacity-payment-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
  color: #365981;
  font-size: 0.88rem;
}

.commercial-capacity-payment-line span {
  color: #60758f;
}

.commercial-capacity-checkout-status-copy {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0 0 16px;
  color: #365981;
  font-size: 0.94rem;
  line-height: 1.45;
}

.commercial-checkout-diagnostic {
  position: relative;
  z-index: 1;
  margin: 12px 0 4px;
  border: 1px solid rgba(137, 65, 57, 0.22);
  border-radius: 8px;
  background: rgba(255, 247, 244, 0.92);
  padding: 10px 12px;
  color: #6f2f29;
}

.commercial-checkout-diagnostic strong {
  display: block;
  margin-bottom: 3px;
  font-size: 0.9rem;
}

.commercial-checkout-diagnostic p {
  margin: 0;
  color: #7b3d35;
  font-size: 0.88rem;
  line-height: 1.4;
}

.commercial-capacity-continuity-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: #365981;
  font-size: 0.86rem;
  line-height: 1.25;
}

.commercial-capacity-continuity-option input {
  width: 16px;
  height: 16px;
  accent-color: #2f65a7;
}

.commercial-capacity-gate-meta,
.commercial-payment-setup-seam {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.commercial-capacity-gate-meta {
  color: #365981;
  font-size: 0.86rem;
}

.commercial-payment-setup-seam {
  margin-top: 14px;
}

.commercial-payment-setup-seam--resume {
  align-items: flex-start;
}

.commercial-payment-setup-seam--resume .commercial-payment-setup-button {
  min-width: 178px;
}

.commercial-payment-setup-seam span {
  color: #60758f;
  font-size: 0.86rem;
}

.commercial-capacity-change-row {
  margin-top: 14px;
}

.commercial-capacity-alternatives {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  border-top: 1px solid rgba(38, 67, 111, 0.12);
  padding-top: 12px;
}

.commercial-capacity-alternatives > p {
  margin: 0;
  color: #365981;
  font-size: 0.84rem;
  font-weight: 700;
}

.owner-inherited-will-addon-gate h3,
.subscription-capacity-section h3 {
  margin: 4px 0 8px;
  font-size: 1rem;
}

.owner-inherited-will-addon-gate p {
  margin: 0;
}

.owner-inherited-will-person-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(38, 67, 111, 0.12);
  padding: 14px 0;
}

.owner-inherited-will-person-row > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.owner-inherited-will-row--locked {
  opacity: 0.62;
}

.owner-inherited-will-person-row .owner-inherited-will-row-action:not(.secondary) {
  border-color: rgba(29, 79, 156, 0.82);
  background:
    linear-gradient(160deg, #2d6db6 0%, #174f94 52%, #113a72 100%);
  color: #ffffff;
}

.owner-inherited-will-addon-gate__truth,
.subscription-capacity-section__grid {
  display: grid;
  gap: 8px;
  margin: 12px 0 16px;
}

.subscription-capacity-section__rows {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.subscription-capacity-section__rows .row {
  margin: 0;
  background:
    radial-gradient(circle at 88% 18%, rgba(116, 178, 226, 0.2), rgba(116, 178, 226, 0) 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.94) 0%, rgba(238, 247, 255, 0.86) 100%);
}

.subscription-capacity-section__grid--operating {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 0;
}

.capacity-state-item {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 6px;
  min-height: 74px;
  border: 1px solid rgba(174, 202, 234, 0.82);
  border-radius: 12px;
  background:
    radial-gradient(circle at 88% 16%, rgba(116, 178, 226, 0.2), rgba(116, 178, 226, 0) 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.94) 0%, rgba(238, 247, 255, 0.86) 100%);
  padding: 12px 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.capacity-state-item span {
  color: #60758f;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.capacity-state-item strong {
  color: #102346;
  font-size: 1rem;
  line-height: 1.25;
}

.capacity-state-item small {
  color: #60758f;
  font-size: 0.78rem;
  line-height: 1.3;
}

.capacity-state-item--quiet {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86) 0%, rgba(244, 249, 255, 0.82) 100%);
}

.capacity-state-item--quiet strong {
  color: #365981;
  font-size: 0.92rem;
  font-weight: 700;
}

.owner-inherited-will-addon-form {
  display: flex;
  justify-content: flex-start;
}

.owner-inherited-will-addon-price {
  margin: 8px 0 14px;
  color: #365981;
  font-weight: 700;
}

.subscription-capacity-section {
  position: relative;
  overflow: hidden;
  margin: 16px 0;
  border-color: rgba(188, 209, 236, 0.96);
  background:
    radial-gradient(circle at 12% 16%, rgba(83, 128, 184, 0.16), rgba(83, 128, 184, 0) 38%),
    radial-gradient(circle at 94% 84%, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0) 42%),
    linear-gradient(145deg, #ffffff 0%, #f8fbff 58%, #eff6fd 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 18px 0 34px rgba(72, 111, 166, 0.045),
    0 10px 22px rgba(16, 46, 88, 0.04);
}

.subscription-capacity-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(72deg, rgba(210, 224, 240, 0.34) 0 10%, rgba(255, 255, 255, 0) 26% 100%);
  opacity: 0.64;
}

.subscription-capacity-section > * {
  position: relative;
  z-index: 1;
}

.subscription-capacity-section__note {
  margin: 10px 0 0;
  color: #60758f;
  font-size: 0.88rem;
}

.owner-lease-open-button {
  border-color: rgba(47, 101, 167, 0.22);
  background: rgba(255, 255, 255, 0.72);
  color: #26436f;
}

.owner-lease-modal .owner-inline-modal__card {
  position: relative;
  overflow: hidden;
  border-color: rgba(188, 209, 236, 0.98);
  background:
    repeating-linear-gradient(135deg, rgba(47, 101, 167, 0.05) 0 1px, rgba(47, 101, 167, 0) 1px 16px),
    radial-gradient(circle at 88% 12%, rgba(122, 185, 230, 0.18), rgba(122, 185, 230, 0) 34%),
    linear-gradient(145deg, #ffffff 0%, #f8fbff 58%, #eff6fd 100%);
}

.owner-lease-modal .owner-inline-modal__card > * {
  position: relative;
  z-index: 1;
}

.owner-lease-summary-grid,
.owner-lease-tier-list {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

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

.owner-lease-summary-grid article,
.owner-lease-tier-choice {
  border: 1px solid rgba(174, 202, 234, 0.82);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 18%, rgba(116, 178, 226, 0.16), rgba(116, 178, 226, 0) 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.94) 0%, rgba(238, 247, 255, 0.86) 100%);
  padding: 12px 14px;
}

.owner-lease-summary-grid article {
  display: grid;
  gap: 5px;
}

.owner-lease-summary-grid span,
.owner-lease-tier-choice small {
  color: #60758f;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
}

.owner-lease-summary-grid strong,
.owner-lease-tier-choice strong {
  color: #102346;
  font-size: 0.98rem;
  line-height: 1.25;
}

.owner-lease-modal-copy {
  margin: 10px 0 0;
  color: #365981;
  font-size: 0.92rem;
  line-height: 1.45;
}

.owner-lease-tier-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.owner-lease-tier-choice input {
  width: 16px;
  height: 16px;
  accent-color: #2f65a7;
}

.owner-lease-tier-choice span {
  display: grid;
  gap: 3px;
}

.owner-lease-tier-choice--active {
  border-color: rgba(47, 101, 167, 0.42);
}

.owner-lease-tier-choice--blocked {
  opacity: 0.66;
  cursor: not-allowed;
}

.owner-lease-modal-actions {
  justify-content: flex-end;
  margin-top: 14px;
}

.owner-lease-break-confirm {
  border-color: rgba(125, 73, 73, 0.22);
  color: #7d4949;
}

.owner-lease-note {
  margin-top: 12px;
}

.objective-approval-section {
  position: relative;
  overflow: hidden;
  margin: 10px 0;
  padding: 12px 14px;
  background:
    radial-gradient(circle at 92% 12%, rgba(119, 174, 219, 0.12), rgba(119, 174, 219, 0) 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 250, 255, 0.9) 100%);
}

.objective-approval-section__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.objective-approval-section__main span,
.objective-approval-section__main strong,
.objective-approval-section__main small {
  display: block;
}

.objective-approval-section__main span {
  color: #365981;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.objective-approval-section__main strong {
  margin-top: 4px;
  color: #102346;
}

.objective-approval-section__main small {
  margin-top: 3px;
  color: #60758f;
  font-size: 0.8rem;
  line-height: 1.36;
}

.objective-approval-options,
.owner-objective-approval-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.owner-task-objective-approval-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(151, 181, 219, 0.38);
  border-radius: 14px;
  background:
    radial-gradient(circle at 88% 18%, rgba(119, 174, 219, 0.18), rgba(119, 174, 219, 0) 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.94) 0%, rgba(242, 248, 255, 0.9) 100%);
  padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.owner-task-objective-approval-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.owner-task-objective-approval-card__header h3,
.owner-task-objective-approval-card__objective {
  margin: 0;
}

.owner-task-objective-approval-card__objective {
  color: #102346;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.38;
}

.owner-objective-approval-card__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.owner-objective-approval-card__meta {
  justify-content: flex-start;
  flex-wrap: wrap;
  color: #60758f;
  font-size: 0.82rem;
  margin-bottom: 12px;
}

.account-delete-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.internal-dashboard-attention-row {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 12px;
}

.operating-notification-bell {
  position: relative;
  display: inline-flex;
  justify-content: flex-end;
  z-index: 8;
}

.operating-notification-bell--open {
  display: inline-flex;
  justify-items: end;
  width: auto;
}

.operating-notification-bell__button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(122, 154, 198, 0.38);
  border-radius: 50%;
  color: #18365f;
  text-decoration: none;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(232, 241, 252, 0.92)),
    linear-gradient(38deg, rgba(169, 195, 226, 0.24), rgba(255, 255, 255, 0));
  box-shadow: 0 8px 18px rgba(22, 52, 91, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.operating-notification-bell__icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.55));
}

.operating-notification-bell__count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: #173d73;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0 5px;
}

.operating-notification-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 42;
  width: min(340px, calc(100vw - 36px));
  margin-top: 0;
  border: 1px solid rgba(122, 154, 198, 0.32);
  border-radius: 16px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 249, 255, 0.98) 54%, rgba(234, 243, 252, 0.98) 100%);
  box-shadow: 0 20px 50px rgba(16, 45, 82, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  padding: 12px;
}

.human-agent-dashboard-shell--attention-open .human-agent-context-header--split {
  align-items: flex-start;
}

.operating-notification-panel__header,
.operating-notification-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.operating-notification-panel__header {
  padding: 4px 4px 10px;
  color: #18365f;
}

.operating-notification-panel__mark {
  min-height: 30px;
  padding: 6px 10px;
}

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

.operating-notification-list--scroll {
  max-height: min(420px, 58vh);
  overflow-y: auto;
  padding-right: 3px;
}

.operating-notification-item {
  justify-content: flex-start;
  align-items: flex-start;
  position: relative;
  width: 100%;
  border: 1px solid rgba(178, 200, 229, 0.42);
  border-radius: 12px;
  color: #17284a;
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.94), rgba(236, 245, 255, 0.86));
  padding: 11px 12px;
  font: inherit;
  text-align: left;
  text-decoration: none;
}

button.operating-notification-item {
  appearance: none;
  cursor: pointer;
}

a.operating-notification-item {
  cursor: pointer;
}

.operating-notification-item--with-click {
  padding-bottom: 46px;
}

.operating-notification-item--read {
  opacity: 0.68;
}

.operating-notification-item__dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: #2a5c98;
}

.operating-notification-item strong,
.operating-notification-item small {
  display: block;
}

.operating-notification-item small {
  margin-top: 3px;
  color: #60758f;
  font-size: 0.78rem;
}

.operating-notification-item__copy {
  min-width: 0;
}

.operating-notification-item__click {
  position: absolute;
  left: 26px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  padding: 5px 10px;
  border: 1px solid rgba(122, 154, 198, 0.44);
  border-radius: 10px;
  color: #17365f;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(232, 242, 253, 0.94));
  box-shadow: 0 6px 14px rgba(22, 52, 91, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.94);
  font-size: 0.72rem;
  font-weight: 850;
}

.operating-notification-empty {
  margin: 8px 4px 4px;
  color: #60758f;
  font-size: 0.9rem;
}

.operating-notification-panel__show-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 10px 4px 2px;
  color: #1d4f9c;
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
}

.operating-notification-detail-modal .owner-inline-modal__card {
  max-width: 720px;
}

.operating-notification-detail-bubbles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.operating-notification-detail-bubble {
  min-height: 190px;
  padding-bottom: 16px;
}

.operating-notification-detail-bubble p {
  line-height: 1.52;
}

.operating-notification-detail-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.operating-notification-override-button {
  min-height: 40px;
  min-width: 112px;
  border-color: rgba(28, 74, 128, 0.42);
  background:
    radial-gradient(circle at 82% 18%, rgba(130, 187, 230, 0.24), rgba(130, 187, 230, 0) 38%),
    linear-gradient(145deg, #173d73 0%, #204f8f 100%);
  box-shadow: 0 12px 22px rgba(19, 55, 104, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.operating-notification-approval-confirmation {
  min-height: 240px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
  border: 1px solid rgba(170, 197, 228, 0.72);
  border-radius: 16px;
  background:
    linear-gradient(132deg, rgba(255, 255, 255, 0) 0 18%, rgba(178, 194, 217, 0.16) 18% 22%, rgba(255, 255, 255, 0) 22% 45%, rgba(178, 194, 217, 0.12) 45% 49%, rgba(255, 255, 255, 0) 49% 72%, rgba(178, 194, 217, 0.1) 72% 76%, rgba(255, 255, 255, 0) 76% 100%),
    radial-gradient(circle at 82% 14%, rgba(126, 184, 228, 0.24), rgba(126, 184, 228, 0) 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(236, 246, 255, 0.94));
  color: #102346;
  padding: 26px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94), 0 16px 30px rgba(18, 54, 102, 0.08);
}

.operating-notification-approval-confirmation span {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(122, 154, 198, 0.5);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.96), rgba(232, 243, 255, 0.74));
  color: #173d73;
  font-size: 1.42rem;
  font-weight: 900;
  box-shadow: 0 10px 18px rgba(20, 56, 104, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.operating-notification-approval-confirmation strong {
  font-size: 1.18rem;
}

.operating-notification-approval-confirmation p {
  margin: 0;
  color: #37587f;
  font-weight: 760;
}

@media (max-width: 760px) {
  .operating-notification-detail-bubbles {
    grid-template-columns: 1fr;
  }

  .operating-notification-detail-bubble {
    min-height: 0;
  }

  .commercial-capacity-slot-actions,
  .commercial-capacity-slot-action,
  .commercial-capacity-slot-action .button {
    width: 100%;
  }

  .commercial-capacity-gate-status,
  .owner-inherited-will-addon-gate__header,
  .subscription-capacity-section__header,
  .owner-objective-approval-card__main,
  .owner-inherited-will-person-row {
    align-items: stretch;
    flex-direction: column;
  }

  .commercial-capacity-authority-chip {
    display: none;
  }

  .owner-lease-summary-grid {
    grid-template-columns: 1fr;
  }

  .owner-lease-modal-actions {
    justify-content: stretch;
  }

  .owner-lease-modal-actions .button {
    width: 100%;
  }

  .owner-inherited-will-addon-gate__header .bucket4-status-token {
    align-self: flex-start;
  }

  .owner-inherited-will-header-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .owner-inherited-will-teaching-modal .owner-inline-modal__card {
    max-width: 100%;
    padding: 16px;
  }

  .owner-inherited-will-teaching-row {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }

  .owner-inherited-will-teaching-form,
  .owner-inherited-will-teaching-activate {
    width: 100%;
  }

  .owner-inherited-will-teaching-activate {
    justify-content: stretch;
  }

  .human-agent-inherited-will-teaching-card {
    padding: 15px;
  }

  .human-agent-inherited-will-teaching-card .human-agent-context-header h2 {
    max-width: 16ch;
  }

  .human-agent-inherited-will-teaching-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .human-agent-proof-decision-card {
    width: min(100%, 360px);
    padding: 16px 12px;
  }

  .human-agent-proof-decision-card .human-agent-context-header h2 {
    max-width: 18ch;
  }

  .human-agent-proof-decision-panel .row {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 6px;
    min-height: 0;
    padding: 13px 14px;
    text-align: center;
  }

  .human-agent-proof-decision-panel .label,
  .human-agent-proof-decision-panel .row-value {
    justify-self: center;
    text-align: center;
  }

  .owner-inherited-will-insight-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .owner-inherited-will-date-chip {
    justify-self: start;
    white-space: normal;
  }

  .owner-inherited-will-blue-bubble,
  .owner-inherited-will-insight-copy,
  .owner-inherited-will-full-note-copy,
  .commercial-capacity-checkout-status-copy,
  .commercial-checkout-diagnostic {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .owner-review-choice-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .owner-review-payout-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .owner-proof-review-advisory-card__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .owner-review-ipi-decision__head,
  .owner-review-ipi-salary-row,
  .owner-review-custom-payout {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .human-agent-proof-review-context-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .owner-inline-modal {
    position: fixed;
    inset: 0;
    width: 100vw;
    max-width: 100vw;
    min-height: 100dvh;
    height: auto;
    place-items: start center;
    padding: 14px 10px;
    overflow: auto;
    background: rgba(10, 22, 40, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .owner-inline-modal__card {
    width: min(100%, calc(100vw - 20px));
    max-width: calc(100vw - 20px);
    max-height: calc(100dvh - 28px);
    overflow-x: clip;
    overflow-y: auto;
    padding: 14px;
    justify-self: center;
  }

  .owner-inline-modal__body,
  .owner-inline-modal__body > *,
  .operating-notification-detail-bubbles,
  .operating-notification-detail-bubble,
  .operating-notification-approval-confirmation {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .operating-notification-detail-modal .owner-inline-modal__card {
    width: min(100%, calc(100vw - 20px));
    max-width: calc(100vw - 20px);
  }

  .operating-notification-detail-bubble p,
  .operating-notification-approval-confirmation p,
  .owner-review-proof-summary p,
  .owner-proof-review-advisory-card__grid p,
  .owner-proof-review-advisory-card__grid li {
    overflow-wrap: anywhere;
  }

  .owner-admin-decision-modal .owner-inline-modal__card {
    width: 100vw;
    max-width: 100vw;
    min-height: 100dvh;
    max-height: none;
    gap: 10px;
    border: 0;
    border-radius: 0;
    padding: 20px 14px 96px;
  }

  .owner-admin-decision-modal .owner-inline-modal__close {
    top: 8px;
    right: 8px;
  }

  .owner-admin-decision-modal .owner-review-proof-summary {
    gap: 7px;
    padding: 10px;
  }

  .owner-admin-decision-modal .owner-review-proof-expanded {
    max-height: 252px;
    overflow: auto;
    padding-right: 4px;
  }

  .owner-admin-decision-modal .owner-review-choice {
    min-height: 50px;
    border-radius: 12px;
    padding: 11px 12px;
  }

  .owner-admin-decision-modal .owner-review-note textarea {
    min-height: 72px;
  }

  .app-shell--internal .card--internal .internal-restored-workflow--settings-card > .row,
  .app-shell--internal .card--internal .internal-restored-workflow--settings-card .subscription-capacity-section__grid .row,
  .app-shell--internal .card--internal .internal-restored-workflow--settings-card .subscription-capacity-section__rows .row {
    padding: 12px 14px;
  }

  .app-shell--internal .company-settings-internal-actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    padding-left: 8px;
  }

  .app-shell--internal .company-settings-internal-actions .button {
    width: auto;
    flex: 0 0 auto;
    height: 42px;
    min-height: 42px;
    align-self: center;
    margin-top: 0;
  }

  .app-shell--internal .company-settings-internal-actions .route-return-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    margin: 0;
    align-self: center;
    justify-self: start;
  }

  .app-shell--internal .card--internal .internal-restored-workflow--settings-card .company-settings-editable-row .row-value {
    max-width: none;
  }

  .company-settings-editable-value {
    justify-content: space-between;
  }

  .company-settings-inline-editor {
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
  }

  .account-delete-actions .button {
    width: 100%;
  }

  .internal-dashboard-attention-row {
    justify-content: flex-start;
    padding: 0 2px;
  }

  .dashboard-current-work-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-current-work-card .button {
    width: 100%;
    justify-content: center;
  }

  .operating-notification-bell {
    width: auto;
    display: inline-flex;
    justify-items: end;
  }

  .operating-notification-panel {
    position: absolute;
    right: 0;
    left: auto;
    width: min(340px, calc(100vw - 32px));
    margin-top: 0;
    box-sizing: border-box;
  }

  .internal-dashboard-home .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .internal-dashboard-home .metric-card:first-child {
    grid-column: 1 / -1;
  }

  .objective-approval-section__main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .human-agent-work-cycle-chip {
    justify-self: start;
    width: auto;
    max-width: max-content;
  }

  .subscription-capacity-section__grid--operating {
    grid-template-columns: minmax(0, 1fr);
  }

  .objective-approval-options,
  .owner-objective-approval-card__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .owner-task-objective-approval-card__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .owner-ha-task-detail-heading__actions,
  .owner-ha-task-detail-heading__actions .button {
    width: 100%;
  }

  .owner-ha-task-detail-heading__actions {
    justify-content: stretch;
  }

  .owner-task-objective-approval-card__header > .bucket4-status-token {
    align-self: start;
    justify-self: start;
    width: auto;
    min-width: 0;
  }

  .app-shell--ha-settings .human-agent-settings-rows .row,
  .app-shell--ha-settings .account-settings-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-shell--ha-settings .human-agent-settings-rows .row-value {
    text-align: left;
  }
}

.app-shell--internal .workspace-setup-summary-card .segmented-display,
.app-shell--internal .workspace-intake-cycle-control .segmented-display {
  display: inline-flex;
  grid-template-columns: none;
  flex-wrap: wrap;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  padding: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f8fbff 0%, #edf5ff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.app-shell--internal .workspace-setup-summary-card .segment-pill,
.app-shell--internal .workspace-intake-cycle-control .segment-pill {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 6px 11px;
  border-radius: 999px;
}
