/* Components shared by the public beta pages: navigation call-to-action,
   footer, sign-in, workspace home, model cards, connector setup, invitations.
   Colors come from app.css tokens, so light and dark themes both work. */

.nav-links .nav-cta { margin-left: 6px; border: 1px solid var(--ink); background: var(--ink); color: var(--panel); }
.nav-links .nav-cta:hover { background: var(--ink); color: var(--panel); opacity: .88; }
.pilot { text-transform: uppercase; letter-spacing: .04em; }

.site-footer { border-top: 1px solid var(--line); background: var(--panel); }
.site-footer-inner { width: min(1180px, calc(100% - 32px)); min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 auto; color: var(--muted); font-size: 12px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-footer a { color: var(--muted-strong); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Sign-in & invitation ---------- */
.signin-main { width: min(480px, calc(100% - 32px)); min-height: calc(100vh - 140px); display: grid; align-content: center; padding: 48px 0; }
.signin-card { border: 1px solid var(--line); border-radius: 12px; padding: 32px; background: var(--panel); box-shadow: var(--shadow); text-align: center; }
.signin-card h1 { margin: 14px 0 8px; font-size: 26px; line-height: 1.2; }
.signin-mark { display: block; margin: 0 auto; }
.signin-lede { margin: 0 auto 22px; max-width: 380px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.signin-actions { display: grid; gap: 10px; }
.signin-actions .button, .signin-wallet .button, .invite-card .button { min-height: 46px; font-size: 14px; }
.signin-hint { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.signin-error { text-align: left; }
.signin-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0 12px; color: var(--muted); font-size: 11px; text-transform: uppercase; }
.signin-divider::before, .signin-divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.signin-wallet, .signin-faq { text-align: left; }
.signin-wallet summary, .signin-faq summary { cursor: pointer; padding: 10px 0; color: var(--muted-strong); font-size: 13px; font-weight: 680; }
.signin-wallet-body { display: grid; gap: 8px; padding: 4px 0 8px; }
.signin-wallet-body p, .signin-faq p { margin: 0 0 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.signin-faq { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 6px; }
.invite-card { text-align: left; }
.invite-card .signin-mark { margin: 0; }
.invite-card .signin-lede { margin-left: 0; max-width: none; }
.invite-model { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; margin: 16px 0; border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: var(--panel-soft); }
.invite-model code { grid-column: 1 / -1; font-size: 13px; }
.invite-facts, .invite-next { display: grid; gap: 8px; margin: 0 0 20px; padding-left: 18px; color: var(--muted-strong); font-size: 13px; line-height: 1.5; }
.address-line { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 10px 0; }
.address-line code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 1px solid var(--line); border-radius: 6px; padding: 9px 10px; background: var(--panel-soft); font-size: 12px; }

/* ---------- Workspace ---------- */
.workspace-loading { min-height: 50vh; display: grid; place-content: center; gap: 12px; text-align: center; color: var(--muted); }
.workspace-page #signout-error { margin-bottom: 16px; }
.stale-note { margin: -8px 0 16px; color: var(--amber); font-size: 13px; line-height: 1.45; }
.stale-note::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--amber); vertical-align: middle; }
.workspace-notice { position: fixed; left: 50%; bottom: 24px; z-index: 40; width: max-content; max-width: min(560px, calc(100vw - 32px)); display: flex; align-items: center; gap: 8px; transform: translateX(-50%); border: 1px solid var(--line-strong); border-radius: 8px; padding: 6px 6px 6px 14px; background: var(--panel); box-shadow: var(--shadow); font-size: 13px; line-height: 1.45; }
.workspace-notice.danger { border-color: color-mix(in srgb, var(--red) 40%, var(--line)); background: var(--red-soft); color: var(--red); }
.workspace-notice.success { border-color: color-mix(in srgb, var(--green) 42%, var(--line)); background: var(--green-soft); color: var(--green); }
.workspace-notice .button { min-height: 36px; padding: 0 10px; color: inherit; font-size: 16px; }
.saved-flag { color: var(--green); font-size: 12px; font-weight: 700; }
/* Phones and tablets: every tab stays visible, no sideways scrolling. */
@media (max-width: 940px) {
  .workspace-page .sidebar { display: block; overflow: visible; padding-bottom: 0; }
  .workspace-page .account, .workspace-page .side-actions { display: none; }
  .workspace-page .side-nav { display: flex; flex-wrap: wrap; gap: 2px 4px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
  .workspace-page .nav-section { display: contents; }
  .workspace-page .side-nav a { width: auto; min-height: 40px; padding: 0 12px; }
  .workspace-page .side-nav a.active { box-shadow: inset 0 -2px var(--blue); }
}
@media (max-width: 680px) {
  .workspace-page .side-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .workspace-page .side-nav a { min-width: 0; justify-content: center; padding: 0 4px; font-size: 12.5px; }
  .workspace-page .workspace-head { display: flex; gap: 12px; }
  .workspace-page .head-actions { margin-top: 0; padding-top: 0; }
}
.workspace-loading .skeleton { width: 240px; height: 10px; }
.path-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.path-grid > .panel { margin: 0; }
.path-steps { display: grid; margin: 0; padding: 0; list-style: none; }
.path-steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 10px 0; }
.path-steps li + li { border-top: 1px solid var(--line); }
.path-steps li:first-child { padding-top: 0; }
.path-steps li:last-child { padding-bottom: 0; }
.path-steps li > div { align-self: center; }
.path-steps strong { color: var(--muted-strong); font-size: 14px; font-weight: 650; }
.path-steps li.current strong { color: var(--ink); font-weight: 720; }
.path-steps p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.step-mark { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--muted-strong); font-size: 12px; font-weight: 760; }
.path-steps li.done .step-mark { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.path-steps li.current .step-mark { border-color: var(--ink); background: var(--ink); color: var(--panel); }
.step-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.path-steps .try-result { margin-top: 10px; }
.path-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.path-stat { min-width: 0; display: grid; align-content: start; gap: 5px; border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: var(--panel-soft); color: inherit; text-decoration: none; }
.path-stat:hover { border-color: var(--line-strong); background: var(--soft); }
.path-stat strong { font-size: 24px; line-height: 1.1; overflow-wrap: anywhere; }
.path-stat span { color: var(--muted); font-size: 12px; line-height: 1.35; }
.path-note { margin: 12px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
a.status { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.attention-rows, .recent-rows { margin: 0; padding: 0; list-style: none; }
.attention-rows li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 16px; font-size: 13px; line-height: 1.45; }
.attention-rows li + li, .recent-rows li + li { border-top: 1px solid var(--line); }
.attention-rows li > span { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.attention-rows li > span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: var(--amber); vertical-align: middle; }
.attention-rows .button { flex-shrink: 0; white-space: nowrap; }
.recent-rows li { display: grid; grid-template-columns: 132px minmax(0, 1fr) auto 76px; grid-template-areas: "when source result time"; align-items: center; gap: 4px 14px; padding: 10px 16px; font-size: 13px; }
.recent-rows strong { grid-area: source; min-width: 0; overflow-wrap: anywhere; }
.recent-rows .status { grid-area: result; }
.recent-when { grid-area: when; color: var(--muted); font-size: 12px; }
.recent-time { grid-area: time; color: var(--muted); font-size: 12px; text-align: right; }
.panel-head h2 a { color: inherit; text-decoration: none; }
.panel-head h2 a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 940px) {
  .path-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .recent-rows li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "source result" "when time"; }
  .attention-rows li { align-items: flex-start; flex-direction: column; gap: 8px; }
}
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.model-grid > .empty { grid-column: 1 / -1; min-height: 150px; border: 1px dashed var(--line-strong); border-radius: 8px; }
.model-card { min-width: 0; display: grid; gap: 8px; align-content: start; border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: var(--panel); }
.model-card.is-online { border-color: color-mix(in srgb, var(--green) 35%, var(--line)); }
.model-card-head { display: flex; justify-content: space-between; gap: 10px; }
.model-card-head strong { display: block; font-size: 14px; overflow-wrap: anywhere; }
.model-card-head small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.model-card .address-line { margin: 2px 0; }
.model-card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.workspace-loading .notice { max-width: min(640px, 100%); flex-wrap: wrap; text-align: left; }
.workspace-loading .notice span { min-width: 0; overflow-wrap: anywhere; }

/* Models catalog: full-width rows, consistent columns, no card mosaic. */
.models-section .section-head h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.models-section .section-head .button { flex-shrink: 0; white-space: nowrap; }
.models-section h2 a { color: inherit; text-decoration: none; }
.models-section h2 a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.models-section .section-note a { color: var(--blue); }
/* An empty section is one line: what is missing and how to get it. */
.models-section > .empty { min-height: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; border: 1px dashed var(--line-strong); border-radius: 8px; padding: 14px 16px; background: var(--panel); text-align: left; }
.models-section > .empty .empty-mark { display: none; }
.models-section > .empty p { flex: 1 1 280px; max-width: none; margin: 0; }
.models-section > .empty .empty-actions { margin: 0; }
.models-section { scroll-margin-top: 84px; }
.jump-row { display: flex; flex-wrap: wrap; gap: 6px; }
.jump-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; border: 1px solid var(--line); border-radius: 99px; padding: 0 13px; background: var(--panel); color: var(--muted-strong); text-decoration: none; font-size: 12.5px; font-weight: 650; }
.jump-chip:hover { border-color: var(--line-strong); color: var(--ink); }
.jump-chip span { color: var(--muted); font-weight: 600; }
/* The icon of a chip is coloured while something behind it can be used now. */
.jump-chip .icon { color: var(--muted); }
.jump-chip.is-live { border-color: color-mix(in srgb, var(--green) 30%, var(--line)); color: var(--ink); }
.jump-chip.is-live .icon { color: var(--green); }
.jump-chip.is-live.is-service { border-color: color-mix(in srgb, var(--blue) 30%, var(--line)); }
.jump-chip.is-live.is-service .icon { color: var(--blue); }
/* A tile with an icon names a row or a section; green (models) or blue
   (services) while it can be used now, grey otherwise. */
.row-icon { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; background: var(--soft); color: var(--muted); }
.row-icon .icon { width: 19px; height: 19px; stroke-width: 1.6; }
.row-icon.is-green { background: var(--green-soft); color: var(--green); }
.row-icon.is-blue { background: var(--blue-soft); color: var(--blue); }
.section-title { min-width: 0; display: flex; align-items: center; gap: 12px; }
.section-title .row-icon { width: 36px; height: 36px; }
.button.icon-only { width: 40px; flex: 0 0 auto; padding: 0; font-size: 15px; }
.empty-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; border: 1px dashed var(--line-strong); border-radius: 8px; padding: 12px 16px; background: var(--panel); }
.empty-row p { flex: 1 1 240px; min-width: 0; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.empty-row strong { margin-right: 6px; color: var(--ink); font-size: 14px; }
.empty-row .button { flex: 0 0 auto; }
.model-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 14px; }
.model-filter input[type="search"] { flex: 1 1 260px; max-width: 420px; }
.model-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.model-list-labels, .model-list .model-row { display: grid; grid-template-columns: minmax(180px, 1fr) 132px minmax(240px, 1fr) 244px; align-items: center; align-content: center; gap: 0 18px; padding: 16px; }
.model-list .model-row { grid-template-areas: "main status address actions" "feedback feedback feedback feedback"; }
.model-list-labels { padding-top: 0; padding-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 650; }
.model-list-labels > :last-child { text-align: right; }
.model-row-main { grid-area: main; min-width: 0; display: flex; align-items: center; gap: 12px; }
.model-row-text { min-width: 0; }
.model-row-main h3 { margin: 0; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.model-row-main h3 a { color: inherit; text-decoration: none; }
.model-row-main h3 a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.model-row-text .tag-row { margin-top: 6px; }
.model-pool-badge { color: var(--green); background: var(--green-soft); text-decoration: none; }
.model-pool-badge:hover, .model-pool-badge:focus-visible { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.model-row-note { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.model-row-status { grid-area: status; }
.model-row-status .status { white-space: normal; }
.model-row .model-row-address { grid-area: address; min-width: 0; margin: 0; }
.model-row-address code { overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; line-height: 1.45; }
.model-row-address .button { flex-shrink: 0; }
.model-row-actions { grid-area: actions; display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.model-row .try-result { grid-area: feedback; margin-top: 12px; }
.model-row .button { min-height: 40px; white-space: nowrap; }
.service-row.is-online { border-color: color-mix(in srgb, var(--blue) 35%, var(--line)); }
@media (max-width: 1200px) {
  .model-list-labels { display: none; }
  .model-list .model-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main status" "address actions" "feedback feedback"; row-gap: 12px; }
  .model-row .try-result { margin-top: 0; }
  .model-row-status { justify-self: end; }
}
/* The same row in a narrow column (a pool card) at any screen width. */
.model-list.is-compact .model-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main status" "address actions" "feedback feedback"; row-gap: 12px; }
.model-list.is-compact .model-row-status { justify-self: end; }
.model-list.is-compact .try-result { margin-top: 0; }
@media (max-width: 600px) {
  .model-list .model-row, .model-list.is-compact .model-row { grid-template-areas: "main status" "address address" "actions actions" "feedback feedback"; padding: 14px; gap: 12px; }
  .model-row-actions { justify-content: flex-start; flex-wrap: wrap; }
  /* On a phone a section's action goes under its title, in line with the text. */
  .models-section .section-head { flex-wrap: wrap; gap: 10px; }
  .models-section .section-head > .button { margin-left: 48px; }
}

.try-result { margin: 4px 0 0; border-radius: 6px; padding: 9px 10px; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.try-result.good { background: var(--green-soft); color: var(--green); }
.try-result.bad { background: var(--red-soft); color: var(--red); }
.try-result.working { background: var(--soft); color: var(--muted-strong); }
.try-result small { opacity: .75; }
.reveal-panel { margin-bottom: 16px; border-color: color-mix(in srgb, var(--green) 45%, var(--line)); scroll-margin-top: 84px; }
.reveal-panel .notice { margin-top: 12px; }
.secret-line { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.secret-line input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.three-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.three-values > div { min-width: 0; display: grid; gap: 6px; border: 1px solid var(--line); border-radius: 6px; padding: 10px; background: var(--panel-soft); }
.three-values span { color: var(--muted); font-size: 11px; font-weight: 740; text-transform: uppercase; }
.three-values code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.three-values .button { justify-self: start; min-height: 36px; padding: 0 12px; }

.check-row { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; margin: 0; font-weight: 500; font-size: 12px; line-height: 1.5; color: var(--muted-strong); }
.check-row input { width: 16px; height: 16px; margin-top: 2px; }

.subhead { margin: 22px 0 10px; font-size: 13px; }
.snippet-tabs { margin: 14px 0 0; max-width: 100%; overflow-x: auto; }

.add-device { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.add-device h2 { margin: 0 0 6px; font-size: 16px; }
.add-device p { margin: 0 0 14px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.add-device .panel-body { display: grid; align-content: start; justify-items: start; gap: 8px; height: 100%; }
.add-device > .panel + .panel { margin-top: 0; }

.record-panel { margin-bottom: 4px; }
/* The rating: a ring filled to the score, the number inside, the counts beside it. */
.rating-row { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.rating-ring { position: relative; flex: 0 0 auto; width: 68px; height: 68px; color: var(--muted); }
.rating-ring svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.rating-ring circle { fill: none; stroke-width: 4; }
.rating-ring .rating-track { stroke: var(--soft); }
.rating-ring .rating-value { stroke: currentColor; stroke-linecap: round; }
.rating-ring strong { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink); font-size: 21px; line-height: 1; }
.rating-ring.is-good { color: var(--green); }.rating-ring.is-warn { color: var(--amber); }.rating-ring.is-bad { color: var(--red); }
.rating-text { min-width: 0; }
.rating-text h3 { margin: 0; font-size: 15px; }
.rating-text p { margin: 3px 0 0; color: var(--muted-strong); font-size: 13px; line-height: 1.5; }
.rating-text .rating-rule { max-width: 720px; color: var(--muted); font-size: 12.5px; }
.rating-text a { color: var(--blue); white-space: nowrap; }
.record-grid { border: 0; border-bottom: 1px solid var(--line); box-shadow: none; animation: none; }
.record-note { margin: 0; padding: 12px 16px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.node-top h3 { margin: 0; }
.node-card .tag-row { margin: 10px 0; }
.node-card .node-facts { margin: 6px 0 0; }
.device-archive { margin-top: 14px; }
.device-archive summary { width: max-content; cursor: pointer; color: var(--muted-strong); font-size: 13px; font-weight: 650; }
.device-archive .node-grid, .device-archive .model-list { margin-top: 10px; }
.add-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border: 1px dashed var(--line-strong); border-radius: 8px; padding: 14px 16px; }
.add-row h2 { margin: 0; font-size: 15px; }
.add-row .step-actions { margin: 0; }
.pairing-card-v2 { margin-bottom: 16px; scroll-margin-top: 84px; }
.pairing-card-v2 .pairing-body { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.pairing-steps ol { margin: 0 0 10px; padding-left: 18px; color: var(--muted-strong); font-size: 13px; line-height: 1.7; }
.pairing-steps a:not(.button) { color: var(--blue); }
.pairing-open { margin: 2px 0 14px; }
.pairing-steps .microcopy { margin: 0 0 4px; }
@media (max-width: 680px) {
  /* A phone cannot scan its own screen: the code to type comes first. */
  .pairing-card-v2 .pairing-qr { order: 2; }
}
.pairing-card-v2 img { width: 190px; height: 190px; image-rendering: pixelated; border-radius: 8px; background: #fff; padding: 8px; }
.pairing-code { display: block; margin: 6px 0 10px; font-size: 20px; letter-spacing: .06em; }
.method-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.wallet-merge-review { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.wallet-merge-review h3 { margin: 0 0 8px; font-size: 14px; }
.wallet-merge-review > p { margin: 8px 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.wallet-merge-review > .notice { color: var(--amber); }
.workspace-page .settings-grid { align-items: start; }
.detail-value { min-width: 0; display: inline-flex; align-items: center; gap: 8px; }
.detail-value .button { min-height: 36px; padding: 0 12px; }
.account-signout { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
#account-form .saved-flag { display: inline-block; margin-top: 8px; }

/* ---------- Connector setup ---------- */
.connect-gate { margin-bottom: 18px; border-color: color-mix(in srgb, var(--blue) 35%, var(--line)); }
.connect-gate .panel-body { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 22px; }
.connect-gate h2 { margin: 2px 0 8px; font-size: 18px; }
.connect-gate p { margin: 0 0 14px; max-width: 680px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.gate-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--green-soft); color: var(--green); }
.gate-mark svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.manual-install { display: grid; gap: 10px; margin: 0 0 16px; padding-left: 18px; font-size: 13px; line-height: 1.5; }
.manual-install li > strong { margin-right: 6px; }
.manual-install small { display: block; color: var(--muted); font-size: 12px; }
.manual-install .button { min-height: 32px; margin-left: 4px; }
.gate-actions { display: flex; flex-wrap: wrap; gap: 8px; }
/* The setup appears only after its prerequisites, one thing at a time. */
.browser-layout.gated { display: none; }
.server-list { display: grid; gap: 8px; margin-bottom: 14px; }
.server-list:empty { display: none; }
.server-option { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; background: var(--panel); color: var(--ink); cursor: pointer; text-align: left; }
.server-option:hover { border-color: var(--line-strong); background: var(--panel-soft); }
.server-option strong { font-size: 14px; }
.server-option small { grid-column: 1; color: var(--muted); font-size: 12px; }
.server-option .server-check { grid-row: 1 / span 2; grid-column: 2; border-radius: 99px; padding: 5px 10px; background: var(--soft); color: var(--muted-strong); font-size: 11px; font-weight: 720; }
.server-option.selected { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.server-option.selected .server-check { background: var(--green); color: #fff; }
.scan-empty { margin-bottom: 14px; border: 1px dashed var(--line-strong); border-radius: 8px; padding: 14px; font-size: 13px; line-height: 1.5; }
.scan-empty p, .scan-empty ul { margin: 6px 0 0; color: var(--muted-strong); }
.selected-model { margin-top: 12px; }
.selected-model small, .advanced-grid small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.advanced-settings { margin: 16px 0 4px; border: 1px solid var(--line); border-radius: 8px; padding: 0 14px; }
.advanced-settings > summary { cursor: pointer; padding: 12px 0; color: var(--muted-strong); font-size: 13px; font-weight: 700; }
.advanced-grid { display: grid; gap: 14px; padding-bottom: 14px; }
.use-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.key-reveal { margin-top: 12px; }

/* ---------- Landing & docs additions ---------- */
.not-found { width: min(620px, calc(100% - 32px)); min-height: calc(100vh - 160px); display: grid; align-content: center; justify-items: start; gap: 12px; margin: 0 auto; }
.not-found h1 { margin: 0; font-size: 34px; }
.not-found p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.not-found nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.legal { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 40px 0 72px; font-size: 14px; line-height: 1.65; }
.legal h1 { font-size: 32px; }
.legal h2 { margin-top: 32px; font-size: 18px; }
.legal p, .legal li { color: var(--muted-strong); }
.legal .legal-note { border-left: 3px solid var(--amber); padding: 8px 14px; background: var(--amber-soft); color: var(--amber); }

@media (max-width: 760px) {
  .site-footer-inner { flex-direction: column; align-items: flex-start; justify-content: center; padding: 16px 0; }
  /* Seven links stay on one line on a phone: they share the width instead of keeping a fixed gap. */
  .site-footer nav { width: 100%; max-width: 400px; justify-content: space-between; column-gap: 6px; }
  .signin-card { padding: 24px 18px; }
  .three-values, .add-device { grid-template-columns: 1fr; }
  
  .connect-gate .panel-body { grid-template-columns: 1fr; }
  .model-grid { grid-template-columns: 1fr; }
  .nav-links .nav-cta { margin-left: 2px; }
}

.docs-article p.docs-callout { margin-top: 16px; }

.docs-store-install { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; border: 1px solid color-mix(in srgb, var(--green) 40%, var(--line)); border-radius: 8px; padding: 14px; background: var(--green-soft); }
.docs-store-install p { margin: 0; }
.docs-copy.docs-copy-inline { position: static; margin-left: auto; }
.hidden { display: none !important; }

/* Empty states inside panels and grids stay compact. */
.panel-body .empty, .model-grid > .empty { min-height: 0; padding: 22px 16px; }
.panel-body .empty .empty-mark, .model-grid > .empty .empty-mark { display: none; }
.workspace-head .lede a { color: var(--blue); }

/* ---------- Landing: two ways in, one idea per block ---------- */
.lp main { width: min(1080px, calc(100% - 40px)); padding: 0 0 40px; }
.lp-hero { display: grid; justify-items: center; padding: 88px 0 64px; text-align: center; }
.lp-hero h1 { margin: 0; font-size: clamp(42px, 7vw, 80px); line-height: 1.02; letter-spacing: -.045em; }
.lp-hero h1 span { color: var(--green); }
.lp-lede { max-width: 600px; margin: 24px 0 0; text-wrap: balance; color: var(--muted-strong); font-size: clamp(17px, 2vw, 21px); line-height: 1.45; }
.lp-primary { min-height: 50px; border-radius: 999px; padding: 0 28px; font-size: 15px; }
.lp-link { margin-top: 30px; color: var(--ink); font-size: 15px; font-weight: 680; text-decoration: none; }
.lp-link::after { content: " ↓"; color: var(--green); }
.lp-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.lp-roles { width: min(880px, 100%); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 48px; text-align: left; }
.lp-role { display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--line); border-radius: 24px; padding: 28px; background: var(--panel); box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.lp-role:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.lp-role-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--blue-soft); color: var(--blue); }
.lp-role-share .lp-role-icon { background: var(--green-soft); color: var(--green); }
.lp-role-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lp-role h2 { margin: 20px 0 8px; font-size: 26px; letter-spacing: -.02em; }
.lp-role p { flex: 1; margin: 0 0 24px; color: var(--muted-strong); font-size: 16px; line-height: 1.5; }

.lp-flow { width: min(720px, 100%); display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: start; gap: 14px; margin: 0 auto; }
.lp-node { width: 132px; display: grid; justify-items: center; gap: 10px; color: var(--muted-strong); font-size: 13px; font-weight: 680; }
.lp-node small { max-width: 130px; margin-top: -6px; color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.35; }
.lp-icon { width: 76px; height: 76px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 22px; background: var(--panel); box-shadow: var(--shadow); color: var(--ink); }
.lp-icon svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.lp-node-core .lp-icon { border-color: color-mix(in srgb, var(--green) 45%, var(--line)); background: var(--green-soft); }
.lp-node-core { color: var(--green); }
.lp-wire { position: relative; height: 2px; margin-top: 37px; border-radius: 2px; background: repeating-linear-gradient(to right, var(--line-strong) 0 6px, transparent 6px 12px); overflow: hidden; }
.lp-wire i { position: absolute; top: -2px; left: -12px; width: 12px; height: 6px; border-radius: 6px; background: var(--green); animation: lp-travel 2.4s ease-in-out infinite; }
.lp-wire + .lp-node + .lp-wire i { animation-delay: 1.2s; }
@keyframes lp-travel { from { left: -12px; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { left: 100%; opacity: 0; } }

.lp-section { padding: 64px 0; border-top: 1px solid var(--line); text-align: center; }
.lp-section h2, .lp-final h2 { margin: 0 0 40px; text-wrap: balance; font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.025em; }
.lp-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 48px; text-align: left; }
.lp-path { border: 1px solid var(--line); border-radius: 20px; padding: 24px 24px 8px; background: var(--panel); }
.lp-path h3 { margin: 0 0 6px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.lp-path + .lp-path h3 { color: var(--green); }
.lp-steps { margin: 0; padding: 0; list-style: none; }
.lp-steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; padding: 14px 0; }
.lp-steps li + li { border-top: 1px solid var(--line); }
.lp-steps span { grid-row: span 2; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--panel); font-size: 14px; font-weight: 800; }
.lp-steps strong { font-size: 17px; }
.lp-steps p { margin: 0; color: var(--muted); font-size: 15px; }

.lp-final { display: grid; justify-items: center; padding: 72px 0 40px; border-top: 1px solid var(--line); text-align: center; }
.lp-final h2 { margin-bottom: 26px; }
.lp-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.lp-final p { margin: 20px 0 0; color: var(--muted); font-size: 13px; }
.lp-final p a { color: var(--muted-strong); }

@media (max-width: 720px) {
  .lp-hero { padding: 52px 0 44px; }
  .lp-roles, .lp-paths { grid-template-columns: 1fr; gap: 14px; margin-top: 32px; }
  .lp-role { padding: 22px; border-radius: 20px; }
  .lp-role h2 { margin-top: 16px; font-size: 23px; }
  .lp-flow { gap: 6px; }
  .lp-node { width: 92px; }
  .lp-icon { width: 58px; height: 58px; border-radius: 17px; }
  .lp-icon svg { width: 26px; height: 26px; }
  .lp-wire { margin-top: 28px; }
  .lp-section { padding: 48px 0; }
  .lp-actions { display: grid; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .lp-wire i { animation: none; display: none; } .lp-role { transition: none; } .lp-role:hover { transform: none; } }
.status-dashboard-link { margin: 10px 0 0; font-size: 14px; font-weight: 650; }
.status-dashboard-link a { color: var(--green); text-decoration: none; }
.status-dashboard-link a:hover { text-decoration: underline; }
.model-card.is-idle { background: var(--panel-soft); }
.model-card.is-idle .model-card-head small { max-width: 34ch; }

/* API keys: the list first, a one-line form below. */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* API keys: one list with aligned columns, named once above the rows. */
.key-list { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); overflow: hidden; }
.key-list-labels, .key-row { display: grid; grid-template-columns: minmax(200px, 1.7fr) minmax(130px, 1fr) minmax(140px, 1fr) 104px 172px; align-items: center; gap: 4px 16px; padding: 12px 16px; }
.key-list-labels { padding-top: 9px; padding-bottom: 9px; background: var(--soft); color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.key-row { font-size: 13px; }
.key-row + .key-row, .key-list-labels + .key-row { border-top: 1px solid var(--line); }
.key-name { min-width: 0; display: grid; gap: 3px; }
.key-name strong { font-size: 14px; overflow-wrap: anywhere; }
.key-name code { color: var(--muted); font-size: 12px; }
/* On a wide screen the three facts are columns; in a narrow row they are one line of text. */
.key-meta { display: contents; }
.key-cell { min-width: 0; color: var(--muted-strong); line-height: 1.45; }
.key-cell small { display: block; color: var(--muted); font-size: 12px; }
.key-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; font-style: normal; }
.key-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.key-actions .button { min-height: 36px; padding: 0 12px; white-space: nowrap; }
.key-actions [aria-expanded="true"] { background: var(--soft); color: var(--ink); }
.key-row.is-revoked .key-name strong, .key-row.is-revoked .key-cell { color: var(--muted); }
.key-settings { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 300px) auto; align-items: end; justify-content: start; gap: 10px 14px; margin: 8px -16px -12px; border-top: 1px solid var(--line); padding: 14px 16px 16px; background: var(--panel-soft); }
.key-field label { display: block; margin: 0 0 5px; color: var(--muted-strong); font-size: 12px; font-weight: 650; }
.key-field input, .key-field select { width: 100%; height: 40px; font-size: 13px; }
.key-save { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.key-save .button { min-height: 40px; }
.key-settings .field-error { grid-column: 1 / -1; margin: 0; }
.key-settings .field-error:empty, #api-key-form > .field-error:empty { display: none; }
.key-advanced summary, .key-revoked summary { width: max-content; cursor: pointer; color: var(--muted-strong); font-size: 13px; font-weight: 650; }
.key-revoked { margin-top: 12px; }
.key-revoked .key-list { margin-top: 8px; }
.key-create-wrap { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.key-create-wrap .subhead { margin-top: 0; }
/* Name and button share a row on a wide screen; on a phone the button comes
   after the privacy choice it depends on. */
#api-key-form { max-width: 720px; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name button" "privacy privacy" "advanced advanced" "error error"; gap: 10px 8px; }
#api-key-form .key-create-name { grid-area: name; }
#api-key-form .key-create-name input { min-height: 44px; }
#api-key-form > .button { grid-area: button; min-height: 44px; white-space: nowrap; }
#api-key-form .key-unshielded { grid-area: privacy; }
#api-key-form .key-advanced { grid-area: advanced; }
#api-key-form > .field-error { grid-area: error; margin: 0; }
.key-create-row { display: flex; gap: 8px; max-width: 640px; }
.key-create-row input { flex: 1 1 auto; min-width: 0; min-height: 44px; }
.key-create-row .button { white-space: nowrap; }
.key-unshielded { font-size: 12.5px; }
.key-unshielded a { color: var(--blue); }
.key-fallback { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 12.5px; color: var(--muted-strong); }
.key-fallback select { width: auto; max-width: 100%; height: 38px; font-size: 13px; }
.reveal-hint { margin: 10px 0 0; }
.snippet-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.snippet-model { flex: 0 1 380px; min-width: 220px; }
.snippet-controls .snippet-tabs { margin: 0; }
@media (max-width: 1180px) {
  /* Too narrow for five columns: the name and actions on one line, the facts under them. */
  .key-list-labels { display: none; }
  .key-row { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .key-meta { grid-column: 1 / -1; grid-row: 2; display: flex; flex-wrap: wrap; gap: 2px 16px; font-size: 12px; }
  .key-cell, .key-cell small { color: var(--muted); }
  .key-cell small { display: inline; }
  .key-cell small::before { content: " · "; }
  .key-used:not(.is-unused) .key-label, .key-created .key-label { position: static; width: auto; height: auto; clip: auto; margin-right: 4px; }
  .key-used.is-unknown { display: none; }
  .key-settings { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
}
@media (max-width: 720px) {
  .key-settings { grid-template-columns: minmax(0, 1fr); }
  #api-key-form { grid-template-columns: minmax(0, 1fr); grid-template-areas: "name" "privacy" "advanced" "button" "error"; }
  .key-create-row { flex-direction: column; }
  .key-create-row input { flex: none; }
  .segments button { min-height: 40px; }
}
.muted { color: var(--muted); font-weight: 500; }

/* Pools: models on the left, people on the right. */
.pool-card + .pool-card, .pool-card + .panel { margin-top: 16px; }
.pool-card h2 .tag { margin-left: 6px; vertical-align: middle; }
.pool-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; }
.pool-body .subhead { margin-top: 0; }
.pool-body .subhead + * { margin-bottom: 18px; }
.pool-body > div > :last-child { margin-bottom: 0; }
.pool-members, .pool-invites { display: grid; gap: 8px; }
.pool-member { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--panel); }
/* In a narrow column the role and Revoke access move under the name instead of pushing out of the card. */
.pool-member > div:first-child { flex: 1 1 180px; min-width: 0; }
.pool-member strong { display: block; font-size: 13px; overflow-wrap: anywhere; }
.pool-member small { color: var(--muted); font-size: 12px; line-height: 1.45; }
.pool-member .row-actions { flex-wrap: wrap; gap: 8px 10px; }
.pool-member select { width: auto; height: 38px; font-size: 13px; }
.pool-invites article { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted-strong); font-size: 12.5px; line-height: 1.45; }
.pool-invites article > span { min-width: 0; }
.pool-invites .button { flex-shrink: 0; white-space: nowrap; }
.pool-invites { margin-top: 12px; }
.pool-invite-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pool-invite-form select { width: auto; max-width: 100%; height: 40px; font-size: 13px; }
.pool-invite-form .check-row { flex-basis: 100%; }
.pool-invite-form .field-error { flex-basis: 100%; margin: 0; }
.pool-invite-form .field-error:empty { display: none; }
.pool-invite-form label { margin: 0; }
/* The new link shows up under the button that made it. */
.invite-reveal { display: grid; gap: 10px; justify-items: start; margin-top: 12px; border: 1px solid color-mix(in srgb, var(--green) 45%, var(--line)); border-radius: 8px; padding: 12px; background: var(--panel-soft); }
.invite-reveal .secret-line { width: 100%; }
.pool-rename-form input { flex: 1 1 180px; min-width: 0; }
.pool-rename-form .microcopy { flex-basis: 100%; margin: 0; }
.check-row.compact { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 12.5px; }
.pool-stats { border-top: 1px solid var(--line); padding: 12px 20px 16px; }
.pool-stats summary { width: max-content; cursor: pointer; color: var(--muted-strong); font-size: 13px; font-weight: 650; }
.pool-stats-body { margin-top: 10px; display: grid; gap: 12px; }
.danger-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.danger-row:first-child { border-top: 0; padding-top: 0; }
.danger-row .microcopy { flex: 1 1 260px; margin: 0; }
@media (max-width: 900px) {
  .pool-body { grid-template-columns: 1fr; }
}
/* With the sidebar beside the content, the card is as narrow as on a tablet. */
@media (min-width: 941px) and (max-width: 1100px) {
  .pool-body { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .pool-member { align-items: flex-start; flex-direction: column; }
  .pool-member .row-actions { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; }
  .pool-invites article { align-items: flex-start; flex-direction: column; }
}

/* Activity: numbers first, then the requests. Columns drop out and finally
   stack as the screen narrows; nothing scrolls sideways. */
.activity-chart { margin-top: 14px; border-radius: 7px; }
.activity-chart canvas { height: 170px; }
/* Two lines need their key on every screen; the shared rule hides legends on phones. */
.activity-chart .chart-toolbar { flex-wrap: wrap; gap: 6px 14px; }
.activity-chart .legend { display: flex; font-size: 12px; }
.panel.activity-sources { border-top-color: var(--line); }
.activity-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; border-bottom: 1px solid var(--line); padding: 12px 16px; }
.activity-filters select { width: auto; max-width: 100%; height: 38px; font-size: 13px; }
.activity-filters .section-note { margin-left: auto; }
.activity-list { font-size: 13px; }
.activity-labels, .activity-row { display: grid; grid-template-columns: 128px minmax(140px, 1.7fr) 112px minmax(156px, 1fr) 100px 80px 104px 124px; align-items: center; gap: 0 14px; padding: 10px 16px; }
.activity-labels { background: var(--soft); color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.activity-row { border-top: 1px solid var(--line); }
.activity-row:hover { background: var(--panel-soft); }
.act-source { min-width: 0; overflow-wrap: anywhere; }
.act-label { display: none; font-style: normal; }
.activity-more { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding: 14px 16px; }
@media (max-width: 1360px) {
  .activity-labels, .activity-row { grid-template-columns: 128px minmax(140px, 1.7fr) 112px minmax(156px, 1fr) 80px 104px 124px; }
  .act-first { display: none; }
}
@media (max-width: 1200px) {
  .activity-labels, .activity-row { grid-template-columns: 128px minmax(140px, 1.7fr) 112px minmax(156px, 1fr) 80px 124px; }
  .act-speed { display: none; }
}
@media (max-width: 1100px) {
  .activity-labels { display: none; }
  .activity-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 12px 16px; }
  .act-source { order: 1; flex: 1 1 calc(100% - 172px); }
  .act-result { order: 2; flex: 0 0 160px; display: flex; justify-content: flex-end; }
  .act-result .status { white-space: normal; text-align: right; }
  .activity-row { gap: 4px 0; }
  .act-when, .act-role, .act-total, .act-speed { order: 3; display: inline; color: var(--muted); font-size: 12px; }
  .act-role::before, .act-total::before, .act-speed::before { content: "·"; margin: 0 6px; }
  .act-first, .act-empty { display: none; }
  .act-characters, .act-characters.act-empty { order: 4; display: block; flex-basis: 100%; color: var(--muted); font-size: 12px; }
  .act-characters .act-label { display: inline; margin-right: 6px; }
  .act-characters .act-label::after { content: ":"; }
  .activity-filters .section-note { margin-left: 0; flex-basis: 100%; }
}

/* Feedback form (/feedback) and the links that lead to it. */
.field-optional { color: var(--muted); font-weight: 400; }
.feedback-main { width: min(680px, calc(100% - 32px)); min-height: calc(100vh - 140px); padding: 40px 0 72px; }
.feedback-main h1 { margin: 0 0 8px; font-size: 30px; line-height: 1.15; }
.feedback-form, .feedback-sent { margin-top: 22px; padding: 22px; }
.feedback-field { margin-bottom: 10px; }
.feedback-label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 730; }
.feedback-form textarea { display: block; width: 100%; min-height: 150px; border: 1px solid var(--line-strong); border-radius: 6px; padding: 10px 12px; background: var(--panel); color: var(--ink); font: inherit; font-size: 14px; line-height: 1.5; resize: vertical; }
.feedback-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 14%, transparent); outline: 0; }
.feedback-form .microcopy { margin-top: 7px; }
.feedback-form .microcopy a { color: var(--blue); }
.feedback-count { margin: 6px 0 0; color: var(--muted); font-size: 12px; text-align: right; }
.feedback-pictures { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; border-radius: 8px; }
.feedback-picture { position: relative; width: 132px; margin: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--soft); }
.feedback-picture img { display: block; width: 100%; height: 88px; object-fit: cover; }
.feedback-picture figcaption { padding: 5px 8px; color: var(--muted-strong); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feedback-remove { position: absolute; top: 5px; right: 5px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--backdrop); color: #fff; cursor: pointer; font-size: 17px; line-height: 1; }
.feedback-remove:focus-visible, .feedback-add:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.feedback-add { min-height: 44px; margin: 0; cursor: pointer; font-size: 13px; }
#feedback-files:focus-visible + .microcopy { color: var(--ink); }
#feedback-drop.is-dropping .feedback-pictures { outline: 2px dashed var(--blue); outline-offset: 6px; }
.feedback-details { margin: 0 0 18px; }
.feedback-details-body { padding: 0 0 14px; }
.feedback-check { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 12px; font-size: 13px; font-weight: 400; }
.feedback-check input { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 2px; padding: 0; accent-color: var(--green); }
.feedback-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: 12px; line-height: 1.45; }
.feedback-facts dt { color: var(--muted); }
.feedback-facts dd { margin: 0; color: var(--muted-strong); overflow-wrap: anywhere; }
.feedback-facts.is-off { opacity: .45; }
.feedback-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.feedback-actions .field-error { flex: 1 1 220px; margin: 0; }
.feedback-sent h2 { margin: 0 0 8px; font-size: 20px; }
.feedback-sent p { margin: 0 0 12px; color: var(--muted-strong); font-size: 14px; }
.workspace-foot { display: none; margin: 28px 0 0; color: var(--muted); font-size: 12px; }
.workspace-foot a, .connector-help a { color: var(--muted-strong); }
.connector-help { margin: 16px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
@media (max-width: 940px) { .workspace-foot { display: block; } }
@media (max-width: 680px) {
  .feedback-main { padding-top: 24px; }
  .feedback-main h1 { font-size: 26px; }
  .feedback-form, .feedback-sent { padding: 16px; }
  .feedback-picture { width: calc(50% - 5px); }
  .feedback-kind-row .segments, #feedback-kind { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; }
}
