/* Module: MOD-dashboard-app */
/* The colours, the font, the header with the menu and the footer are the site's: src/theme/lme.css, linked before this file.
   What follows are the review pages' own parts. */
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; }
code { background: var(--code); padding: .1em .35em; border-radius: 4px; }
pre { background: var(--code); padding: .8em 1em; border-radius: 6px; overflow-x: auto; }
pre code { background: none; padding: 0; }

.header-tools .repo { font-size: .82rem; overflow-wrap: anywhere; }
.header-tools .help { font-size: .88rem; white-space: nowrap; }

main { max-width: 1240px; margin: 0 auto; padding: 1.2rem 16px 3rem; }
.head h2 { margin: .2rem 0 .3rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.meta, .muted { color: var(--muted); }
.small { font-size: .85em; }
.crumbs { margin: 0 0 .4rem; font-size: .9rem; }
.warn { color: var(--bad); background: var(--bad-bg); padding: .5rem .75rem; border-radius: 6px; }

.list { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.list th, .list td { text-align: left; padding: .5rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.list th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.list tr:last-child td { border-bottom: none; }
.queue { margin: 1.5rem 0; }

.badge { display: inline-block; font-size: .75rem; font-weight: 600; padding: .1rem .5rem; border-radius: 999px; white-space: nowrap; }
.b-open { color: var(--open); background: var(--open-bg); }
.b-accepted, .b-applied { color: var(--ok); background: var(--ok-bg); }
.b-approved, .b-changed { color: var(--warn); background: var(--warn-bg); }
.b-stale { color: var(--bad); background: var(--bad-bg); }
.b-superseded { color: var(--muted); background: var(--open-bg); }

.cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.2rem; align-items: start; }
.side { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.side h3 { margin: .2rem 0 .4rem; font-size: .95rem; color: var(--muted); }
@media (max-width: 900px) { .cols, .side { grid-template-columns: 1fr; } }

.doc, .panel, .overview { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.2rem; }
.panel { margin: 1rem 0; }
aside .panel:first-child { margin-top: 0; }
.panel h3 { margin: 0 0 .5rem; font-size: 1rem; }
.accept { border-color: var(--accent); }
.names { padding-left: 1.1rem; margin: .3rem 0; font-size: .88rem; }
.names li { margin: .15rem 0; }
.overview { margin-top: 1.5rem; }
.md h1 { font-size: 1.4rem; } .md h2 { font-size: 1.15rem; margin-top: 1.4rem; }
.md table { border-collapse: collapse; } .md td, .md th { border: 1px solid var(--line); padding: .3rem .5rem; }
.mermaid { background: var(--panel); text-align: center; margin: 1rem 0; overflow-x: auto; }
.mermaid svg { max-width: 100%; height: auto; }

.btn { font: inherit; font-size: .9rem; cursor: pointer; border: 1px solid var(--line); background: var(--panel);
  color: var(--fg); padding: .45rem .8rem; border-radius: 6px; text-decoration: none; display: inline-block; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); font-weight: 600; }
.btn.small { font-size: .78rem; padding: .2rem .5rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.record { font-size: .8rem; white-space: pre-wrap; word-break: break-all; }

.editor { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.editor textarea { width: 100%; min-height: 520px; font-family: ui-monospace, Menlo, monospace; font-size: .82rem;
  background: var(--code); color: var(--fg); border: 1px solid var(--line); border-radius: 6px; padding: .7rem; }
.editor .preview { max-height: 560px; overflow: auto; border: 1px dashed var(--line); border-radius: 6px; padding: .5rem .9rem; }
@media (max-width: 900px) { .editor { grid-template-columns: 1fr; } }

.diff { white-space: pre-wrap; font-size: .8rem; }
.diff span { display: block; }
.dadd { background: var(--add); } .ddel { background: var(--del); text-decoration: line-through; opacity: .85; }
.accepted-diff { border-color: var(--warn); }
.accepted-diff .diff { max-height: 420px; overflow: auto; }

.product { display: flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--muted); align-self: center; }
.product select { font: inherit; color: var(--fg); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: .3rem .4rem; max-width: 22rem; }
.notice { border-color: var(--warn); background: var(--warn-bg); }
.guidance { white-space: pre-wrap; font-size: .8rem; }
#token-input { width: 100%; max-width: 32rem; font-family: ui-monospace, Menlo, monospace; padding: .45rem .6rem;
  border: 1px solid var(--line); border-radius: 6px; background: var(--code); color: var(--fg); }

.step { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.2rem; margin: 1rem 0; }
.step h3 { margin: 0 0 .5rem; font-size: 1rem; }
details.explain { margin-top: .6rem; font-size: .9rem; }
details.explain summary { cursor: pointer; color: var(--accent); }
details.explain > div, details.explain > pre { margin-top: .5rem; padding: .6rem .8rem; background: var(--code); border-radius: 6px; }
.choices li { margin: .3rem 0; }
p.notice { border: 1px solid var(--warn); background: var(--warn-bg); padding: .6rem .8rem; border-radius: 6px; }
#add-repo, #add-token { font: inherit; font-family: ui-monospace, Menlo, monospace; padding: .45rem .6rem; border: 1px solid var(--line);
  border-radius: 6px; background: var(--code); color: var(--fg); width: 100%; max-width: 28rem; }

.setup-banner { border-color: var(--accent); }

.banner-slot { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.banner-slot:empty { display: none; }
.token-banner p { margin: .3rem 0; }
.setting { border-top: 1px solid var(--line); padding: .6rem 0; }
.setting:first-child { border-top: none; }
.setting h4 { margin: 0 0 .3rem; font-size: .95rem; }
.setting .state { font-weight: 600; }
input.secret, #token-expires, #export-pass, #export-pass2, #import-pass, #coll-name, #coll-account, #coll-agreed {
  font: inherit; font-family: ui-monospace, Menlo, monospace; padding: .35rem .5rem; border: 1px solid var(--line);
  border-radius: 6px; background: var(--code); color: var(--fg); max-width: 100%; }
input.secret { width: 28rem; }
.remote-session { border-top: 1px dashed var(--line); padding: .5rem 0; }
pre.cmd { white-space: pre-wrap; word-break: break-all; margin: .3rem 0; font-size: .8rem; }
.jump-form input, .session-form input { font: inherit; font-family: ui-monospace, Menlo, monospace; padding: .3rem .45rem;
  border: 1px solid var(--line); border-radius: 6px; background: var(--code); color: var(--fg); max-width: 100%; }
