/* 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 > * { 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; }
@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; }
}

/* The repository's group in the one sidebar: the dashboard's own entries, then History. */
.rail-group { display: contents; }
.rail-group[hidden] { display: none; }
/* The dashboard's top-bar tools belong to a repository; the org app loads no files. */
#loadBtn { display: none; }
body:not(.on-repo) #searchBtn, body:not(.on-repo) .topbar .menu { display: none; }
@media (max-width: 760px) { .rail-pill { overflow-x: auto; justify-content: flex-start; } }
/* .repo-pill sets its own display, which would otherwise show the org and repository pills
   empty while signed out or off a repository. */
.repo-pill[hidden] { display: none; }
