/* PorchConnect administrator workspace. All styles are scoped to admin-shell. */
@font-face { font-family: 'Porch Admin'; src: url('/assets/admin-sans.woff2') format('woff2'); font-weight: 400 750; font-display: swap; }
body.admin-shell {
  --ivory: #f6f5f1; --paper: #fff; --ink: #20313c; --slate: #627079;
  --blue: #253b50; --blue-dark: #172a3d; --line: #dce0df; --soft: #edf1f1;
  --success: #296650; --danger: #a13e35; --radius: 10px; --shadow: none;
  color: var(--ink); background: var(--ivory); font-family: 'Porch Admin', sans-serif;
  font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
.admin-shell [hidden] { display: none !important; }
.admin-shell button, .admin-shell input, .admin-shell select, .admin-shell textarea { font-family: inherit; font-variant-numeric: tabular-nums; }
.admin-shell .admin-entry { display: none; }
.admin-product-name { display: none; }
.admin-shell .admin-product-name { display: block; padding-left: 16px; margin-left: 8px; border-left: 1px solid var(--line); color: var(--blue); font-weight: 650; }
.admin-shell .site-header { min-height: 72px; padding: 12px max(24px, calc((100vw - 1240px)/2)); gap: 20px; border-bottom: 1px solid var(--line); background: #fafaf8; backdrop-filter: none; }
.admin-shell .brand { color: var(--ink); font-size: 15px; font-weight: 650; }
.admin-shell .brand-mark { width: 29px; height: 29px; opacity: .9; }
.admin-shell .header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.admin-shell button.header-link { min-height: 44px; padding: 10px 14px; border-radius: 6px; font-size: 14px; font-weight: 550; }
.admin-shell button.header-link:hover { background: var(--soft); color: var(--ink); }
.admin-shell .dev-banner { padding: 6px 20px; color: #76522f; background: #eee8dc; font-size: 11px; font-weight: 550; letter-spacing: .02em; }
.admin-shell .page { width: min(1240px, calc(100% - 64px)); padding: 40px 0 64px; }
.admin-shell .public-page { width: min(500px, calc(100% - 40px)); padding-top: 72px; }
.admin-shell h1 { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.1; font-weight: 650; letter-spacing: -.045em; text-wrap: balance; }
.admin-shell h2 { font-size: 26px; line-height: 1.2; font-weight: 650; letter-spacing: -.03em; }
.admin-shell h3 { font-size: 17px; font-weight: 650; letter-spacing: -.015em; }
.admin-shell .eyebrow { margin: 0 0 10px; color: var(--slate); font-size: 11px; font-weight: 650; letter-spacing: .1em; }
.admin-shell .lede { margin-top: 12px; max-width: 680px; font-size: 16px; line-height: 1.5; }
.admin-shell .app-header { align-items: center; margin-bottom: 28px; gap: 24px; }
.admin-shell .app-header .actions { margin-top: 0; }
.admin-shell .muted, .admin-shell .hint { font-size: 13px; line-height: 1.5; }
.admin-shell .app-header .muted { margin: 8px 0 0; max-width: 60ch; }
.admin-shell .panel { margin-top: 24px; padding: 28px; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: none; }
.admin-shell .panel .panel { border: 0; box-shadow: none; }
.admin-shell .stack { gap: 22px; }
.admin-shell .field, .admin-shell .owner-filters label, .admin-shell .compose-audience label { display: grid; gap: 7px; font-size: 13px; font-weight: 600; }
.admin-shell .field > span, .admin-shell legend { font-size: 13px; font-weight: 650; }
.admin-shell input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='color']), .admin-shell select, .admin-shell textarea {
  appearance: none; width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid #b7c2c5; border-radius: 7px; color: var(--ink); background: #fff; box-shadow: none; font-size: 15px; line-height: 1.4;
  transition: border-color 140ms, background 140ms;
}
.admin-shell input::placeholder, .admin-shell textarea::placeholder { color: #79858a; font-weight: 400; }
.admin-shell textarea { min-height: 152px; resize: vertical; }
.admin-shell select { padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235c6b72' stroke-width='1.5'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.admin-shell .admin-select-control { position: relative; display: block; width: 100%; min-width: 0; }
body.admin-shell select.admin-native-select { position: absolute; width: 1px; min-width: 0; max-width: 1px; height: 1px; min-height: 0; padding: 0; margin: 0; opacity: 0; clip-path: inset(50%); pointer-events: none; }
.admin-shell .admin-select-trigger { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 46px; padding: 11px 13px; color: var(--ink); background: #fff; border: 1px solid #b7c2c5; border-radius: 7px; font-size: 14px; font-weight: 500; line-height: 1.4; text-align: left; cursor: pointer; box-shadow: none; transition: border-color 140ms, background-color 140ms; }
.admin-shell .admin-select-trigger:hover:not(:disabled) { border-color: #7a919e; background: #fcfdfd; }
.admin-shell .admin-select-trigger:focus-visible, .admin-shell .admin-select-trigger[aria-expanded='true'] { outline: 2px solid var(--blue); outline-offset: 2px; border-color: var(--blue); }
.admin-shell .admin-select-value { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-shell .admin-select-trigger svg { width: 18px; height: 18px; flex: 0 0 18px; color: #627784; transition: transform 140ms; }
.admin-shell .admin-select-trigger[aria-expanded='true'] svg { transform: rotate(180deg); }
.admin-shell .admin-select-trigger:disabled { color: #738087; background: #f0f2f1; border-color: #dce2e2; cursor: not-allowed; }
.admin-shell .admin-select-trigger[aria-invalid='true'] { border-color: var(--danger); }
.admin-shell .admin-select-menu { position: fixed; inset: auto; box-sizing: border-box; margin: 0; padding: 5px; color: var(--ink); background: #fff; border: 1px solid #c5d0d4; border-radius: 8px; box-shadow: 0 4px 16px #20313c0f; font-family: 'Porch Admin', sans-serif; font-size: 14px; font-weight: 450; line-height: 1.4; overflow: auto; overscroll-behavior: contain; }
.admin-shell .admin-select-option { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 44px; padding: 10px 11px; border-radius: 4px; cursor: pointer; }
.admin-shell .admin-select-option > span:first-child { overflow-wrap: anywhere; }
.admin-shell .admin-select-option[aria-selected='true'] { background: #edf2f5; color: #253f53; font-weight: 600; }
.admin-shell .admin-select-option[data-active] { background: #e7eef2; box-shadow: inset 0 0 0 1px #c6d5df; }
.admin-shell .admin-select-option[aria-disabled='true'] { color: #879399; background: transparent; cursor: not-allowed; box-shadow: none; }
.admin-shell .admin-select-check { flex: 0 0 16px; width: 16px; color: #345770; font-size: 14px; visibility: hidden; }
.admin-shell .admin-select-option[aria-selected='true'] .admin-select-check { visibility: visible; }
.admin-shell .admin-select-error { display: block; margin-top: 7px; color: var(--danger); font-size: 12px; line-height: 1.5; }
.admin-shell .campaign-switcher .admin-select-trigger { font-size: 13px; font-weight: 650; background: #f8faf9; border-color: #cdd5d7; }
.admin-shell .card-table-toolbar .admin-select-control { width: auto; min-width: 142px; }
.admin-shell .card-table-toolbar .admin-select-trigger { font-size: 13px; }
.admin-shell .activity-heading .admin-select-control { width: 155px; flex-shrink: 0; }
.admin-shell .activity-heading .admin-select-trigger { font-size: 13px; background: transparent; border-color: #cdd4d4; }
@media (max-width: 650px) {
  .admin-shell .admin-select-trigger { min-height: 46px; }
  .admin-shell .card-table-toolbar .admin-select-control { width: 100%; min-width: 0; }
}
.admin-shell input:hover, .admin-shell textarea:hover, .admin-shell select:hover { border-color: #748b95; }
.admin-shell input:focus, .admin-shell textarea:focus, .admin-shell select:focus { outline: 2px solid var(--blue); outline-offset: 2px; border-color: var(--blue); box-shadow: none; }
.admin-shell :is(button,a,summary,[tabindex]):focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.admin-shell input[aria-invalid='true'] { border-color: var(--danger); }
.admin-shell input[type='checkbox'] { appearance: auto; width: 20px; height: 20px; min-height: 20px; margin: 0; accent-color: var(--blue); cursor: pointer; }
.admin-shell input:disabled, .admin-shell select:disabled { background-color: #f0f2f1; color: #738087; cursor: not-allowed; }
.admin-shell button { -webkit-appearance: none; appearance: none; font-size: 14px; line-height: 1.3; }
.admin-shell .button { display: inline-flex; width: auto; min-height: 44px; gap: 10px; padding: 11px 18px; border: 1px solid var(--blue); border-radius: 7px; color: #fff; background: var(--blue); box-shadow: none; font-size: 14px; font-weight: 650; text-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; transition: background 140ms, border-color 140ms, transform 100ms; }
.admin-shell .button:hover:not(:disabled) { background: var(--blue-dark); border-color: var(--blue-dark); }
.admin-shell .button:active:not(:disabled) { transform: translateY(1px); }
.admin-shell .button.secondary { background: #fff; color: var(--ink); border-color: #ccd4d5; font-weight: 550; }
.admin-shell .button.secondary:hover:not(:disabled) { background: #edf1f2; border-color: #a3b4bc; }
.admin-shell .button.danger { color: var(--danger); border-color: transparent; background: transparent; font-weight: 550; }
.admin-shell .button.danger:hover:not(:disabled) { border-color: #ebccc7; background: #faf0ee; }
.admin-shell .button.small { min-height: 44px; padding: 9px 13px; font-size: 13px; }
.admin-shell .button.full { width: 100%; }
.admin-shell .button:disabled { opacity: 1; color: #7b878c; background: #edf0ef; border-color: #dce2e2; cursor: not-allowed; transform: none; }
.admin-shell .actions { margin-top: 20px; gap: 10px; flex-wrap: wrap; }
.admin-shell .glass, .admin-shell .row-glow, .admin-shell .tabs { box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.admin-shell .row-glow:hover, .admin-shell .row-glow:focus-within { box-shadow: none; background: #f7fafb; }
.admin-shell .metric-grid { margin: 28px 0 30px; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; gap: 0; }
.admin-shell .metric { padding: 22px 28px; background: transparent; border-right: 1px solid var(--line); }
.admin-shell .metric:first-child { padding-left: 0; }
.admin-shell .metric:last-child { border: 0; }
.admin-shell .metric strong { font-size: 32px; font-weight: 600; line-height: 1.1; margin-bottom: 9px; font-variant-numeric: tabular-nums; }
.admin-shell .metric span { font-size: 13px; }
.admin-shell #owner-content { min-width: 0; }
.admin-shell #owner-content > .app-header { margin-bottom: 22px; }
.admin-shell details > summary { min-height: 44px; padding: 12px 0; color: var(--slate); font-size: 13px; cursor: pointer; }
.admin-shell details > summary:hover { color: var(--blue); }
.admin-shell .list { gap: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.admin-shell .list.panel { padding: 0; }
.admin-shell .list-item { padding: 22px 24px; border: 0; border-bottom: 1px solid var(--line); background: #fff; }
.admin-shell .list-item:last-child { border-bottom: 0; }
.admin-shell button.list-item { appearance: none; display: block; width: 100%; text-align: left; font: inherit; cursor: pointer; }
.admin-shell button.list-item:hover { background: #f3f7f7; }
.admin-shell [data-pick-campaign] { position: relative; padding-right: 64px; }
.admin-shell [data-pick-campaign]::after { position: absolute; content: '→'; top: 32px; right: 26px; color: var(--blue); font-size: 22px; }
.admin-shell [data-pick-campaign] p { margin: 6px 0 0; color: var(--slate); font-size: 14px; }
.admin-shell .item-head { align-items: center; }
.admin-shell .item-head p { margin: 6px 0 0; color: var(--slate); font-size: 13px; }
.admin-shell .pill { min-height: 25px; margin: 0 6px 0 0; padding: 3px 8px; border: 1px solid #dce2e2; border-radius: 5px; color: #627079; background: #f6f8f7; font-size: 11px; font-weight: 550; line-height: 1.5; text-transform: capitalize; white-space: nowrap; }
.admin-shell .pill.on { background: #edf5ef; color: #296650; border-color: #d2e4d8; }
.admin-shell .owner-filters { grid-template-columns: minmax(240px,1.5fr) 1fr 1fr; gap: 16px; margin: 0 0 22px; }
.admin-shell .owner-filters input, .admin-shell .owner-filters select, .admin-shell .compose-audience select { margin: 0; }
.admin-shell .table-wrap { border-radius: 9px; }
.admin-shell table { font-size: 14px; }
.admin-shell th { padding: 13px 16px; background: #f4f6f5; font-size: 11px; letter-spacing: .05em; font-weight: 600; }
.admin-shell td { padding: 17px 16px; line-height: 1.6; vertical-align: middle; }
.admin-shell td:first-child { width: 52px; text-align: center; }
.admin-shell .contact-link { min-height: 32px; padding: 4px 0; font-size: 15px; text-align: left; }
.admin-shell .contact-link strong { font-weight: 650; }
.admin-shell tr:has(input:checked) { background: #eff6f8; }
.admin-shell .contact-detail-grid { margin-top: 24px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.admin-shell .contact-detail-grid dt { font-size: 12px; }
.admin-shell .contact-detail-grid dd { font-size: 15px; overflow-wrap: anywhere; }
.admin-shell .owner-request-item > span { margin-left: 10px; color: var(--slate); font-size: 13px; }
.admin-shell .owner-request-item .actions { margin-top: 10px; }
.admin-shell .compose-audience { gap: 18px; }
.admin-shell #compose { max-width: 800px; margin-top: 24px; }
.admin-shell #compose > .button { justify-self: start; }
.admin-shell .choice-row { gap: 8px; }
.admin-shell .choice span { min-height: 44px; padding: 10px 16px; border-radius: 7px; background: #fff; font-size: 14px; font-weight: 550; }
.admin-shell .choice input:checked + span { background: #eaf2f6; color: var(--blue); border-color: #8aa9ba; }
.admin-shell .choice input:checked + span::before { content: '✓'; margin-right: 8px; font-weight: 700; }
.admin-shell .message-history { min-height: 116px; }
.admin-shell .message-history .pill { margin-top: 12px; }
.admin-shell .message-history .item-copy { max-width: 80ch; }
.admin-shell .delivery-breakdown > div { padding: 15px 0; }
.admin-shell .delivery-breakdown dt { color: var(--slate); }
.admin-shell .delivery-breakdown dd { font-size: 18px; }
.admin-shell .message-review, .admin-shell .owner-delivery-receipt { max-width: 800px; }
.admin-shell .theme-colors { gap: 18px; }
.admin-shell input[type='color'] { width: 100%; height: 48px; min-height: 48px; padding: 7px; border: 1px solid #b7c2c5; border-radius: 7px; background: white; cursor: pointer; }
.admin-shell #appearance-form { display: grid; grid-template-columns: minmax(240px,1fr) minmax(260px,1fr); column-gap: 48px; max-width: 1080px; }
.admin-shell #appearance-form > :not(.theme-preview) { grid-column: 1; }
.admin-shell #appearance-form > .theme-preview { grid-column: 2; grid-row: 1 / 7; align-self: start; background: #f6f5f1; padding: 26px; border-radius: 10px; border: 1px solid var(--line); }
.admin-shell .theme-preview .panel { margin: 20px 0; padding: 22px; background: white; border: 0; }
.admin-shell .theme-preview .theme-preview-button { width: 100%; min-height: 48px; color: var(--button-font,#fff); background: var(--button-color,#245c80); border-color: transparent; border-radius: 24px; box-shadow: none; }
.admin-shell #theme-status { min-height: 0; margin: 0; font-size: 13px; color: var(--success); }
.admin-shell #theme-status:empty { display: none; }
.admin-shell .admin-tabs { display: flex; gap: 28px; margin: 0 0 28px; border-bottom: 1px solid var(--line); }
.admin-shell .admin-tabs button { min-height: 48px; padding: 12px 0; border: 0; border-bottom: 3px solid transparent; color: var(--slate); background: transparent; font-size: 14px; font-weight: 550; cursor: pointer; }
.admin-shell .admin-tabs button[aria-selected='true'] { color: var(--blue); border-color: var(--blue); font-weight: 700; }
.admin-shell .admin-tabs button:hover { color: var(--blue); }
.admin-shell .management-page { max-width: 1120px; }
.admin-shell .management-page > .app-header { margin-bottom: 30px; }
.admin-shell .view-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 30px 0 22px; }
.admin-shell .view-heading h2 { font-size: 23px; }
.admin-shell .view-heading p { margin: 7px 0 0; color: var(--slate); font-size: 14px; }
.admin-shell .count-label { display: inline-block; vertical-align: middle; min-width: 25px; margin-left: 8px; padding: 3px 7px; border-radius: 5px; color: var(--slate); background: #e9edeb; font-size: 12px; text-align: center; letter-spacing: 0; }
.admin-shell .campaign-lifecycle .list-item { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.admin-shell .campaign-lifecycle .item-head { flex: 1; gap: 24px; }
.admin-shell .campaign-lifecycle .actions { flex-shrink: 0; margin: 0; }
.admin-shell .record-slug { color: #7b878c; }
.admin-shell .access-boundary { margin: 18px 0; max-width: 80ch; }
.admin-shell .admin-user .actions { margin: 10px 0; }
.admin-shell .admin-user > .muted { margin: 8px 0; }
.admin-shell .access-details { margin-top: 8px; border-top: 1px solid var(--line); }
.admin-shell .membership-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; padding: 10px 0; }
.admin-shell .membership-grid label { display: grid; gap: 8px; font-size: 13px; }
.admin-shell .admin-create-grid { display: grid; gap: 20px; }
.admin-shell .empty { padding: 50px 24px; border: 0; border-radius: 0; background: transparent; text-align: center; }
.admin-shell .empty p { max-width: 42ch; margin: 8px auto 0; font-size: 14px; }
.admin-shell .empty-mark { display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto 18px; border: 1px solid var(--line); border-radius: 10px; color: var(--slate); font-size: 24px; }
.admin-shell .notice { border: 1px solid #d6e3e8; border-left: 3px solid var(--blue); border-radius: 6px; background: #f0f6f8; padding: 14px 16px; }
.admin-shell .notice.error { border-color: #ecd2cd; border-left-color: var(--danger); background: #fcf3f1; }
.admin-shell .notice.success { border-color: #cee2d6; border-left-color: var(--success); background: #f0f7f2; }
.admin-shell dialog.dialog { width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 30px; border: 1px solid #d7dfe0; border-radius: 12px; color: var(--ink); background: #fff; box-shadow: 0 16px 50px #162f3e1c; }
.admin-shell dialog.dialog::backdrop { background: #20313c66; backdrop-filter: none; }
.admin-shell .dialog h2 { max-width: 90%; font-size: 26px; }
.admin-shell .dialog .actions { justify-content: flex-end; padding-top: 20px; margin-top: 24px; border-top: 1px solid var(--line); }
.admin-shell .dialog .actions .button:first-child { order: 2; }
.admin-shell .dialog-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.admin-shell .dialog-heading .eyebrow { margin-bottom: 8px; }
.admin-shell .dialog-heading h2 { max-width: 100%; }
.admin-shell .close-button { display: grid; place-items: center; width: 44px; min-width: 44px; height: 44px; margin: -8px -10px 0 0; border: 0; border-radius: 7px; color: var(--slate); background: transparent; font-size: 25px; cursor: pointer; }
.admin-shell .close-button:hover { background: var(--soft); }
.admin-shell .dialog-footer { position: sticky; bottom: -30px; display: flex; justify-content: flex-end; padding: 20px 0 0; margin-top: 4px; border-top: 1px solid var(--line); background: white; }
.admin-shell .local-test-panel { background: transparent; }
.admin-shell .local-test-panel summary { font-size: 11px; }
.admin-shell .public-page > .panel:not(.local-test-panel) { padding: 24px 0; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.admin-shell .public-page > .panel .button { justify-self: start; }
.admin-shell .history-heading { margin: 28px 0 16px; }
.admin-shell .admin-tabs ~ [role='tabpanel'] > .panel:first-child { margin-top: 0; }
.admin-shell .recovery-request .actions { margin: 0; }
@media (max-width: 1000px) {
  .admin-shell .card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-shell .campaign-lifecycle .list-item { align-items: start; flex-direction: column; gap: 14px; }
  .admin-shell .campaign-lifecycle .item-head { width: 100%; }
}
@media (max-width: 760px) {
  .admin-shell .site-header { padding: 10px 20px; min-height: 64px; flex-wrap: wrap; gap: 8px; }
  .admin-shell .header-actions { gap: 0; }
  .admin-shell button.header-link { padding: 10px; font-size: 12px; }
  .admin-shell .brand { font-size: 13px; gap: 7px; }
  .admin-shell .admin-product-name { margin-left: 0; padding-left: 9px; }
  .admin-shell .page { width: calc(100% - 40px); padding-top: 28px; }
  .admin-shell .app-header { flex-direction: row; align-items: center; gap: 16px; }
  .admin-shell .metric-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .admin-shell .metric { padding: 18px 12px; }
  .admin-shell .metric strong { font-size: 27px; }
  .admin-shell .metric span { font-size: 11px; }
  .admin-shell .owner-nav { gap: 24px; }
  .admin-shell .owner-filters, .admin-shell .contact-detail-grid { grid-template-columns: 1fr; }
  .admin-shell .owner-filters { grid-template-columns: 1fr 1fr; }
  .admin-shell .owner-filters label:first-child { grid-column: 1 / -1; }
  .admin-shell #appearance-form { grid-template-columns: 1fr; gap: 22px; }
  .admin-shell #appearance-form > .theme-preview { grid-column: 1; grid-row: auto; }
  .admin-shell .membership-grid { grid-template-columns: 1fr; }
  .admin-shell .management-page > .app-header { flex-wrap: wrap; }
  .admin-shell .view-heading { align-items: flex-start; }
}
@media (max-width: 480px) {
  .admin-shell .site-header { height: auto; padding: 10px 16px; }
  .admin-shell .brand-mark { width: 24px; height: 24px; }
  .admin-shell .header-actions { width: 100%; justify-content: flex-end; border-top: 1px solid var(--line); }
  .admin-shell .header-actions:empty { display: none; }
  .admin-shell .page { width: calc(100% - 32px); padding-top: 26px; }
  .admin-shell h1 { font-size: 33px; }
  .admin-shell h2 { font-size: 23px; }
  .admin-shell .lede { font-size: 15px; }
  .admin-shell .app-header { align-items: flex-start; }
  .admin-shell .app-header .actions { width: 100%; }
  .admin-shell #owner-content > .app-header { flex-wrap: wrap; }
  .admin-shell .metric-grid { margin: 24px 0 20px; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-shell .metric { padding: 16px 20px; border-bottom: 1px solid var(--line); }
  .admin-shell .metric:nth-child(odd) { padding-left: 0; }
  .admin-shell .metric:nth-child(even) { border-right: 0; }
  .admin-shell .metric:nth-child(n+3) { border-bottom: 0; }
  .admin-shell .owner-nav { gap: 22px; }
  .admin-shell .owner-nav button { font-size: 13px; }
  .admin-shell .card-grid { grid-template-columns: 1fr; }
  .admin-shell .actions { flex-direction: row; align-items: center; }
  .admin-shell .panel, .admin-shell .contact-detail-grid { padding: 22px 18px; }
  .admin-shell .grid-2, .admin-shell .compose-audience { grid-template-columns: 1fr; }
  .admin-shell .view-heading { flex-wrap: wrap; margin-top: 24px; }
  .admin-shell .view-heading .button { min-height: 44px; }
  .admin-shell .list-item { padding: 20px 18px; }
  .admin-shell .record-slug { display: block; margin-left: 0; overflow-wrap: anywhere; }
  .admin-shell .admin-tabs { gap: 26px; margin-bottom: 20px; }
  .admin-shell dialog.dialog { padding: 24px; max-height: calc(100dvh - 24px); }
  .admin-shell .dialog-footer { bottom: -24px; }
  .admin-shell .dialog .actions { flex-direction: row; }
  .admin-shell .dialog .actions .button { flex: 1; }
  .admin-shell .theme-colors { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { .admin-shell *, .admin-shell *::after { transition: none !important; animation: none !important; } }
@media (prefers-contrast: more) { .admin-shell { --line: #8c9da5; --slate: #3c4e58; } .admin-shell .button.secondary { border-color: var(--ink); } }
.admin-shell #owner-content:has(#compose-view) > div:first-child { margin-bottom: 18px; }
.admin-shell .table-wrap .empty { padding: 44px 20px; text-align: center; }
.admin-shell #owner-content > .app-header .eyebrow { display: none; }
.admin-shell #signup-card-list { padding-top: 0; }

.admin-shell .form-feedback { margin-top: 12px; font-size: 14px; }
.admin-shell [aria-busy="true"] { cursor: progress; }

.admin-shell .choice input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 3px; }
.admin-shell .choice input:disabled + span { color: #7b878c; border-color: #dce2e2; background: #edf0ef; cursor: not-allowed; }

.admin-shell .contact-select { display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; }

/* Persistent campaign navigation and publishing management. */
.admin-shell .admin-workspace { display: grid; grid-template-columns: 236px minmax(0,1fr); min-height: 100dvh; }
.admin-shell .campaign-sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 28px 16px 16px; border-right: 1px solid #dce1e2; background: #ecefee; z-index: 30; overflow-y: auto; }
.admin-shell .sidebar-brand { display: flex; align-items: center; gap: 12px; margin: 0 8px 28px; color: var(--ink); text-decoration: none; font-size: 17px; font-weight: 650; }
.admin-shell .sidebar-brand img { width: 30px; height: 34px; object-fit: contain; }
.admin-shell .sidebar-brand small { display: block; margin-top: 1px; color: var(--slate); font-size: 11px; font-weight: 450; letter-spacing: .02em; }
.admin-shell .campaign-switcher { display: grid; gap: 7px; margin: 0 6px 26px; }
.admin-shell .campaign-switcher > span { font-size: 11px; color: var(--slate); }
.admin-shell .campaign-switcher select { min-height: 44px; padding: 10px 32px 10px 11px; border-color: #cdd5d7; font-size: 13px; font-weight: 650; background-color: #f8faf9; text-overflow: ellipsis; }
.admin-shell .campaign-sidebar nav { flex: 1; }
.admin-shell .sidebar-group { margin-bottom: 24px; }
.admin-shell .sidebar-group > p { margin: 0 12px 7px; color: #687881; font-size: 10px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.admin-shell .sidebar-link, .admin-shell .sidebar-parent { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 10px 12px; border: 0; border-radius: 6px; background: transparent; color: #536570; text-align: left; font-size: 13px; font-weight: 500; }
.admin-shell .sidebar-link { cursor: pointer; }
.admin-shell .sidebar-link svg, .admin-shell .sidebar-parent svg { flex-shrink: 0; width: 18px; height: 18px; }
.admin-shell .sidebar-link:hover { background: #e2e8e9; color: #1c384f; }
.admin-shell .sidebar-link.active { background: #dce6eb; color: #244f6c; font-weight: 650; }
.admin-shell .sidebar-parent { min-height: 38px; color: var(--ink); }
.admin-shell .site-navigation { margin-left: 21px; padding-left: 9px; border-left: 1px solid #cbd5d9; }
.admin-shell .sidebar-link.nested { min-height: 40px; padding: 10px 12px; }
.admin-shell .sidebar-account { display: flex; align-items: center; gap: 10px; padding: 18px 6px 0; border-top: 1px solid #d3dbdc; }
.admin-shell .account-avatar { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; background: #dae2e6; color: #304e61; border-radius: 50%; font-size: 11px; font-weight: 650; }
.admin-shell .sidebar-account > div { min-width: 0; }
.admin-shell .sidebar-account strong { display: block; color: #2c424f; font-size: 12px; font-weight: 650; overflow-wrap: anywhere; }
.admin-shell .sidebar-account small { display: block; color: #63757f; font-size: 11px; }
.admin-shell .sidebar-account button { display: grid; place-items: center; flex-shrink: 0; width: 32px; min-width: 32px; height: 44px; margin-left: auto; border: 0; background: transparent; color: #63757f; font-size: 21px; cursor: pointer; }
.admin-shell .sidebar-account button:hover { color: var(--ink); }
.admin-shell .admin-main { min-width: 0; }
.admin-shell .admin-main > .page { width: auto; max-width: 1600px; margin: 0 auto; padding: 35px 40px 60px; }
.admin-shell .admin-breadcrumb { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 30px; color: #73808a; font-size: 12px; }
.admin-shell .admin-breadcrumb [aria-current] { color: #374e60; }
.admin-shell .site-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 26px; }
.admin-shell .site-page-heading h1 { font-size: 34px; line-height: 1.15; letter-spacing: -.035em; }
.admin-shell .site-page-heading p { margin: 11px 0 0; color: #647580; font-size: 14px; max-width: 65ch; }
.admin-shell .site-page-heading .actions { margin: 0; flex-shrink: 0; }
.admin-shell .site-page-heading .button { white-space: nowrap; }
.admin-shell .cards-summary { display: flex; gap: 28px; padding: 0 0 24px; margin-bottom: 20px; border-bottom: 1px solid var(--line); color: #687985; font-size: 13px; }
.admin-shell .cards-summary span { display: inline-flex; gap: 7px; align-items: baseline; }
.admin-shell .cards-summary strong { color: #2d4557; font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; }
.admin-shell .source-explanation { display: flex; gap: 10px; margin: 0 0 24px; color: #617784; font-size: 12px; line-height: 1.7; }
.admin-shell .source-explanation > span { color: #718b9b; font-size: 15px; }
.admin-shell .card-management { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 8px; }
.admin-shell .card-table-toolbar { display: flex; align-items: center; gap: 18px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.admin-shell .card-table-toolbar > label { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #60717e; white-space: nowrap; }
.admin-shell .card-table-toolbar > label.search-field { position: relative; flex: 1; margin-right: auto; min-width: 160px; max-width: 420px; }
.admin-shell .search-field svg { position: absolute; left: 13px; width: 17px; height: 17px; color: #687e8e; pointer-events: none; }
.admin-shell .card-table-toolbar input[type='search'] { min-height: 40px; padding: 10px 12px 10px 39px; font-size: 13px; }
.admin-shell .card-table-toolbar select { min-height: 40px; width: auto; min-width: 142px; padding-top: 9px; padding-bottom: 9px; font-size: 12px; }
.admin-shell .signup-table-wrap { overflow: auto; border: 0; border-radius: 0; margin: 0; }
.admin-shell .signup-table { width: 100%; min-width: 850px; border-collapse: collapse; font-size: 13px; }
.admin-shell .signup-table :is(th,td) { padding: 14px 18px; border: 0; border-bottom: 1px solid #e6eaeb; text-align: left; vertical-align: middle; }
.admin-shell .signup-table thead th { padding-top: 13px; padding-bottom: 13px; background: #fafbfb; color: #5f7180; font-size: 11px; font-weight: 600; white-space: nowrap; }
.admin-shell .signup-table tbody th { background: transparent; width: 26%; min-width: 205px; font-weight: 500; }
.admin-shell .signup-table tbody tr:last-child :is(th,td) { border-bottom: 0; }
.admin-shell .signup-table tbody tr:hover { background: #fafcfc; }
.admin-shell .signup-table .numeric { text-align: right; font-variant-numeric: tabular-nums; color: #344c5e; }
.admin-shell .signup-table thead .numeric { color: #5f7180; }
.admin-shell .signup-table .card-source { min-width: 145px; max-width: 230px; color: #627784; overflow-wrap: anywhere; }
.admin-shell .card-name { display: inline-block; max-width: 100%; padding: 0; margin: 0; border: 0; background: transparent; color: #253f53; text-align: left; font-size: 13px; line-height: 1.5; font-weight: 650; overflow-wrap: anywhere; cursor: pointer; }
.admin-shell .card-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.admin-shell .card-designations { display: flex; gap: 10px; margin-top: 4px; align-items: center; font-size: 10px; color: #7b8790; }
.admin-shell .default-designation { display: inline-block; padding: 1px 6px; border: 1px solid #d5dfe4; border-radius: 4px; color: #607b8b; font-size: 10px; font-weight: 500; vertical-align: middle; }
.admin-shell .card-status { text-transform: capitalize; }
.admin-shell .card-status::before { content: ''; display: inline-block; width: 5px; height: 5px; margin: 0 5px 1px 0; border-radius: 50%; background: #939ea4; }
.admin-shell .card-status.is-active::before { background: #688d7a; }
.admin-shell .row-actions-heading { text-align: right !important; }
.admin-shell .card-row-actions { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.admin-shell .text-action { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 5px; background: transparent; color: #496a81; font-size: 12px; font-weight: 550; white-space: nowrap; text-decoration: none; cursor: pointer; }
.admin-shell .text-action:hover { background: #edf3f5; color: #244861; }
.admin-shell .card-actions { position: relative; }
.admin-shell .card-actions-trigger { border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; list-style: none; width: 32px; min-height: 44px; padding: 0; font-size: 13px; letter-spacing: 2px; color: #647d8e; border-radius: 5px; }

.admin-shell .card-actions-trigger:hover, .admin-shell .card-actions-trigger[aria-expanded="true"] { background: #eaf0f3; }
.admin-shell .card-action-menu { position: fixed; inset: auto; margin: 0; width: 178px; padding: 5px; background: #fff; border: 1px solid #cbd7de; border-radius: 7px; z-index: 10; }
.admin-shell .card-action-menu :is(button,a) { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 9px 12px; border: 0; border-radius: 4px; color: #365268; background: transparent; text-align: left; font-size: 12px; text-decoration: none; cursor: pointer; }
.admin-shell .card-action-menu :is(button,a):hover { background: #eef3f5; }

.admin-shell .card-table-footer { display: flex; justify-content: space-between; align-items: center; min-height: 54px; padding: 10px 20px; border-top: 1px solid var(--line); color: #768690; font-size: 11px; }
.admin-shell .card-table-footer .text-action { min-height: 32px; }
.admin-shell .mobile-table-hint { display: none; }
.admin-shell .copy-feedback { min-height: 20px; margin: 12px 0; color: #486f5b; font-size: 12px; }
.admin-shell .card-details { display: grid; grid-template-columns: 85px minmax(0,1fr); gap: 12px 20px; margin: 26px 0; font-size: 13px; }
.admin-shell .card-details dt { color: #70808b; }
.admin-shell .card-details dd { margin: 0; overflow-wrap: anywhere; }
.admin-shell .overview-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 30px; margin: 32px 0 38px; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.admin-shell .overview-metrics > div { display: grid; gap: 14px; }
.admin-shell .overview-metrics span { font-size: 12px; color: #617582; }
.admin-shell .overview-metrics strong { color: #263e51; font-weight: 550; font-size: 36px; line-height: 1; letter-spacing: -.04em; }
.admin-shell .campaign-status { font-size: 12px; color: #60796e; text-transform: capitalize; }
.admin-shell .campaign-status i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 7px; background: #6f9180; }
.admin-shell .campaign-activity { padding-bottom: 20px; }
.admin-shell .activity-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.admin-shell .activity-heading h2 { font-size: 24px; letter-spacing: -.035em; }
.admin-shell .activity-heading p { margin: 7px 0 0; color: var(--slate); font-size: 14px; }
.admin-shell .activity-heading select { width: 155px; min-height: 44px; flex-shrink: 0; font-size: 13px; background-color: transparent; border-color: #cdd4d4; }
.admin-shell .activity-scope { margin: 16px 0 28px; color: var(--slate); font-size: 12px; overflow-wrap: anywhere; }
.admin-shell .activity-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, .9fr); gap: 44px; }
.admin-shell .activity-main { min-width: 0; }
.admin-shell .activity-period-metrics { display: flex; gap: 60px; margin: 0 0 35px; }
.admin-shell .activity-period-metrics > div { min-width: 0; }
.admin-shell .activity-period-metrics dt { font-size: 13px; color: var(--slate); }
.admin-shell .activity-period-metrics dd { margin: 10px 0 0; font-size: 40px; font-weight: 550; letter-spacing: -.045em; line-height: 1; color: #263e51; font-variant-numeric: tabular-nums; }
.admin-shell .activity-chart { margin: 0; }
.admin-shell .activity-plot { position: relative; height: 155px; margin-left: 28px; margin-bottom: 35px; }
.admin-shell .activity-axis { position: absolute; top: 0; left: -28px; bottom: 0; width: 20px; color: #637178; font-size: 11px; font-variant-numeric: tabular-nums; }
.admin-shell .activity-axis > span { position: absolute; right: 0; transform: translateY(50%); }
.admin-shell .activity-columns { display: flex; height: 100%; border-bottom: 1px solid #bcc7ca; background: repeating-linear-gradient(to top, transparent 0, transparent calc(33.333% - 1px), #e4e7e5 calc(33.333% - 1px), #e4e7e5 33.333%); }
.admin-shell .activity-day { flex: 1 1 0; min-width: 0; position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 4px; }
.admin-shell .activity-bar { position: relative; display: block; width: 22%; max-width: 22px; min-width: 2px; border-radius: 2px 2px 0 0; }
.admin-shell .activity-bar b { position: absolute; bottom: calc(100% + 5px); width: 100%; color: var(--ink); font-size: 11px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.admin-shell .is-contacts { background: #2b4357; }
.admin-shell .is-yard { background: #6c928a; }
.admin-shell .is-helping { background: #9a7c49; }
.admin-shell .activity-date { position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%); white-space: nowrap; color: var(--slate); font-size: 11px; }
.admin-shell .activity-day:first-child .activity-date { left: 0; transform: none; }
.admin-shell .activity-day:last-child .activity-date { left: auto; right: 0; transform: none; }
.admin-shell .activity-columns.is-dense .activity-day { gap: 1px; }
.admin-shell .activity-columns.is-dense .activity-bar { min-width: 1px; }
.admin-shell .activity-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--slate); font-size: 12px; }
.admin-shell .activity-legend > span { display: inline-flex; align-items: center; gap: 7px; }
.admin-shell .activity-legend i { width: 8px; height: 8px; border-radius: 1px; }
.admin-shell .activity-journal { border-left: 1px solid var(--line); padding-left: 30px; }
.admin-shell .activity-journal h3 { font-size: 15px; font-weight: 600; }
.admin-shell .journal-caption { margin: 6px 0 24px; font-size: 12px; color: var(--slate); }
.admin-shell .activity-journal ol { list-style: none; padding: 0; margin: 0; }
.admin-shell .activity-journal li { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.admin-shell .activity-journal li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.admin-shell .activity-journal time { display: block; margin-bottom: 10px; color: var(--slate); font-size: 11px; }
.admin-shell .activity-journal li p { margin: 0 0 8px; font-size: 14px; line-height: 1.55; }
.admin-shell .activity-details { margin-top: 30px; border-top: 1px solid var(--line); }
.admin-shell .activity-details > summary { width: fit-content; min-height: 44px; padding: 14px 2px; font-weight: 550; }
.admin-shell .activity-details-content { padding: 12px 0 24px; }
.admin-shell .activity-source-field { display: grid; gap: 7px; max-width: 320px; font-size: 12px; color: var(--slate); }
.admin-shell .activity-source-field select { font-size: 14px; }
.admin-shell .activity-timezone { margin: 16px 0 20px; max-width: 66ch; font-size: 12px; color: var(--slate); }
.admin-shell .activity-data-wrap { border-radius: 6px; }
.admin-shell .activity-data { font-size: 13px; }
.admin-shell .activity-data caption { text-align: left; padding: 12px 16px; font-weight: 600; color: var(--ink); background: #fff; border-bottom: 1px solid var(--line); }
.admin-shell .activity-data :is(td,th) { text-align: right; font-variant-numeric: tabular-nums; }
.admin-shell .activity-data :is(td,th):first-child { text-align: left; }
.admin-shell .activity-data tbody th { font-weight: 400; font-size: 13px; letter-spacing: normal; text-transform: none; color: var(--ink); }
.admin-shell .activity-empty { padding: 25px 0 40px; max-width: 480px; }
.admin-shell .activity-empty h3 { font-size: 18px; }
.admin-shell .activity-empty p { color: var(--slate); font-size: 14px; margin: 10px 0 0; }
.admin-shell .activity-loading { min-height: 200px; padding-top: 20px; font-size: 13px; color: var(--slate); }
.admin-shell .activity-error { padding: 20px 0 40px; }
.admin-shell .activity-error p { font-size: 14px; color: var(--danger); }
@media (max-width: 1100px) {
  .admin-shell .activity-layout { grid-template-columns: minmax(0, 1.7fr) minmax(200px, 1fr); gap: 28px; }
  .admin-shell .activity-journal { padding-left: 24px; }
  .admin-shell .activity-period-metrics { gap: 30px; }
}
@media (max-width: 650px) {
  .admin-shell .activity-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .admin-shell .activity-heading select { width: 155px; }
  .admin-shell .activity-scope { margin: 14px 0 26px; }
  .admin-shell .activity-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .admin-shell .activity-period-metrics { gap: 28px; flex-wrap: wrap; margin-bottom: 34px; }
  .admin-shell .activity-period-metrics dd { font-size: 36px; }
  .admin-shell .activity-period-metrics dt { font-size: 12px; }
  .admin-shell .activity-journal { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 0; }
  .admin-shell .journal-caption { margin-bottom: 20px; }
  .admin-shell .activity-data { min-width: 480px; }
  .admin-shell .activity-day { gap: 2px; }
  .admin-shell .activity-date { font-size: 10px; }
}
.admin-shell .website-publishing { display: grid; grid-template-columns: minmax(260px,.8fr) minmax(300px,1.2fr); background: white; border: 1px solid var(--line); border-radius: 8px; }
.admin-shell .website-preview { display: flex; flex-direction: column; justify-content: center; padding: 44px 34px; background: #f0f2ef; border-right: 1px solid var(--line); text-align: center; }
.admin-shell .website-preview h2 { font-size: 32px; }
.admin-shell .website-preview p { font-size: 13px; }
.admin-shell .website-cta-preview { align-self: center; padding: 12px 24px; margin: 22px 0; color: var(--button-font); background: var(--button-color); border-radius: 24px; font-size: 14px; }
.admin-shell .website-details { padding: 32px; }
.admin-shell .website-details h2 { font-size: 21px; }
.admin-shell .website-link-list { padding: 0; margin: 24px 0; list-style: none; }
.admin-shell .website-link-list li { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.admin-shell .website-link-list strong { font-size: 13px; }
.admin-shell .website-link-list small { display: block; margin-top: 3px; font-size: 12px; color: #70808b; }
.admin-shell .skip-content { position: fixed; left: 260px; top: -60px; z-index: 100; padding: 10px 18px; color: white; background: var(--blue); }
.admin-shell .skip-content:focus { top: 10px; }
.admin-shell .mobile-admin-header, .admin-shell .sidebar-close, .admin-shell .sidebar-backdrop { display: none; }
.admin-shell .loading-label { color: #71818b; font-size: 13px; }
.admin-shell .admin-main .management-page { max-width: 1600px; }
.admin-shell .admin-main #owner-content > .app-header { align-items: flex-start; }
.admin-shell .admin-main #owner-content > .app-header h2, .admin-shell .admin-main #owner-content > div:first-child > h2 { font-size: 34px; }
.admin-shell .admin-main #owner-content > .app-header .eyebrow { display: none; }
@media (max-width: 1200px) {
  .admin-shell .admin-workspace { grid-template-columns: 216px minmax(0,1fr); }
  .admin-shell .admin-main > .page { padding: 30px 28px 50px; }
  .admin-shell .site-page-heading { align-items: flex-start; flex-wrap: wrap; gap: 20px; }
  .admin-shell .card-table-toolbar { gap: 12px; flex-wrap: wrap; }
  .admin-shell .card-table-toolbar > label.search-field { flex-basis: 100%; max-width: none; }
}
@media (max-width: 820px) {
  .admin-shell .admin-workspace { display: block; }
  .admin-shell .mobile-admin-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 20px; border-bottom: 1px solid var(--line); background: #ecefee; font-size: 14px; font-weight: 650; }
  .admin-shell .campaign-sidebar { display: none; position: fixed; top: 0; left: 0; width: min(300px, calc(100vw - 48px)); height: 100dvh; padding-top: 24px; }
  .admin-shell .campaign-sidebar.is-open { display: flex; }
  .admin-shell .sidebar-close { display: grid; place-items: center; position: absolute; top: 17px; right: 8px; width: 40px; height: 40px; border: 0; background: transparent; color: #607786; font-size: 24px; cursor: pointer; }
  .admin-shell .sidebar-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; width: 100%; height: 100dvh; border: 0; border-radius: 0; background: #20333d55; z-index: 25; }
  .admin-shell .admin-main > .page { width: auto; padding: 26px 22px 50px; }
  .admin-shell .admin-breadcrumb { margin-bottom: 26px; font-size: 11px; }
  .admin-shell .site-page-heading h1 { font-size: 30px; }
  .admin-shell .card-table-toolbar > label { flex: 1; }
  .admin-shell .card-table-toolbar select { width: 100%; min-width: 0; }
  .admin-shell .card-table-toolbar > label.search-field { min-width: 0; }
  .admin-shell .mobile-table-hint { display: block; padding: 0 20px 12px; margin: 0; color: #7c8a94; font-size: 10px; }
  .admin-shell .website-publishing { grid-template-columns: 1fr; }
  .admin-shell .website-preview { border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-shell .skip-content { left: 20px; }
}
@media (max-width: 480px) {
  .admin-shell .admin-main > .page { padding: 24px 16px 40px; }
  .admin-shell .site-page-heading { margin-bottom: 24px; gap: 22px; }
  .admin-shell .site-page-heading .actions { width: 100%; }
  .admin-shell .site-page-heading .actions .button { flex: 1; justify-content: center; padding: 10px 12px; font-size: 12px; }
  .admin-shell .cards-summary { gap: 18px; font-size: 11px; }
  .admin-shell .cards-summary span { display: grid; gap: 3px; }
  .admin-shell .source-explanation { font-size: 11px; }
  .admin-shell .card-table-toolbar { padding: 16px; gap: 12px; }
  .admin-shell .card-table-toolbar > label:not(.search-field) { display: grid; gap: 5px; }
  .admin-shell .overview-metrics { grid-template-columns: 1fr 1fr; gap: 28px; }
  .admin-shell .website-details { padding: 24px 20px; }
  .admin-shell .sidebar-link.nested { min-height: 44px; }
}

.admin-shell .card-table-toolbar input#card-search { min-height: 40px; padding: 10px 12px 10px 39px; font-size: 13px; }
.admin-shell .card-actions-trigger { width: 44px; }

.admin-shell .dialog .dialog-footer.actions .button:first-child { order: 0; }

/* Card controls and activity adapt to the content width beside the navigation. */
.admin-shell .card-table-toolbar { flex-wrap: wrap; }
.admin-shell .card-table-toolbar > label.search-field { flex-basis: 100%; max-width: none; }
.admin-shell .card-sort-heading { padding: 8px 0; border: 0; background: none; color: inherit; font: inherit; font-weight: inherit; cursor: pointer; white-space: nowrap; }
.admin-shell .card-sort-heading span { color: #60717e; }
.admin-shell .card-sort-heading:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.admin-shell .campaign-activity { container-type: inline-size; }
.admin-shell .activity-period-metrics { flex-wrap: wrap; row-gap: 20px; }
.admin-shell .activity-journal { min-width: 0; overflow-wrap: anywhere; }
@container (max-width: 750px) {
  .admin-shell .activity-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .admin-shell .activity-journal { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 0; }
}
@container (max-width: 420px) {
  .admin-shell .activity-day:nth-child(even):not(:last-child) .activity-date { visibility: hidden; }
}

@media (max-width: 650px) {
  .admin-shell .card-table-toolbar > label:not(.search-field) { flex: 1 1 calc(50% - 6px); min-width: 0; }
  .admin-shell .card-table-toolbar > label:last-child { flex-basis: 100%; }
}
