/* Telephony only. Map legacy cascade to the portable Design Lab v2.3.6. */
html[data-sota-prototype-module="telephony"] body {
  margin:0!important;padding:0 0 0 72px!important;box-sizing:border-box;min-width:0;min-height:100dvh;
  background-color:transparent!important;
  background-image:none!important;
  position:relative;isolation:isolate;
  color:var(--sota33-text)!important;font-family:var(--sota33-font)!important;
}
/* A viewport layer keeps the honeycomb stationary in desktop and mobile
   browsers, including those that ignore background-attachment: fixed.
   The isolated body keeps its negative layer behind glass and above canvas. */
html[data-sota-prototype-module="telephony"] {background-color:var(--sota33-canvas);}
html[data-sota-prototype-module="telephony"] body::before {
  content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
  background-color:var(--sota33-canvas);
  background-image:linear-gradient(color-mix(in srgb,var(--sota33-canvas) var(--sota33-honeycomb-overlay),transparent),color-mix(in srgb,var(--sota33-canvas) var(--sota33-honeycomb-overlay),transparent)),var(--sota33-honeycomb);
  background-size:auto,117.779px 102px;background-repeat:repeat;
}
html[data-sota-prototype-module="telephony"] body *,
html[data-sota-prototype-module="telephony"] body :is(h1,h2,h3,code,time,button,input,select,textarea) {font-family:var(--sota33-font,Sota33RobotoSerif,Georgia,serif)!important;box-sizing:border-box;}
html[data-sota-prototype-module="telephony"][data-sota-live-menu-ready="true"] body>.avp-global-header,
html[data-sota-prototype-module="telephony"][data-sota-live-menu-ready="true"] body>.topbar,
html[data-sota-prototype-module="telephony"][data-sota-live-menu-ready="true"] body>.sidebar,
html[data-sota-prototype-module="telephony"][data-sota-live-menu-ready="true"] body>.sidebar-scrim,
html[data-sota-prototype-module="telephony"] body>footer,
html[data-sota-prototype-module="telephony"] #tabs,
html[data-sota-prototype-module="telephony"] main>.message,
html[data-sota-prototype-module="telephony"] main>.tab-view:not(#telephony-view),
html[data-sota-prototype-module="telephony"] #telephony-view>:not(#sota-telephony-registry),
html[data-sota-prototype-module="telephony"] .hero :is(.eyebrow,p,.module-state) {display:none!important;}
html[data-sota-prototype-module="telephony"] main {width:100%;max-width:1460px;min-width:0;margin:0 auto!important;padding:28px 28px 50px!important;}
html[data-sota-prototype-module="telephony"] .hero {display:flex!important;justify-content:space-between;align-items:center;gap:16px;margin:0 0 20px;padding:22px 26px;min-height:0;color:var(--sota33-text)!important;background:var(--sota33-glass)!important;border:1px solid var(--sota33-border)!important;box-shadow:var(--sota33-shadow)!important;backdrop-filter:blur(14px) saturate(124%);-webkit-backdrop-filter:blur(14px) saturate(124%);}
html[data-sota-prototype-module="telephony"] .hero>div {min-width:0;}
html[data-sota-prototype-module="telephony"] .hero h1 {font-size:clamp(28px,3vw,44px)!important;font-weight:300!important;line-height:1.2;letter-spacing:-.02em;margin:0;color:var(--sota33-ink)!important;}
html[data-sota-prototype-module="telephony"] .sota-telephony-total {flex:none;font-size:clamp(16px,1.7vw,24px);font-weight:300;color:var(--sota33-text);font-variant-numeric:tabular-nums;}
html[data-sota-prototype-module="telephony"] #telephony-view {display:block!important;min-width:0;}
html[data-sota-prototype-module="telephony"] #sota-telephony-registry {min-width:0;}
html[data-sota-prototype-module="telephony"] .sota-telephony-toolbar {padding:18px 20px;margin-bottom:18px;background:var(--sota33-glass)!important;}
html[data-sota-prototype-module="telephony"] .sota-telephony-toolbar label {display:block;margin-bottom:9px;font-size:14px;color:var(--sota33-text);}
html[data-sota-prototype-module="telephony"] .sota-telephony-search-row {display:flex;gap:10px;align-items:center;flex-wrap:wrap;}
html[data-sota-prototype-module="telephony"] #sota-telephony-query {flex:1 1 300px;min-width:0;width:auto;height:44px;}
html[data-sota-prototype-module="telephony"] body :is(.sota33-input,.sota33-button) {border:1px solid var(--sota33-border-strong)!important;border-radius:12px;background:var(--sota33-glass-raised)!important;color:var(--sota33-ink)!important;font-size:14px;line-height:1.3;min-height:44px;box-shadow:none;}
html[data-sota-prototype-module="telephony"] body .sota33-button-primary {background:var(--sota33-primary)!important;color:var(--sota33-on-primary)!important;}
html[data-sota-prototype-module="telephony"] .sota33-button:disabled {opacity:.55;cursor:not-allowed;}
html[data-sota-prototype-module="telephony"] .sota-telephony-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;}
html[data-sota-prototype-module="telephony"] .sota-telephony-card {min-width:0;padding:20px;display:flex;flex-direction:column;color:var(--sota33-text)!important;background:var(--sota33-glass)!important;border:1px solid var(--sota33-border)!important;box-shadow:var(--sota33-shadow)!important;}
html[data-sota-prototype-module="telephony"] .sota-telephony-card.dimmed {opacity:.55;}
html[data-sota-prototype-module="telephony"] .sota-telephony-card.dimmed:focus-within {opacity:1;}
html[data-sota-prototype-module="telephony"] .sota-telephony-card header {display:flex;flex-direction:column;gap:10px;align-items:flex-start;min-width:0;}
html[data-sota-prototype-module="telephony"] .sota-telephony-status {font-size:12px;line-height:1.5;color:var(--sota33-muted);overflow-wrap:anywhere;}
html[data-sota-prototype-module="telephony"] .sota-telephony-card h3 {font-size:22px;font-weight:400;margin:4px 0;color:var(--sota33-ink);overflow-wrap:anywhere;}
html[data-sota-prototype-module="telephony"] .sota-telephony-channel {display:inline-block;font-size:13px;line-height:1.5;color:var(--sota33-text);background:var(--sota33-glass-raised);border:1px solid var(--sota33-border);border-radius:9px;padding:5px 9px;overflow-wrap:anywhere;}
html[data-sota-prototype-module="telephony"] .sota-telephony-card dl {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0 12px;}
html[data-sota-prototype-module="telephony"] .sota-telephony-card dl>div {min-width:0;}
html[data-sota-prototype-module="telephony"] .sota-telephony-card dt {font-size:11px;color:var(--sota33-muted);font-weight:300;letter-spacing:.04em;text-transform:uppercase;}
html[data-sota-prototype-module="telephony"] .sota-telephony-card dd {margin:4px 0 0;font-size:14px;color:var(--sota33-text);overflow-wrap:anywhere;}
html[data-sota-prototype-module="telephony"] .sota-telephony-check {grid-column:1/-1;border-top:1px solid var(--sota33-border);padding-top:12px;}
html[data-sota-prototype-module="telephony"] .sota-telephony-comment {font-size:13px;line-height:1.6;color:var(--sota33-muted);overflow-wrap:anywhere;}
html[data-sota-prototype-module="telephony"] .sota-telephony-card details {font-size:13px;line-height:1.5;margin:0 0 14px;}
html[data-sota-prototype-module="telephony"] .sota-telephony-card summary {cursor:pointer;}
html[data-sota-prototype-module="telephony"] .sota-telephony-history {display:grid;gap:5px;margin:12px 0;border-top:1px solid var(--sota33-border);padding-top:10px;overflow-wrap:anywhere;}
html[data-sota-prototype-module="telephony"] .sota-telephony-card footer {margin:auto 0 0;padding:12px 0 0;border:0;max-width:none;display:block;}
html[data-sota-prototype-module="telephony"] .sota-telephony-card footer button {width:100%;white-space:normal;}
html[data-sota-prototype-module="telephony"] .sota-telephony-state {font-size:14px;color:var(--sota33-muted);padding:12px 0;margin:0;overflow-wrap:anywhere;}
html[data-sota-prototype-module="telephony"] .sota-telephony-state.is-error {color:var(--sota33-danger);}
html[data-sota-prototype-module="telephony"] .sota-telephony-empty {grid-column:1/-1;padding:36px 20px;text-align:center;}
html[data-sota-prototype-module="telephony"] .sota-telephony-dialog {width:min(760px,calc(100vw - 28px));max-width:calc(100vw - 28px);max-height:calc(100dvh - 28px);padding:24px;overflow:auto;background:var(--sota33-glass-raised)!important;color:var(--sota33-text)!important;backdrop-filter:blur(var(--sota33-raised-blur)) saturate(var(--sota33-raised-saturation));-webkit-backdrop-filter:blur(var(--sota33-raised-blur)) saturate(var(--sota33-raised-saturation));}
html[data-sota-prototype-module="telephony"] .sota-telephony-dialog::backdrop {background:rgba(0,14,11,.48);backdrop-filter:blur(4px);}
html[data-sota-prototype-module="telephony"] .sota-telephony-dialog header {display:flex;justify-content:space-between;gap:16px;align-items:start;}
html[data-sota-prototype-module="telephony"] .sota-telephony-dialog h2 {font-size:25px;font-weight:300!important;line-height:1.3;margin:0;}
html[data-sota-prototype-module="telephony"] .sota-telephony-dialog [data-number] {margin:6px 0 18px;}
html[data-sota-prototype-module="telephony"] .sota-telephony-form-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
html[data-sota-prototype-module="telephony"] .sota-telephony-form-fields label {min-width:0;display:grid;gap:7px;font-size:13px;color:var(--sota33-text);}
html[data-sota-prototype-module="telephony"] .sota-telephony-form-fields .wide {grid-column:1/-1;}
html[data-sota-prototype-module="telephony"] .sota-telephony-form-fields textarea {min-height:90px;}
html[data-sota-prototype-module="telephony"] .sota-telephony-dialog footer {display:flex;justify-content:flex-end;gap:10px;margin:16px 0 0;padding:0;border:0;}
html[data-sota-prototype-module="telephony"] body :is(button,input,select,textarea,summary):focus-visible {outline:3px solid var(--sota33-focus)!important;outline-offset:3px;}
/* Defeat only this host's broad legacy button background; keep package menu. */
html[data-sota-prototype-module="telephony"] .sota23-menu button {background:transparent!important;color:inherit!important;box-shadow:none!important;}
html[data-sota-prototype-module="telephony"] .sota23-links .sota-telephony-soon {min-height:43px;display:flex;align-items:center;gap:17px;width:100%;padding:8px 16px;border:1px solid transparent;border-radius:12px;white-space:nowrap;text-align:left;opacity:.55;cursor:default;font:inherit;}
@media(max-width:1050px){html[data-sota-prototype-module="telephony"] .sota-telephony-grid {grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:720px){
 html[data-sota-prototype-module="telephony"] body {padding:0 0 calc(96px + env(safe-area-inset-bottom,0px))!important;}
 html[data-sota-prototype-module="telephony"] main {padding:16px 12px 28px!important;}
 html[data-sota-prototype-module="telephony"] .hero {padding:18px 16px;gap:8px;}
 html[data-sota-prototype-module="telephony"] .hero h1 {font-size:27px!important;}
 html[data-sota-prototype-module="telephony"] .sota-telephony-total {font-size:15px;}
 html[data-sota-prototype-module="telephony"] .sota-telephony-grid {grid-template-columns:1fr;}
 html[data-sota-prototype-module="telephony"] .sota-telephony-toolbar {padding:16px;}
 html[data-sota-prototype-module="telephony"] #sota-telephony-query {flex-basis:100%;}
 html[data-sota-prototype-module="telephony"] .sota-telephony-search-row button {flex:1 1 auto;}
 html[data-sota-prototype-module="telephony"] .sota-telephony-dialog {padding:18px;}
 html[data-sota-prototype-module="telephony"] .sota-telephony-form-fields {grid-template-columns:1fr;}
 html[data-sota-prototype-module="telephony"] .sota-telephony-dialog footer {flex-wrap:wrap;}
 html[data-sota-prototype-module="telephony"] .sota23-menu button:is(.sota23-theme,.sota23-mobile-open) {background:var(--sota23-menu-popover)!important;}
 html[data-sota-prototype-module="telephony"] .sota23-menu .sota23-scrim {background:rgba(6,20,16,.38)!important;}
 html[data-sota-prototype-module="telephony"] .sota23-links .sota-telephony-soon {min-height:41px;padding:7px 11px;}
}
@media(prefers-reduced-transparency:reduce){html[data-sota-prototype-module="telephony"] body :is(.sota33-glass,.sota33-glass-raised) {background:var(--sota33-surface-solid)!important;backdrop-filter:none;-webkit-backdrop-filter:none;}}

/* Color contract. The host still loads sota.design-system.v1. Map its aliases
   at this module's root, so later !important legacy rules cannot bring back
   brown surfaces, olive labels or green primary actions in the light theme. */
html[data-sota-prototype-module="telephony"][data-sota33] {
  /* Custom-property URLs are consumed by this overlay stylesheet, whose URL
     differs from tokens.css. Use the pinned asset route, not ./honeycomb… . */
  --sota33-honeycomb:url('/prototype/assets/design/v2.3.6/honeycomb-raised-light.svg');
  color-scheme:light;
  --sota-color-bg-canvas:var(--sota33-canvas);
  --sota-color-bg-muted:var(--sota33-canvas-deep);
  --sota-color-bg-surface-solid:var(--sota33-surface-solid);
  --sota-color-surface-default:var(--sota33-glass);
  --sota-color-surface-elevated:var(--sota33-glass-raised);
  --sota-color-surface-modal:var(--sota33-popover-select);
  --sota-color-surface-interactive:var(--sota33-glass-raised);
  --sota-color-text-primary:var(--sota33-text);
  --sota-color-text-secondary:var(--sota33-muted);
  --sota-color-text-subtle:var(--sota33-faint);
  --sota-color-text-disabled:var(--sota33-muted);
  --sota-color-border-subtle:var(--sota33-border);
  --sota-color-border-luminous:var(--sota33-border-strong);
  --sota-color-field-bg:var(--sota33-glass-raised);
  --sota-color-field-text:var(--sota33-ink);
  --sota-color-field-placeholder:var(--sota33-muted);
  --sota-color-field-border:var(--sota33-border-strong);
  --sota-color-action-primary:var(--sota33-primary);
  --sota-color-on-action-primary:var(--sota33-on-primary);
  --sota-color-action-link:var(--sota33-primary);
  --sota-color-focus:var(--sota33-focus);
  --sota-color-selection-bg:var(--sota33-primary-soft);
  --sota-color-selection-text:var(--sota33-primary);
  --sota-shadow-surface:var(--sota33-shadow);
  --sota-shadow-elevated:var(--sota33-raised-shadow);
  --sota-blur-surface:blur(var(--sota33-glass-blur));
  --bg:var(--sota33-canvas);--bg-soft:var(--sota33-canvas-deep);
  --surface:var(--sota33-glass);--surface-solid:var(--sota33-surface-solid);--surface-raised:var(--sota33-glass-raised);
  --text-1:var(--sota33-text);--text-2:var(--sota33-muted);--text-3:var(--sota33-faint);
  --green-deep:var(--sota33-primary);--green-mid:var(--sota33-primary);
  --green-tint:var(--sota33-primary-soft);--green-tint-border:var(--sota33-border-strong);
  --paper:var(--sota33-glass);--ink:var(--sota33-ink);--muted:var(--sota33-muted);--line:var(--sota33-border);
}
html[data-sota-prototype-module="telephony"][data-sota33][data-theme="dark"] {
  color-scheme:dark;
  --sota33-honeycomb:url('/prototype/assets/design/v2.3.6/honeycomb-raised-dark.svg');
}
html[data-sota-prototype-module="telephony"][data-sota33] body {
  background-color:transparent!important;
  background-image:none!important;
  color:var(--sota33-text)!important;
}
/* ID scope beats the host's long button:not(...) rule, regardless of loading
   order. Neutral controls stay glass; only the save action uses the accent. */
html[data-sota-prototype-module="telephony"] :is(#sota-telephony-registry,#sota-telephony-assignment) .sota33-button {
  color:var(--sota33-ink)!important;background:var(--sota33-glass-raised)!important;border-color:var(--sota33-border-strong)!important;
}
html[data-sota-prototype-module="telephony"] :is(#sota-telephony-registry,#sota-telephony-assignment) .sota33-button:hover:not(:disabled) {
  color:var(--sota33-primary)!important;background:var(--sota33-primary-soft)!important;
}
html[data-sota-prototype-module="telephony"] #sota-telephony-assignment .sota33-button-primary {
  color:var(--sota33-on-primary)!important;background:var(--sota33-primary)!important;
}
html[data-sota-prototype-module="telephony"] #sota-telephony-assignment .sota33-button-primary:hover:not(:disabled) {background:var(--sota33-primary-hover)!important;color:var(--sota33-on-primary)!important;}
html[data-sota-prototype-module="telephony"] :is(#sota-telephony-registry,#sota-telephony-assignment) .sota33-input {
  color:var(--sota33-ink)!important;background:var(--sota33-glass-raised)!important;border-color:var(--sota33-border-strong)!important;
}
html[data-sota-prototype-module="telephony"] :is(#sota-telephony-registry,#sota-telephony-assignment) .sota33-input::placeholder {color:var(--sota33-muted)!important;opacity:.8;}
html[data-sota-prototype-module="telephony"] :is(#sota-telephony-registry,#sota-telephony-assignment) :is(label,dt,legend) {color:var(--sota33-muted)!important;}
html[data-sota-prototype-module="telephony"] :is(#sota-telephony-registry,#sota-telephony-assignment) :is(button,input,select,textarea,summary):focus-visible {outline:3px solid var(--sota33-focus)!important;border-color:var(--sota33-focus)!important;}
html[data-sota-prototype-module="telephony"] #sota-telephony-assignment select option {background:var(--sota33-surface-solid);color:var(--sota33-ink);}
/* Preserve the exact shared menu palette. Old constructor button rules must
   not fill disabled items or the theme/switcher controls with a primary color. */
html[data-sota-prototype-module="telephony"] #sota-telephony-menu button {background:transparent!important;color:var(--sota23-text)!important;border-color:transparent!important;}
html[data-sota-prototype-module="telephony"] #sota-telephony-menu button:is(.sota23-theme,.sota23-switcher-toggle):hover {background:var(--sota23-menu-hover)!important;}
html[data-sota-prototype-module="telephony"] #sota-telephony-menu :is(a,button):focus-visible {outline-color:var(--sota23-primary)!important;}
html[data-sota-prototype-module="telephony"] #sota-telephony-menu a {color:var(--sota23-text)!important;}
html[data-sota-prototype-module="telephony"] #sota-telephony-menu a[aria-current="page"] {color:var(--sota23-primary)!important;}
html[data-sota-prototype-module="telephony"] #sota-telephony-menu .sota-telephony-soon:disabled {background:transparent!important;color:var(--sota23-muted)!important;filter:none;}
@media(max-width:720px){
 html[data-sota-prototype-module="telephony"] #sota-telephony-menu button:is(.sota23-theme,.sota23-mobile-open) {background:var(--sota23-menu-popover)!important;border-color:var(--sota23-menu-border)!important;}
 html[data-sota-prototype-module="telephony"] #sota-telephony-menu .sota23-scrim {background:rgba(6,20,16,.38)!important;}
 /* The glass menu is a containing block. Anchor its dismiss layer above the
    bottom bar rather than fixing it inside that short filtered block. */
 html[data-sota-prototype-module="telephony"] #sota-telephony-menu .sota23-scrim {
   position:absolute;inset:auto 0 100% 0;height:calc(100dvh - 74px - env(safe-area-inset-bottom,0px));
 }
}
@media(prefers-reduced-transparency:reduce){
 html[data-sota-prototype-module="telephony"] body :is(.sota33-glass,.sota33-glass-raised) {background:var(--sota33-surface-solid)!important;}
}
/* Single-date calendar uses the shared CalendarMonth20 inside the modal,
   preserving the effectiveAt input and its native validation/form value. */
html[data-sota-prototype-module="telephony"] #sota-telephony-date {min-width:0;}
html[data-sota-prototype-module="telephony"] .sota-telephony-date-field {min-width:0;display:grid;align-content:start;gap:7px;}
html[data-sota-prototype-module="telephony"] #sota-telephony-date .telephony-single-date {min-width:0;}
html[data-sota-prototype-module="telephony"] #sota-telephony-date .telephony-calendar-panel {
  margin-top:10px;min-width:0;padding:12px;border:1px solid var(--sota33-border-strong);border-radius:18px;
  background:color-mix(in srgb,var(--sota33-canvas) 90%,transparent);backdrop-filter:blur(var(--sota33-raised-blur)) saturate(var(--sota33-raised-saturation));-webkit-backdrop-filter:blur(var(--sota33-raised-blur)) saturate(var(--sota33-raised-saturation));
}
html[data-sota-prototype-module="telephony"][data-theme="dark"] #sota-telephony-date .telephony-calendar-panel {background:color-mix(in srgb,var(--sota33-canvas-deep) 91%,transparent);}
html[data-sota-prototype-module="telephony"] #sota-telephony-date .calendar-shell-v20 {min-width:0;padding-top:4px;}
html[data-sota-prototype-module="telephony"] #sota-telephony-date .calendar-month-v20 {min-width:0;padding:0;}
html[data-sota-prototype-module="telephony"] #sota-telephony-date .calendar-grid {grid-template-columns:repeat(7,minmax(0,1fr));}
html[data-sota-prototype-module="telephony"] #sota-telephony-date .calendar-grid button {
  min-width:0;min-height:36px;width:100%;padding:0;border:0;color:var(--sota33-text)!important;background:transparent!important;
}
html[data-sota-prototype-module="telephony"] #sota-telephony-date .calendar-grid button:not(:disabled):hover {background:var(--sota33-primary-soft)!important;color:var(--sota33-ink)!important;}
html[data-sota-prototype-module="telephony"] #sota-telephony-date .calendar-grid button.is-selected {background:var(--sota33-calendar-selected)!important;color:var(--sota33-calendar-selected-text)!important;}
html[data-sota-prototype-module="telephony"] #sota-telephony-date .date-month-step {
  background:var(--sota33-glass-raised)!important;color:var(--sota33-text)!important;border:1px solid var(--sota33-border-strong)!important;
}
html[data-sota-prototype-module="telephony"] #sota-telephony-date .calendar-month-v20>strong {color:var(--sota33-text)!important;}
html[data-sota-prototype-module="telephony"] #sota-telephony-date .calendar-weekdays {color:var(--sota33-muted)!important;}
html[data-sota-prototype-module="telephony"] #sota-telephony-date .sota33-button {background:var(--sota33-glass-raised)!important;color:var(--sota33-ink)!important;}
html[data-sota-prototype-module="telephony"] #sota-telephony-date button:disabled {cursor:not-allowed;}
@media(prefers-reduced-transparency:reduce){
 html[data-sota-prototype-module="telephony"] #sota-telephony-date .telephony-calendar-panel {background:var(--sota33-surface-solid)!important;backdrop-filter:none;-webkit-backdrop-filter:none;}
}

/* Standalone host defaults formerly inherited from Constructor. */
html[data-sota-prototype-module="telephony"] body {font-size:15px;line-height:1.5;}
html[data-sota-prototype-module="telephony"] body :is(.sota33-input,.sota33-button) {padding:10px 14px;}
html[data-sota-prototype-module="telephony"] [hidden] {display:none!important;}
html[data-sota-prototype-module="telephony"] #telephony-fallback {position:fixed;z-index:10;left:0;top:0;padding:12px;font-size:13px;}
html[data-sota-prototype-module="telephony"][data-sota-live-menu-ready="true"] #telephony-fallback {display:none;}

/* Rules own their heading; the existing Telephony shell/menu/canvas remain. */
html[data-sota-prototype-module="telephony"][data-sota-telephony-tab="rules"] main>.hero {display:none!important;}

html[data-sota-prototype-module="telephony"][data-sota-telephony-tab="journal"] main>.hero {display:none!important;}
