/* Vendored from reason-machines/monorepo b60974905dc3a57c343a9e42a5a0800110e4d9f9
   apps/web/src/styles/{theme-tokens,design-system}.css and styles.css.
   Reason Social deliberately supports the light monochrome mode only. */
:root {
  --theme-page: #fcfcfc;
  --theme-sidebar: #f8f8f8;
  --theme-window-chrome: #fcfcfc;
  --theme-raised: #ffffff;
  --theme-composer: #ffffff;
  --theme-highlight: #efefef;
  --theme-ink: #1c1c1c;
  --theme-accent: #0b6dd3;
  --theme-text-secondary: #1c1c1caf;
  --theme-text-tertiary: #1c1c1c9a;
  --theme-border: #1c1c1c1f;
  --theme-border-strong: #1c1c1c3d;
  --theme-line: color-mix(in srgb, var(--theme-ink) 12%, var(--theme-page));
  --theme-font-text: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --theme-font-code: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color-scheme: light;
  --text-font: var(--theme-font-text);
  --ink: var(--theme-ink);
  --muted: var(--theme-text-secondary);
  --line: var(--theme-border);
  --panel: var(--theme-raised);
  --soft: var(--theme-highlight);
  --button: var(--theme-ink);
  --button-text: var(--theme-page);
  --button-hover: var(--theme-text-secondary);
  --dur-fast: 120ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
/* Existing review controls use 10px corners; compact Customize actions use 6px. */
:root {
  /* Every one-line row and control (sidebar, menus, pickers, tabs) is this tall. */
  --app-row-unit: 30px;
  --settings-row-height: 68px;
  --app-row-height-2: calc(2 * var(--app-row-unit));
  --app-row-height-3: calc(3 * var(--app-row-unit));
  --app-row-radius: 8px;
  --button-height-md: 34px;
  --button-radius: 10px;
  --button-radius-sm: 6px;
}

/* ---- Button ---- */
a.ds-button { text-decoration: none; box-sizing: border-box; }
.ds-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--button-radius);
  font-family: var(--text-font);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}
.ds-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
/* A busy button is working, not unavailable: it keeps full contrast beside its spinner. */
.ds-button[data-state="loading"]:disabled {
  opacity: 1;
  cursor: progress;
}
.ds-button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.ds-button--sm { border-radius: var(--button-radius-sm); height: 28px; padding: 0 12px; font-size: 12px; }
.ds-button--md { height: var(--button-height-md); padding: 0 16px; }
.ds-button--lg { height: 42px; padding: 0 22px; font-size: 14px; }
.ds-button--icon { height: 30px; width: 30px; padding: 0; border-radius: 10px; }
.ds-button--primary { background: var(--button); color: var(--button-text); }
.ds-button--primary:hover:not(:disabled) { background: var(--button-hover); }
.ds-button--secondary { background: var(--soft); border-color: transparent; color: var(--ink); }
.ds-button--secondary:hover:not(:disabled) { background: color-mix(in srgb, var(--ink) 12%, transparent); }
.ds-button--ghost { background: transparent; color: var(--muted); }
.ds-button--ghost:hover:not(:disabled) { background: var(--soft); color: var(--ink); }
.ds-button--danger { background: var(--red); color: #fff; }
.ds-button--danger:hover:not(:disabled) { background: color-mix(in srgb, var(--red) 88%, #000); }
/* Dark's danger token is a light red for text on dark surfaces; under a white label the fill
   darkens it the least that reads 4.5:1, and hover keeps the deep red that reads 6.9:1. */
:root[data-theme="dark"] .ds-button--danger { background: color-mix(in srgb, var(--red) 77%, #000); }
:root[data-theme="dark"] .ds-button--danger:hover:not(:disabled) { background: #a82a2a; }
.ds-icon-button { flex: 0 0 auto; }
.ds-icon-button--danger { color: var(--red); }
.ds-icon-button--danger:hover:not(:disabled) { background: var(--red-soft); color: var(--red); }
.ds-button__slot {
  display: inline-grid;
  align-items: center;
  justify-items: center;
  overflow: hidden;
}
.ds-button__slot-inner,
.ds-button__slot-measure { grid-area: 1 / 1; }
.ds-button__slot-inner,
.ds-button__slot-measure,
.ds-button__slot-measure-state { display: inline-flex; align-items: center; gap: 6px; }
.ds-button__slot-measure {
  display: inline-grid;
  visibility: hidden;
  pointer-events: none;
}
.ds-button__slot-measure-state { grid-area: 1 / 1; }
.ds-button__slot-measure .loading-spinner__arc { animation: none; }
.ds-button[data-state="success"]:not([data-state-tone="neutral"]) { background: var(--green); border-color: var(--green); color: #fff; }
.ds-button[data-state="error"]:not([data-state-tone="neutral"]) { background: var(--red); border-color: var(--red); color: #fff; }


html, body { margin: 0; color-scheme: light; background: var(--theme-page); color: var(--ink); }
body, body :where(*):not(:where(code, pre, code *, pre *)) { font-family: var(--text-font) !important; }
.reason-connect-shell { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; box-sizing: border-box; background: var(--theme-page); color: var(--ink); }
.reason-connect-card { box-sizing: border-box; width: min(100%, 420px); margin: 0 auto; padding: 32px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.reason-brand { display: inline-flex; align-items: center; justify-content: center; gap: 10px; color: var(--ink); font-size: 22px; font-weight: 500; text-decoration: none; }
.reason-brand img { display: block; width: 32px; height: 32px; }
.reason-connect-card > .reason-brand { display: flex; margin-bottom: 28px; }
.reason-connect-card h1, .reason-connect-card h2 { margin: 0 0 10px; color: var(--ink); font-size: 24px; font-weight: 500; line-height: 1.2; letter-spacing: 0; text-align: center; }
.reason-connect-card p, .reason-connect-card .muted { color: var(--muted); font-size: 14px; line-height: 1.55; }
.reason-connect-card .intro { margin: 0 0 24px; text-align: center; }
.reason-connect-card form { margin: 0; }
.reason-connect-card label { display: block; margin: 18px 0; color: var(--ink); font-size: 13px; }
.reason-connect-card input { box-sizing: border-box; width: 100%; height: 42px; margin-top: 7px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); font: inherit; }
.reason-connect-card input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.reason-connect-card .ds-button { width: 100%; }
.reason-connect-card .reason-actions { display: flex; gap: 10px; margin-top: 24px; }
.reason-connect-card .reason-actions .ds-button { flex: 1; }
.reason-connect-card .reason-cancel { margin-top: 10px; }
.reason-connect-card .reason-scope { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.65; }
.reason-connect-card .reason-scope ul { margin: 10px 0; padding-left: 18px; }
.reason-source { display: block; margin: 24px 0 0; color: var(--muted); text-align: center; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
@media(max-width: 480px) { .reason-connect-card { padding: 24px; } }

.reason-advanced { margin: 16px 0; font-size: 13px; color: var(--muted); }
.reason-advanced summary { cursor: pointer; }
