/* Account pages: /submit (and the listing editor), /me and /login. The same recipes as the panel:
   white cards with a hairline, soft pills, dark primary buttons, big light titles.
   Values come from tokens.css, the frame from site.css. */
.ac { font-size: 14px; line-height: 1.5; color: var(--text); overflow-x: clip; }
.ac [hidden] { display: none !important; }
.ac a { color: inherit; text-decoration: none; }
.ac h1, .ac h2, .ac h3 { font-family: inherit; color: var(--text); text-wrap: balance; margin: 0; }
.ac h1 { font-size: var(--t-title); font-weight: var(--w-title); line-height: 1.16; letter-spacing: var(--ls-title); }
.ac h2 { font-size: var(--t-section); font-weight: var(--w-title); line-height: 1.25; letter-spacing: var(--ls-section); }
.ac h3 { font-size: var(--t-card); font-weight: var(--w-strong); line-height: 1.35; letter-spacing: -.006em; }
.ac b { font-weight: var(--w-strong); }
.ac p { margin: 0; }
.ac-ic { flex: none; display: block; stroke-width: 1.75; }
.ac-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; }
.ac :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ac-wrap { max-width: var(--max-w); margin: 0 auto; padding-inline: var(--pad-x); }
.ac-col { max-width: calc(760px + 2 * var(--pad-x)); margin: 0 auto; padding-inline: var(--pad-x); }
.ac-lead { font-size: 14px; color: var(--muted); max-width: 72ch; text-wrap: pretty; }
.ac-hint { font-size: var(--t-small); color: var(--muted); text-wrap: pretty; }
.ac-err { font-size: var(--t-ui); color: var(--bad); }
.ac-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ac .ac-more { display: inline-flex; align-items: center; gap: 5px; font-size: var(--t-ui); font-weight: var(--w-strong); color: var(--accent-text); transition: color .12s; }
.ac .ac-more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Buttons: the panel's */
.ac-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding-inline: 11px; border-radius: var(--r); border: 1px solid transparent; font: inherit; font-size: var(--t-ui); font-style: normal; font-weight: var(--w-strong); line-height: 1.2; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s, color .12s; }
.ac-btn-primary { background: var(--text); border-color: var(--text); color: var(--ink) !important; }
.ac-btn-primary:hover { background: var(--text-hover); border-color: var(--text-hover); }
.ac-btn-primary:disabled { background: var(--raise); border-color: var(--raise); color: var(--muted) !important; cursor: not-allowed; }
.ac-btn-line { background: var(--panel); border-color: var(--border-2); color: var(--text); }
.ac-btn-line:hover { background: var(--field); }
.ac-btn-sm { height: 28px; padding-inline: 9px; font-size: var(--t-small); border-radius: 7px; }
.ac-btn-lg { height: 34px; padding-inline: 12px; font-size: var(--t-ui); }
.ac-link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-text); font-weight: var(--w-strong); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; transition: color .12s; }

/* Soft pills */
.ac-tag { display: inline-flex; align-items: center; gap: 4px; font-size: var(--t-small); font-weight: var(--w-strong); padding: 1px 9px; border-radius: var(--r-pill); background: var(--field); color: var(--muted); white-space: nowrap; }
.ac-tag-ok { background: var(--good-soft); color: var(--good-text); }
.ac-opt { display: inline-block; margin-left: 6px; font-size: var(--t-micro); font-weight: var(--w-strong); letter-spacing: 0; color: var(--muted); padding: 0 8px; border-radius: var(--r-pill); background: var(--field); vertical-align: 1px; }
.ac-status { display: inline-flex; align-items: center; font-size: var(--t-small); font-weight: var(--w-strong); padding: 1px 9px; border-radius: var(--r-pill); background: var(--field); color: var(--muted); white-space: nowrap; }
.ac-status-pending { background: var(--warn-soft); color: var(--warn); }
.ac-status-approved { background: var(--good-soft); color: var(--good-text); }
.ac-status-rejected { background: var(--bad-soft); color: var(--bad); }

/* Notices: the panel's .notice */
.ac-notice { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 16px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-card); font-size: 14px; color: var(--muted); }
.ac-notice b { font-weight: var(--w-strong); }
.ac-notice-ok { background: var(--good-soft); border-color: transparent; color: var(--good-text); }
.ac-notice-bad { background: var(--bad-soft); border-color: transparent; color: var(--bad); }
.ac-notice-bad > b:first-child { display: block; width: 100%; color: var(--bad); font-weight: var(--w-strong); }
.ac-notice-bad > .ac-ic + b { display: inline; width: auto; }
.ac-notice-bad p { color: var(--text); }

/* ── Editor ─────────────────────────────────── */
.ac-head { display: grid; gap: 6px; justify-items: start; padding-block: 28px 20px; }
.ac-head-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.ac-head-links { display: flex; gap: 16px; }
.ac-head-links:empty { display: none; }
.ac-head-links a { display: inline-flex; align-items: center; gap: 5px; font-size: var(--t-ui); font-weight: var(--w-strong); color: var(--accent-text); }
.ac-head-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

.ed-form { display: block; counter-reset: acsec; }
.ac-sec { display: grid; gap: 14px; padding: 16px 18px 18px; margin-bottom: 12px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-card); counter-increment: acsec; scroll-margin-top: 72px; min-width: 0; }
.ac-sec-head { display: grid; gap: 3px; }
.ac .ac-sec-head h2 { font-size: 15px; font-weight: var(--w-strong); letter-spacing: -.008em; line-height: 1.35; }
.ac-sec-head h2::before { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-right: 9px; border-radius: 50%; background: var(--field); border: 1px solid var(--border-2); font-size: var(--t-micro); font-weight: 400; color: var(--muted); content: counter(acsec); }
.ac-sec-head p { font-size: var(--t-ui); color: var(--muted); max-width: 72ch; padding-left: 31px; text-wrap: pretty; }

/* The token is the one real choice on the page, so it sits on the soft group colour. */
.ac-token { background: var(--group); }
.ac-token + .ac-sec { margin-top: 0; }
.ac-token-alt { font-size: var(--t-ui); color: var(--muted); padding-top: 12px; border-top: 1px solid var(--border); }

.ac-verify { display: grid; gap: 10px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-card); padding: 16px 18px; margin-bottom: 12px; }
.ac-verify-say { display: grid; gap: 3px; }
.ac-verify > .ac-link { justify-self: start; }
.ac .ac-verify-say h2 { font-size: 15px; font-weight: var(--w-strong); letter-spacing: -.008em; }
.ac-verify-say p { font-size: var(--t-ui); color: var(--muted); max-width: 72ch; text-wrap: pretty; }

/* Inputs */
.ac-input { display: block; width: 100%; min-height: 34px; padding: 6px 10px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r); font: inherit; font-size: 14px; line-height: 1.45; color: var(--text); outline: 0; transition: border-color .12s; }
.ac-input:hover { border-color: var(--border-2); }
.ac-input:focus { border-color: var(--accent); }
.ac-input::placeholder { color: var(--dim); }
.ac-area { resize: vertical; min-height: 64px; }
.ac-select { appearance: none; -webkit-appearance: none; padding-right: 32px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A857E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.ac-inline { display: flex; gap: 8px; }
.ac-inline .ac-input { flex: 1; min-width: 0; }
.ac-inline .ac-btn { flex: none; align-self: flex-start; height: 34px; }
.ac-field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.ac-label { font-size: var(--t-small); font-weight: var(--w-strong); color: var(--text); }
.ac-label-row { display: flex; align-items: center; gap: 10px; }
.ac-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ac-count { font-size: var(--t-micro); color: var(--muted); text-align: right; margin-top: -8px; font-variant-numeric: tabular-nums; }
.ac-count .over { color: var(--bad); }

/* Picture */
.ac-pic { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.ac-pic-tile { flex: none; width: 72px; height: 72px; border-radius: var(--r-card); overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--field); border: 1px solid var(--border); color: var(--muted); transition: border-color .12s; }
.ac-pic:hover .ac-pic-tile { border-color: var(--border-2); }
.ac-pic:focus-within .ac-pic-tile { border-color: var(--accent); }
.ac-pic-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ac-pic-say { display: grid; gap: 3px; justify-items: start; min-width: 0; }
.ac-pic-say b { font-size: var(--t-small); font-weight: var(--w-strong); }
.ac-pic-say > span { font-size: var(--t-small); color: var(--muted); max-width: 52ch; text-wrap: pretty; }
.ac-pic-say .ac-btn { margin-top: 5px; }
.ac-pic:hover .ac-btn-line { background: var(--field); }

/* Bot or mini app: the segmented control */
.ac .ed-type { display: flex; gap: 2px; padding: 2px; background: var(--field); border: 1px solid var(--border); border-radius: var(--r); overflow: visible; }
.ac .ed-type input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ac .ed-type label { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 28px; padding-inline: 8px; white-space: nowrap; border: 1px solid transparent; border-radius: 6px; background: none; font-size: var(--t-small); font-weight: 500; color: var(--muted); cursor: pointer; transition: background .12s, border-color .12s, color .12s; }
.ac .ed-type label:hover { color: var(--text); }
.ac .ed-type input:checked + label { background: var(--panel); border-color: var(--border); color: var(--text); }
.ac .ed-type input:checked + label:hover { color: var(--text); }
.ac .ed-type input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Blocks. Overrides the old in-place editor rules in style.css. */
.ac .ed-prose { display: grid; gap: 8px; --gut: 0; }
.ac .ed-b { padding: 0; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-sm); transition: border-color .12s; min-width: 0; }
.ac .ed-b:focus-within { border-color: var(--accent); }
.ac .ed-b:focus-within::before { display: none; }
.ed-b-head { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 3px 6px 0 12px; }
.ed-b-name { font-size: var(--t-small); font-weight: var(--w-strong); color: var(--muted); white-space: nowrap; }
.ed-b-hint { font-size: var(--t-micro); color: var(--dim); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac .ed-b-gut { position: static; margin-left: auto; opacity: 1; display: flex; gap: 2px; flex: none; }
.ac .ed-b-btn { width: 28px; height: 28px; background: none; color: var(--muted); border: 0; border-radius: 7px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .12s, color .12s; }
.ac .ed-b-btn:hover { background: var(--field); color: var(--text); }
.ac .ed-b-del:hover { color: var(--bad); }
.ac .ed-b-body { display: block; padding: 2px 12px 12px; font-size: 14px; line-height: 1.55; color: var(--text); outline: 0; min-height: 28px; overflow-wrap: anywhere; cursor: text; }
.ac .ed-b-body[data-ph]:empty::before { content: attr(data-ph); color: var(--dim); pointer-events: none; }
.ac .ed-row { position: relative; }
.ac .ed-b-body.ed-empty > .ed-row:only-child::after { content: attr(data-ph); position: absolute; top: 0; left: 0; color: var(--dim); pointer-events: none; white-space: nowrap; }
.ac .ed-b-ul .ed-b-body.ed-empty > .ed-row:only-child::after { left: 18px; }
.ac .ed-b-ol .ed-b-body.ed-empty > .ed-row:only-child::after { left: 26px; }
.ac .ed-b-h2 .ed-b-body { font-size: 16px; font-weight: var(--w-strong); letter-spacing: -.01em; line-height: 1.3; padding: 0 12px 12px; color: var(--text); }
.ac .ed-b-p .ed-b-body { font-size: 14px; line-height: 1.55; padding: 2px 12px 12px; color: var(--text); }
.ac .ed-b-ul .ed-row, .ac .ed-b-ol .ed-row { font-size: 14px; line-height: 1.55; color: var(--text); margin: 0 0 2px; }
.ac .ed-b-ul .ed-b-body, .ac .ed-b-ol .ed-b-body { padding: 2px 12px 10px; }
.ac .ed-b-ul .ed-row { padding-left: 18px; }
.ac .ed-b-ul .ed-row::before { top: 10px; left: 2px; background: var(--muted); }
.ac .ed-b-ol .ed-row { padding-left: 26px; }
.ac .ed-b-ol .ed-row::before { top: 0; width: auto; height: auto; background: none; color: var(--muted); font-size: 14px; font-weight: var(--w-strong); content: counter(edstep) "."; display: block; }
.ac .ed-b-cmd .ed-b-body { padding: 2px 12px 10px; }
.ac .ed-b-cmd .ed-b-body::before { display: none; }
.ac .ed-b-cmd .ed-row { display: block; padding: 7px 0; font-size: 14px; line-height: 1.5; color: var(--text); border-bottom: 1px solid var(--border); }
.ac .ed-b-cmd .ed-row:first-child { border-top: 0; padding-top: 0; }
.ac .ed-b-cmd .ed-row:last-child { border-bottom: 0; padding-bottom: 0; }
.ac .ed-b-call .ed-b-body { margin: 2px 12px 12px; padding: 10px 12px; background: var(--accent-soft); border: 0; border-radius: var(--r); font-size: 14px; line-height: 1.55; color: var(--text); }
.ed-b-raw .ed-b-body { font-size: var(--t-ui); color: var(--muted); white-space: pre-wrap; }

.ac-add { display: grid; gap: 8px; margin-top: 2px; }
.ac-add-t { font-size: var(--t-small); font-weight: var(--w-strong); }
.ac-add-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ac-add-b { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding-inline: 10px; background: var(--panel); border: 1px solid var(--border-2); border-radius: var(--r); font: inherit; font-size: var(--t-small); font-weight: var(--w-strong); color: var(--text); cursor: pointer; transition: background .12s, border-color .12s; }
.ac-add-b:hover { background: var(--field); }
.ac-add-b .ac-ic { color: var(--muted); }
.ac kbd { font: inherit; font-size: var(--t-micro); font-weight: var(--w-strong); color: var(--text); background: var(--field); border: 1px solid var(--border); border-radius: 4px; padding: 0 5px; }

/* The menu you get from typing / */
.ac .ed-slash { position: absolute; z-index: 60; width: 240px; padding: 4px; background: var(--panel); border: 1px solid var(--border-2); border-radius: var(--r-sm); }
.ac .ed-slash-h { padding: 5px 8px; margin: 0; font-size: var(--t-small); font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); }
.ac .ed-slash-i { display: flex; align-items: center; width: 100%; height: 34px; padding: 0 8px; background: none; border: 0; border-radius: 7px; font: inherit; font-size: var(--t-ui); color: var(--text); text-align: left; cursor: pointer; transition: background .12s; }
.ac .ed-slash-i:hover, .ac .ed-slash-i:focus-visible { background: var(--field); outline: 0; }
.ac .ed-slash-i .k { margin-left: auto; font-family: inherit; font-size: var(--t-small); color: var(--muted); }

/* Screenshots */
.ac-shots { display: grid; gap: 14px; justify-items: start; }
.ac-shots-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; width: 100%; }
.ac-shots-grid:empty { display: none; }
.ac .ed-shot { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--r); border: 1px solid var(--border); cursor: default; }

/* Questions */
.ac .ed-faq { display: grid; gap: 8px; margin: 0; }
.ac .ed-faq-row { position: relative; display: grid; gap: 8px; padding: 12px 48px 12px 12px; margin: 0; background: var(--group); border: 1px solid var(--border); border-radius: var(--r-sm); }
.ac .ed-faq-q, .ac .ed-faq-a { background: var(--panel); border: 1px solid var(--border); font-size: 14px; color: var(--text); margin: 0; padding: 10px 12px; resize: vertical; }
.ac .ed-faq-q { font-weight: var(--w-strong); }
.ac .ed-faq-q:focus, .ac .ed-faq-a:focus { border-color: var(--accent); }
.ac .ed-faq-x { position: absolute; top: 12px; right: 10px; width: 28px; height: 28px; background: none; color: var(--muted); border: 0; border-radius: 7px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .12s, color .12s; }
.ac .ed-faq-x:hover { background: var(--raise); color: var(--bad); }
.ac #edFaqBand { justify-self: start; }

/* The bar that stays in view */
.ac-bar { position: sticky; bottom: 0; z-index: 40; background: var(--bg); border-top: 1px solid var(--border); margin-top: 16px; }
.ac-bar-in { max-width: calc(760px + 2 * var(--pad-x)); margin: 0 auto; padding: 10px var(--pad-x); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.ac-bar-note { font-size: var(--t-ui); color: var(--muted); min-width: 0; text-wrap: pretty; }
.ac-bar-acts { display: flex; gap: 8px; flex: none; }

/* Preview */
.ed-previewing .ac-sec, .ed-previewing .ac-head, .ed-previewing .ac-verify, .ed-previewing .ac-notice { display: none; }
.ac-pv { display: grid; gap: 16px; min-width: 0; padding: 16px 18px 18px; margin-block: 28px 12px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-card); }
.ac-pv-note { font-size: var(--t-small); color: var(--muted); }
.ac-pv-hero { display: grid; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.ac-pv-top { display: flex; gap: 14px; min-width: 0; }
.ac-pv-logo { flex: none; width: 64px; height: 64px; border-radius: var(--r-card); object-fit: cover; background: var(--field); }
.ac-pv-mono { display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: var(--w-strong); color: var(--muted); }
.ac-pv-id { display: grid; gap: 6px; align-content: start; min-width: 0; }
.ac .ac-pv-id h2 { font-size: var(--t-title); font-weight: var(--w-title); letter-spacing: var(--ls-title); line-height: 1.16; overflow-wrap: anywhere; }
.ac-pv-id p { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.ac-pv-links { display: flex; flex-wrap: wrap; gap: 6px; }
.ac-pv-links:empty { display: none; }
.ac-pv-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.ac-pv-open { pointer-events: none; }
.ac-pv-meta { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 0; }
.ac-pv-meta dt { font-size: var(--t-small); color: var(--muted); }
.ac-pv-meta dd { margin: 0; font-size: var(--t-ui); font-weight: var(--w-strong); }
.ac-pv-body { min-width: 0; font-size: 15px; line-height: 1.65; color: var(--text); }
.ac .ac-pv-body h2 { font-size: var(--t-section); margin: 28px 0 10px; }
.ac .ac-pv-body h2:first-child { margin-top: 0; }
.ac .ac-pv-body p { margin: 0 0 14px; }
.ac .ac-pv-body ul { list-style: disc; padding-left: 22px; margin: 0 0 14px; }
.ac .ac-pv-body ol { list-style: decimal; padding-left: 24px; margin: 0 0 14px; }
.ac .ac-pv-body li { display: list-item; padding: 0; margin: 0 0 6px; }
.ac .ac-pv-body li::before { display: none; }
.ac-pv-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ac-pv-shots:empty, .ac-pv-faq:empty { display: none; }
.ac-pv-shots img { width: 100%; border-radius: var(--r); border: 1px solid var(--border); display: block; }
.ac-pv-faq { display: grid; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; }
.ac-pv-faq details { padding: 11px 14px; }
.ac-pv-faq details + details { border-top: 1px solid var(--border); }
.ac-pv-faq summary { font-size: 14px; font-weight: var(--w-strong); cursor: pointer; }
.ac-pv-faq p { margin-top: 6px; font-size: var(--t-ui); color: var(--muted); }

/* Submitted */
.ac-done { max-width: 460px; margin: 56px auto; padding: 24px; display: grid; gap: 8px; justify-items: start; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-card); }
.ac-done-ic { color: var(--good); margin-bottom: 4px; }
.ac-done .ac-actions { margin-top: 10px; }

/* ── Profile ────────────────────────────────── */
.ac-me-hero { padding-block: 28px 20px; }
.ac-me-top { display: flex; align-items: center; gap: 12px 16px; }
.ac-avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--field); border: 1px solid var(--border); }
.ac-avatar-mono { display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: var(--w-strong); color: var(--muted); }
.ac-me-id { flex: 1; min-width: 0; display: grid; gap: 3px; }
.ac-me-id h1 { overflow-wrap: anywhere; }
.ac-me-id .ac-lead { font-size: var(--t-ui); }
.ac-me-sec { padding-block: 0 48px; }
.ac-me-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ac-me-main, .ac-me-side { display: grid; gap: 16px; min-width: 0; }
.ac-me-side { position: sticky; top: calc(var(--header-h) + 8px); }
.ac-me-h2-next { margin-top: 0 !important; }
.ac-me-acts { flex: none; display: flex; flex-wrap: wrap; gap: 8px; }
.ac-me-head { display: grid; gap: 3px; }
.ac-me-below { justify-self: start; margin-top: -2px; }
.ac-side-ic { flex: none; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: var(--r); background: var(--field); border: 1px solid var(--border); color: var(--muted); }

.ac-logo { flex: none; display: block; width: 40px; height: 40px; border-radius: var(--r-sm); object-fit: cover; background: var(--field); }
.ac-logo-mono { display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); font-size: 12.5px; font-weight: var(--w-strong); color: var(--muted); }

/* A group card holding a white list */
.ac .gc-title { font-size: var(--t-card); font-weight: var(--w-strong); letter-spacing: -.004em; line-height: 1.35; }
.ac-board { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-inner); overflow: hidden; min-width: 0; }
.ac-board-cols { display: grid; grid-template-columns: 112px 84px 96px; justify-content: end; gap: 8px; padding: 9px 14px; font-size: var(--t-small); color: var(--muted); text-align: right; }
.ac-board-list { list-style: none; margin: 0; padding: 0; }
.ac-app { display: grid; gap: 10px; padding: 12px 14px; }
.ac-app + .ac-app, .ac-board-cols + .ac-board-list .ac-app { border-top: 1px solid var(--border); }
.ac-app-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 112px 84px 96px; gap: 8px; align-items: center; }
.ac-app-status { justify-self: end; }
.ac-bot-manage { justify-self: end; }
.ac-app-id { display: grid; gap: 1px; min-width: 0; margin-left: 6px; padding-right: 8px; }
.ac-app-name { font-size: var(--t-card); font-weight: var(--w-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.ac-app-name:hover { color: var(--accent-text); }
.ac-app-desc { font-size: var(--t-small); line-height: 1.4; color: var(--muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.ac-num { display: grid; justify-items: end; text-align: right; font-variant-numeric: tabular-nums; min-width: 0; }
.ac-num b { font-size: 22px; font-weight: var(--w-num); letter-spacing: -.02em; line-height: 1.2; }
.ac-num b.ac-none { font-size: var(--t-ui); font-weight: 400; color: var(--muted); }
.ac-num em { display: none; font-style: normal; font-size: var(--t-micro); color: var(--muted); }
.ac-app-note { font-size: var(--t-small); line-height: 1.45; color: var(--muted); padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--r); text-wrap: pretty; }
.ac-app-note b { display: block; color: var(--bad); font-weight: var(--w-strong); margin-bottom: 2px; }
.ac-app-note p { color: var(--text); }
.ac-app-note-bad { background: var(--bad-soft); border-color: transparent; }
.ac-app-acts { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.ac-app-facts { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--t-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.ac-app-facts b { color: var(--text); }

.ac-tile { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 24px; align-items: center; padding: 14px 16px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-card); }
.ac-tile > div:first-child { display: grid; gap: 2px; }
.ac-tile p { font-size: var(--t-small); color: var(--muted); max-width: 64ch; text-wrap: pretty; }

.ac-empty { display: grid; gap: 4px; justify-items: start; padding: 14px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-inner); }
.ac-empty p { font-size: var(--t-ui); color: var(--muted); max-width: 52ch; text-wrap: pretty; }
.ac-empty .ac-btn { margin-top: 8px; }
.ac-empty .ac-more { margin-top: 4px; }
.ac-empty-sm { padding: 12px 14px; }

.ac-articles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.ac-article { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-inner); min-width: 0; transition: border-color .12s; }
.ac-article:hover { border-color: var(--border-2); }
.ac-article b { font-size: var(--t-card); line-height: 1.35; }
.ac-article span { font-size: var(--t-small); color: var(--muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.ac-article em { margin-top: auto; padding-top: 6px; font-style: normal; font-size: var(--t-micro); color: var(--muted); }

.ac-voted { list-style: none; margin: 0; padding: 0; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-inner); overflow: hidden; }
.ac-voted li + li { border-top: 1px solid var(--border); }
.ac-voted-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; min-height: 42px; transition: background .12s; }
.ac-voted-row:hover { background: var(--bg); }
.ac-voted-row .ac-logo { width: 28px; height: 28px; border-radius: var(--r); }
.ac-voted-row > .ac-ic { color: var(--muted); }
.ac-voted-id { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.ac-voted-id b { font-size: var(--t-ui); font-weight: var(--w-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-voted-id span { font-size: var(--t-micro); color: var(--muted); }

/* ── Sign in: one card on the surface ───────── */
.ac-login { max-width: 400px; margin: 56px auto 72px; padding: 20px 20px 18px; display: grid; gap: 6px; justify-items: start; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-card); }
.ac-login h1 { font-size: 26px; }
.ac-login-mark { display: block; width: 40px; height: 40px; border-radius: var(--r-sm); margin-bottom: 8px; }
.ac-login .ac-notice { width: 100%; text-align: left; margin: 8px 0 0; }
.ac-login-widget { width: 100%; margin-top: 12px; display: grid; justify-items: stretch; }
.ac-tg { width: 100%; height: 36px; gap: 8px; }
.ac-tg.is-busy { background: var(--text-hover); border-color: var(--text-hover); cursor: progress; }
.ac-login-note { margin-top: 10px !important; text-align: left; }
.ac-login-note code { font: inherit; font-weight: var(--w-strong); }
.ac-login-list { list-style: none; margin: 14px 0 0; padding: 12px 0 0; width: 100%; border-top: 1px solid var(--border); display: grid; gap: 6px; text-align: left; }
.ac-login-list li { display: flex; align-items: center; gap: 9px; font-size: var(--t-ui); }
.ac-login-list .ac-ic { width: 16px; height: 16px; color: var(--muted); }
.ac-login-fine { margin-top: 10px !important; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--r); font-size: var(--t-micro); line-height: 1.45; color: var(--muted); text-align: left; text-wrap: pretty; }
.ac-login-fine a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }

/* ── Smaller screens ────────────────────────── */
@media (max-width: 1024px) {
  .ac-me-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ac-me-side { position: static; }
}
@media (max-width: 720px) {
  .ac .ed-b-btn { width: 44px; height: 44px; }
  .ac-board-cols { display: none; }
  .ac-app-row { grid-template-columns: 40px minmax(0, 1fr) auto; row-gap: 10px; }
  .ac-app-id { margin-left: 4px; padding-right: 0; }
  .ac-app-status { grid-column: 3; grid-row: 1; align-self: start; }
  .ac-num { grid-row: 2; justify-items: start; text-align: left; }
  .ac-num:nth-of-type(n) { grid-column: auto; }
  .ac-app-row > .ac-num:nth-last-child(2) { grid-column: 1 / 3; }
  .ac-app-row > .ac-num:last-child { grid-column: 3; justify-items: end; text-align: right; }
  .ac-num em { display: block; }
  .ac-bot-row > .ac-num:nth-last-child(2) { grid-column: 1 / 3; }
  .ac-bot-row > .ac-bot-manage { grid-column: 3; grid-row: 2; }
  .ac-me-row > .ac-btn { grid-column: 1 / -1; }
  .ac-tile { grid-template-columns: minmax(0, 1fr); }
  .ac-articles { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .ac-head { padding-block: 20px 14px; }
  .ac-sec { padding: 14px; }
  .ac-sec-head p { padding-left: 0; }
  .ac-verify { padding: 14px; }
  .ac-grid2 { grid-template-columns: minmax(0, 1fr); }
  .ac-inline { flex-direction: column; }
  .ac-inline .ac-btn { align-self: stretch; }
  .ed-b-hint { display: none; }
  .ac-add-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ac-add-b { min-width: 0; padding-inline: 10px; }
  .ac-add-keys { display: none; }
  .ac-shots-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ac-bar-in { flex-direction: column; align-items: stretch; gap: 8px; }
  .ac-bar-note { font-size: var(--t-small); }
  .ac-bar-acts .ac-btn { flex: 1; padding-inline: 10px; }
  .ac-pv-top { flex-direction: column; }
  .ac-me-hero { padding-block: 20px 14px; }
  .ac-me-top { flex-wrap: wrap; }
  .ac-me-id { flex-basis: calc(100% - 60px); }
  .ac-me-acts { width: 100%; }
  .ac-me-acts .ac-btn { flex: 1; }
  .ac-me-sec { padding-bottom: 32px; }
  .ac-login { margin-block: 24px 40px; padding: 16px; }
  .ac-done { margin-block: 24px 40px; padding: 18px; }
}
.ac-me-row { grid-template-columns: 40px minmax(0, 1fr) auto auto; }

/* Where a bot is: Directory and Panel. templates/_bot_status.html. The same table is in
   panel.css, because the panel and the site load different stylesheets. */
.bs-pills { display: flex; flex-wrap: wrap; gap: 4px; }
.bs-pills .pill, .bs-table .pill { font-size: 12px; padding: 1px 8px; }
.bs-verified { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--accent-text); white-space: nowrap; }
.bs-card { margin-bottom: 16px; }
.bs-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bs-table th { padding: 8px 14px; font-size: 13px; font-weight: 400; color: var(--muted); text-align: left; white-space: nowrap; }
.bs-table td { padding: 10px 14px; border-top: 1px solid var(--border); vertical-align: middle; }
.bs-table tr.on td { background: var(--accent-soft); }
.bs-table .bs-n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bs-who-in { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bs-pic { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; object-fit: cover; background: var(--field); color: var(--muted); font-size: 14px; }
.bs-id { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; min-width: 0; }
.bs-id b { font-weight: 500; overflow-wrap: anywhere; }
.bs-id small { flex-basis: 100%; order: 3; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.bs-at-in { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.bs-l { display: none; font-size: 13px; color: var(--muted); }
.bs-none { font-size: 13px; color: var(--dim); }
@media (max-width: 760px) {
  .bs-table thead { display: none; }
  .bs-table, .bs-table tbody { display: block; }
  .bs-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; padding: 12px; border-top: 1px solid var(--border); }
  .bs-table tr:first-child { border-top: 0; }
  .bs-table td { display: block; padding: 0; border: 0; min-width: 0; }
  .bs-table tr.on { background: var(--accent-soft); }
  .bs-table tr.on td { background: none; }
  .bs-who, .bs-at { grid-column: 1 / -1; }
  .bs-at-in { display: grid; grid-template-columns: 72px auto 1fr; align-items: center; gap: 8px; }
  .bs-at-in > a { justify-self: end; white-space: nowrap; }
  .bs-table .bs-n { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; text-align: left; }
  .bs-l { display: inline; }
}
.ac-me-bots { margin-bottom: 16px; }
.ac-me-bots .bs-card { margin-bottom: 0; }
.ac-app > .ac-app-name { display: block; font-weight: 500; }
