/*
 * Authenticated settings workspace.
 * This layer uses the same paper, ink, yellow action loop and blue signal cord
 * as the public site, while keeping dense product controls calm and scannable.
 */

html.site-shell body.page-shell--app {
  --app-border: rgb(32 29 24 / 0.2);
  --app-border-strong: rgb(32 29 24 / 0.38);
  --app-surface: rgb(255 253 247 / 0.94);
  --app-surface-soft: rgb(247 242 230 / 0.76);
  --app-blue: #315bc5;
  --app-success: #23643a;
  --app-error: #a92d24;
  --app-shadow: 0 26px 58px -40px rgb(32 29 24 / 0.58), 0 8px 20px -16px rgb(32 29 24 / 0.3);
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  background:
    radial-gradient(circle at 82% 10%, rgb(255 232 26 / 0.13), transparent 22rem),
    var(--shell-paper);
  color: var(--shell-ink);
  line-height: 1.58;
  overflow-x: clip;
  accent-color: var(--shell-ink);
  caret-color: var(--app-blue);
}

html.site-shell body.page-shell--app::after {
  position: absolute;
  z-index: 0;
  top: clamp(330px, 35vw, 470px);
  left: 0;
  width: min(31vw, 430px);
  height: 4px;
  border-radius: 999px;
  background: var(--app-blue);
  pointer-events: none;
  content: "";
}

html.site-shell body.page-shell--app ::selection {
  background: var(--shell-yellow);
  color: var(--shell-ink);
}

html.site-shell body.page-shell--app :is(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid var(--app-blue);
  outline-offset: 3px;
}

html.site-shell body.page-shell--app [hidden] {
  display: none !important;
}

html.site-shell body.page-shell--app main {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), 1160px);
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  grid-template-areas:
    "intro object"
    "gate gate"
    "panel panel";
  gap: 0 clamp(34px, 6vw, 92px);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 88px) 0 clamp(74px, 9vw, 116px);
}

html.site-shell body.page-shell--app .masthead {
  align-self: stretch;
  width: 100%;
  margin-inline: 0;
}

html.site-shell body.page-shell--app[data-visual="app-settings-console"] main::before {
  grid-area: object;
  align-self: center;
  width: 100%;
  height: clamp(210px, 24vw, 300px);
  margin: 0;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(0 24px 20px rgb(32 29 24 / 0.14));
}

html.site-shell body.page-shell--app .app-intro {
  grid-area: intro;
  align-self: center;
  min-width: 0;
  padding: clamp(22px, 4vw, 48px) 0;
}

html.site-shell body.page-shell--app .app-intro h1 {
  max-width: 8ch;
  margin: 0;
  font-size: clamp(3.25rem, 7.2vw, 5.75rem);
  line-height: 0.94;
  letter-spacing: -0.038em;
}

html.site-shell body.page-shell--app .app-intro p {
  max-width: 31ch;
  margin: 22px 0 0;
  color: var(--shell-muted);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  font-weight: 700;
  line-height: 1.45;
}

html.site-shell body.page-shell--app #gate,
html.site-shell body.page-shell--app #panel {
  display: none;
}

html.site-shell body.page-shell--app #gate {
  grid-area: gate;
  width: min(100%, 690px);
  margin: clamp(24px, 5vw, 64px) auto 0;
}

html.site-shell body.page-shell--app #panel {
  grid-area: panel;
  min-width: 0;
  margin-top: clamp(34px, 6vw, 68px);
}

html.site-shell body.page-shell--app .settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(310px, 0.92fr);
  align-items: start;
  gap: clamp(28px, 4vw, 48px);
}

html.site-shell body.page-shell--app .settings-column {
  min-width: 0;
  display: grid;
  gap: clamp(24px, 3vw, 34px);
}

html.site-shell body.page-shell--app .settings-column--main {
  position: relative;
}

html.site-shell body.page-shell--app .settings-column--main::before {
  position: absolute;
  z-index: -1;
  top: 58px;
  bottom: 58px;
  inset-inline-start: -25px;
  width: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--app-blue) 72%, var(--shell-paper));
  content: "";
}

html.site-shell body.page-shell--app .app-card {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: clamp(25px, 3.7vw, 38px);
  border: 1px solid var(--app-border);
  border-radius: 34px 9px 36px 12px;
  background: var(--app-surface);
  box-shadow: var(--app-shadow);
  isolation: isolate;
}

html.site-shell body.page-shell--app .app-card:nth-child(even) {
  border-radius: 12px 36px 10px 34px;
}

html.site-shell body.page-shell--app .app-card::before {
  position: absolute;
  z-index: 2;
  top: 26px;
  inset-inline-end: 26px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--shell-ink);
  border-radius: 50%;
  background: var(--shell-yellow);
  box-shadow: 0 4px 9px rgb(32 29 24 / 0.13);
  content: "";
}

html.site-shell body.page-shell--app .app-card h2 {
  max-width: calc(100% - 34px);
  margin: 0 0 24px;
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

html.site-shell body.page-shell--app .app-card--subscription {
  background:
    linear-gradient(var(--app-surface), var(--app-surface)) padding-box,
    var(--app-surface);
}

html.site-shell body.page-shell--app .app-card--subscription::after {
  position: absolute;
  z-index: -1;
  right: -18px;
  bottom: 26px;
  width: 56px;
  height: 4px;
  border-radius: 999px;
  background: var(--app-blue);
  content: "";
}

html.site-shell body.page-shell--app .app-alert {
  grid-area: gate;
  width: min(100%, 760px);
  margin: 32px auto 0;
}

html.site-shell body.page-shell--app label,
html.site-shell body.page-shell--app legend {
  display: block;
  margin: 0 0 8px;
  padding: 0;
  color: var(--shell-ink);
  font-weight: 800;
  line-height: 1.35;
}

html.site-shell body.page-shell--app fieldset {
  min-width: 0;
  margin: 24px 0 0;
  padding: 23px 0 0;
  border: 0;
  border-top: 1px solid var(--app-border);
}

html.site-shell body.page-shell--app .fieldset-flush {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

html.site-shell body.page-shell--app .field-offset {
  margin-top: 14px;
}

html.site-shell body.page-shell--app :is(
  input[type="text"],
  input[type="email"],
  input[type="date"],
  input[type="tel"],
  input[type="time"],
  input[type="url"],
  textarea
) {
  width: 100%;
  min-height: 50px;
  padding: 11px 13px;
  border: 1.5px solid var(--app-border-strong);
  border-radius: 14px 4px 15px 5px;
  background: rgb(255 253 247 / 0.9);
  color: var(--shell-ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.45;
  box-shadow: inset 0 2px 5px rgb(32 29 24 / 0.045);
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

html.site-shell body.page-shell--app :is(input, textarea)::placeholder {
  color: color-mix(in srgb, var(--shell-muted) 78%, var(--shell-paper));
  opacity: 1;
}

html.site-shell body.page-shell--app :is(input, textarea):hover {
  border-color: var(--shell-ink);
}

html.site-shell body.page-shell--app :is(input, textarea):focus {
  border-color: var(--app-blue);
  background: var(--shell-white);
  box-shadow: 0 0 0 4px rgb(49 91 197 / 0.1), inset 0 1px 2px rgb(32 29 24 / 0.04);
}

html.site-shell body.page-shell--app :is(input, textarea):disabled {
  border-style: dashed;
  background: rgb(234 223 202 / 0.48);
  color: var(--shell-muted);
  cursor: not-allowed;
}

html.site-shell body.page-shell--app textarea {
  min-height: 82px;
  resize: vertical;
}

html.site-shell body.page-shell--app input[type="checkbox"],
html.site-shell body.page-shell--app input[type="radio"] {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
  margin: 0;
}

html.site-shell body.page-shell--app .muted {
  max-width: 70ch;
  margin: 8px 0 0;
  color: var(--shell-muted);
  font-size: 0.91rem;
  line-height: 1.58;
}

html.site-shell body.page-shell--app .card-lead {
  margin-top: 0;
}

html.site-shell body.page-shell--app .styles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

html.site-shell body.page-shell--app .styles label {
  position: relative;
  min-width: 92px;
  min-height: 46px;
  flex: 1 1 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 9px 13px;
  border: 1.5px solid var(--app-border-strong);
  border-radius: 999px;
  background: var(--app-surface-soft);
  text-align: center;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

html.site-shell body.page-shell--app .styles label:hover {
  border-color: var(--shell-ink);
  transform: translateY(-1px);
}

html.site-shell body.page-shell--app .styles input {
  position: absolute;
  opacity: 0;
}

html.site-shell body.page-shell--app .styles label:has(input:checked) {
  border-color: var(--shell-ink);
  background: var(--shell-yellow);
  box-shadow: 0 6px 15px -11px var(--shell-ink);
}

html.site-shell body.page-shell--app .styles label:has(input:checked)::after {
  width: 7px;
  height: 7px;
  position: absolute;
  inset-inline-end: 13px;
  border-radius: 50%;
  background: var(--shell-ink);
  content: "";
}

html.site-shell body.page-shell--app .styles.rings {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}

html.site-shell body.page-shell--app .styles.rings label {
  min-width: 0;
  padding-inline: 4px;
  font-variant-numeric: tabular-nums;
}

html.site-shell body.page-shell--app .styles.rings label:has(input:checked)::after {
  content: none;
}

html.site-shell body.page-shell--app .voice-row {
  min-width: 0;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 8px 9px 8px 13px;
  border: 1px solid var(--app-border);
  border-radius: 15px 5px 16px 6px;
  background: var(--app-surface-soft);
  transition: border-color 140ms ease, background-color 140ms ease;
}

html.site-shell body.page-shell--app .voice-row label {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-weight: 400;
  cursor: pointer;
}

html.site-shell body.page-shell--app .voice-row label > span {
  min-width: 0;
}

html.site-shell body.page-shell--app .voice-row b {
  font-weight: 800;
}

html.site-shell body.page-shell--app .voice-row .vdesc {
  color: var(--shell-muted);
  font-size: 0.86rem;
}

html.site-shell body.page-shell--app .voice-row:has(input:checked) {
  border-color: var(--shell-ink);
  background: color-mix(in srgb, var(--shell-yellow) 34%, var(--shell-white));
}

html.site-shell body.page-shell--app button {
  width: 100%;
  margin-top: 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

html.site-shell body.page-shell--app button.secondary {
  background: var(--shell-white);
}

html.site-shell body.page-shell--app button.secondary:hover {
  background: var(--shell-yellow);
}

html.site-shell body.page-shell--app button.play {
  width: auto;
  min-width: 78px;
  min-height: 44px;
  flex: 0 0 auto;
  margin: 0;
  padding: 8px 13px;
  border: 1.5px solid var(--shell-ink);
  border-radius: 999px;
  background: var(--shell-yellow);
  color: var(--shell-ink);
  font-size: 0.85rem;
}

html.site-shell body.page-shell--app button.play::before,
html.site-shell body.page-shell--app .act-actions button::before {
  content: none;
}

html.site-shell body.page-shell--app .pause-row {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 0;
  padding: 10px 13px;
  border: 1px solid var(--app-border);
  border-radius: 13px 4px 14px 5px;
  background: var(--app-surface-soft);
  cursor: pointer;
}

html.site-shell body.page-shell--app .pause-row--spaced {
  margin-top: 14px;
}

html.site-shell body.page-shell--app .savebar {
  position: sticky;
  z-index: 30;
  top: 118px;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 clamp(28px, 4vw, 46px);
  padding: 11px clamp(16px, 3vw, 26px);
  border: 1px solid var(--app-border);
  border-radius: 24px 7px 26px 9px;
  background: color-mix(in srgb, var(--shell-paper) 94%, transparent);
  box-shadow: 0 14px 32px -24px rgb(32 29 24 / 0.65);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

html.site-shell body.page-shell--app .savebar button {
  width: min(100%, 280px);
  flex: 0 0 auto;
  margin: 0;
}

html.site-shell body.page-shell--app .savebar .status {
  flex: 1;
  margin: 0;
}

html.site-shell body.page-shell--app .status {
  min-height: 0;
  margin-top: 12px;
  color: var(--shell-muted);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.45;
}

html.site-shell body.page-shell--app .status:empty {
  display: none;
}

html.site-shell body.page-shell--app .status.ok {
  color: var(--app-success);
}

html.site-shell body.page-shell--app .status.err {
  color: var(--app-error);
}

html.site-shell body.page-shell--app #gate-msg {
  margin: 0 0 22px;
  font-weight: 700;
}

html.site-shell body.page-shell--app #gate form + .status {
  margin-top: 14px;
}

html.site-shell body.page-shell--app #gate .alt {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--app-border);
}

html.site-shell body.page-shell--app #gate .alt summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--app-blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  cursor: pointer;
}

html.site-shell body.page-shell--app #gate .alt form {
  margin-top: 18px;
}

html.site-shell body.page-shell--app #act-block {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--app-border);
  border-radius: 16px 5px 18px 6px;
  background: color-mix(in srgb, var(--shell-yellow) 16%, var(--shell-white));
}

html.site-shell body.page-shell--app code {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgb(32 29 24 / 0.07);
  color: var(--shell-ink);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.9em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

html.site-shell body.page-shell--app .act-actions {
  display: flex;
  gap: 10px;
  margin: 16px 0 0;
}

html.site-shell body.page-shell--app .act-actions :is(a, button) {
  min-height: 46px;
  flex: 1;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 9px 12px;
  border: 1.5px solid var(--shell-ink);
  border-radius: 999px;
  background: var(--shell-white);
  color: var(--shell-ink);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

html.site-shell body.page-shell--app .act-actions .lead {
  background: var(--shell-yellow);
}

/* the .ios-guide paste walkthrough is gone: it existed for a documented Apple
   restriction on tel: with * or # that a real iPhone does not enforce (17.8.26) */

html.site-shell body.page-shell--app .call-row {
  padding: 14px 0;
  border-top: 1px solid var(--app-border);
  font-size: 0.95rem;
}

html.site-shell body.page-shell--app .call-row:first-child {
  padding-top: 0;
  border-top: 0;
}

html.site-shell body.page-shell--app .call-row .when {
  color: var(--shell-muted);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

html.site-shell body.page-shell--app .call-row .who {
  margin-top: 2px;
  font-weight: 800;
}

html.site-shell body.page-shell--app .call-row .what {
  margin-top: 4px;
}

html.site-shell body.page-shell--app .call-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-inline-start: 7px;
  padding: 2px 8px;
  border: 1px solid var(--app-border-strong);
  border-radius: 999px;
  background: var(--shell-white);
  font-size: 0.76rem;
  font-weight: 800;
}

html.site-shell body.page-shell--app .call-badge.spam {
  background: var(--shell-paper-deep);
}

html.site-shell body.page-shell--app .call-badge.urgent {
  background: var(--shell-yellow);
}

html.site-shell body.page-shell--app .call-badge.line {
  border-color: rgb(49 91 197 / 0.38);
  background: rgb(49 91 197 / 0.08);
  color: #2349a5;
}

html.site-shell body.page-shell--app .call-badge.lead-state {
  background: color-mix(in srgb, var(--shell-yellow) 22%, var(--shell-white));
}

html.site-shell body.page-shell--app .line-profiles {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--app-border);
}

html.site-shell body.page-shell--app .line-profiles h3 {
  margin: 0;
  font-size: 1.15rem;
}

html.site-shell body.page-shell--app #line-profiles-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

html.site-shell body.page-shell--app .line-profile {
  border: 1px solid var(--app-border-strong);
  border-radius: 14px 5px 15px 6px;
  background: var(--shell-white);
  overflow: clip;
}

html.site-shell body.page-shell--app .line-profile > summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 13px;
  list-style: none;
  cursor: pointer;
}

html.site-shell body.page-shell--app .line-profile > summary::-webkit-details-marker {
  display: none;
}

html.site-shell body.page-shell--app .line-profile > summary span {
  color: var(--shell-muted);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

html.site-shell body.page-shell--app .line-profile[open] > summary {
  border-bottom: 1px solid var(--app-border);
  background: color-mix(in srgb, var(--shell-yellow) 12%, var(--shell-white));
}

html.site-shell body.page-shell--app .line-profile__body {
  display: grid;
  gap: 14px;
  padding: 15px 13px 18px;
}

html.site-shell body.page-shell--app .line-profile__field label {
  margin-bottom: 5px;
  font-size: 0.88rem;
}

html.site-shell body.page-shell--app .line-profile__save {
  margin-top: 2px;
}

html.site-shell body.page-shell--app .lead-reminder {
  margin-bottom: 15px;
  padding: 12px 14px;
  border: 1px solid var(--shell-ink);
  border-radius: 13px 4px 14px 5px;
  background: var(--shell-yellow);
  font-weight: 800;
}

html.site-shell body.page-shell--app .call-row--overdue {
  margin-inline-start: -12px;
  padding-inline-start: 10px;
  border-inline-start: 3px solid var(--shell-yellow);
}

html.site-shell body.page-shell--app .lead-actions {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  margin-top: 10px;
}

html.site-shell body.page-shell--app .lead-actions > a {
  min-height: 44px;
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1.5px solid var(--shell-ink);
  border-radius: 999px;
  background: var(--shell-yellow);
  color: var(--shell-ink);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

html.site-shell body.page-shell--app .lead-actions > label {
  min-width: 120px;
  flex: 1;
  margin: 0;
  font-size: 0.8rem;
}

html.site-shell body.page-shell--app .lead-actions > label span {
  display: block;
  margin-bottom: 3px;
}

html.site-shell body.page-shell--app .lead-actions select {
  width: 100%;
}

html.site-shell body.page-shell--app .quiet-times {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

html.site-shell body.page-shell--app .quiet-times label {
  margin: 0;
  font-weight: 700;
}

html.site-shell body.page-shell--app footer {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), 1160px);
  max-width: none;
  margin: auto auto 0;
  padding: 22px 0 max(28px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--app-border);
}

html.site-shell body.page-shell--app .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

html.site-shell body.page-shell--app .footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--shell-ink);
  font-weight: 800;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

@media (max-width: 900px) {
  html.site-shell body.page-shell--app main {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.82fr);
    gap: 0 28px;
  }

  html.site-shell body.page-shell--app .settings-grid {
    grid-template-columns: 1fr;
  }

  html.site-shell body.page-shell--app .settings-column--main::before {
    content: none;
  }
}

@media (max-width: 640px) {
  html.site-shell body.page-shell--app::after {
    top: 330px;
    width: 24%;
  }

  html.site-shell body.page-shell--app main {
    width: min(calc(100% - 30px), 560px);
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "object"
      "gate"
      "panel";
    gap: 0;
    padding: 34px 0 72px;
  }

  html.site-shell body.page-shell--app .app-intro {
    padding: 10px 5px 0;
  }

  html.site-shell body.page-shell--app .app-intro h1 {
    max-width: 100%;
    font-size: clamp(2.55rem, 13vw, 3.35rem);
    line-height: 0.98;
  }

  html.site-shell body.page-shell--app .app-intro p {
    max-width: 28ch;
    margin-top: 13px;
    font-size: 1rem;
  }

  html.site-shell body.page-shell--app[data-visual="app-settings-console"] main::before {
    width: min(76vw, 280px);
    height: 160px;
    justify-self: center;
    margin: 2px auto -5px;
  }

  html.site-shell body.page-shell--app #gate,
  html.site-shell body.page-shell--app #panel {
    margin-top: 22px;
  }

  html.site-shell body.page-shell--app .savebar {
    top: 64px;
    min-height: 64px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 24px;
    padding: 9px 14px;
    border-radius: 18px 5px 20px 7px;
    background: var(--shell-paper);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  html.site-shell body.page-shell--app .savebar button {
    width: 100%;
  }

  html.site-shell body.page-shell--app .savebar .status {
    font-size: 0.82rem;
    text-align: center;
  }

  html.site-shell body.page-shell--app .settings-grid,
  html.site-shell body.page-shell--app .settings-column {
    gap: 22px;
  }

  html.site-shell body.page-shell--app .app-card {
    padding: 23px 19px 26px;
    border-radius: 26px 7px 28px 9px;
  }

  html.site-shell body.page-shell--app .app-card:nth-child(even) {
    border-radius: 8px 28px 7px 26px;
  }

  html.site-shell body.page-shell--app .app-card::before {
    top: 22px;
    inset-inline-end: 20px;
  }

  html.site-shell body.page-shell--app .app-card h2 {
    margin-bottom: 20px;
    font-size: 1.48rem;
  }

  html.site-shell body.page-shell--app :is(
    input[type="text"],
    input[type="email"],
    input[type="date"],
    input[type="tel"],
    input[type="time"],
    input[type="url"],
    textarea
  ) {
    max-width: 100%;
    font-size: 16px;
  }

  html.site-shell body.page-shell--app .styles.channels label {
    flex-basis: calc(50% - 5px);
  }

  html.site-shell body.page-shell--app .styles.rings {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  html.site-shell body.page-shell--app .voice-row {
    align-items: stretch;
  }

  html.site-shell body.page-shell--app .voice-row label {
    align-items: flex-start;
    padding-block: 4px;
  }

  html.site-shell body.page-shell--app button.play {
    min-width: 74px;
  }

  html.site-shell body.page-shell--app .act-actions,
  html.site-shell body.page-shell--app .quiet-times {
    grid-template-columns: 1fr;
  }

  html.site-shell body.page-shell--app .act-actions {
    display: grid;
  }

  html.site-shell body.page-shell--app footer {
    width: min(calc(100% - 30px), 560px);
  }
}

@media (max-width: 390px) {
  html.site-shell body.page-shell--app .masthead-brand {
    font-size: 1.22rem;
  }

  html.site-shell body.page-shell--app .masthead-cta {
    padding-inline: 9px;
    font-size: 0.78rem;
  }

  html.site-shell body.page-shell--app .styles.channels label {
    flex-basis: 100%;
  }

  html.site-shell body.page-shell--app .voice-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  html.site-shell body.page-shell--app button.play {
    width: 100%;
  }
}

html.site-shell.a11y-large-text body.page-shell--app main,
html.site-shell.a11y-large-text body.page-shell--app .settings-grid {
  grid-template-columns: 1fr;
  grid-template-areas:
    "intro"
    "object"
    "gate"
    "panel";
}

html.site-shell.a11y-large-text body.page-shell--app .settings-column--main::before {
  content: none;
}

html.site-shell.a11y-large-text body.page-shell--app .styles,
html.site-shell.a11y-large-text body.page-shell--app .styles.rings {
  display: grid;
  grid-template-columns: 1fr;
}

html.site-shell.a11y-contrast body.page-shell--app .app-card,
html.site-shell.a11y-contrast body.page-shell--app .savebar,
html.site-shell.a11y-contrast body.page-shell--app :is(input, textarea, select, .styles label, .voice-row, .pause-row) {
  border-color: var(--shell-ink);
  background: var(--shell-white);
}

/* Compact settings: the current value is visible at a glance and the controls
   stay behind a native disclosure until the customer actually needs them. */
html.site-shell body.page-shell--app main {
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.52fr);
  gap: 0 clamp(24px, 4vw, 54px);
  padding-block: clamp(34px, 5vw, 58px) clamp(68px, 8vw, 96px);
}

html.site-shell body.page-shell--app[data-visual="app-settings-console"] main::before {
  height: clamp(155px, 18vw, 220px);
  filter: drop-shadow(0 18px 18px rgb(32 29 24 / 0.12));
}

html.site-shell body.page-shell--app .app-intro {
  padding-block: clamp(12px, 2.5vw, 30px);
}

html.site-shell body.page-shell--app .app-intro h1 {
  max-width: 7ch;
  font-size: clamp(3rem, 5.7vw, 4.65rem);
  line-height: 0.98;
}

html.site-shell body.page-shell--app .app-intro p {
  margin-top: 14px;
  font-size: clamp(1rem, 1.25vw, 1.13rem);
}

html.site-shell body.page-shell--app #panel {
  margin-top: clamp(24px, 4vw, 42px);
}

html.site-shell body.page-shell--app .settings-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: clamp(20px, 3vw, 34px);
}

html.site-shell body.page-shell--app .settings-column {
  gap: 12px;
}

html.site-shell body.page-shell--app .settings-column--main::before,
html.site-shell body.page-shell--app .app-disclosure::before,
html.site-shell body.page-shell--app .app-card--subscription::after {
  content: none;
}

html.site-shell body.page-shell--app .app-card.app-disclosure {
  padding: 0;
  border-color: rgb(32 29 24 / 0.18);
  border-radius: 18px 6px 19px 7px;
  background: rgb(255 253 247 / 0.9);
  box-shadow: 0 18px 40px -34px rgb(32 29 24 / 0.55), 0 5px 15px -13px rgb(32 29 24 / 0.28);
  isolation: auto;
  overflow: clip;
}

html.site-shell body.page-shell--app .app-card.app-disclosure:nth-child(even) {
  border-radius: 7px 19px 6px 18px;
}

html.site-shell body.page-shell--app .app-disclosure__summary,
html.site-shell body.page-shell--app .field-disclosure > summary,
html.site-shell body.page-shell--app .call-day > summary {
  list-style: none;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

html.site-shell body.page-shell--app .app-disclosure__summary::-webkit-details-marker,
html.site-shell body.page-shell--app .field-disclosure > summary::-webkit-details-marker,
html.site-shell body.page-shell--app .call-day > summary::-webkit-details-marker {
  display: none;
}

html.site-shell body.page-shell--app .app-disclosure__summary {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 20px;
  transition: background-color 150ms ease;
}

html.site-shell body.page-shell--app .app-disclosure__summary:hover {
  background: rgb(247 242 230 / 0.76);
}

html.site-shell body.page-shell--app .app-disclosure[open] > .app-disclosure__summary {
  border-bottom: 1px solid var(--app-border);
  background: color-mix(in srgb, var(--shell-yellow) 9%, var(--shell-white));
}

html.site-shell body.page-shell--app .app-disclosure__heading {
  min-width: 0;
  display: grid;
  gap: 3px;
}

html.site-shell body.page-shell--app .app-disclosure__title {
  color: var(--shell-ink);
  font-family: "Shell Frank", "Miriam Libre", serif;
  font-size: clamp(1.18rem, 1.9vw, 1.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

html.site-shell body.page-shell--app .app-disclosure__meta {
  max-width: 46ch;
  color: var(--shell-muted);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

html.site-shell body.page-shell--app .app-disclosure__chevron {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

html.site-shell body.page-shell--app .app-disclosure__chevron::before,
html.site-shell body.page-shell--app .app-disclosure__chevron::after {
  position: absolute;
  top: 8px;
  right: 2px;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: var(--shell-ink);
  content: "";
  transition: transform 160ms ease;
}

html.site-shell body.page-shell--app .app-disclosure__chevron::after {
  transform: rotate(90deg);
}

html.site-shell body.page-shell--app .app-disclosure[open] > summary .app-disclosure__chevron::after {
  transform: rotate(0deg);
}

html.site-shell body.page-shell--app .app-disclosure__body {
  padding: 22px 20px 25px;
}

html.site-shell body.page-shell--app .field-disclosure {
  margin-top: 22px;
  border: 1px solid var(--app-border-strong);
  border-radius: 13px 4px 14px 5px;
  background: var(--app-surface-soft);
  overflow: clip;
}

html.site-shell body.page-shell--app .field-disclosure > summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  font-weight: 800;
}

html.site-shell body.page-shell--app .field-disclosure > summary::after {
  flex: 0 0 auto;
  color: var(--app-blue);
  font-size: 0.8rem;
  content: "פתיחה";
}

html.site-shell body.page-shell--app .field-disclosure[open] > summary::after {
  content: "סגירה";
}

html.site-shell body.page-shell--app .field-disclosure > summary strong {
  min-width: 0;
  margin-inline-start: auto;
  color: var(--app-blue);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

html.site-shell body.page-shell--app .field-disclosure[open] > summary {
  border-bottom: 1px solid var(--app-border);
  background: var(--shell-white);
}

html.site-shell body.page-shell--app .field-disclosure__body {
  padding: 12px;
}

html.site-shell body.page-shell--app #voices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

html.site-shell body.page-shell--app .voice-row {
  min-height: 54px;
  margin: 0;
  padding: 7px 8px 7px 10px;
  border-radius: 11px 4px 12px 5px;
  background: var(--shell-white);
}

html.site-shell body.page-shell--app .voice-row .vdesc {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  line-height: 1.3;
}

html.site-shell body.page-shell--app button.play {
  min-width: 68px;
  min-height: 42px;
  padding-inline: 10px;
  background: var(--shell-white);
  font-size: 0.8rem;
}

html.site-shell body.page-shell--app .savebar {
  top: 104px;
  min-height: 58px;
  gap: 14px;
  margin-bottom: 18px;
  padding: 7px 10px;
  border-radius: 15px 5px 16px 6px;
  background: var(--shell-paper);
  box-shadow: 0 12px 28px -24px rgb(32 29 24 / 0.65);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html.site-shell body.page-shell--app .savebar button {
  width: min(100%, 210px);
  min-height: 44px;
}

html.site-shell body.page-shell--app select {
  min-height: 44px;
  padding: 8px 12px;
  border: 1.5px solid var(--app-border-strong);
  border-radius: 11px 4px 12px 5px;
  background: var(--shell-white);
  color: var(--shell-ink);
  font: inherit;
  font-size: 0.92rem;
}

html.site-shell body.page-shell--app select:focus {
  border-color: var(--app-blue);
}

html.site-shell body.page-shell--app .calls-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

html.site-shell body.page-shell--app .calls-toolbar > div {
  min-width: 0;
  flex: 1;
}

html.site-shell body.page-shell--app .calls-toolbar label {
  margin: 0;
  font-size: 0.9rem;
}

html.site-shell body.page-shell--app .calls-toolbar select {
  width: 100%;
}

html.site-shell body.page-shell--app .call-day {
  border-top: 1px solid var(--app-border);
}

html.site-shell body.page-shell--app .call-day:first-child {
  border-top: 0;
}

html.site-shell body.page-shell--app .call-day > summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 2px;
}

html.site-shell body.page-shell--app .call-day__label {
  font-weight: 800;
}

html.site-shell body.page-shell--app .call-day__count {
  color: var(--shell-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

html.site-shell body.page-shell--app .call-day__rows {
  padding: 0 12px 8px;
  border-inline-start: 1px solid var(--app-border);
}

html.site-shell body.page-shell--app .call-row {
  padding-block: 11px;
}

html.site-shell body.page-shell--app .call-row .who {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

html.site-shell body.page-shell--app .call-badge {
  margin-inline-start: 2px;
}

@media (max-width: 900px) {
  html.site-shell body.page-shell--app main {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 0.48fr);
  }

  html.site-shell body.page-shell--app .settings-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  html.site-shell body.page-shell--app .settings-column {
    gap: 12px;
  }
}

@media (max-width: 640px) {
  html.site-shell body.page-shell--app::after {
    display: none;
  }

  html.site-shell body.page-shell--app main {
    width: min(calc(100% - 30px), 560px);
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "intro"
      "object"
      "gate"
      "panel";
    gap: 0;
    padding-top: 30px;
  }

  html.site-shell body.page-shell--app[data-visual="app-settings-console"] main::before {
    display: none;
  }

  html.site-shell body.page-shell--app .app-intro {
    width: 100%;
    padding-inline: 2px;
  }

  html.site-shell body.page-shell--app .app-intro h1 {
    max-width: 100%;
    font-size: clamp(2.7rem, 12vw, 3.2rem);
    text-wrap: balance;
  }

  html.site-shell body.page-shell--app #gate,
  html.site-shell body.page-shell--app #panel,
  html.site-shell body.page-shell--app .settings-grid,
  html.site-shell body.page-shell--app .settings-column {
    width: 100%;
    min-width: 0;
  }

  html.site-shell body.page-shell--app #gate {
    margin-inline: 0;
  }

  html.site-shell body.page-shell--app #panel {
    margin-top: 18px;
  }

  html.site-shell body.page-shell--app .savebar {
    top: 64px;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 7px;
  }

  html.site-shell body.page-shell--app .savebar button {
    width: 100%;
    min-width: 0;
  }

  html.site-shell body.page-shell--app .app-card.app-disclosure,
  html.site-shell body.page-shell--app .app-card.app-disclosure:nth-child(even) {
    border-radius: 15px 5px 16px 6px;
  }

  html.site-shell body.page-shell--app .app-disclosure__summary {
    min-height: 70px;
    padding: 13px 15px;
  }

  html.site-shell body.page-shell--app .app-disclosure__body {
    width: 100%;
    min-width: 0;
    padding: 19px 15px 22px;
  }

  html.site-shell body.page-shell--app .field-disclosure > summary {
    flex-wrap: wrap;
  }

  html.site-shell body.page-shell--app .field-disclosure > summary strong {
    flex: 1 1 100%;
    margin-inline-start: 0;
  }

  html.site-shell body.page-shell--app .styles label {
    min-width: 0;
  }

  html.site-shell body.page-shell--app #voices {
    grid-template-columns: 1fr;
  }

  html.site-shell body.page-shell--app .calls-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 7px;
  }

  html.site-shell body.page-shell--app .calls-toolbar select {
    width: 100%;
  }

  html.site-shell body.page-shell--app .lead-actions {
    align-items: stretch;
    flex-direction: column;
  }

  html.site-shell body.page-shell--app .lead-actions > label {
    width: 100%;
  }

  html.site-shell body.page-shell--app .muted {
    font-size: 1rem;
    line-height: 1.6;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.site-shell body.page-shell--app *,
  html.site-shell body.page-shell--app *::before,
  html.site-shell body.page-shell--app *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
