/* Settings "Public page" card and the Inquiries screen (issue #790). Every
   selector is prefixed ppa- or inq-, so nothing here can touch an existing
   screen. Application tokens only. */

.ppa-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ppa-card .form-group { margin-top: 16px; }
.ppa-card textarea.input { width: 100%; resize: vertical; font-family: inherit; }
.ppa-hint { margin-top: 4px; font-size: 13px; color: var(--text-secondary); }
.ppa-label { display: block; font-weight: 500; margin-bottom: 6px; }
.ppa-row { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.ppa-check { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.ppa-check input { width: 18px; height: 18px; }
.ppa-slug { display: flex; align-items: center; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; background: var(--bg-primary); }
.ppa-slug-prefix { padding: 0 4px 0 12px; color: var(--text-secondary); white-space: nowrap; }
.ppa-slug .input { border: 0; flex: 1 1 auto; min-width: 0; }
.ppa-status { min-height: 20px; margin-top: 6px; font-size: 14px; color: var(--text-secondary); }
.ppa-status.ok { color: var(--success-color, #2f6b4f); }
.ppa-status.bad { color: var(--danger-color, #9a3b2e); }
.ppa-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.ppa-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.ppa-photo { border: 1px solid var(--border-color); border-radius: 12px; padding: 16px; }
.ppa-photo-title { font-weight: 500; margin-bottom: 8px; }
.ppa-thumb { display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 8px; border: 1px dashed var(--border-color); color: var(--text-secondary); font-size: 14px; background: var(--bg-secondary); }
.ppa-thumb-header { aspect-ratio: 4 / 3; max-width: 280px; }
.ppa-thumb-portrait { aspect-ratio: 4 / 5; max-width: 160px; }
.ppa-thumb.has { border-style: solid; }
.ppa-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ppa-photo-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ppa-fees { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.ppa-fee { display: grid; grid-template-columns: minmax(0, 1fr) 140px auto; gap: 8px; align-items: end; }
.ppa-fee label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text-secondary); }
.ppa-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; }
.ppa-actions .ppa-status { margin: 0 0 0 8px; }

@media (max-width: 600px) {
    .ppa-grid, .ppa-photos { grid-template-columns: minmax(0, 1fr); }
    /* Each fee is a small stacked group: Label above Price. */
    .ppa-fee { grid-template-columns: minmax(0, 1fr); border: 1px solid var(--border-color); border-radius: 10px; padding: 12px; }
    .ppa-fee .ppa-fee-x { justify-self: start; }
    .ppa-slug { flex-wrap: wrap; }
    .ppa-slug-prefix { padding: 8px 12px 0; width: 100%; }
    .ppa-thumb-header { max-width: none; }
}

/* ── Inquiries ── */
.inq-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border-color); margin-bottom: 16px; overflow-x: auto; }
.inq-tab { appearance: none; background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 14px; font: inherit; font-weight: 500; color: var(--text-secondary); cursor: pointer; min-height: 44px; white-space: nowrap; }
.inq-tab.active { color: var(--text-primary); border-bottom-color: var(--primary-color); }

/* Requests | Website. Underline sub-tabs in the same look as the .workspace-subnav rows on People and
   Billing: 14px, muted until selected, a 2px sage underline on the selected one. Under 769px they become
   the same two-part switch those rows turn into. */
.inq-sections { display: flex; gap: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--border-color); }
.inq-section-tab { appearance: none; padding: 8px 2px 10px; background: transparent; border: 0; border-bottom: 2px solid transparent; font: inherit; font-size: 14px; font-weight: 500; color: var(--text-secondary); cursor: pointer; }
.inq-section-tab:hover { color: var(--text-primary); }
.inq-section-tab.active { color: var(--text-primary); font-weight: 600; border-bottom-color: #486141; }
.inq-section-tab:focus-visible { outline: 3px solid #486141; outline-offset: 2px; }
@media (max-width: 768px) {
  .inq-sections { gap: 0; width: 100%; height: 48px; padding: 2px; box-sizing: border-box; margin-bottom: var(--space-4, 16px); background: var(--stone-200, #ECE8E0); border: 0; border-radius: var(--radius-4, 12px); }
  .inq-section-tab { flex: 1 1 0; height: 44px; min-height: 44px; padding: 0 var(--space-2, 8px); border: 0; border-radius: calc(var(--radius-4, 12px) - 2px); color: var(--stone-700, #4A4F54); }
  .inq-section-tab.active { background: var(--white, #FFFFFF); color: var(--ink-graphite, #2B2F33); box-shadow: var(--shadow-1, 0 1px 2px rgba(31, 30, 26, 0.08)); }
  .inq-section-tab:focus-visible { outline-offset: -3px; }
}
.inq-n { margin-left: 4px; font-size: 13px; font-weight: 400; color: var(--text-secondary); }
.inq-shell { display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); gap: 16px; align-items: start; }
.inq-shell.inq-is-empty { grid-template-columns: minmax(0, 1fr); }
.inq-list { display: flex; flex-direction: column; border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; background: var(--bg-primary); }
.inq-is-empty .inq-list { display: none; }
.inq-item { appearance: none; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--border-color); padding: 14px 16px; font: inherit; color: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 4px; min-height: 44px; }
.inq-item:last-child { border-bottom: 0; }
.inq-item:hover, .inq-item.active { background: var(--bg-secondary); }
.inq-item-top { display: flex; justify-content: space-between; gap: 8px; }
.inq-item-name { font-weight: 500; }
.inq-item.unread .inq-item-name { font-weight: 700; }
.inq-item-date, .inq-item-sub { font-size: 13px; color: var(--text-secondary); }
.inq-item-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inq-pill { align-self: flex-start; display: inline-block; font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 999px; background: var(--bg-secondary); color: var(--text-secondary); border: 1px solid var(--border-color); }
.inq-pill-new { color: var(--text-primary); }
.inq-detail { border: 1px solid var(--border-color); border-radius: 12px; padding: 24px; background: var(--bg-primary); min-height: 200px; }
.inq-is-empty .inq-detail { border: 0; background: none; }
.inq-d-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.inq-d-head h3 { margin: 0; }
.inq-meta { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 16px 0; }
.inq-meta dt { color: var(--text-secondary); white-space: nowrap; }
.inq-meta dd { margin: 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inq-meta dd.inq-wrap { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.inq-meta dd.inq-wrap .inq-link { display: block; margin-left: 0; margin-top: 2px; }
/* Phone: tighter card + label column so the one-line date fits beside "Received". */
@media (max-width: 480px) {
  .inq-detail { padding: 12px; }
  .inq-meta { grid-template-columns: max-content minmax(0, 1fr); gap: 6px 8px; font-size: 14px; }
}
.inq-msg-label { font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
.inq-msg { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; padding: 14px 16px; border-radius: 10px; background: var(--bg-secondary); }
.inq-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; align-items: center; }
.inq-actions .btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.inq-empty { text-align: center; padding: 48px 16px; }
.inq-empty h3 { margin: 0 0 8px; }
.inq-empty p { margin: 0 auto 20px; max-width: 420px; color: var(--text-secondary); }
.inq-empty-note { padding: 24px 16px; color: var(--text-secondary); }
.inq-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1000; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 10px; background: var(--text-primary); color: var(--bg-primary); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18); max-width: calc(100vw - 32px); }
.inq-toast[hidden] { display: none; }
.inq-undo { appearance: none; background: none; border: 0; color: inherit; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; min-height: 32px; padding: 0 4px; }

@media (max-width: 768px) {
    .inq-shell { grid-template-columns: minmax(0, 1fr); }
    .inq-shell .inq-detail { display: none; }
    .inq-shell.inq-detail-open .inq-list { display: none; }
    .inq-shell.inq-detail-open .inq-detail { display: block; padding: 16px; }
    .inq-shell.inq-is-empty .inq-detail { display: block; }
    .inq-is-empty .inq-back { display: none; }
    .inq-actions .btn { flex: 1 1 100%; }
}

/* The heading and the opened request's name take focus from script (for screen
   readers) and are not reachable by Tab (tabindex -1), so the ring there is only
   ever a stray box. :focus-visible matches script focus when no pointer has been
   used, so :focus:not(:focus-visible) would not remove it. Every control keeps
   its own 3px sage keyboard ring. */
#inquiriesHeading:focus,
#inqDName:focus { outline: none; }

/* Nav badge: graphite pill, paper text, 18px tall. Hidden at 0 by the inline
   display:none the script sets. IDs beat the shared .notification-badge. */
#inquiriesBadge, #inquiriesHeaderBadge {
    display: inline-block; box-sizing: border-box; height: 18px; min-width: 18px; padding: 0 6px;
    border-radius: 9px; background: #2B2F33; color: #F7F3EC;
    font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; animation: none;
}
#inquiriesBadge[style*="display: none"], #inquiriesHeaderBadge[style*="display: none"] { display: none; }

/* Desktop: the rail is hidden (the header nav replaces it) but the wrapper keeps
   its rail margin, which pushed this pane ~270px right. While Inquiries is
   showing, the wrapper starts at the left edge, level with the logo. */
@media (min-width: 769px) {
    .app-content-wrapper:has(> .content > #inquiriesContent[style*="display: block"]) { margin-left: 0; }
}

/* ── Toggle switches (Settings card): sage on, stone off ── */
.ppa-switch-wrap { display: inline-flex; align-items: center; gap: 12px; }
.ppa-switch { appearance: none; position: relative; flex: none; width: 44px; height: 24px; padding: 0; border: 0; border-radius: 12px; background: #A8A29A; cursor: pointer; transition: background .15s; }
.ppa-switch[aria-checked="true"] { background: #3F7D72; }
.ppa-switch-knob { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.ppa-switch[aria-checked="true"] .ppa-switch-knob { transform: translateX(20px); }
.ppa-switch:focus-visible { outline: 3px solid var(--sage-300, var(--primary-light)); outline-offset: 2px; }
.ppa-switch-label { font-weight: 500; cursor: pointer; }
/* 44px touch target without enlarging the visible switch. */
.ppa-switch::after { content: ""; position: absolute; inset: -10px -4px; }
@media (prefers-reduced-motion: reduce) { .ppa-switch, .ppa-switch-knob { transition: none; } }

/* ── Inquiries: table on desktop, cards on phone ── */
.inq-back { appearance: none; background: none; border: 0; padding: 0 0 12px; font: inherit; color: var(--primary-color); cursor: pointer; min-height: 44px; text-align: left; }
.inq-back:focus-visible { outline: 3px solid var(--sage-300, var(--primary-light)); outline-offset: 2px; }
.inq-table { display: none; width: 100%; border-collapse: collapse; }
.inq-table th { text-align: left; font-size: 13px; font-weight: 500; color: var(--text-secondary); padding: 10px 12px; border-bottom: 1px solid var(--border-color); }
.inq-table td { padding: 12px; border-bottom: 1px solid var(--border-color); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }
.inq-row { cursor: pointer; }
.inq-row:last-child td { border-bottom: 0; }
.inq-row:hover, .inq-row.active { background: var(--bg-secondary); }
.inq-row:focus-visible { outline: 3px solid var(--sage-300, var(--primary-light)); outline-offset: -3px; }
.inq-row.unread .inq-c-name { font-weight: 700; }
.inq-row .inq-c-date, .inq-row .inq-c-src { color: var(--text-secondary); font-size: 14px; }
.inq-cards { display: flex; flex-direction: column; }
@media (min-width: 769px) {
    .inq-shell { grid-template-columns: minmax(440px, 1.1fr) minmax(0, 1fr); }
    .inq-shell.inq-is-empty { grid-template-columns: minmax(0, 1fr); }
    .inq-table { display: table; }
    .inq-cards { display: none; }
    .inq-back { display: none; }
}
.inq-kind { display: block; font-size: 12px; font-weight: 400; color: var(--text-secondary); }
.inq-link { background: none; border: 0; padding: 0; margin-left: 8px; font: inherit; color: var(--text-primary); text-decoration: underline; cursor: pointer; }
.inq-pill-booked { color: var(--text-primary); }

/* Custom domain (practice-page-v2). Stone #ECE8E0, sage #486141, graphite via existing text vars. */
.ppa-domain-row { display: flex; gap: 8px; margin-top: 8px; }
.ppa-domain-row .input { flex: 1 1 auto; min-width: 0; }
.ppa-domain-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 8px; }
.ppa-domain-name { color: var(--text-primary); font-weight: 500; overflow-wrap: anywhere; }
.ppa-pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: #ECE8E0; color: var(--text-primary); font-size: 13px; }
.ppa-pill-ok { background: #fff; border: 1px solid #486141; }
.ppa-check { color: #486141; margin-right: 4px; }
.ppa-domain-line { margin: 12px 0 8px; }
.ppa-rec { background: #ECE8E0; border-radius: 8px; padding: 8px 14px; margin-bottom: 8px; }
.ppa-rec-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 0; }
.ppa-rec-label { color: var(--text-secondary); font-size: 13px; }
.ppa-rec-val { overflow-wrap: anywhere; }
.ppa-rec-val.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.ppa-linkbtn { background: none; border: 0; padding: 4px 0; font: inherit; color: var(--text-primary); text-decoration: underline; cursor: pointer; }
.ppa-domain-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.ppa-domain-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ppa-domain-left .ppa-last { margin: 0; }
.ppa-dialog-overlay { position: fixed; inset: 0; background: rgba(43, 47, 51, .45); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 10000; }
.ppa-dialog { background: #fff; border-radius: 12px; padding: 24px; max-width: 420px; width: 100%; }
.ppa-dialog h3 { margin: 0 0 8px; }
.ppa-dialog h3:focus { outline: none; }
.ppa-dialog-btns { display: flex; gap: 8px; margin-top: 20px; }
@media (max-width: 768px) {
  .ppa-domain-row { flex-direction: column; }
  .ppa-domain-row .btn { width: 100%; }
  .ppa-rec-row { grid-template-columns: minmax(0, 1fr) auto; }
  .ppa-rec-label { grid-column: 1 / -1; }
  .ppa-domain-actions { flex-wrap: wrap; }
  .ppa-dialog-btns .btn { flex: 1; }
}

.ppa-card .form-group > .input { width: 100%; }
@media (max-width: 768px) {
  .ppa-addr .ppa-slug { flex-wrap: nowrap; }
  .ppa-addr .ppa-slug-prefix { width: auto; padding: 0 8px 0 12px; font-size: 14px; }
}

/* ── Practice page v3, piece C: specialties chips and dialog ── */
.ppa-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; align-items: center; }
.ppa-chip { display: inline-flex; align-items: center; height: 32px; padding-left: 12px; background: #ECE8E0; color: #2B2F33; border-radius: 16px; font-size: 14px; max-width: 100%; }
.ppa-chip-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ppa-chip-x { appearance: none; background: none; border: 0; width: 32px; height: 32px; padding: 0; font-size: 18px; line-height: 1; color: #2B2F33; cursor: pointer; border-radius: 16px; }
.ppa-chip-x:focus-visible, .ppa-addrow:focus-visible { outline: 3px solid var(--sage-300, var(--primary-light)); outline-offset: 2px; }
.ppa-cb:focus-visible + .ppa-box { outline: 2px solid #486141; outline-offset: 2px; }
.ppa-spec-overlay { align-items: flex-start; padding: 32px 16px; }
.ppa-spec { display: flex; flex-direction: column; background: #fff; border-radius: 12px; width: 560px; max-width: 100%; max-height: calc(100vh - 64px); overflow: hidden; }
.ppa-spec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 20px 24px 12px; }
.ppa-spec-head h3 { margin: 0; font-family: 'Source Serif Pro', 'Source Serif 4', Georgia, serif; font-weight: 600; color: #2B2F33; }
.ppa-spec-head h3:focus { outline: none; }
.ppa-spec-count { color: #2B2F33; font-variant-numeric: tabular-nums; }
.ppa-spec-count.over { color: #8E6244; }
.ppa-spec-top { flex: none; padding: 0 24px 8px; }
.ppa-spec-top .input { width: 100%; height: 48px; border: 1px solid #CFCAC1; border-radius: 8px; }
.ppa-spec-body { flex: 1 1 auto; overflow-y: auto; padding: 0 24px 8px; min-height: 120px; }
.ppa-grp-h { margin: 16px 0 4px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #6E7378; }
.ppa-crow { display: flex; align-items: flex-start; gap: 12px; min-height: 48px; font-family: 'Inter', sans-serif; font-size: 16px; line-height: 24px; color: #2B2F33; border-bottom: 1px solid #E2DDD3; cursor: pointer; position: relative; }
.ppa-crow.off { opacity: .4; cursor: default; }
.ppa-cb { position: absolute; left: 0; top: 14px; opacity: 0; width: 20px; height: 20px; margin: 0; }
.ppa-crow > span:last-child { padding: 12px 0; }
.ppa-box { flex: none; box-sizing: border-box; width: 20px; height: 20px; margin-top: 14px; border: 2px solid #2B2F33; border-radius: 4px; background: #fff; display: inline-flex; align-items: center; justify-content: center; }
.ppa-cb:checked + .ppa-box { background: #486141; border-color: #486141; }
.ppa-cb:checked + .ppa-box::after { content: ""; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.ppa-addrow { display: block; width: 100%; min-height: 48px; margin-top: 8px; text-align: left; background: none; border: 0; border-bottom: 1px solid #E2DDD3; font: inherit; color: #2B2F33; cursor: pointer; }
.ppa-addrow:disabled { opacity: .4; cursor: default; }
.ppa-nomatch { padding: 8px 0; }
.ppa-spec-foot { flex: none; display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding: 16px 24px; border-top: 1px solid #E2DDD3; background: #fff; }
.ppa-spec-foot .ppa-btn:disabled { opacity: .4; cursor: not-allowed; }
@media (max-width: 768px) {
  .ppa-spec-overlay { padding: 0; }
  .ppa-spec { width: 100%; height: 100%; max-height: none; border-radius: 0; }
  .ppa-spec-head, .ppa-spec-top, .ppa-spec-body, .ppa-spec-foot { padding-left: 20px; padding-right: 20px; }
  .ppa-spec-foot .ppa-btn { flex: 1; }
}

/* ── Practice page v3, piece B: practice info + services (read-only) ── */
.ppa-card { padding: 32px; }
.ppa-muted { color: #6E7378; }
.ppa-sechead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ppa-sechead h4 { margin: 0; font-family: 'Source Serif Pro', 'Source Serif 4', Georgia, serif; font-weight: 600; font-size: 18px; }
.ppa-info { border-top: 1px solid #E2DDD3; }
.ppa-irow { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid #E2DDD3; }
.ppa-ilabel { color: #6E7378; font-size: 14px; }
.ppa-ival { min-width: 0; overflow-wrap: anywhere; }
.ppa-ival .input { width: 100%; }
.ppa-addrval { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.ppa-pre { white-space: pre-line; }
.ppa-showaddr { flex: none; }
.ppa-svc { list-style: none; margin: 0; padding: 0; border-top: 1px solid #E2DDD3; }
.ppa-svc li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #E2DDD3; }
.ppa-rate { white-space: nowrap; }
@media (max-width: 768px) {
  .ppa-card { padding: 20px; }
  .ppa-irow { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .ppa-addrval { flex-direction: column; gap: 12px; }
  .ppa-showaddr { width: 100%; padding-top: 12px; border-top: 1px dashed #CFCAC1; }
}

/* ── Practice page v3, piece A: header, pill, publish, address ──
   Errors are clay #8E6244, never red. Graphite #2B2F33, muted #6E7378,
   hairline #E2DDD3, stone #ECE8E0, input border #CFCAC1. */
.ppa-status.bad, .ppa-publish-note.bad, .ppa-load-err { color: #8E6244; }
.ppa-status.ok { color: #3F7D72; }
.ppa-load-err { margin-bottom: 16px; font-size: 14px; }
.ppa-card [hidden] { display: none !important; }
.ppa-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.ppa-head h3 { margin: 0 0 8px; font-family: 'Source Serif Pro', 'Source Serif 4', Georgia, serif; font-weight: 600; }
.ppa-pillrow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.ppa-pill { font-size: 13px; color: #2B2F33; }
.ppa-pill-ok { background: #fff; border: 1px solid #3F7D72; }
.ppa-pill-ok .ppa-check { color: #3F7D72; }
.ppa-inline { margin: 0; color: #6E7378; }
.ppa-urlrow { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.ppa-textlink { color: #2B2F33; text-decoration: underline; overflow-wrap: anywhere; }
.ppa-linkbtn { color: #2B2F33; }
.ppa-publish { text-align: right; }
.ppa-switch:disabled { cursor: not-allowed; background: #A8A29A; opacity: .7; }
.ppa-publish-note { margin-top: 6px; font-size: 13px; min-height: 18px; color: #6E7378; }
.ppa-sec { margin-top: 24px; padding-top: 24px; border-top: 1px solid #E2DDD3; }
.ppa-addr { display: flex; gap: 8px; align-items: stretch; }
.ppa-addr .ppa-slug { flex: 1 1 auto; min-width: 0; border-color: #CFCAC1; height: 48px; }
.ppa-slug.bad { border-color: #8E6244; }
.ppa-slug-prefix { align-self: stretch; display: flex; align-items: center; background: #ECE8E0; color: #6E7378; padding: 0 12px; }
.ppa-btn { min-height: 48px; border-radius: 8px; padding: 0 20px; }
.btn-secondary.ppa-btn { background: #fff; border: 1px solid #CFCAC1; color: #2B2F33; }
.btn-primary.ppa-btn { background: #2B2F33; color: #fff; border: 1px solid #2B2F33; }
.ppa-photo-lock { margin: 0; }
.ppa-thumb { width: 88px; height: 88px; max-width: none; aspect-ratio: auto; background: #ECE8E0; }
.ppa-photo-btns { align-items: center; gap: 16px; }
.ppa-actions { gap: 12px 16px; }
.ppa-actions .ppa-status { margin: 0; }
.ppa-dialog h3 { font-family: 'Source Serif Pro', 'Source Serif 4', Georgia, serif; font-weight: 600; color: #2B2F33; }
.ppa-dialog-btns { justify-content: flex-end; }
@media (max-width: 768px) {
  .ppa-head { flex-direction: column; gap: 0; }
  .ppa-head-main { width: 100%; }
  .ppa-publish { width: 100%; margin-top: 16px; padding-top: 16px; border-top: 1px solid #E2DDD3; text-align: left; }
  .ppa-publish .ppa-switch-wrap { display: flex; justify-content: space-between; width: 100%; }
  .ppa-addr { flex-direction: column; }
  .ppa-addr .ppa-btn, .ppa-actions .ppa-btn { width: 100%; }
  .ppa-actions { flex-direction: column; align-items: stretch; }
  .ppa-dialog { max-width: none; width: calc(100% - 40px); }
  .ppa-dialog-btns .btn { flex: 1; }
}

/* Practice website tab: the page heading and intro use the standard Settings heading style
   (same rules as `#settingsContent .card > h3` in app.html), since this pane has no wrapping card. */
#websiteSettingsTab > h3 {
  margin: 0 0 20px; font-family: var(--font-serif); font-size: 22px; font-weight: 600;
  line-height: 1.25; letter-spacing: -0.005em; color: var(--text-primary);
}
#websiteSettingsTab > h3 + .settings-description { margin-top: -12px; margin-bottom: 20px; }
@media (max-width: 768px) { #websiteSettingsTab > h3 { font-size: 20px; } }
