/* Scoped owner console; it does not alter the field app's navigation. */
.db-admin, .db-admin-detail {
  --adm-ink: #172e3b; --adm-muted: #59707a; --adm-teal: #0d746a; --adm-line: #dce6e7;
  color: var(--adm-ink); background: #f3f7f7; border: 0; padding: 0; font: 15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  box-sizing: border-box; box-shadow: 0 22px 80px #102e3e33;
}
.db-admin *, .db-admin-detail * { box-sizing: border-box; }
.db-admin::backdrop, .db-admin-detail::backdrop { background: #10293699; backdrop-filter: blur(5px); }
.db-admin { width: min(1000px, calc(100vw - 40px)); height: min(900px, calc(100dvh - 40px)); max-width: none; max-height: none; border-radius: 24px; overflow: hidden; }
.db-admin:not([open]), .db-admin-detail:not([open]), .db-admin [hidden], .db-admin-detail [hidden] { display: none !important; }
.db-admin-shell { height: 100%; display: flex; flex-direction: column; min-height: 0; }
.db-admin button, .db-admin-detail button { min-height: 44px; border: 1px solid var(--adm-line); border-radius: 12px; color: var(--adm-ink); background: #fff; padding: 10px 15px; cursor: pointer; font: inherit; font-weight: 650; letter-spacing: normal; text-transform: none; box-shadow: none; display: inline-flex; justify-content: center; align-items: center; gap: 8px; }
.db-admin button:hover, .db-admin-detail button:hover { background: #eef6f4; }
.db-admin button:disabled, .db-admin-detail button:disabled { opacity: .5; cursor: default; }
.db-admin button:focus-visible, .db-admin-detail button:focus-visible, .db-admin input:focus-visible, .db-admin select:focus-visible, .db-admin-detail textarea:focus-visible, .db-admin-detail select:focus-visible { outline: 3px solid #11888c !important; outline-offset: 3px; }
.db-admin svg, .db-admin-detail svg { width: 21px; height: 21px; flex: 0 0 auto; }
.db-admin h1, .db-admin h2, .db-admin h3, .db-admin p, .db-admin-detail h2, .db-admin-detail h3, .db-admin-detail p { margin: 0; color: inherit; }
.db-admin p, .db-admin-detail p { color: var(--adm-muted); }
.db-admin-header { position: static; display: flex; justify-content: space-between; align-items: center; min-height: 90px; flex-shrink: 0; padding: 19px 28px; border-bottom: 1px solid var(--adm-line); background: #fff; gap: 12px; box-shadow: none; z-index: auto; }
.db-admin-brand { display: flex; gap: 12px; align-items: center; }
.db-admin-brand > svg { width: 42px; height: 42px; padding: 9px; background: #e8f5f0; border-radius: 13px; color: var(--adm-teal); }
.db-admin-brand span { display: block; font-size: 10px; letter-spacing: .12em; font-weight: 750; color: var(--adm-teal); }
.db-admin-brand h1 { font-size: 23px; font-weight: 750; line-height: 1.25; letter-spacing: -.03em; }
.db-admin-header-actions { display: flex; gap: 8px; }
.db-admin .db-admin-icon-button, .db-admin-detail .db-admin-icon-button { width: 44px; height: 44px; padding: 10px; flex-shrink: 0; }
.db-admin-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; padding: 12px 25px; border-bottom: 1px solid var(--adm-line); flex-shrink: 0; background: #fff; }
.db-admin-nav button { position: relative; color: #58707b; border: 0; background: transparent; min-height: 50px; }
.db-admin-nav button[aria-selected=true] { background: #e9f5f1; color: #075d55; }
.db-admin-nav .db-admin-count { min-width: 19px; height: 19px; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 10px; border-radius: 10px; padding: 1px 5px; background: #0d746a; color: #fff; }
.db-admin-body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; min-height: 0; padding: 26px 28px 30px; -webkit-overflow-scrolling: touch; }
.db-admin-footer { display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; border-top: 1px solid var(--adm-line); padding: 8px 28px; background: #fff; font-size: 12px; color: var(--adm-muted); }
.db-admin-footer button { border: 0; background: transparent; font-size: 13px; color: #8c4437; }
.db-admin-notice { padding: 11px 28px; color: #075d55; background: #e8f5ee; border-bottom: 1px solid #c7ded2; font-size: 13px; }
.db-admin-notice.is-error { color: #8b382e; background: #fff0eb; border-color: #efd6cd; }
.db-admin-eyebrow { color: var(--adm-teal); display: block; font-size: 10px; font-weight: 800; letter-spacing: .12em; margin-bottom: 8px; }
.db-admin-welcome h2, .db-admin-page-head h2 { font-size: clamp(23px, 3.5vw, 30px); line-height: 1.2; letter-spacing: -.035em; font-weight: 730; }
.db-admin-welcome p, .db-admin-page-head p { font-size: 13px; margin-top: 8px; }
.db-admin-page-head { margin-bottom: 22px; }
.db-admin-page-head h2 > span { display: inline-block; font-size: 13px; background: #e0efea; color: var(--adm-teal); padding: 5px 9px; border-radius: 9px; vertical-align: middle; letter-spacing: 0; }
.db-admin-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 23px 0; }
.db-admin-metrics article, .db-admin-metrics > button { display: flex; align-items: flex-start; justify-content: flex-start; flex-direction: column; text-align: left; padding: 17px; gap: 3px; border: 1px solid var(--adm-line); border-radius: 16px; background: #fff; font-weight: 400; }
.db-admin-metrics span { color: var(--adm-muted); font-size: 12px; }
.db-admin-metrics b { font-size: 33px; line-height: 1.3; font-weight: 740; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.db-admin-metrics small { font-size: 11px; color: var(--adm-muted); }
.db-admin-card { background: #fff; border: 1px solid var(--adm-line); border-radius: 18px; padding: 20px; margin-bottom: 18px; box-shadow: 0 4px 14px #17333b04; }
.db-admin-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.db-admin-section-head h3 { font-size: 17px; letter-spacing: -.02em; }
.db-admin-section-head p { font-size: 12px; margin-top: 3px; }
.db-admin .db-admin-text-button, .db-admin-detail .db-admin-text-button { border: 0; color: var(--adm-teal); background: transparent; padding: 8px; font-size: 13px; white-space: nowrap; }
.db-admin .db-admin-primary, .db-admin-detail .db-admin-primary { background: var(--adm-teal); border-color: var(--adm-teal); color: #fff; }
.db-admin .db-admin-primary:hover, .db-admin-detail .db-admin-primary:hover { background: #075e57; }
.db-admin .db-admin-member-row { display: flex; align-items: center; text-align: left; width: 100%; padding: 16px 0; border: 0; border-bottom: 1px solid #e8eeee; border-radius: 0; gap: 12px; font-weight: 400; }
.db-admin-member-row:last-child { border-bottom: 0; }
.db-admin-avatar { width: 42px; height: 42px; flex: 0 0 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #eaf3ef; color: #267269; font-size: 13px; font-weight: 750; }
.db-admin-member-copy { min-width: 0; flex: 1; }
.db-admin-member-copy b { display: block; font-size: 14px; font-weight: 700; }
.db-admin-member-copy > span { display: block; font-size: 12px; color: var(--adm-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-admin-member-copy small { color: #71838b; font-size: 11px; }
.db-admin-member-score { flex-shrink: 0; text-align: right; }
.db-admin-member-score b { display: block; font-size: 20px; line-height: 1.2; font-weight: 730; }
.db-admin-member-score span { font-size: 10px; color: var(--adm-muted); }
.db-admin-member-row > svg { width: 16px; height: 16px; color: #8ca0a5; }
.db-admin .db-admin-content-row, .db-admin-detail .db-admin-content-row { width: 100%; display: flex; gap: 12px; align-items: flex-start; justify-content: flex-start; text-align: left; padding: 15px 0; border: 0; border-bottom: 1px solid #e8eeee; border-radius: 0; font-weight: 400; }
.db-admin-content-row:last-child { border-bottom: 0; }
.db-admin-content-row > span:nth-child(2) { flex: 1; min-width: 0; }
.db-admin-content-row b { display: block; font-size: 14px; font-weight: 700; }
.db-admin-content-row small { display: block; color: var(--adm-muted); font-size: 11px; margin-top: 2px; }
.db-admin-content-row p { font-size: 12px; margin-top: 5px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.db-admin-content-icon { width: 36px; height: 40px; background: #edf3f5; color: #55737d; border-radius: 9px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.db-admin-tag { display: inline-flex; align-items: center; align-self: flex-start; color: #246b60; background: #edf6f1; border: 1px solid #dbece3; border-radius: 7px; padding: 3px 7px; font-size: 10px; font-weight: 650; text-transform: none; }
.db-admin-tag.is-warn { color: #925d18; border-color: #f0ddbd; background: #fff6e5; }
.db-admin-filter-row { display: flex; gap: 12px; align-items: flex-end; margin: 8px 0 17px; }
.db-admin-filter-row label { display: flex; flex-direction: column; gap: 5px; color: var(--adm-muted); font-size: 11px; font-weight: 650; flex: 1; min-width: 0; }
.db-admin-filter-row .db-admin-search { flex: 2; }
.db-admin input:not([type=checkbox]), .db-admin select, .db-admin-detail input, .db-admin-detail select, .db-admin-detail textarea { width: 100%; min-height: 45px; border: 1px solid #cbdadd; border-radius: 10px; padding: 10px 12px; background: #fff; color: var(--adm-ink); font: inherit; font-size: 14px; box-shadow: none; }
.db-admin-detail textarea { resize: vertical; }
.db-admin-empty { text-align: center; padding: 30px 15px; max-width: 470px; margin: auto; }
.db-admin-empty-icon { display: inline-flex; align-items: center; justify-content: center; background: #edf6f2; color: #4b8a79; width: 46px; height: 46px; border-radius: 14px; margin-bottom: 12px; }
.db-admin-empty b { display: block; font-size: 15px; }
.db-admin-empty p { font-size: 13px; margin-top: 6px; }
.db-admin-empty button { margin-top: 15px; }
.db-admin-loading { text-align: center; padding: 48px 12px; color: var(--adm-muted); font-size: 14px; }
.db-admin-pager { display: flex; gap: 12px; justify-content: center; align-items: center; margin: 18px 0; }
.db-admin-pager span { font-size: 12px; color: var(--adm-muted); }
.db-admin-segment { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--adm-line); background: #eaf0ef; border-radius: 12px; margin-bottom: 18px; }
.db-admin-segment button { min-height: 38px; padding: 8px 25px; background: transparent; border: 0; font-size: 13px; }
.db-admin-segment button[aria-pressed=true] { background: #fff; color: var(--adm-teal); box-shadow: 0 2px 4px #1638390b; }
.db-admin-report-top { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.db-admin-report-top small { color: var(--adm-muted); font-size: 11px; }
.db-admin-report h3 { font-size: 17px; }
.db-admin-report > p { font-size: 14px; margin-top: 7px; }
.db-admin-report-context { border-left: 3px solid #d0e1da; border-radius: 0 8px 8px 0; padding: 11px 14px; background: #f6f9f8; margin: 14px 0; }
.db-admin-report-context span, .db-admin-report-context b { font-size: 11px; color: var(--adm-muted); }
.db-admin-report-context p { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 5px; font-size: 13px; }
.db-admin-report footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 0; padding: 0; }
.db-admin-report footer > span { font-size: 11px; color: var(--adm-muted); }
.db-admin-report footer button { font-size: 12px; }
.db-admin-notification-setting > p { font-size: 12px; margin-top: 12px; }
.db-admin-notification-setting > small { display: block; color: #6b7f85; font-size: 11px; margin-top: 7px; }
.db-admin-toggle { display: flex; position: relative; align-items: center; justify-content: space-between; gap: 15px; min-height: 48px; cursor: pointer; }
.db-admin-toggle span b { font-size: 15px; display: block; }
.db-admin-toggle span small { color: var(--adm-muted); font-size: 12px; }
.db-admin-toggle input { position: absolute; width: 48px; height: 44px; right: 0; margin: 0; opacity: 0; cursor: pointer; }
.db-admin-toggle i { width: 46px; height: 28px; background: #b9c9c8; border-radius: 14px; position: relative; flex-shrink: 0; pointer-events: none; }
.db-admin-toggle i::after { content: ''; display: block; width: 22px; height: 22px; border-radius: 50%; background: #fff; position: absolute; left: 3px; top: 3px; box-shadow: 0 1px 4px #17373e22; transition: transform .15s ease; }
.db-admin-toggle input:checked + i { background: var(--adm-teal); }
.db-admin-toggle input:checked + i::after { transform: translateX(18px); }
.db-admin-toggle input:focus-visible + i { outline: 3px solid #11888c; outline-offset: 3px; }
.db-admin-event { display: flex; gap: 13px; padding: 19px 0; border-bottom: 1px solid #e8eeee; }
.db-admin-event:last-child { border-bottom: 0; }
.db-admin-event-icon { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #eef3f4; color: #74908f; }
.db-admin-event.is-unread .db-admin-event-icon { background: #e2f3e9; color: #087961; }
.db-admin-event-copy { min-width: 0; flex: 1; }
.db-admin-event-copy h3 { font-size: 14px; line-height: 1.45; }
.db-admin-event-copy p { font-size: 11px; margin-top: 3px; margin-bottom: 8px; }
.db-admin-event-copy > small { display: block; color: var(--adm-muted); font-size: 11px; margin-top: 6px; }
.db-admin-event-copy > button { display: flex; padding-left: 0 !important; min-height: 36px; }
.db-admin-audit summary { font-size: 13px; font-weight: 650; color: var(--adm-muted); cursor: pointer; }
.db-admin-audit article { padding: 13px 0; border-bottom: 1px solid #e8eeee; }
.db-admin-audit article:last-child { border-bottom: 0; }
.db-admin-audit article b { font-size: 12px; text-transform: capitalize; }
.db-admin-audit article p { font-size: 12px; margin: 4px 0; }
.db-admin-audit article small { color: var(--adm-muted); font-size: 11px; }
.db-admin-signin { max-width: 400px; margin: 15px auto; text-align: center; padding: 15px 0; }
.db-admin-signin-icon { display: inline-flex; width: 68px; height: 68px; align-items: center; justify-content: center; background: #dfefe7; color: #177761; border-radius: 22px; margin-bottom: 20px; }
.db-admin-signin-icon svg { width: 34px; height: 34px; }
.db-admin-signin h2 { font-size: 28px; line-height: 1.2; letter-spacing: -.04em; margin-bottom: 13px; }
.db-admin-signin > p { font-size: 14px; }
.db-admin-signin form { text-align: left; padding: 24px; background: #fff; border-radius: 18px; border: 1px solid var(--adm-line); margin: 23px 0 15px; }
.db-admin-signin label { display: block; font-size: 12px; font-weight: 650; margin-bottom: 7px; }
.db-admin-signin .db-admin-primary { width: 100%; margin-top: 18px; }
.db-admin-signin > small { color: var(--adm-muted); font-size: 11px; }
.db-admin-hint { font-size: 11px !important; line-height: 1.5; color: #60767e !important; margin-top: 8px !important; }
.db-admin-detail { width: min(620px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); max-width: none; border-radius: 20px; overflow: hidden; padding: 0; }
.db-admin-detail > header { position: static; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #fff; border-bottom: 1px solid var(--adm-line); padding: 17px 22px; box-shadow: none; }
.db-admin-detail > header h2 { font-size: 20px; letter-spacing: -.025em; line-height: 1.3; }
.db-admin-detail-body { padding: 22px; overflow-y: auto; max-height: calc(100dvh - 125px); overscroll-behavior: contain; }
.db-admin-detail h3 { font-size: 17px; }
.db-admin-profile-head > h3 { font-size: 25px; margin-top: 12px; line-height: 1.2; letter-spacing: -.03em; }
.db-admin-profile-head p { font-size: 13px; margin-top: 7px; white-space: pre-wrap; overflow-wrap: anywhere; }
.db-admin-profile-head small { font-size: 11px; color: var(--adm-muted); display: block; margin-top: 10px; }
.db-admin-profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 20px 0 25px; border: 1px solid var(--adm-line); border-radius: 12px; background: #fff; }
.db-admin-profile-stats span { text-align: center; padding: 14px 8px; font-size: 11px; color: var(--adm-muted); }
.db-admin-profile-stats b { display: block; color: var(--adm-ink); font-size: 24px; font-weight: 730; }
.db-admin-review > h3 { font-size: 21px; margin-top: 10px; }
.db-admin-review > small { display: block; font-size: 11px; color: var(--adm-muted); margin-top: 6px; }
.db-admin-review > p { font-size: 14px; margin-top: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.db-admin-action-heading { margin-top: 25px !important; }
.db-admin-action-form { border-top: 1px solid var(--adm-line); margin-top: 22px; padding-top: 21px; }
.db-admin-action-form > label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 650; margin-bottom: 14px; }
.db-admin-action-form > button { width: 100%; margin-top: 15px; }
.db-admin-action-error, .db-admin-error { color: #9b3d2e !important; font-size: 13px; margin-top: 12px !important; }
@media (max-width: 650px) {
  .db-admin { width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .db-admin-header { padding: calc(13px + env(safe-area-inset-top, 0px)) 18px 13px; min-height: 78px; }
  .db-admin-body { padding: 22px 17px; }
  .db-admin-nav { padding: 8px 12px; gap: 3px; }
  .db-admin-nav button { flex-direction: column; gap: 4px; padding: 8px 4px; min-height: 61px; font-size: 11px; }
  .db-admin-nav .db-admin-count { position: absolute; right: 12px; top: 4px; }
  .db-admin-footer { padding: 6px 18px calc(6px + env(safe-area-inset-bottom, 0px)); }
  .db-admin-notice { padding: 11px 18px; }
  .db-admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .db-admin-metrics article, .db-admin-metrics > button { padding: 14px; }
  .db-admin-metrics b { font-size: 29px; }
  .db-admin-card { padding: 16px; border-radius: 15px; }
  .db-admin-section-head { align-items: flex-start; }
  .db-admin-section-head h3 { font-size: 16px; }
  .db-admin-member-copy > span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .db-admin .db-admin-member-row { gap: 10px; }
  .db-admin-member-row > svg { display: none; }
  .db-admin-filter-row { gap: 9px; }
  .db-admin-filter-row select, .db-admin-filter-row input { font-size: 16px; padding: 10px; }
  .db-admin-signin input { font-size: 16px !important; }
  .db-admin-content-row .db-admin-tag { max-width: 70px; font-size: 9px; padding: 3px 5px; }
  .db-admin-report footer { align-items: flex-start; }
  .db-admin-report footer button { padding: 10px 12px; }
  .db-admin-report footer > span { padding-top: 6px; }
  .db-admin-report-context { padding: 10px; }
  .db-admin-detail { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); margin: auto; }
  .db-admin-detail > header { padding: 14px 16px; }
  .db-admin-detail > header h2 { font-size: 19px; }
  .db-admin-detail-body { padding: 17px; max-height: calc(100dvh - 98px); padding-bottom: calc(17px + env(safe-area-inset-bottom, 0px)); }
  .db-admin-detail select, .db-admin-detail textarea { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .db-admin-toggle i::after { transition: none; } }
