/* kappabara.com. Brand colors from brand/README.md: teal, coral and gold are the mark's three strokes. */

:root {
  --teal: #1f8a8a;
  --coral: #e4572e;
  --gold: #f2b134;
  --ink: #14161a;
  --night: #13161c;
  --bg: #fbfaf7;
  --surface: #fff;
  --text: #14161a;
  --muted: #565d6a;
  --rule: #e3e1db;
  --link: #176e6e;        /* the teal, darkened to read as text */
  --draft: #b3421f;
  --tint-teal: rgba(31, 138, 138, 0.09);
  --tint-coral: rgba(228, 87, 46, 0.09);
  --tint-gold: rgba(242, 177, 52, 0.14);
  --stripe: linear-gradient(90deg, var(--teal) 0 33.3%, var(--coral) 33.3% 66.6%, var(--gold) 66.6%);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #13161c;
    --surface: #1b1f27;
    --text: #f3f1ec;
    --muted: #a3a9b4;
    --rule: #2c313b;
    --link: #62c9c9;
    --draft: #f2936f;
    --tint-teal: rgba(31, 138, 138, 0.16);
    --tint-coral: rgba(228, 87, 46, 0.14);
    --tint-gold: rgba(242, 177, 52, 0.12);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.bar, main { max-width: 52rem; margin: 0 auto; padding: 0 16px; }

a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

/* --- header ------------------------------------------------------------------------------------ */

.top { padding-top: 5px; background: var(--stripe) top / 100% 5px no-repeat, var(--surface); border-bottom: 1px solid var(--rule); }
.top .bar { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.brand img { display: block; height: 34px; width: auto; }
.brand-text { font-weight: 700; font-size: 1.4rem; line-height: 34px; }
.top nav { display: flex; gap: 4px 20px; flex-wrap: wrap; font-size: 15px; font-weight: 600; }
.top nav a { color: var(--text); text-decoration: none; }
.top nav a:hover { color: var(--link); }

/* --- content ----------------------------------------------------------------------------------- */

main { flex: 1; width: 100%; padding-top: 40px; padding-bottom: 64px; }

h1 { font-size: clamp(30px, 6vw, 42px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 20px; }
h1::after { content: ""; display: block; width: 96px; height: 6px; margin-top: 16px; border-radius: 3px; background: var(--stripe); }
h2 { font-size: 24px; line-height: 1.3; letter-spacing: -0.01em; margin: 44px 0 12px; }
h3 { font-size: 19px; margin: 28px 0 8px; }

h2.step { display: flex; align-items: center; gap: 12px; }
.n { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-size: 17px; color: #fff; }
.n.c1 { background: var(--teal); }
.n.c2 { background: var(--coral); }
.n.c0 { background: var(--gold); color: var(--ink); }

.draft {
  display: inline-block; margin: 0 0 8px; padding: 2px 12px; border-radius: 999px;
  border: 1px solid currentColor; color: var(--draft); font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
}

ul, ol { padding-left: 1.3em; }
li { margin: 4px 0; }
li::marker { color: var(--teal); }
hr { border: 0; height: 1px; background: var(--rule); margin: 40px 0; }

blockquote { margin: 20px 0; padding: 4px 20px; border-left: 4px solid var(--gold); background: var(--tint-gold); border-radius: 0 8px 8px 0; }

code { font: 0.86em/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--tint-teal); padding: 1px 5px; border-radius: 4px; }
pre { background: var(--ink); color: #f3f1ec; padding: 16px 18px; border-radius: 10px; border-left: 4px solid var(--teal); overflow-x: auto; }
pre code { background: none; padding: 0; font-size: 14px; }

.table { overflow-x: auto; margin: 20px 0; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
tr:last-child td { border-bottom: 0; }
th { background: var(--tint-teal); font-weight: 650; }

/* --- home page --------------------------------------------------------------------------------- */

.hero { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px 40px; margin: 8px 0 48px; }
.hero h1 { font-size: clamp(34px, 7vw, 52px); }
.hero p:not(.draft) { font-size: 19px; color: var(--muted); max-width: 32rem; }
/* The mark on a soft disc lit by its three colors. */
.hero-mark {
  display: grid; place-items: center; width: clamp(200px, 26vw, 260px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, var(--tint-teal), transparent 60%),
              radial-gradient(circle at 80% 40%, var(--tint-coral), transparent 60%),
              radial-gradient(circle at 45% 85%, var(--tint-gold), transparent 60%), var(--surface);
  box-shadow: 0 0 0 1px var(--rule); overflow: hidden;
}
.hero-mark img { display: block; width: 115%; height: auto; margin-left: 8%; }
@media (max-width: 640px) {
  .hero { grid-template-columns: 1fr; }
  .hero-mark { grid-row: 1; }
  .hero-mark { width: 120px; height: 120px; }
}

.button {
  display: inline-block; margin: 6px 6px 6px 0; padding: 11px 18px; border-radius: 10px;
  background: var(--teal); color: #fff; font-weight: 650; text-decoration: none;
}
.button:hover { background: #187474; text-decoration: none; }
.button.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--rule); }
.button.ghost:hover { box-shadow: inset 0 0 0 2px var(--coral); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--rule); border-top: 5px solid var(--teal); border-radius: 12px; padding: 4px 20px 8px; }
.card h3 { margin-top: 18px; }
.card p { font-size: 16px; }
.card.coral { border-top-color: var(--coral); }
.card.gold { border-top-color: var(--gold); }

/* --- footer: always on the night background, with the light lockup ------------------------------ */

footer { padding-top: 5px; background: var(--stripe) top / 100% 5px no-repeat, var(--night); color: #a3a9b4; }
footer .bar { padding-top: 32px; padding-bottom: 40px; }
.footer-logo { height: 30px; width: auto; display: block; margin-bottom: 16px; }
footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 15px; }
footer a { color: #f3f1ec; text-decoration: none; }
footer a:hover { color: #62c9c9; }
footer p { font-size: 14px; margin: 16px 0 0; }

/* The coming-soon page: the lockup, centered, and nothing else to read. */
.page-soon { min-height: 100vh; display: flex; flex-direction: column; }
.soon { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
        text-align: center; padding: 48px 24px; max-width: none; }
.soon h1 { margin: 0; }
.soon h1::after { content: none; }
.soon img { display: block; width: min(480px, 80vw); height: auto; }
.soon .tagline { margin: 28px 0 0; font-size: 1.25rem; color: var(--muted); }
.soon .coming { margin: 36px 0 0; padding-top: 18px; font-size: 0.95rem; font-weight: 600; letter-spacing: 0.18em;
                text-transform: uppercase; border-top: 3px solid; border-image: var(--stripe) 1; }
footer.soon-footer { background: none; text-align: center; padding: 24px; font-size: 0.85rem; }
footer.soon-footer a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* --- Kappy (KAP-104): the chat, then the task it proposes --------------------------------------- */

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kappy-intro { margin-bottom: 24px; }
.kappy-intro p { font-size: 19px; color: var(--muted); max-width: 40rem; }

.kappy { background: var(--surface); border: 1px solid var(--rule); border-top: 5px solid var(--teal); border-radius: 12px; padding: 16px; }
.kappy-log { max-height: min(60vh, 560px); overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 4px 2px 12px; }
.msg { display: flex; gap: 10px; align-items: flex-start; }
.msg.from-you { justify-content: flex-end; }
.msg .avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--tint-teal); padding: 7px; }
.msg .avatar img { display: block; width: 100%; height: 100%; }
.bubble { max-width: min(36rem, 85%); padding: 10px 14px; border-radius: 14px; font-size: 16px; line-height: 1.55; overflow-wrap: anywhere; }
.bubble p, .bubble ul, .bubble ol { margin: 0 0 8px; }
.bubble > :last-child { margin-bottom: 0; }
.msg.from-kappy .bubble { background: var(--tint-teal); border-top-left-radius: 4px; }
.msg.from-you .bubble { background: var(--tint-gold); border-top-right-radius: 4px; }
.kappy-thinking { display: flex; align-items: center; gap: 10px; margin: 4px 0 8px 4px; color: var(--muted); font-size: 15px; font-style: italic; }
.kappy-thinking[hidden] { display: none; }
.kappy-thinking .dots { display: inline-flex; gap: 5px; }
.kappy-thinking .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal, #1f8a8a); opacity: 0.25; animation: kappy-dot 1.2s ease-in-out infinite; }
.kappy-thinking .dots i:nth-child(2) { animation-delay: 0.2s; }
.kappy-thinking .dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes kappy-dot { 0%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .kappy-thinking .dots i { animation: none; opacity: 0.6; } }
.kappy-form textarea {
  width: 100%; resize: vertical; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 10px;
  background: var(--bg); color: var(--text); font: inherit; font-size: 16px;
}
.kappy-form textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.kappy-actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.kappy-actions button { border: 0; cursor: pointer; font: inherit; font-weight: 650; }
.kappy-actions button:disabled { opacity: 0.55; cursor: default; }
.kappy-error { margin: 8px 0 0; color: var(--draft); font-size: 15px; }

/* The proposal panel (KAP-138): beside the chat from 900px, sticky and scrolling on its own; under it on a phone. */
.kappy-proposal { background: var(--surface); border: 1px solid var(--rule); border-top: 5px solid var(--coral); border-radius: 12px; padding: 4px 16px 16px; min-width: 0; }
.kappy-proposal h2 { margin-top: 18px; }
.kappy-updated { display: none; vertical-align: middle; margin-left: 6px; padding: 2px 10px; border-radius: 999px; background: var(--tint-gold); color: var(--text); font-size: 13px; font-weight: 650; }
.kappy-proposal.updated .kappy-updated { display: inline-block; animation: kappy-fade 10s forwards; }
@keyframes kappy-fade { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
.kappy-note { align-self: center; margin: 0; padding: 4px 12px; border-radius: 999px; background: var(--tint-gold); color: var(--muted); font-size: 14px; }
.kappy-tabs { display: flex; gap: 4px; margin: 4px 0 8px; border-bottom: 1px solid var(--rule); clear: both; }
.kappy-tabs button { margin-bottom: -1px; padding: 8px 14px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--muted); font: inherit; font-weight: 650; cursor: pointer; }
.kappy-tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--coral); }
.kappy-report iframe { display: block; width: 100%; height: calc(100vh - 260px); min-height: 480px; border: 1px solid var(--rule); border-radius: 8px; background: #fff; }
.kappy-sub { color: var(--muted); font-size: 15px; }
/* The questions: the app's own screen (its web build) in a phone-shaped frame. */
.kappy-phone { width: min(390px, 100%); height: 760px; max-height: 85vh; margin: 16px auto 20px; border: 10px solid #1d2128; border-radius: 34px; overflow: hidden; background: var(--bg); box-shadow: 0 6px 24px rgba(0, 0, 0, .15); }
.kappy-phone iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 480px) { .kappy-phone { border-width: 6px; border-radius: 24px; } }
.notes { font-size: 16px; }

/* Past conversations (KAP-108) and examples: a column beside the chat from 1100px, above the chat and the panel
   from 900px, a list that opens above the chat on a phone. */
.page-kappy main { max-width: 68rem; }
.kappy-main { display: grid; gap: 16px; align-items: start; grid-template-areas: "side" "chat" "panel"; }
.kappy-side { grid-area: side; display: grid; gap: 12px; min-width: 0; }
.kappy { grid-area: chat; min-width: 0; }
.kappy-proposal { grid-area: panel; }
.kappy-main:not(:has(.kappy-past:not([hidden]))) .kappy-side { display: none; }
/* On a phone (KAP-140, Javier's choice A in KAP-139): tabs Chat | Your task over one column; #task shows the task. */
.kappy-switch { display: none; }
@media (max-width: 899px) {
  .kappy-main { grid-template-areas: "side" "switch" "view"; }
  .kappy, .kappy-proposal { grid-area: view; }
  .kappy-main.show-task .kappy, .kappy-main:not(.show-task) .kappy-proposal { display: none; }
  .kappy-switch { grid-area: switch; display: flex; position: sticky; top: 0; z-index: 1; background: var(--bg); border-bottom: 1px solid var(--rule); }
  .kappy-switch button { flex: 1; padding: 12px 8px; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; background: none; color: var(--muted); font: inherit; font-weight: 650; cursor: pointer; }
  .kappy-switch button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--teal); }
  .kappy-switch button[data-view="task"][aria-selected="true"] { border-bottom-color: var(--coral); }
}
.kappy-dot { display: none; width: 8px; height: 8px; margin-left: 6px; border-radius: 50%; background: var(--coral); vertical-align: middle; }
.kappy-switch .fresh .kappy-dot { display: inline-block; }
@media (min-width: 900px) {
  .kappy-main { grid-template-columns: minmax(0, 1fr) 26rem; grid-template-areas: "side side" "chat panel"; }
  .kappy-side { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); align-items: start; }
  .kappy-proposal { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
}
@media (min-width: 1100px) {
  .page-kappy main { max-width: 90rem; }
  .kappy-main { grid-template-columns: 15rem minmax(0, 1fr) 26rem; grid-template-areas: "side chat panel"; }
  .kappy-main:not(:has(.kappy-past:not([hidden]))) { grid-template-columns: minmax(0, 1fr) 26rem; grid-template-areas: "chat panel"; }
  .kappy-side { grid-template-columns: none; }
}
.kappy-past li.kappy-group { padding: 10px 8px 2px; color: var(--muted); font-size: 13px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; }
.kappy-past { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 4px 8px; min-width: 0; }
.kappy-past summary { cursor: pointer; padding: 8px; font-weight: 650; }
.kappy-past ol { list-style: none; margin: 0; padding: 0 0 6px; display: grid; gap: 2px; }
.kappy-past li { margin: 0; }
.kappy-past button { display: grid; width: 100%; text-align: left; gap: 2px; padding: 8px; border: 0; border-radius: 8px;
                     background: none; color: var(--text); font: inherit; font-size: 15px; cursor: pointer; }
.kappy-past button:hover { background: var(--tint-teal); }
.kappy-past button[aria-current="true"] { background: var(--tint-teal); box-shadow: inset 3px 0 0 var(--teal); }
.kappy-past button span { overflow-wrap: anywhere; }
.kappy-past small { color: var(--muted); font-size: 13px; }
.kappy-viewing { background: var(--tint-gold); border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; }
.kappy-viewing p { margin: 0 0 6px; }
.kappy-viewing[hidden], .kappy-form[hidden], .kappy-past[hidden], .kappy-actions .button[hidden] { display: none; }
.kappy-viewing button { border: 0; cursor: pointer; font: inherit; font-weight: 650; }

/* Sign-in for client members (KAP-115): the coming-soon page's layout, with a form. */
.signin form { display: grid; gap: 14px; width: min(360px, 100%); margin-top: 32px; }
.signin label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
.signin input { font: inherit; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 8px;
  background: var(--surface); color: var(--text); }
.signin input:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.signin button { border: 0; cursor: pointer; font: inherit; font-weight: 650; }
.signin button:disabled { opacity: 0.55; cursor: default; }
.signin-error { margin: 0; color: var(--draft); }
.signin-intro { margin: 28px 0 0; max-width: 360px; text-align: center; }
.signin small { font-weight: 400; color: var(--muted); font-size: 0.85rem; }
.signin form[hidden], .signin label[hidden], .signin div[hidden] { display: none; }
.signin form > div { display: grid; gap: 14px; }
.signin-links { margin: 0; text-align: center; font-size: 0.9rem; }
.signin-note { margin: 20px 0 0; color: var(--muted); font-size: 0.9rem; text-align: center; }

/* A member's organization (KAP-148): members and roles, invitations, the invite form. */
.org-intro { font-size: 19px; color: var(--muted); }
.org-sub { color: var(--muted); font-size: 15px; }
.org-form { display: grid; gap: 12px; max-width: 28rem; }
.org-form label { display: grid; gap: 4px; font-weight: 600; font-size: 15px; }
.org-form small { font-weight: 400; color: var(--muted); }
.org-form input, .org-form select, select.org-role { font: inherit; font-weight: 400; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); color: var(--text); }
.org-form .button { justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 650; }
.org-form .button:disabled { opacity: 0.55; cursor: default; }
.org-sent { margin: 0; color: var(--link); font-size: 15px; }
.org-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.org-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; padding: 10px 14px; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); }
.org-list li > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.org-actions { display: flex; align-items: center; gap: 14px; }
.org-list small { display: block; color: var(--muted); font-size: 13px; }
.org-link { border: 0; background: none; padding: 0; color: var(--link); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: underline; }
.org-error { color: var(--draft); }
#org[hidden], #org-inviting[hidden], .org-error[hidden], .org-sent[hidden], .org-sub[hidden] { display: none; }

/* /data (KAP-253): a dataset's sample images, and how far adding has got */
.data-sample { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.data-sample figure { margin: 0; }
.data-sample img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; border: 1px solid var(--rule); background: var(--surface); }
.data-sample figcaption { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
#dataset progress { width: 100%; max-width: 28rem; accent-color: var(--teal); }
#dataset progress[hidden], #data-report[hidden], #data-adding[hidden], #dataset-failed[hidden] { display: none; }

/* /tasks (KAP-256): a task's draft, its review and its progress; Run this task under a proposal on /kappy */
#task progress { width: 100%; max-width: 28rem; accent-color: var(--teal); }
#task progress[hidden], #task-form[hidden], #task-waiting[hidden], #task-problems[hidden], #task-note[hidden],
#task-form-no-data[hidden], #task-waiting-manage[hidden], #task-manage[hidden] { display: none; }
/* The list (KAP-270): a table, sorted by any column, filtered by name, status and who started it */
.tasks-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.tasks-filters input, .tasks-filters select { font: inherit; font-size: 15px; padding: 7px 10px; border: 1px solid var(--rule);
  border-radius: 8px; background: var(--surface); color: var(--text); }
.tasks-filters input { flex: 1 1 12rem; min-width: 0; }
.tasks-filters select { max-width: 100%; }
.page-tasks main { max-width: 68rem; }
#tasks-table { font-size: 14px; }
#tasks-table td, #tasks-table th { vertical-align: middle; padding: 9px 12px; }
#tasks-table th { padding: 0; white-space: nowrap; }
#tasks-table th button { all: unset; box-sizing: border-box; display: block; width: 100%; padding: 9px 12px; cursor: pointer; }
#tasks-table th button:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
#tasks-table th[aria-sort] button::after { content: " ▲"; font-size: 11px; }
#tasks-table th[aria-sort="descending"] button::after { content: " ▼"; }
#tasks-table th.num, #tasks-table td.num { text-align: right; }
#tasks-table th.num button { text-align: right; }
#tasks-table td small { display: block; color: var(--muted); font-size: 13px; }
#tasks-table td.name { min-width: 10rem; }
#tasks-table td.when, #tasks-table td.state { white-space: nowrap; }
#tasks-table progress { display: block; width: 8rem; margin: 3px 0 1px; accent-color: var(--teal); }
#tasks-table .tasks-rename { display: flex; align-items: center; gap: 10px; margin: 0; min-width: 20rem; }
#tasks-table .tasks-rename input { font: inherit; padding: 5px 8px; border: 1px solid var(--rule); border-radius: 6px;
  background: var(--surface); color: var(--text); min-width: 0; flex: 1 1 8rem; }
#tasks-table .org-link { font-size: 14px; }
#tasks-table td.star { width: 1px; padding-right: 0; }
#tasks-table td.star button { all: unset; cursor: pointer; font-size: 20px; line-height: 1; color: var(--muted); padding: 2px; border-radius: 4px; }
#tasks-table td.star button[aria-pressed="true"] { color: var(--gold); }
#tasks-table td.star button:hover { color: var(--gold); }
#tasks-table td.star button:focus-visible { outline: 2px solid var(--teal); }
#tasks-table .warn { color: var(--draft); font-weight: 650; }
#tasks-table th.plain { padding: 9px 12px; }
#tasks-unmatched[hidden], .tasks-filters[hidden], .table[hidden] { display: none; }
#task .org-actions .button { border: 0; cursor: pointer; font: inherit; font-weight: 650; }
#task .org-actions .button.ghost { box-shadow: inset 0 0 0 2px var(--rule); }
.kappy-run { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 4px 0 14px; }
.kappy-run .button { border: 0; cursor: pointer; font: inherit; font-weight: 650; }
.kappy-run .button:disabled { opacity: 0.55; cursor: default; }
.kappy-run small { color: var(--muted); }
.kappy-run-error { color: var(--draft); }
.kappy-run-error[hidden] { display: none; }

/* /pilot (KAP-60): the request form, and its honeypot, out of sight for people and screen readers */
.soon .soon-pilot { margin: 28px 0 0; }
.signin textarea { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 8px; resize: vertical;
  background: var(--surface); color: var(--text); }
.signin textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.signin .pilot-choice { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.signin .pilot-choice legend { padding: 0; margin-bottom: 6px; font-weight: 600; font-size: 0.95rem; }
.signin .pilot-choice label { display: flex; align-items: center; gap: 10px; font-weight: 400; }
.signin .pilot-choice input { margin: 0; width: 18px; height: 18px; accent-color: var(--teal); }
.signin .pilot-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* The header's organization switcher (KAP-153): only for someone in several organizations */
.org-switch { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.org-switch[hidden] { display: none; }
.org-switch select { font: inherit; color: var(--text); background: var(--surface); padding: 6px 8px;
  border: 1px solid var(--rule); border-radius: 8px; max-width: 14rem; }
