/* Koma's dashboard (2026-10-15; site/admin.js). Classes start with ad- (short shared names like .wide collide elsewhere).
   No coloured left-edge bars (owner rule): states are tinted chips and dots. */
.ad .pagehead { margin-bottom: 6px; }
.ad-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 4px 0 18px; padding: 2px var(--gut); }
#ad-body { padding: 0 var(--gut) calc(var(--bot) + 96px); }   /* the page itself has no side padding; room for the tab bar */
.ad-tabs::-webkit-scrollbar { display: none; }
.ad-tabs a { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--bg-2); color: var(--fg-dim); font-weight: 650; font-size: .9rem; }
.ad-tabs a .ic { width: 17px; height: 17px; }
.ad-tabs a.on { background: #fff; color: #000; }
.ad-sec { margin: 0 0 22px; }
.ad-sec h2 { font-size: 1.05rem; font-weight: 750; margin: 0 0 10px; letter-spacing: -.01em; }
.ad-sec h2 small { font-weight: 600; font-size: .8rem; }
.ad-h { display: flex; align-items: baseline; justify-content: space-between; } .ad-h .more { color: var(--accent-ink); font-weight: 650; font-size: .88rem; }
.ad-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 10px; }
.ad-card { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 18px; background: var(--bg-1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); min-width: 0; }
.ad-k { font-size: .74rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-mute); }
.ad-v { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; font-weight: 750; min-width: 0; line-height: 1.25; overflow-wrap: anywhere; }
.ad-sub { font-size: .82rem; color: var(--fg-dim); line-height: 1.35; }
.ad-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #8e8e93; } .ad-dot.ok { background: #30d158; } .ad-dot.bad { background: #ff453a; }
.ad-pill { flex: none; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--bg-3); color: var(--fg-dim); } .ad-pill.ok { background: rgba(48,209,88,.16); color: #5fe08a; }
.ad-row { color: inherit; } .ad-row > .ic { width: 18px; height: 18px; color: var(--fg-mute); flex: none; }
.ad-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; }
.ad-bar .inp { flex: 1; min-width: 180px; }
.ad-check { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--fg-dim); cursor: pointer; }
.ad-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.ad-list { display: flex; flex-direction: column; gap: 8px; }
.ad-person { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 16px; background: var(--bg-1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); color: inherit; text-align: left; font: inherit; border: 0; cursor: pointer; }
.ad-person:active { background: var(--bg-2); }
.ad-person .avatar { flex: none; }
.ad-pm { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ad-pm b { font-weight: 700; } .ad-pm small { color: var(--fg-dim); font-size: .8rem; line-height: 1.35; }
.ad-you { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: .7rem; font-weight: 750; vertical-align: 2px; }
.ad-chip { flex: none; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; background: var(--bg-3); color: var(--fg-dim); white-space: nowrap; }
.ad-chip.ok { background: rgba(48,209,88,.15); color: #5fe08a; } .ad-chip.wait { background: rgba(255,159,10,.16); color: #ffb340; } .ad-chip.bad { background: rgba(255,69,58,.16); color: #ff6961; }
.ad-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.ad-acts .btn { flex: 1 1 calc(50% - 8px); justify-content: center; }
.ad-danger { color: #ff6961 !important; } .ad-danger-solid { background: #ff453a; color: #fff; }
.ad-invite { padding: 14px 16px; border-radius: 14px; background: var(--bg-2); line-height: 1.5; user-select: all; -webkit-user-select: all; margin: 0 0 14px; }
.ad-note { color: var(--fg-mute); font-size: .82rem; line-height: 1.45; margin: 10px 2px 0; }
.ad-dev .ad-devic, .ad-ev .ad-evic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--bg-2); color: var(--fg-dim); }
.ad-dev .ad-devic .ic, .ad-ev .ad-evic .ic { width: 17px; height: 17px; }
.ad-ev.alert .ad-evic { background: rgba(255,69,58,.14); color: #ff6961; } .ad-ev.admin .ad-evic { background: var(--accent-soft); color: var(--accent-ink); }
.ad-ev.read .ad-evic { background: rgba(48,209,88,.12); color: #5fe08a; }
.ad-ev .ad-t { flex: none; font-size: .78rem; color: var(--fg-mute); font-variant-numeric: tabular-nums; }
.ad-day { font-size: .74rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-mute); margin: 4px 2px 8px; }
.ad-filters .ad-sel { flex: 0 1 220px; min-width: 150px; }
.ad-kinds { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; } .ad-kinds::-webkit-scrollbar { display: none; }
.ad-log { max-height: 68vh; overflow: auto; padding: 12px 14px; border-radius: 14px; background: var(--bg-1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  font: 500 .74rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--fg-dim); white-space: pre-wrap; word-break: break-word; }
.ad-log > div { padding: 2px 0; border-bottom: 1px solid rgba(255,255,255,.04); }
#ad-body { max-width: 1000px; } #ad-body .feed { max-width: none; padding: 0 16px; }   /* cards and lists line up on wide screens */
.ad-more { margin-top: 10px; } .ad-more summary { cursor: pointer; color: var(--fg-dim); font-size: .86rem; font-weight: 650; padding: 6px 2px; }
