/* Scoped optional component. No layout changes while the feature is disabled. */
#intervention-nav[hidden], #interventions[hidden], .intervention-inbox [hidden] { display: none !important; }
.intervention-inbox { margin-top: 18px; min-width: 0; }
.intervention-inbox > [role="status"] { color: #493464; font-weight: 700; }
.intervention-inbox > .muted { font-size: .8rem; line-height: 1.6; }
.inbox-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.inbox-actions .secondary { width: auto; margin: 0; }
.verification-notice { width: min(580px, calc(100% - 28px)); max-height: 90dvh; overflow: auto; padding: 25px; border: 1px solid #e7e2ee; border-radius: 16px; background: #fff; color: #292637; box-shadow: 0 24px 90px #191b2b38; }
.verification-notice::backdrop { background: #191b2b88; }
.verification-notice > h2 { margin: 0 0 10px; font-size: 1.4rem; letter-spacing: -.04em; }
.verification-notice > .muted { color: #71687f; font-size: .86rem; }
.verification-notice .handoff-summary, .verification-notice .handoff-queue, .verification-notice .handoff-heading h1, .verification-notice .handoff-heading .eyebrow, .verification-notice .handoff-heading .muted, .verification-notice .handoff-meta { display: none; }
.verification-notice .handoff-heading { justify-content: flex-end; margin: 12px 0; }
.verification-notice .handoff-columns { display: block; }
.verification-notice .handoff-detail { border: 0; padding: 0; min-height: 0; box-shadow: none; }
.verification-notice > .inbox-actions { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid #e7e2ee; }
.verification-notice .handoff-screen { margin: 0; }
.verification-notice button:focus-visible { outline: 3px solid #ad8dd3; outline-offset: 3px; }
.intervention-inbox .handoff-screen { margin-top: 24px; scroll-margin-top: 20px; }
@media (max-width: 900px) {
  .shell:has(#interventions:not([hidden])) { grid-template-columns: minmax(0, 1fr); }
  .shell:has(#interventions:not([hidden])) .workspace { min-width: 0; }
  .shell:has(#interventions:not([hidden])) .topbar-actions { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .shell:has(#interventions:not([hidden])) .sidebar-brand { flex-wrap: wrap; }
}
.handoff-screen { color: #292637; }
.handoff-screen h1 { margin: 0; font-size: clamp(1.6rem, 2.5vw, 2rem); letter-spacing: -.055em; }
.handoff-screen h2 { margin: 0; font-size: 1.08rem; }
.handoff-screen h3 { font-size: 1.02rem; letter-spacing: -.025em; margin: 8px 0; }
.handoff-screen .muted { font-size: .86rem; color: #686277; }
.handoff-heading { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin: 4px 0 24px; }
.handoff-heading .secondary { width: auto; margin: 0; flex-shrink: 0; }
.handoff-demo-note { display: flex; align-items: center; gap: 14px; padding: 13px 16px; background: #eee8f7; border: 1px solid #ded3ef; border-radius: 9px; color: #574171; font-size: .79rem; }
.handoff-demo-note strong { font-size: .65rem; letter-spacing: .07em; flex-shrink: 0; }
.handoff-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.handoff-summary > div { display: grid; gap: 5px; padding: 17px 19px; border: 1px solid #e7e2ee; border-radius: 9px; background: #fff; }
.handoff-summary strong { font-size: 1.5rem; font-weight: 750; color: #493464; }
.handoff-summary span { color: #71687f; font-size: .76rem; }
.handoff-columns { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(0, 1.55fr); gap: 20px; align-items: start; }
.handoff-queue { padding: 20px 14px; }
.handoff-queue > h2, .handoff-queue > .eyebrow { margin-left: 6px; }
.handoff-list { display: grid; gap: 9px; margin-top: 19px; }
.handoff-task { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 9px; width: 100%; padding: 15px 13px; border: 1px solid #eae5ef; border-radius: 8px; background: #fff; text-align: left; color: #373044; }
.handoff-task[aria-pressed="true"] { border-color: #a385c7; background: #faf7ff; box-shadow: inset 3px 0 #8b65b5; }
.handoff-task:hover { background: #f8f5fd; }
.handoff-task-title { display: grid; gap: 5px; flex: 1 1 100%; overflow-wrap: anywhere; }
.handoff-task-title strong { font-size: .88rem; }
.handoff-task-title > span { color: #6c627b; font-size: .78rem; }
.handoff-task > small { width: 100%; font-size: .7rem; color: #71687f; line-height: 1.45; overflow-wrap: anywhere; }
.handoff-badge { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 5px; background: #efecf4; color: #61566f; font-size: .66rem; font-weight: 750; line-height: 1.35; }
.handoff-badge.sms, .handoff-badge.captcha { background: #fff1d5; color: #825209; }
.handoff-badge.running, .handoff-badge.verifying { background: #eee6fb; color: #684199; }
.handoff-badge.completed { background: #e9f4ed; color: #346a4b; }
.handoff-badge.expired, .handoff-badge.uncertain, .handoff-badge.unavailable { background: #f8eae9; color: #91483f; }
.handoff-detail { padding: 24px; min-height: 535px; min-width: 0; }
.handoff-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.handoff-detail-head .handoff-badge { flex-shrink: 0; max-width: 45%; }
.handoff-meta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin: 23px 0 0; padding: 16px 0; border-top: 1px solid #ece7f1; border-bottom: 1px solid #ece7f1; }
.handoff-meta dt { font-size: .66rem; color: #756b83; margin-bottom: 6px; }
.handoff-meta dd { margin: 0; font-size: .75rem; line-height: 1.5; overflow-wrap: anywhere; }
.handoff-lifetime { margin: 12px 0 23px; color: #776982; font-size: .72rem; }
.handoff-lifetime [data-countdown] { font-variant-numeric: tabular-nums; font-weight: 750; }
.handoff-phone { display: grid; gap: 6px; margin: 19px 0; padding: 15px 17px; border: 1px solid #e7dfee; border-radius: 8px; background: #fcfaff; }
.handoff-phone small { font-size: .6rem; font-weight: 700; letter-spacing: .07em; color: #74637e; }
.handoff-phone strong { font-size: 1.25rem; letter-spacing: .04em; overflow-wrap: anywhere; }
.handoff-sms .field-label { font-size: .79rem; margin-top: 20px; }
.handoff-sms input { display: block; width: 100%; min-height: 45px; border: 1px solid #d3c6e0; border-radius: 7px; background: #fff; color: #342a43; font: inherit; font-size: 1.1rem; letter-spacing: .18em; padding: 10px 14px; }
.handoff-screen .form-note { color: #73697e; font-size: .71rem; }
.handoff-sms .primary { margin-top: 9px; min-height: 42px; }
.handoff-feedback { min-height: 1em; font-size: .79rem; line-height: 1.55; color: #704b79; overflow-wrap: anywhere; }
.handoff-feedback:empty { margin: 0; min-height: 0; }
.handoff-detail > .handoff-feedback { margin-top: 16px; }
.handoff-footer { margin: 23px 0 0; padding-top: 16px; border-top: 1px solid #ece7f1; color: #756b82; font-size: .73rem; line-height: 1.55; }
.handoff-viewport { display: grid; place-content: center; gap: 12px; min-height: 220px; padding: 20px; margin-top: 20px; border: 1px dashed #b8a5ce; border-radius: 9px; background: #faf8fc; text-align: center; }
.handoff-viewport button { padding: 10px 12px; border: 1px solid #b89fcc; border-radius: 6px; color: #4e326a; background: #fff; }
.handoff-viewport strong { font-size: .67rem; letter-spacing: .06em; color: #745a87; }
.handoff-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.handoff-actions .secondary { margin: 0; width: auto; }
.handoff-state-note { margin-top: 25px; border: 1px solid #e5ddeb; background: #faf8fc; padding: 21px; border-radius: 8px; }
.handoff-state-note p { font-size: .87rem; line-height: 1.65; margin-bottom: 0; color: #6c5c78; }
.handoff-state-note.completed { background: #f5faf6; border-color: #d5e5da; }
.handoff-screen button:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.handoff-screen button:focus-visible, .handoff-screen input:focus-visible { outline: 3px solid #ad8dd3; outline-offset: 3px; }
@media (max-width: 1100px) { .handoff-columns { grid-template-columns: minmax(220px, .85fr) minmax(0, 1.35fr); gap: 14px; } .handoff-detail { padding: 20px; } }
@media (max-width: 720px) {
  .handoff-heading { align-items: flex-start; flex-direction: column; gap: 13px; }
  .handoff-demo-note { align-items: flex-start; flex-direction: column; gap: 7px; }
  .handoff-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .handoff-columns { grid-template-columns: minmax(0, 1fr); }
  .handoff-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .handoff-task { padding: 12px; }
  .handoff-detail-head { flex-direction: column; gap: 10px; }
  .handoff-detail-head .handoff-badge { max-width: 100%; }
  .handoff-meta { gap: 12px; }
  .handoff-actions > button { flex: 1 1 100%; }
  .handoff-detail { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .handoff-screen * { scroll-behavior: auto; transition: none; } }
