/* The org pages' few additions to the dashboard's own stylesheet (dashboard/template.html),
   which this page links first. Same tokens, no new look. */
.org-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.org-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.org-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.org-table tr:last-child td { border-bottom: 0; }
.org-table a { color: inherit; font-weight: 600; }
.org-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.org-form input, .org-form select { font: inherit; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card-solid); color: var(--ink); min-width: 0; }
.org-form input[type=email] { flex: 1 1 240px; }
.org-code { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; padding: 14px 16px; border-radius: 12px; background: var(--solid); color: #fff; overflow-x: auto; white-space: pre; }
.org-status { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.org-status.new { background: var(--blush); color: #8a1f2b; }
.org-status.open { background: rgba(28,27,26,.06); color: var(--ink-2); }
.org-status.fixed { background: rgba(60,156,116,.16); color: #23614a; }
.org-gap { display: grid; gap: 14px; }
.org-gap > *, .org-tiles > *, .org-trends > * { min-width: 0; }
.org-gap > .card { overflow-x: auto; }
.org-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn-quiet { border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 13px; padding: 10px 16px; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; }
.btn-quiet:hover { background: rgba(28,27,26,.05); }
.btn-danger { color: #a3202e; }
.org-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 14px; margin-bottom: 14px; }
.org-tile-n { font-size: 40px; font-weight: 700; line-height: 1.1; color: var(--ink); }
.org-trends { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 14px; margin-bottom: 26px; }
.org-journey { font-size: 15px; margin: 6px 0; }
.org-spark { width: 100%; height: auto; display: block; margin-top: 6px; }
.org-spark-base { stroke: var(--line); stroke-width: 1; }
.org-spark-line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.org-spark-dot { fill: var(--ink); stroke: var(--card-solid); stroke-width: 2; }
.org-spark-label { font-size: 12px; font-weight: 600; fill: var(--ink-2); }
@media (max-width: 640px) { .org-table .hide-sm { display: none; } }

.theme-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-left: 10px; border-radius: 13px; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.12); color: #fff; }
.theme-btn:hover { background: rgba(255,255,255,.22); }
.theme-btn svg { width: 20px; height: 20px; }
/* Dark: the colours above that are not tokens. */
:root[data-theme="dark"] .org-status.new { background: rgba(235,81,96,.22); color: #ffb3bb; }
:root[data-theme="dark"] .org-status.open { background: rgba(255,255,255,.08); }
:root[data-theme="dark"] .org-status.fixed { color: #8fd8b8; }
:root[data-theme="dark"] .btn-quiet:hover { background: rgba(255,255,255,.08); }
:root[data-theme="dark"] .btn-danger { color: #ff8f9a; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .org-status.new { background: rgba(235,81,96,.22); color: #ffb3bb; }
  :root:not([data-theme="light"]) .org-status.open { background: rgba(255,255,255,.08); }
  :root:not([data-theme="light"]) .org-status.fixed { color: #8fd8b8; }
  :root:not([data-theme="light"]) .btn-quiet:hover { background: rgba(255,255,255,.08); }
  :root:not([data-theme="light"]) .btn-danger { color: #ff8f9a; }
}
