/* Settings -> Integrations, mounted by every variant (web/core/integrations.mjs builds it).
   Self-contained like auth.css and shared.css, and for the same reason: three pages mount this
   and they do not agree on what a `button` or a `code` looks like, so it brings its own.
   Same six colours as everything else - dark, one accent, no second one. */
.integrations { margin-top: 2.5rem; }
/* Collapsed by default and quiet when collapsed: this is a reference, not part of the queue. */
/* Sentence case, not tracked-out caps - web/core/tokens.css says why. */
.integrations summary {
  font-size: 13px; color: var(--dim); font-weight: 600; cursor: pointer;
  border-bottom: 1px solid var(--line); padding-bottom: .6rem;
}
.integrations summary:hover { color: var(--text); }
.integrations details[open] summary { color: var(--text); }
.integrations h4 {
  font-size: 13px; font-weight: 600; color: var(--text);
  margin: 1.5rem 0 .5rem;
}
.integrations p { color: var(--dim); font-size: 13px; margin: .5rem 0 0; }

/* The lines you came here to copy bring their own rules in web/core/copy.css, because the
   item page's share URL is the same widget and the two must not drift. A page that mounts
   this pane links that sheet too. */

/* The account block is the shared sign-in control (web/core/auth.mjs), which brings its own
   rules in auth.css. Only its placement belongs here: in a header it right-aligns into the
   corner, and here it is a paragraph like everything else around it. */
.integrations .auth { margin: .5rem 0 0; justify-content: flex-start; }
.integrations .auth .msg { text-align: left; }

/* The Storage row (web/core/drive.mjs), which is the one control in this pane that is not a
   copy line or the sign-in strip. Scoped to `.storage` and not to `.integrations button`:
   that would be the same specificity as auth.css's `.auth button` and would win on load order,
   restyling the sign-in control from a sheet that has nothing to do with it. */
.integrations .storage button {
  background: var(--surface); color: var(--text); border: 1px solid var(--line);
  border-radius: 4px; padding: .3rem .6rem; font: inherit; font-size: 13px; cursor: pointer;
  margin-top: .75rem;
}
.integrations .storage button:hover { border-color: var(--accent); }
.integrations .storage button:focus-visible { outline: none; border-color: var(--accent); }
/* A failure is the brightest line in the row and carries a rule, the same way the queue's is
   (web/index.html): a refusal that reads like help text is a refusal nobody notices. */
.integrations .storage p.bad { color: var(--text); border-left: 2px solid var(--accent); padding-left: .6rem; }

/* The one link in this pane: where your brain.md lives (web/brain.html). */
.integrations p a { color: var(--accent); text-decoration: none; }
.integrations p a:hover { text-decoration: underline; }

/* Invite a friend (web/core/invite.mjs): the send form's shape, and one line per invite out. */
.integrations form.invite { display: flex; gap: .5rem; flex-wrap: wrap; }
.integrations form.invite input { flex: 1 1 12rem; min-width: 0; }
.integrations form.invite button,
.integrations ul.invites button {
  background: var(--surface); color: var(--accent); border: 1px solid var(--line);
  border-radius: 4px; padding: .3rem .6rem; font: inherit; font-size: 13px; cursor: pointer;
}
.integrations ul.invites button { color: var(--dim); }
.integrations form.invite button:hover,
.integrations ul.invites button:hover { border-color: var(--accent); }
.integrations ul.invites { list-style: none; padding: 0; margin: .5rem 0 0; }
.integrations ul.invites li { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .35rem 0; border-top: 1px solid var(--line); }
.integrations ul.invites li span { overflow-wrap: anywhere; }
