/* The forum screens' CONTENT (community.html, update.html, moderation.html); the frame is the
   shell's (SHELL360 §1). Every value a --sv-* token. */

.forum .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.forum label { color: var(--sv-text-secondary); font-size: var(--sv-font-caption); }
.forum input, .forum select, .forum textarea {
  font: inherit; padding: 6px 10px; color: var(--sv-text-primary); min-width: 0;
  background: var(--sv-surface); border: 1px solid var(--sv-grid); border-radius: var(--sv-corner-radius);
}
.forum textarea { width: 100%; min-height: 6em; resize: vertical; box-sizing: border-box; }
#status { margin-top: 10px; color: var(--sv-text-secondary); min-height: 1.4em; }
#status[data-kind="error"] { color: var(--sv-text-primary); border-left: 4px solid var(--sv-bad); padding-left: 10px; }
#status[data-kind="done"] { color: var(--sv-text-primary); border-left: 4px solid var(--sv-good); padding-left: 10px; }
.join-status { margin: 8px 0 0; min-height: 1.4em; color: var(--sv-text-secondary); }
.join-status:empty { display: none; }
.join-status[data-kind="error"] { color: var(--sv-text-primary); border-left: 4px solid var(--sv-bad); padding-left: 10px; }
.join-status[data-kind="done"] { color: var(--sv-text-primary); border-left: 4px solid var(--sv-good); padding-left: 10px; }

form.code, form.find { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
form.code input { width: 9em; letter-spacing: 0.2em; }
form.find input { width: 16em; max-width: 100%; }

ul.updates { list-style: none; margin: 0; padding: 0; }
ul.updates li { padding: 10px 0; border-bottom: 1px solid var(--sv-grid); display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
ul.updates li a { font-weight: 600; }
ul.updates .meta { color: var(--sv-text-secondary); font-size: var(--sv-font-caption); }

/* Microsoft says: quoted, attributed, linked. The rule is ours (we track and share, we are not the source). */
.ms { border-left: 4px solid var(--sv-accent); padding: 4px 0 4px 16px; }
.ms-source { color: var(--sv-text-secondary); font-size: var(--sv-font-caption); margin: 0 0 10px; }
.ms-item { margin: 0 0 18px; }
.ms-item blockquote { margin: 0 0 8px; padding: 0; font-style: normal; }
.ms-item blockquote::before { content: "Microsoft says: "; color: var(--sv-text-secondary); }

.post { padding: 12px 0; border-bottom: 1px solid var(--sv-grid); }
.post:last-child { border-bottom: 0; }
.post-title { margin: 0 0 4px; font-weight: 600; }
.post-meta { color: var(--sv-text-secondary); font-size: var(--sv-font-caption); margin: 0 0 8px; }
.staff { border: 1px solid var(--sv-accent); border-radius: 999px; padding: 0 8px; margin-left: 6px; font-size: var(--sv-font-caption); color: var(--sv-text-primary); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
button.toggle[aria-pressed="true"] { background: var(--sv-accent); color: var(--sv-background); }

.fixes { margin: 10px 0 0 18px; padding-left: 14px; border-left: 2px solid var(--sv-grid); }
.fix { padding: 8px 0; }
.fix-steps { margin: 4px 0 6px; white-space: pre-wrap; overflow-wrap: anywhere; }

.symptoms { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
#bars:not(:empty) { margin-bottom: 18px; }
.bars { margin: 12px 0 0; display: grid; grid-template-columns: minmax(0, 18rem) 1fr max-content; gap: 6px 12px; align-items: center; }
.bar { height: 8px; border-radius: 999px; background: var(--sv-accent); min-width: 2px; }
.bars .n { color: var(--sv-text-secondary); font-size: var(--sv-font-caption); text-align: right; }

form.post-form { display: grid; gap: 10px; margin-top: 12px; max-width: 44rem; }
form.post-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
form.post-form .two > * { display: grid; gap: 4px; }
.pending li { color: var(--sv-text-secondary); }

table.queue { width: 100%; border-collapse: collapse; font-size: var(--sv-font-small); }
table.queue th { text-align: left; color: var(--sv-text-secondary); font-weight: normal; font-size: var(--sv-font-caption); border-bottom: 1px solid var(--sv-grid); padding: 6px 8px; }
table.queue td { padding: 8px; border-bottom: 1px solid var(--sv-grid); vertical-align: top; }
table.queue td.text { overflow-wrap: anywhere; max-width: 36rem; white-space: pre-wrap; }
table.queue input { width: 100%; min-width: 14rem; box-sizing: border-box; margin-bottom: 6px; }

/* The New User landing (request-access.html): what the app does, then the form. Sign in is ONE control, in the
   menu (Mark, 2026-10-21: "make it clear how to login, have the login/logout on the menu, and only 1 of them"),
   drawn as the same pill the signed-in Sign out uses (app/gate.js .vhost), so in and out sit in one place. */
ul.value { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
ul.value li { border: 1px solid var(--sv-grid); border-radius: var(--sv-corner-radius); padding: 12px 16px; background: var(--sv-surface); }
ul.value h3 { margin: 0 0 6px; font-size: 1rem; }
ul.value p { margin: 0; color: var(--sv-text-secondary); }
p.existing { color: var(--sv-text-secondary); }
p.existing b, #denied b { color: var(--sv-text-primary); }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
a.go.primary { background: var(--sv-accent); color: var(--sv-background); font-weight: 600; }
a.go.primary:hover { filter: brightness(1.1); }
.signin-chip { display: inline-flex; align-items: center; gap: 8px; margin: 0 12px; white-space: nowrap; font-size: var(--sv-font-caption); color: var(--sv-text-secondary); }
.signin-chip b { color: var(--sv-text-primary); font-weight: 600; max-width: 22ch; overflow: hidden; text-overflow: ellipsis; }
.signin-chip a { color: var(--sv-text-primary); font-weight: 600; text-decoration: none; padding: 5px 14px; border: 1px solid var(--sv-accent); border-radius: 999px; }
.signin-chip a:hover { background: var(--sv-accent); color: var(--sv-background); }

/* The Community and its groups (community.html, patch-users-group.html, m365-security-group.html). */
ul.posts { list-style: none; margin: 0; padding: 0; }
.post.ai { border-left: 3px solid var(--sv-accent); padding-left: 12px; }
.post-sources { color: var(--sv-text-secondary); font-size: var(--sv-font-caption); margin: 6px 0 0; }
p.crumb { margin: 0 0 4px; font-size: var(--sv-font-caption); }
ul.value.groups h3 a { color: var(--sv-text-primary); }
form.post-form select, form.post-form input { width: 100%; box-sizing: border-box; }

@media (max-width: 640px) {
  form.post-form .two { grid-template-columns: 1fr; }
  .bars { grid-template-columns: minmax(0, 1fr) 30% max-content; }
  table.queue thead { display: none; }
  table.queue tr, table.queue td { display: block; }
  table.queue td { border-bottom: 0; padding: 4px 0; }
  table.queue tr { border-bottom: 1px solid var(--sv-grid); padding: 8px 0; }
}

/* Request access (request-access.html): the three fields line up on one label column. Layout math, not a token. */
.forum form.ask .row label { width: 7em; }
.forum form.ask .row input { width: 22em; max-width: 100%; }
