/* Private owner activity: a readable operations ledger, using BC's established palette. */
.owner-notifications {
  --on-wine: #541d2d;
  --on-ink: #30282a;
  --on-muted: #6a5e61;
  --on-line: #ded4cf;
  --on-paper: #fcfaf7;
  color: var(--on-ink);
  font-family: var(--sans, 'DM Sans', sans-serif);
  font-size: 14px;
  line-height: 1.55;
  max-width: 1180px;
  margin: 0 auto;
}
.owner-notifications *,
.owner-notifications *::before,
.owner-notifications *::after {
  box-sizing: border-box;
}
.owner-notifications :is(h2, h3, h4, p, ol, dl) {
  margin: 0;
}
.owner-notifications :is(button, input, select) {
  font: inherit;
}
.owner-notifications :is(button, a, summary, input, select):focus-visible {
  outline: 3px solid #a7773c;
  outline-offset: 3px;
}
.on-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.owner-notifications .on-kicker {
  color: var(--on-wine);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.owner-notifications .on-header h2 {
  margin: 8px 0;
  color: var(--on-wine);
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.12;
}
.owner-notifications .on-header p {
  color: var(--on-muted);
  font-size: 15px;
}
.owner-notifications .on-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  width: auto;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid var(--on-wine);
  border-radius: 7px;
  background: var(--on-wine);
  color: #fffaf3;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
  cursor: pointer;
}
.owner-notifications .on-button:hover {
  background: #743448;
}
.owner-notifications .on-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.owner-notifications .on-button--quiet {
  background: transparent;
  color: var(--on-wine);
  white-space: nowrap;
}
.owner-notifications .on-button--quiet:hover {
  background: #eee2dd;
}
.on-channel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border: 1px solid var(--on-line);
  border-radius: 9px;
  background: #f2eae2;
}
.on-channel-indicator {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8b6744;
  box-shadow: 0 0 0 4px #8b674418;
}
.on-channel-indicator--ready {
  background: #376547;
  box-shadow: 0 0 0 4px #37654718;
}
.on-channel > div {
  display: grid;
  gap: 2px;
}
.on-channel strong {
  font-size: 13px;
}
.on-channel span {
  overflow-wrap: anywhere;
}
.on-channel > div > span {
  color: var(--on-muted);
  font-size: 13px;
}
.on-channel-note {
  margin-left: auto;
  color: var(--on-muted);
  font-size: 12px;
  text-align: right;
}
.on-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 22px 0;
  padding: 20px 0;
  border-bottom: 1px solid var(--on-line);
}
.on-metrics > div {
  display: grid;
  gap: 3px;
  padding: 0 22px;
  border-right: 1px solid var(--on-line);
}
.on-metrics > div:first-child {
  padding-left: 0;
}
.on-metrics > div:last-child {
  border: 0;
}
.on-metrics span {
  color: var(--on-muted);
  font-size: 12px;
}
.on-metrics strong {
  color: var(--on-wine);
  font-size: 32px;
  font-weight: 550;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.on-metrics small {
  color: var(--on-muted);
  font-size: 11px;
}
.on-filters {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 24px;
}
.owner-notifications label:not(.on-check) {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--on-muted);
  font-size: 12px;
  font-weight: 600;
}
.on-filters > label:not(.on-check) {
  flex: 1 1 180px;
}
.owner-notifications :is(input:not([type='checkbox']), select) {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cbbdb7;
  border-radius: 6px;
  background: var(--on-paper);
  color: var(--on-ink);
  font-size: 14px;
  font-weight: 400;
}
.owner-notifications .on-check {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  font-size: 13px;
  cursor: pointer;
}
.on-check input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--on-wine);
}
.owner-notifications .on-clear {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--on-muted);
  font-size: 13px;
}
.on-results {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
  color: var(--on-muted);
  font-size: 12px;
}
.on-results strong {
  color: var(--on-ink);
  font-weight: 600;
}
.on-feed {
  overflow: hidden;
  border: 1px solid var(--on-line);
  border-radius: 10px;
  background: var(--on-paper);
}
.on-event {
  position: relative;
  padding: 23px 24px 0;
  border-bottom: 1px solid var(--on-line);
}
.on-event:last-child {
  border-bottom: 0;
}
.on-event--unread {
  box-shadow: inset 3px 0 var(--on-wine);
}
.on-event--resolved {
  background: #f6f4f0;
}
.on-event-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.on-event-kind {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--on-muted);
  font-size: 11px;
  font-weight: 500;
}
.on-event-kind time {
  font-weight: 400;
}
.owner-notifications .on-event h3 {
  margin: 6px 0;
  font-family: var(--sans, sans-serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.on-badge {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid #cec4bc;
  border-radius: 5px;
  color: #5c534d;
  background: #f0ebe5;
  font-size: 11px;
  line-height: 1.35;
}
.on-badge--accepted {
  border-color: #bcd0bf;
  color: #2e593e;
  background: #edf3ed;
}
.on-badge--unknown,
.on-badge--failed {
  border-color: #d4b99e;
  color: #78502d;
  background: #fbf0e3;
}
.owner-notifications .on-event-summary {
  max-width: 72ch;
  color: var(--on-muted);
  overflow-wrap: anywhere;
}
.on-event-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 8px 0 0;
}
.on-source-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--on-wine);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.on-source-link:hover {
  text-decoration: underline;
}
.on-reference {
  color: var(--on-muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}
.on-state-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-left: auto;
}
.on-state-actions button {
  min-height: 44px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--on-muted);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.on-state-actions button:hover {
  color: var(--on-wine);
}
.on-action-feedback:empty {
  display: none;
}
.on-action-feedback {
  padding: 0 0 12px;
  font-size: 12px;
  color: var(--on-wine);
}
.on-detail {
  border-top: 1px solid #eae2dc;
}
.on-detail > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 44px;
  padding: 8px 0;
  color: var(--on-muted);
  font-size: 12px;
  cursor: pointer;
  list-style: none;
}
.on-detail > summary::-webkit-details-marker {
  display: none;
}
.on-detail > summary::after {
  content: '+';
  font-size: 18px;
}
.on-detail[open] > summary::after {
  content: '−';
}
.on-detail-body {
  padding: 10px 0 24px;
}
.on-delivery-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 28px;
}
.on-delivery-facts > div {
  display: grid;
  gap: 4px;
}
.on-delivery-facts dt {
  color: var(--on-muted);
  font-size: 11px;
}
.on-delivery-facts dd {
  margin: 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.owner-notifications .on-caution {
  margin: 18px 0;
  padding: 13px 16px;
  border-left: 3px solid #ad8556;
  background: #f3eadf;
  font-size: 13px;
}
.on-evidence-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
  padding: 18px;
  border: 1px solid var(--on-line);
  border-radius: 7px;
}
.on-evidence-form > :is(p, button) {
  grid-column: 1 / -1;
}
.on-evidence-form > p {
  color: var(--on-muted);
  font-size: 12px;
}
.on-evidence-form button {
  justify-self: start;
}
.owner-notifications .on-detail h4 {
  margin: 22px 0 12px;
  font-size: 12px;
  font-weight: 650;
}
.owner-notifications .on-history {
  list-style: none;
  padding: 0;
}
.on-history li {
  display: grid;
  grid-template-columns: minmax(130px, 190px) minmax(0, 1fr);
  gap: 15px;
  padding: 11px 0;
  border-top: 1px solid #eae2dc;
  font-size: 12px;
}
.on-history li > span {
  color: var(--on-muted);
}
.on-history p {
  margin-top: 3px;
  color: var(--on-muted);
  overflow-wrap: anywhere;
}
.on-history strong {
  font-weight: 550;
}
.on-empty {
  padding: 50px 24px;
  text-align: center;
}
.on-empty-icon {
  display: inline-block;
  margin-bottom: 12px;
  color: #9d7d6b;
  font-size: 32px;
}
.owner-notifications .on-empty h3 {
  margin: 0 0 8px;
  font-size: 19px;
}
.owner-notifications .on-empty p {
  max-width: 54ch;
  margin: 0 auto 18px;
  color: var(--on-muted);
}
.on-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  color: var(--on-muted);
  font-size: 12px;
}
.on-pagination a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--on-wine);
}
.on-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--on-line);
}
.owner-notifications .on-footer h3 {
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
}
.owner-notifications .on-footer p {
  margin: 8px 0;
  color: var(--on-muted);
  font-size: 12px;
}
.on-footer details > summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--on-wine);
  font-size: 13px;
  cursor: pointer;
}
.on-footer details > summary::before {
  content: '+';
  padding-right: 10px;
}
.on-footer details[open] > summary::before {
  content: '−';
}
.on-sources dl > div {
  margin: 8px 0;
  font-size: 12px;
}
.on-sources dt {
  font-weight: 600;
}
.on-sources dd {
  margin: 2px 0;
  color: var(--on-muted);
}
.on-test {
  align-self: start;
  padding: 0 18px;
  border: 1px solid var(--on-line);
  border-radius: 7px;
}
.on-test form {
  padding-bottom: 16px;
}
.on-test .on-check {
  margin: 12px 0;
  align-items: flex-start;
}
.on-test input {
  margin-top: 3px;
}
@media (max-width: 760px) {
  .owner-notifications {
    font-size: 15px;
  }
  .on-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  .owner-notifications .on-header h2 {
    font-size: 36px;
  }
  .on-channel {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 15px;
  }
  .on-channel-indicator {
    margin-top: 7px;
  }
  .on-channel-note {
    flex-basis: 100%;
    margin-left: 20px;
    text-align: left;
  }
  .on-metrics {
    gap: 0;
  }
  .on-metrics > div {
    padding: 0 10px;
  }
  .on-metrics strong {
    font-size: 29px;
  }
  .on-metrics span {
    font-size: 11px;
  }
  .on-metrics small {
    font-size: 10px;
    line-height: 1.4;
  }
  .on-filters {
    gap: 12px;
  }
  .on-filters > label:not(.on-check) {
    flex-basis: 100%;
  }
  .owner-notifications :is(input:not([type='checkbox']), select) {
    font-size: 16px;
  }
  .on-results {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
  .on-event {
    padding: 19px 16px 0;
  }
  .on-event-heading {
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
  }
  .owner-notifications .on-event h3 {
    font-size: 19px;
  }
  .on-event-summary {
    font-size: 14px;
  }
  .on-event-actions {
    gap: 0 14px;
  }
  .on-reference {
    flex-basis: 100%;
  }
  .on-state-actions {
    margin-left: 0;
    gap: 22px;
  }
  .on-delivery-facts {
    grid-template-columns: minmax(0, 1fr);
  }
  .on-evidence-form {
    grid-template-columns: minmax(0, 1fr);
    padding: 14px;
  }
  .on-history li {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .on-footer {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}
.owner-notifications .on-preferences {
  margin-top: 24px;
  padding: 0 20px;
  border: 1px solid var(--on-line);
  border-radius: 8px;
  background: var(--on-paper);
}
.on-preferences > summary {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--on-wine);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.on-preferences > summary::before {
  content: '+';
  margin-right: 12px;
}
.on-preferences[open] > summary::before {
  content: '−';
}
.on-preferences form {
  padding: 8px 0 20px;
}
.on-preferences fieldset {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 18px;
  margin: 16px 0;
  padding: 12px 0;
  border: 0;
  border-top: 1px solid var(--on-line);
  border-bottom: 1px solid var(--on-line);
}
.on-preferences legend {
  padding-right: 12px;
  color: var(--on-muted);
  font-size: 12px;
  font-weight: 600;
}
.on-preferences p {
  margin: 10px 0;
  color: var(--on-muted);
  font-size: 12px;
}
.on-badge--muted {
  background: transparent;
}
@media (max-width: 760px) {
  .on-preferences fieldset {
    grid-template-columns: minmax(0, 1fr);
  }
}
