/* owner-accounts.css — "All my accounts". Drawn over <main> like the other
 * Insight screens; light first, no coloured edges on any box (owner). */
[data-crm-owner-host] { position: relative; }

.crm-own {
  --ow-ink: #1d1b1c;
  --ow-muted: #55606c;
  --ow-line: #e8ebe4;
  --ow-card: #ffffff;
  --ow-soft: #f6f7f3;
  --ow-warn: var(--crm-alert-ink, #c8243b);
  --ow-warn-bg: var(--crm-alert-bg, #fff1f2);
  --ow-lime: #d4fb08;

  position: absolute;
  inset: 0;
  z-index: 60;
  overflow: auto;
  padding: 22px 24px 40px;
  background: var(--ow-soft);
  color: var(--ow-ink);
  text-align: start;
}

:root.dark .crm-own, .dark .crm-own, [data-theme="dark"] .crm-own {
  --ow-ink: #e8eaed;
  --ow-muted: #9aa3af;
  --ow-line: #2c3138;
  --ow-card: #1b1e23;
  --ow-soft: #15181c;
  --ow-warn: var(--crm-alert-ink, #c8243b);
  --ow-warn-bg: var(--crm-alert-bg, #fff1f2);
}

.crm-own * { box-sizing: border-box; }
.crm-own button, .crm-own input, .crm-own a { font: inherit; }
.crm-own i[class*="fi-"] { display: inline-flex; line-height: 1; font-style: normal; }

.crm-own__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.crm-own__title { margin: 0; font-size: 22px; font-weight: 700; }
.crm-own__muted { margin: 4px 0 0; color: var(--ow-muted); font-size: 13px; line-height: 1.6; }
.crm-own__h2 { margin: 0; font-size: 15px; font-weight: 700; }

.crm-own__bell {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px;
  border: 1px solid var(--ow-line); border-radius: 8px; background: var(--ow-card); color: var(--ow-ink);
  font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.crm-own__bell.is-on { background: var(--ow-lime); border-color: transparent; color: #000; }

.crm-own__updates { background: var(--ow-card); border: 1px solid var(--ow-line); border-radius: 8px; padding: 16px 18px; margin-bottom: 16px; }
.crm-own__fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-top: 12px; }
.crm-own__field { display: flex; flex-direction: column; gap: 6px; }
.crm-own__flabel { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; }
.crm-own__fline { display: flex; align-items: center; gap: 8px; }
.crm-own__input {
  flex: 1; min-width: 0; height: 38px; padding: 0 12px; border: 1px solid var(--ow-line); border-radius: 8px;
  background: var(--ow-soft); color: var(--ow-ink); text-align: left;
}
.crm-own__link {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 0; border-radius: 8px;
  background: var(--ow-lime); color: #000; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.crm-own__link:disabled, .crm-own__unlink:disabled { opacity: .55; cursor: default; }
.crm-own__linked {
  flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px;
  border: 1px solid var(--ow-line); border-radius: 8px; background: var(--ow-soft); font-weight: 600; overflow: hidden;
}
.crm-own__linked .fi-rr-check { color: #16a34a; }
.crm-own__unlink {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border: 1px solid var(--ow-line);
  border-radius: 8px; background: var(--ow-card); color: var(--ow-ink); cursor: pointer; white-space: nowrap;
}
.crm-own__unlink:hover { background: var(--ow-warn-bg); color: var(--ow-warn); }
.crm-own__note { margin-top: 12px; padding: 8px 12px; border-radius: 8px; background: var(--ow-soft); font-size: 13px; }
.crm-own__note.is-bad { background: var(--ow-warn-bg); color: var(--ow-warn); }

.crm-own__tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.crm-own__tile { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--ow-card); border: 1px solid var(--ow-line); border-radius: 8px; }
.crm-own__tile b { display: block; font-size: 20px; }
.crm-own__tile span { font-size: 12.5px; color: var(--ow-muted); }
.crm-own__ticon { width: 36px; height: 36px; border-radius: 8px; background: var(--ow-soft); display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.crm-own__tile.is-warn .crm-own__ticon { background: var(--ow-warn-bg); color: var(--ow-warn); }

.crm-own__list { display: flex; flex-direction: column; gap: 10px; }
.crm-own__row {
  display: grid; grid-template-columns: minmax(220px, 2fr) repeat(6, minmax(92px, 1fr)); gap: 10px; align-items: center;
  padding: 14px 16px; background: var(--ow-card); border: 1px solid var(--ow-line); border-radius: 8px;
  color: inherit; text-decoration: none;
}
.crm-own__row:hover { background: var(--ow-soft); }
.crm-own__row.is-closed { opacity: .6; }
.crm-own__name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.crm-own__name > b { font-size: 15px; }
.crm-own__top { flex-basis: 100%; font-size: 12.5px; color: var(--ow-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crm-own__pill { padding: 1px 8px; border-radius: 999px; background: var(--ow-soft); font-size: 11.5px; color: var(--ow-muted); }
.crm-own__cell { display: flex; flex-direction: column; min-width: 0; }
.crm-own__cell b { font-size: 16px; }
.crm-own__cell span { font-size: 12px; color: var(--ow-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crm-own__cell.is-warn b { color: var(--ow-warn); }
.crm-own__channels b { font-size: 13.5px; }

@media (max-width: 900px) {
  .crm-own { padding: 16px; }
  .crm-own__row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .crm-own__name { grid-column: 1 / -1; }
}

/* ---- respond.io's shape (owner, 2026-09-29) ----
   A white page, the name small over a hairline, figures without their icon
   tiles, and the accounts as one list of rows under hairlines instead of a
   stack of cards. The reds stay: they are things that need him. */
.crm-own { --ow-line: rgba(53, 60, 69, .16); --ow-soft: #ffffff; }
:root.dark .crm-own, .dark .crm-own, [data-theme="dark"] .crm-own { --ow-line: #2c3138; --ow-soft: #15181c; }
.crm-own__head { padding-bottom: 12px; border-bottom: 1px solid var(--ow-line); align-items: center; }
.crm-own__title { font-size: 16px; font-weight: 600; }
.crm-own__ticon { display: none; }
.crm-own__tile b { font-size: 28px; font-weight: 600; line-height: 1.2; }
.crm-own__tile span { font-size: 14px; }
.crm-own__list { gap: 0; border: 1px solid var(--ow-line); border-radius: 8px; overflow: hidden; }
.crm-own__row { border: 0; border-bottom: 1px solid var(--ow-line); border-radius: 0; min-height: 56px; transition: background-color .15s cubic-bezier(.4, 0, .2, 1); }
.crm-own__row:last-child { border-bottom: 0; }
.crm-own__row:hover { background: #f5f6f7; }
:root.dark .crm-own__row:hover, .dark .crm-own__row:hover { background: rgba(255, 255, 255, .04); }
