/* intentmodel.org/workspaces/ — the workspace page. Built only with SITE_WORKSPACES (build.mjs).
   Every colour is a token of site.css, so light and dark follow the rest of the site. */
.ws { padding-bottom: 96px; }
.ws h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.04em; margin-bottom: 16px; overflow-wrap: anywhere; }
.ws h2 { font-size: 1.2rem; letter-spacing: -.022em; margin: 0 0 4px; overflow-wrap: anywhere; }
.ws h3 { font-size: .98rem; letter-spacing: -.01em; margin: 18px 0 8px; }
.ws [hidden] { display: none !important; }
.ws-wait { color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 14px; margin: 38px 0 0; }
.step-n { font: 600 .74rem/1 var(--mono); color: var(--dot); display: block; margin-bottom: 10px; }
.fine { color: var(--muted); font-size: .86rem; max-width: 44em; }
.fine a, .ws-agree a { color: inherit; }

.panel { background: var(--plane); border: 1px solid var(--line); border-radius: 14px; margin: 0 0 20px; overflow: hidden; }
.panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding: 18px 20px 14px; }
.panel-head p { margin: 0; color: var(--muted); font-size: .88rem; }
.ws-meta { flex-basis: 100%; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 12px 20px; border-top: 1px solid var(--hairline); }
.row-main { flex: 1 1 220px; min-width: 0; }
.row-name { font-weight: 600; display: block; overflow-wrap: anywhere; }
.row-note { color: var(--muted); font-size: .84rem; overflow-wrap: anywhere; }
.chip { font: 600 .68rem/1 var(--mono); padding: 5px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.chip-on { color: var(--green); border-color: color-mix(in srgb, var(--green) 40%, transparent); background: color-mix(in srgb, var(--green) 8%, transparent); }
.chip-wait { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.panel-foot { padding: 16px 20px 18px; border-top: 1px solid var(--hairline); background: color-mix(in srgb, var(--tint) 60%, transparent); }
.panel-foot.ws-flat { border-top: 0; }
.panel-foot > label, .ws-way > label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 8px; }
.field { display: flex; flex-wrap: wrap; gap: 10px; }
.field input, .ws-field input { flex: 1 1 240px; min-width: 0; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; }
.field input::placeholder, .ws-field input::placeholder { color: var(--muted); }
.field input:focus-visible, .ws-field input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.field .button { min-height: 44px; cursor: pointer; }
.hint { color: var(--muted); font-size: .84rem; margin: 10px 0 0; }
.hint code, .ws-banner code { font-size: .86em; background: var(--code-bg); padding: .08em .32em; border-radius: 5px; }
.ws-quiet { font: 600 .82rem/1 var(--font); padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--soft); cursor: pointer; }
.ws-quiet:hover { color: var(--ink); border-color: var(--ink); }
.ws-link { font: inherit; font-weight: 600; padding: 0; border: 0; background: none; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ws-error { color: var(--rose); font-size: .88rem; margin: 10px 0 0; overflow-wrap: anywhere; }
.ws-done { color: var(--green); font-size: .88rem; margin: 10px 0 0; overflow-wrap: anywhere; }
.ws-done code { color: var(--ink); }
.ws-note, .ws-sent { color: var(--soft); font-size: .9rem; margin: 0 0 14px; }
.ws-banner { display: block; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--plane); color: var(--soft); font-size: .9rem; margin: 0 0 18px; overflow-wrap: anywhere; }
.ws-banner.ok { color: var(--green); border-color: color-mix(in srgb, var(--green) 40%, transparent); }
.ws-banner.bad { color: var(--rose); border-color: color-mix(in srgb, var(--rose) 40%, transparent); }
.ws-account { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0 0 22px; color: var(--muted); font-size: .88rem; }
.ws-account strong { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }

/* Signing in */
.ws-auth { max-width: 460px; margin: 30px 0 14px; }
.ws-auth-body { padding: 0 20px 20px; display: grid; gap: 12px; }
.ws-auth-body .button { width: 100%; cursor: pointer; }
.ws-field { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--soft); }
.ws-field input { flex: none; font-weight: 400; }
.ws-field input[readonly] { color: var(--muted); }
.ws-agree { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--soft); }
.ws-agree input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--ink); flex: none; }
.ws-or { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--muted); font-size: .8rem; }
.ws-or::before, .ws-or::after { content: ""; flex: 1; border-top: 1px solid var(--hairline); }
.ws-google[aria-disabled="true"] { opacity: .55; }
.ws-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; font-size: .88rem; }
.ws-links:not(:has(> :not([hidden]))) { display: none; }
.ws-switch { font-size: .9rem; color: var(--muted); }

/* A workspace */
.ws-workspace .panel-head { padding-bottom: 10px; }
.ws-reach { padding: 0 20px 14px; margin: 0; color: var(--muted); font-size: .86rem; }
.upgrade { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 18px 20px; border-top: 1px solid var(--hairline); }
.upgrade p { margin: 0; color: var(--soft); max-width: 36em; font-size: .94rem; }

/* Connecting an agent */
.ws-connected { margin-top: 4px; }
.ws-once { padding: 12px 14px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 7%, transparent); color: var(--soft); font-size: .88rem; margin: 0 0 14px; }
.ws-kv { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 10px; }
.ws-kv > span { flex: 0 0 4.6em; font-weight: 600; font-size: .86rem; color: var(--soft); }
.ws-kv code { flex: 1 1 260px; min-width: 0; font-size: .8rem; background: var(--bg); border: 1px solid var(--line); padding: 8px 12px; border-radius: 8px; overflow-wrap: anywhere; word-break: break-all; color: var(--ink); }
.ws-command code { white-space: pre-wrap; }
.ws-connected .button { margin-top: 16px; cursor: pointer; }

@media (max-width: 720px) {
  .ws-kv > span { flex-basis: 100%; }
  .rows li, .panel-head, .panel-foot, .upgrade { padding-left: 16px; padding-right: 16px; }
  .ws-auth-body { padding: 0 16px 16px; }
}

/* Public or private, on the owner's workspace */
.ws-visibility { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding: 16px 20px; border-top: 1px solid var(--hairline); }
.ws-visibility p { margin: 0; color: var(--soft); max-width: 38em; font-size: .92rem; }
.ws-visibility .button { cursor: pointer; }
.ws-visibility .ws-error { flex-basis: 100%; margin: 0; }
.ws-public-find { padding-bottom: 72px; }
.ws-public-find .panel { margin: 0; }

/* The public workspaces: the list and one workspace */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ws-search { margin: 26px 0 10px; }
.ws-public-list { margin-top: 22px; }
#context-settings > .text-link { display: inline-block; margin: 12px 0; }
.ws-plan { margin: 0; padding: 14px 20px; color: var(--muted); font-size: .88rem; }
@media (max-width: 620px) { .ws-plan { padding-left: 16px; padding-right: 16px; } }
.ws-empty { color: var(--muted); margin-top: 22px; }
.ws-sub { color: var(--muted); font-size: .92rem; }
.ws-readonly { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--plane); }
.ws-readonly code, .ws-public .lede code { font-size: .86em; background: var(--code-bg); padding: .08em .32em; border-radius: 5px; overflow-wrap: anywhere; }
.ws-files ul { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .86rem; }
.ws-files code { overflow-wrap: anywhere; }
.ws-public .prose h2.ws-file { font-size: 1rem; letter-spacing: 0; margin-top: 1.8em; padding-top: 0; border-top: 0; }
.ws-public .prose h2.ws-file code { font-size: .92rem; overflow-wrap: anywhere; }

/* The registry's tabs: Public, and Your contexts (or Sign in) */
.reg-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 26px 0 30px; overflow-x: auto; scrollbar-width: none; }
.reg-tabs::-webkit-scrollbar { display: none; }
.reg-tab { font: 600 .95rem/1 var(--font); padding: 12px 16px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; color: var(--soft); cursor: pointer; white-space: nowrap; }
.reg-tab:hover { color: var(--ink); }
.reg-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.reg-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px 6px 0 0; }
.reg-yours { max-width: 760px; }
.ws .ws-title { font-size: clamp(1.5rem, 4vw, 2.1rem); letter-spacing: -.03em; margin: 0 0 12px; }
[data-signed-in][hidden], [data-signed-out][hidden] { display: none !important; }
.ws-way-title { font-weight: 600; font-size: .92rem; margin: 0 0 4px; }
.ws-way-connector { margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.ws-team { margin: 32px 0 0; }
.ws-team .team-svg, .ws-team .team-svg.team-wide { margin: 0 auto; max-width: 560px; }
