/* OPEN x CMS demo pages: the clerk workspace's dark tokens. */
:root {
  --chrome: #151517; --bg: #19191b; --card: #232327; --card-hover: #2b2b31; --border: #34343a;
  --text: #ececf1; --muted: #a9a9b4; --accent: #6aa8ff; --focus: #9ec5ff;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 14px; height: 48px; padding: 0 16px; background: var(--chrome); border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; font-size: 15px; text-decoration: none; }
.bar-title { color: var(--muted); }
.bar-spacer { flex: 1; }
.bar-link { color: var(--accent); text-decoration: none; }

main { max-width: 1180px; margin: 0 auto; padding: 24px 20px 64px; }
h1 { font-size: 22px; margin: 0 0 8px; }
h2 { font-size: 16px; margin: 28px 0 12px; color: var(--muted); font-weight: 600; }
.fictional { color: var(--text); background: #3a2d14; border: 1px solid #6b5420; border-radius: 6px; padding: 8px 12px; display: inline-block; }

.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.tiles > li { display: flex; }
.tile { flex: 1; display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; color: var(--text); text-decoration: none; }
a.tile:hover { background: var(--card-hover); border-color: #4a4a52; }
a.tile:hover .tile-title { color: var(--accent); }
.tile-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tile-title { font-size: 17px; font-weight: 600; }
.tile-who { color: var(--text); }
.tile-desc { color: var(--muted); }
.avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; background: #3a3a42; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; object-fit: cover; }
.tile-icon { flex: none; width: 48px; height: 48px; border-radius: 10px; background: #2c3442; color: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.tile.planned { border-style: dashed; }
.tile.planned .tile-icon { background: #2c2c32; color: var(--muted); }
.soon { align-self: flex-start; margin-top: 4px; padding: 1px 8px; border-radius: 10px; border: 1px solid var(--border); color: var(--muted); font-size: 12px; }

.form-finder { max-width: 740px; margin-top: 12px; padding: 16px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; }
.form-finder label { display: block; font-size: 17px; font-weight: 600; }
.form-finder p { margin: 4px 0 12px; color: var(--muted); }
.form-finder textarea { display: block; width: 100%; min-height: 74px; margin-bottom: 12px; padding: 10px; resize: vertical; font: inherit; color: var(--text); background: var(--bg); border: 1px solid #777780; border-radius: 6px; }
.form-finder button { padding: 7px 13px; font: inherit; font-weight: 600; color: #10213a; background: var(--accent); border: 0; border-radius: 6px; cursor: pointer; }
.form-finder button:disabled { cursor: wait; }
.form-finder [role="status"] { margin: 12px 0 0; }
.form-finder [role="status"]:empty { margin: 0; }
.form-finder .tiles { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.form-finder .tiles:not(:empty) { margin-top: 8px; }

.library > p { color: var(--muted); max-width: 740px; }
.library h3 { font-size: 15px; margin: 24px 0 8px; }
.library .count { color: var(--muted); font-weight: 400; }
.form-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 4px 24px; }
.form-list li { display: flex; flex-direction: column; padding: 6px 0; border-bottom: 1px solid var(--border); }
.form-list a { text-decoration: none; }
.form-list a:hover { text-decoration: underline; }
.form-list .code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--muted); margin-right: 4px; }
.form-use { color: var(--muted); font-size: 13px; }
