:root {
  /* スマホの空き具合の帯で使うカレンダー（Lucide calendar） */
  --cal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E");
  /* カンプ（design/comp.png）の色 */
  --bg: #f5f6f8;
  --surface: #ffffff;
  --ink: #252b37;
  --ink-2: #5d6576;
  --line: #dde1e8;
  --line-2: #eceef2;
  --accent: #39549a;
  --accent-ink: #ffffff;
  --accent-soft: #e8edf7;
  --teal: #087f78;
  --teal-soft: #ddf1ef;
  --ok: #087f78;
  --ok-soft: #ddf1ef;
  --info: #39549a;
  --info-soft: #e8edf7;
  --new: #b5531c;
  --new-soft: #fcebdf;
  --muted-soft: #eceef2;
  --err: #a8322d;
  --err-soft: #fbe9e7;
  --radius: 6px;
  --radius-s: 4px;
  /* 横メニューの背景（テーマカラーのブルー。暗い表示でも同じ色のまま） */
  --side: #39549a;
  --side-w: 256px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14171d; --surface: #1c2028; --ink: #e8eaef; --ink-2: #a2a9b7; --line: #2f3440; --line-2: #262a33;
    --accent: #8ea3dc; --accent-ink: #11141a; --accent-soft: #232c45; --teal: #5cc8bf; --teal-soft: #173533;
    --ok: #5cc8bf; --ok-soft: #173533; --info: #8ea3dc; --info-soft: #232c45;
    --new: #f0a06e; --new-soft: #3a2a1f; --muted-soft: #2a2e37; --err: #f08a84; --err-soft: #3a2220;
  }
}
:root[data-theme="dark"] {
  --bg: #14171d; --surface: #1c2028; --ink: #e8eaef; --ink-2: #a2a9b7; --line: #2f3440; --line-2: #262a33;
  --accent: #8ea3dc; --accent-ink: #11141a; --accent-soft: #232c45; --teal: #5cc8bf; --teal-soft: #173533;
  --ok: #5cc8bf; --ok-soft: #173533; --info: #8ea3dc; --info-soft: #232c45;
  --new: #f0a06e; --new-soft: #3a2a1f; --muted-soft: #2a2e37; --err: #f08a84; --err-soft: #3a2220;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.75 "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", sans-serif;
}
a { color: var(--accent); }
h1 { font-size: 1.6rem; line-height: 1.4; margin: .2em 0 .5em; font-weight: 700; letter-spacing: .01em; }
h2 { font-size: 1rem; margin: 1.6em 0 .6em; font-weight: 700; }
h3 { font-size: 1rem; margin: 0; line-height: 1.5; font-weight: 700; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; background: var(--muted-soft); padding: .1em .35em; border-radius: 4px; }

/* ---- 枠：左の横メニュー（PC）。960px 以下では上の青い帯 ---- */
.top { background: var(--side); color: #fff; z-index: 10; }
.main, .foot { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
body.has-side { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
body.has-side .top { position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.top-inner { display: flex; flex-direction: column; gap: 0; min-height: 100%; padding: 22px 14px 18px; }
.page { min-width: 0; }
.brand { text-decoration: none; color: var(--ink); display: flex; align-items: center; gap: 10px; flex: none; }
.top .brand { color: #fff; padding: 0 8px; }
.brand-mark { width: 34px; height: auto; display: block; }
.top .brand-mark { width: 28px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 900; font-size: 1.2rem; letter-spacing: -.01em; }
.top .brand-name { font-size: .95rem; letter-spacing: -.02em; white-space: nowrap; }
.brand-sub { font-size: .62rem; color: var(--ink-2); letter-spacing: .04em; margin-top: 2px; }
.top .brand-sub { color: rgba(255,255,255,.72); font-size: .58rem; letter-spacing: 0; white-space: nowrap; }
.area { align-self: flex-start; font-size: .72rem; font-weight: 700; color: #fff; background: rgba(255,255,255,.16); border-radius: var(--radius-s); padding: 1px 10px; margin: 14px 8px 0; line-height: 1.8; white-space: nowrap; }
.nav { display: flex; flex-direction: column; gap: 2px; margin-top: 26px; }
.nav a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; text-decoration: none; color: rgba(255,255,255,.86);
  border-radius: var(--radius-s); white-space: nowrap; font-size: .88rem; font-weight: 500; position: relative;
}
.nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav a.on { background: rgba(255,255,255,.18); color: #fff; font-weight: 700; }
.nav a.on::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 3px 3px 0; background: #5cc8bf; }
.nav a.admin { margin-top: 14px; }
.nav a.admin::after { content: ""; position: absolute; left: 12px; right: 12px; top: -8px; border-top: 1px solid rgba(255,255,255,.18); }
.who { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: .82rem; white-space: nowrap; margin-top: auto; padding: 16px 12px 0; border-top: 1px solid rgba(255,255,255,.18); }
.who form { margin: 0; }
.top .who-name, .top .who > span { color: #fff; font-weight: 700; text-decoration: none; }
.top .who-name:hover { text-decoration: underline; color: #fff; }
.top button.link { color: rgba(255,255,255,.78); font-size: .78rem; }
.top button.link:hover { color: #fff; text-decoration: underline; }
.subnav a {
  display: flex; align-items: center; padding: 8px 14px; text-decoration: none; color: var(--ink); border-bottom: 3px solid transparent;
  white-space: nowrap; font-size: .85rem; font-weight: 500;
}
.subnav { display: flex; gap: 4px; overflow-x: auto; margin: 0 0 16px; border-bottom: 1px solid var(--line); }
.subnav a.on { color: var(--accent); border-bottom-color: var(--accent); }
.main { padding-top: 28px; padding-bottom: 48px; min-height: 70vh; }
.foot { font-size: .75rem; color: var(--ink-2); padding-top: 20px; padding-bottom: 32px; text-align: center; display: grid; gap: 2px; }
.foot-note { font-size: .7rem; opacity: .85; }

/* ---- 文 ---- */
.lead { color: var(--ink-2); margin-top: -.3em; max-width: 46em; font-size: .92rem; }
.meta { color: var(--ink-2); font-size: .82rem; margin: .2em 0; }
.note { color: var(--ink-2); font-size: .8rem; }
.summary { margin: .2em 0 1em; }
.crumb { font-size: .78rem; margin: 0 0 12px; color: var(--ink-2); }
.crumb a { color: var(--ink-2); text-decoration: none; }
.crumb a:hover { color: var(--accent); }
.crumb a::after { content: "／"; margin: 0 .5em; color: var(--ink-2); }
.empty { color: var(--ink-2); font-size: .92rem; padding: 36px 18px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin: 0; }
.quote { border-left: 3px solid var(--line); padding: 2px 0 2px 12px; margin: 8px 0; white-space: pre-wrap; color: var(--ink); }
.flash, .error {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius-s);
  margin: 0 0 16px; font-weight: 500; font-size: .9rem; color: var(--ink); text-align: left;
}
.flash::before, .error::before {
  flex: none; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 900; font-size: .8rem;
}
.flash { background: var(--ok-soft); border-left: 4px solid var(--teal); }
.flash::before { content: "✓"; background: var(--teal); }
.error { background: var(--err-soft); border-left: 4px solid var(--err); }
.error::before { content: "!"; background: var(--err); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.section-head h2 { margin-bottom: .6em; }
.section-head > a { font-size: .78rem; text-decoration: none; font-weight: 500; }
.section-head > a:not(.btn)::after { content: " ›"; }

/* ---- アイコン（src/icons.js。Lucide の線画、太さ 1.75） ---- */
.icon { display: block; flex: none; }
.nav a .icon { color: currentColor; opacity: .9; }
.icon-tile { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 8px; flex: none; }
.icon-tile.large { width: 64px; height: 64px; border-radius: 10px; }
.icon-tile.blue, .icon-circle.blue { background: var(--accent-soft); color: var(--accent); }
.icon-tile.teal, .icon-circle.teal { background: var(--teal-soft); color: var(--teal); }
.section-head.with-icon { align-items: center; margin: 1.6em 0 .7em; }
.section-head.with-icon h2 { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 1.05rem; }
.empty-state { display: flex; align-items: center; gap: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.icon-circle { display: inline-flex; align-items: center; justify-content: center; width: 84px; height: 84px; border-radius: 50%; flex: none; }
.empty-title { margin: 0 0 4px; font-weight: 700; font-size: .98rem; }
.empty-text { margin: 0; font-size: .84rem; color: var(--ink-2); }
.empty-state .btn { margin-top: 14px; }
.btn.with-arrow, .with-arrow { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.with-arrow .arrow { transition: transform .15s; }
.with-arrow:hover .arrow { transform: translateX(2px); }

/* ---- ホーム ---- */
.hello { margin-bottom: .2em; }
.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.home-grid > section { display: flex; flex-direction: column; }
.home-grid > section > .empty-state { flex: 1 1 auto; }

/* ---- カード・一覧 ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 16px; }
.grid.half { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card {
  display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.card:hover, .row:hover { border-color: var(--accent); box-shadow: 0 1px 4px rgba(37, 43, 55, .06); }
.card p { margin: .4em 0; font-size: .88rem; }
.card h3 { font-size: 1rem; margin: 4px 0 2px; }
.card-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.card-head h3 { flex: 1 1 auto; margin: 0; }
.kind { font-size: .72rem; color: var(--accent); font-weight: 700; }
.label { display: inline-block; font-size: .7rem; font-weight: 700; padding: 1px 8px; border-radius: 3px; background: var(--accent-soft); color: var(--accent); line-height: 1.7; }
.label.teal { background: var(--teal-soft); color: var(--teal); }
.rows { display: grid; gap: 8px; }
.row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px;
}
a.row::after { content: "›"; color: var(--ink-2); font-size: 1.2rem; line-height: 1; margin-left: 4px; }
.row .kind { margin-right: 8px; }
.row strong { font-weight: 500; }
.row p { margin: .2em 0 0; }
/* 区切り線でつないだ一覧（ホーム） */
.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.list .row { border: 0; border-radius: 0; border-bottom: 1px solid var(--line-2); font-size: .9rem; }
.list .row:last-child { border-bottom: 0; }
.list .row:hover { box-shadow: none; background: var(--bg); }

.facts { display: flex; flex-wrap: wrap; gap: 2px 16px; margin: 8px 0; font-size: .8rem; }
.facts div { display: flex; gap: 6px; }
.facts dt { color: var(--ink-2); white-space: nowrap; }
.facts dd { margin: 0; }
.card .facts { display: grid; gap: 2px; }
/* 一覧のカードでは、要点を区切り線つきのマスに */
.grid:not(.half) .card { display: flex; flex-direction: column; padding: 18px 20px; }
.grid:not(.half) .card h3 { font-size: 1.08rem; }
.grid:not(.half) .card .facts {
  grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; margin: 12px 0 4px;
  border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
}
.grid:not(.half) .card .facts div { flex-direction: column; gap: 0; padding: 6px 10px; border-left: 1px solid var(--line-2); }
.grid:not(.half) .card .facts div:first-child { border-left: 0; padding-left: 0; }
.grid:not(.half) .card .facts dt { font-size: .7rem; }
.grid:not(.half) .card .facts dd { font-size: .85rem; }
.card .more { margin-top: auto; padding-top: 10px; align-self: flex-end; font-size: .78rem; font-weight: 700; color: var(--accent); }
.card .more::after { content: " ›"; }
.grid.half .more { display: none; }
/* ホームの半分幅では、題と要点だけ */
.grid.half .card-sum, .grid.half .tags { display: none; }
.grid.half .card .meta { font-size: .76rem; }
/* 区切り線つきのマス（詳細・マイページ） */
.facts.wide {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin: 14px 0;
  border: 1px solid var(--line); border-radius: var(--radius); font-size: 1rem;
}
.facts.wide div { flex-direction: column; gap: 2px; padding: 10px 16px; border-left: 1px solid var(--line); }
.facts.wide div:first-child { border-left: 0; }
.facts.wide dt { font-size: .72rem; font-weight: 500; }
.facts.wide dd { font-weight: 500; overflow-wrap: anywhere; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tags.top { margin: 0 0 8px; }
.push { margin-left: auto; }
.pill { display: inline-block; background: var(--teal-soft); color: var(--teal); font-weight: 700; font-size: .8rem; padding: 3px 16px; border-radius: 99px; }
/* 見出しと値を横に並べた表（共同募集の詳細・マイページ） */
.spec { margin: 14px 0; }
.spec div { display: grid; grid-template-columns: 11em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: .9rem; }
.spec dt { font-weight: 700; font-size: .82rem; }
.spec dd { margin: 0; overflow-wrap: anywhere; }
.spec.pair { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 6px; border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; }
.spec.pair div { grid-template-columns: 7em 1fr; gap: 0; padding: 0; border-bottom: 1px solid var(--line); }
.spec.pair div:nth-last-child(-n+2):nth-child(odd), .spec.pair div:last-child { border-bottom: 0; }
.spec.pair div:nth-child(even) { border-left: 1px solid var(--line); }
.spec.pair dt { background: var(--bg); padding: 8px 12px; font-weight: 500; color: var(--ink-2); }
.spec.pair dd { padding: 8px 12px; }
.profile { padding: 14px 16px; }
.tag { font-size: .7rem; font-weight: 700; background: var(--accent-soft); color: var(--accent); padding: 1px 8px; border-radius: 3px; }
.badge { font-size: .72rem; padding: 2px 12px; border-radius: 99px; background: var(--teal-soft); color: var(--teal); white-space: nowrap; font-weight: 700; }
/* 色の決まり：青＝進行中・未読／青緑＝受付・成立／灰＝完了・保留 */
.badge { border: 1px solid transparent; display: inline-block; line-height: 1.6; }
.badge.ok { background: var(--teal); color: #fff; }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.new { background: var(--accent); color: var(--accent-ink); }
.badge.muted { background: var(--muted-soft); color: var(--ink-2); }
.badge.closed { background: #dfe2e8; color: #4a5160; }
.badge.out { background: var(--surface); color: var(--ink-2); border-color: var(--line); }
.badge.draft { background: var(--surface); color: var(--ink-2); border: 1px dashed #b8bec9; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 16px 0; }
.panel h2 { margin-top: 0; font-size: 1.05rem; }
.panel > summary { cursor: pointer; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: 4px 0; }
.joiners { list-style: none; padding: 0; margin: 0; }
.joiners li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.joiners li:last-child { border-bottom: 0; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 16px 0; }
.stats a {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 12px;
  text-decoration: none; color: var(--ink); font-size: .82rem; font-weight: 700; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.stats a:hover { border-color: var(--accent); }
.stats strong { display: block; font-size: 1.8rem; color: var(--accent); line-height: 1.3; }
.stats strong small { color: var(--accent); }
.stats strong small { font-size: inherit; font-weight: 700; }
.stats > a > small { font-size: .72rem; color: var(--ink-2); font-weight: 400; }

/* ---- 記事・詳細 ---- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.side { position: sticky; top: 24px; }
.side .panel { margin: 0; }
.side .proposal { grid-template-columns: 6.5em 1fr; gap: 0; border: 1px solid var(--line-2); border-radius: var(--radius-s); overflow: hidden; font-size: .84rem; }
.side .proposal dt, .side .proposal dd { padding: 7px 10px; border-bottom: 1px solid var(--line-2); }
.side .proposal dt { background: var(--bg); font-weight: 700; font-size: .78rem; color: var(--ink); }
.side .proposal dt:last-of-type, .side .proposal dd:last-of-type { border-bottom: 0; }
.detail { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; }
.detail h1 { font-size: 1.7rem; margin: .1em 0 .3em; }
.prose { max-width: 44em; margin-top: 20px; font-size: .92rem; }
.prose h2 { font-size: 1rem; margin: 1.6em 0 .4em; }
.prose h3 { font-size: .95rem; margin: 1.4em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: .4em 0; }
.prose blockquote { margin: 1.2em 0; padding: 10px 16px; background: var(--bg); border-left: 3px solid var(--teal); }
.prose pre { background: var(--muted-soft); padding: 12px; border-radius: var(--radius-s); overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose li { margin: .2em 0; }

/* ---- 表 ---- */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th, .table td { padding: 10px 14px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.table th { font-weight: 500; color: var(--ink-2); font-size: .76rem; white-space: nowrap; background: var(--bg); }
.table tr:last-child td { border-bottom: 0; }
.table tr.dim td { opacity: .55; }
.table .actions form { display: inline-block; margin: 0 4px 4px 0; }
.table .actions.stack form { display: block; margin: 0 0 6px; }
.table .actions.stack .btn { width: 100%; white-space: nowrap; }
.table td { vertical-align: middle; }

/* ---- フォーム ---- */
.form { display: grid; gap: 14px; max-width: 720px; }
.form label { display: grid; gap: 6px; font-size: .82rem; font-weight: 700; }
.form small { font-weight: 400; color: var(--ink-2); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
input, select, textarea {
  font: inherit; font-size: .92rem; font-weight: 400; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-s); padding: 9px 12px; width: 100%;
}
input::placeholder, textarea::placeholder { color: #9aa1ad; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
textarea { resize: vertical; line-height: 1.6; }
.btn {
  display: inline-block; font: inherit; font-size: .9rem; font-weight: 700; background: var(--accent); color: var(--accent-ink);
  border: 1px solid var(--accent); border-radius: var(--radius-s); padding: 9px 22px; cursor: pointer; text-decoration: none;
  justify-self: start; letter-spacing: .04em; text-align: center;
}
.btn:hover { filter: brightness(1.1); }
.btn.block { display: block; width: 100%; justify-self: stretch; padding: 11px 22px; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.small { padding: 4px 12px; font-size: .8rem; }
button.link { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; font-weight: 500; padding: 0; }
.inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline select { width: auto; }
.inline input { flex: 1 1 200px; width: auto; }

.auth { max-width: 460px; margin: 24px auto; }
.auth .form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.issued textarea { font-family: ui-monospace, Menlo, monospace; font-size: .85rem; }

/* ---- ログイン（ヘッダーなし。枠の中にロゴ） ---- */
body.bare .main { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 80px); padding-top: 32px; }
.auth.login {
  width: 100%; max-width: 420px; margin: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 36px 40px 28px; text-align: center;
}
.auth.login .brand { justify-content: center; margin-bottom: 26px; }
.auth.login .brand-mark { width: 40px; }
.auth.login .brand-name { font-size: 1.35rem; }
.auth.login h1 { font-size: 1.5rem; margin: 0 0 .2em; }
.auth.login .lead { margin: 0 auto 20px; font-size: .78rem; }
.auth.login .form { background: none; border: 0; padding: 0; text-align: left; gap: 16px; }
.auth.login .note { margin: 18px 0 0; font-size: .74rem; }

@media (max-width: 960px) {
  body.has-side { display: block; }
  body.has-side .top { position: sticky; height: auto; overflow: visible; }
  .top-inner { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0 16px; min-height: 0; padding: 10px 24px 0; }
  .top .brand { padding: 0; }
  .area { align-self: center; margin: 0; }
  .nav { order: 3; flex-basis: 100%; flex-direction: row; justify-content: space-between; margin: 8px -8px 0; gap: 0; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 8px 10px; flex: 1 0 auto; justify-content: center; gap: 6px; border-radius: 0; border-bottom: 3px solid transparent; }
  .nav a.on { background: none; border-bottom-color: #5cc8bf; }
  .nav a.on::before, .nav a.admin::after { display: none; }
  .nav a.admin { margin-top: 0; }
  .who { flex-direction: row; align-items: center; gap: 16px; margin: 0 0 0 auto; padding: 0; border-top: 0; }
  .split { grid-template-columns: 1fr; }
  .side { position: static; }
}
@media (max-width: 720px) {
  .home-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .main, .foot { padding-left: 16px; padding-right: 16px; }
  .top-inner { padding-left: 16px; padding-right: 16px; }
  h1 { font-size: 1.35rem; }
  .detail h1 { font-size: 1.4rem; }
  .top-inner { gap: 0 8px; flex-wrap: wrap; }
  .brand { gap: 7px; }
  .brand-mark, .top .brand-mark { width: 24px; }
  .brand-name, .top .brand-name { font-size: .92rem; }
  .brand-sub, .top .brand-sub { font-size: .5rem; letter-spacing: 0; }
  .who { gap: 10px; font-size: .72rem; }
  .nav a { font-size: .72rem; padding: 6px 4px 7px; flex-direction: column; gap: 2px; }
  .empty-state { padding: 20px 18px; gap: 16px; align-items: flex-start; }
  .icon-circle { width: 56px; height: 56px; }
  .icon-circle .icon { width: 24px; height: 24px; }

  .two { grid-template-columns: 1fr; }
  .grid, .grid.half { grid-template-columns: 1fr; }
  .spec div { grid-template-columns: 1fr; gap: 2px; }
  .spec.pair { grid-template-columns: 1fr; }
  .spec.pair div { grid-template-columns: 6em 1fr; border-left: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .spec.pair div:last-child { border-bottom: 0 !important; }
  .detail { padding: 18px 16px; }
  .facts.wide { grid-template-columns: 1fr 1fr; }
  .facts.wide div { border-left: 0; border-top: 1px solid var(--line); }
  .facts.wide div:nth-child(-n+2) { border-top: 0; }
  .facts.wide div:nth-child(2n) { border-left: 1px solid var(--line); }
  .auth.login { padding: 28px 20px 22px; border: 0; background: transparent; }
  body.bare .main { padding-top: 16px; align-items: flex-start; }
}

@media (max-width: 370px) { .who span { display: none; } }

/* ---- 状態別（design/comp-states.png） ---- */
.center { text-align: center; }
.title-row { display: flex; align-items: center; gap: 12px; }
.title-row .badge { flex: none; }
.title-row h1 { margin-bottom: .2em; }
.applied p { margin: 0 0 10px; font-size: .9rem; }
.applied h3 { font-size: .92rem; margin: 16px 0 6px; }
.applied .quote { border-left: 3px solid var(--teal); background: var(--bg); padding: 10px 14px; margin: 0 0 14px; font-size: .88rem; }
.big-badge .badge { font-size: .9rem; padding: 4px 22px; }
.closed-note { min-height: 160px; display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 700; }
.closed-note p { margin: 0; }
.notice { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin: 0 0 16px; border-radius: var(--radius-s);
  background: var(--info-soft); border-left: 4px solid var(--accent); font-size: .9rem; font-weight: 500; }
.notice::before { content: "!"; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 900; font-size: .8rem; display: flex; align-items: center; justify-content: center; }
.notice strong { color: var(--accent); }
details.issued { padding: 0; margin: 8px 0; }
details.issued > summary { list-style: none; padding: 12px 18px; font-weight: 700; font-size: .88rem; display: flex; gap: 12px; align-items: baseline; }
details.issued > summary::-webkit-details-marker { display: none; }
details.issued > summary::after { content: "⌄"; margin-left: auto; color: var(--ink-2); font-size: 1.1rem; line-height: 1; }
details.issued[open] > summary::after { transform: rotate(180deg); }
details.issued > summary .meta { font-weight: 400; }
details.issued textarea { margin: 0 18px 18px; width: calc(100% - 36px); }
.knowledge-table { table-layout: fixed; }
.knowledge-table td { vertical-align: middle; }
.knowledge-table th:nth-child(2) { width: 34%; }
.knowledge-table th:last-child { width: 6.5em; }
.knowledge-table .col-cat { color: var(--ink-2); width: 9em; }
.knowledge-table .col-sum { color: var(--ink-2); font-size: .82rem; }
.knowledge-table tr.unread a { font-weight: 700; }

/* 初回・パスワード変更：枠の中で、見出しの左にラベル */
.auth.pw { max-width: 620px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; text-align: center; }
.auth.pw h1 { font-size: 1.3rem; margin: 0 0 .3em; }
.auth.pw .lead { margin: 0 auto 18px; font-size: .8rem; }
.auth.pw .form { background: none; border: 0; padding: 0; text-align: left; max-width: none; }
.auth.pw .form label { grid-template-columns: 14em 1fr; align-items: center; column-gap: 12px; font-weight: 500; }
.auth.pw .form label small { grid-column: 2; }
.auth.pw .btn { justify-self: center; min-width: 220px; margin-top: 6px; }

/* 管理画面のフォーム：ラベルを左に */
.hform { max-width: 860px; }
.hform > label, .hform .field { display: grid; grid-template-columns: 11em 1fr; gap: 4px 14px; align-items: start; font-size: .82rem; }
.hform > label small, .hform .field small { grid-column: 2; }
.hform .field-label, .hform > label { font-weight: 700; }
.hform > label > input, .hform > label > select { align-self: center; }
.hform .two { grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.hform .two > label { display: grid; grid-template-columns: 11em 1fr; gap: 4px 14px; align-items: center; font-size: .82rem; }
.hform .two > label:nth-child(2) { grid-template-columns: 6em 1fr; }
.hform .two > label small { grid-column: 2; }
.hform > .btn { justify-self: center; min-width: 240px; margin-top: 8px; }
.radios { display: flex; gap: 20px; flex-wrap: wrap; padding: 6px 0; }
.radio { display: inline-flex !important; align-items: center; gap: 6px; font-weight: 500; font-size: .88rem; cursor: pointer; }
.radio input { width: auto; accent-color: var(--accent); }

@media (max-width: 640px) {
  .knowledge-table .col-cat, .knowledge-table .col-sum { display: none; }
  .auth.pw { padding: 22px 18px; }
  .auth.pw h1 { font-size: 1rem; }
  .auth.pw .form label, .hform > label, .hform .field, .hform .two, .hform .two > label, .hform .two > label:nth-child(2) { grid-template-columns: 1fr; }
  .auth.pw .form label small, .hform small { grid-column: 1 !important; }
}

/* ---- 管理画面 ---- */
.bulk { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: start; margin: 8px 0 0; }
.bulk .btn { padding: 11px 22px; }
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 16px; }
.apps .panel { margin: 0; }
.app-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.app-head strong { font-size: 1.05rem; }
.app .proposal { grid-template-columns: 11em 1fr; gap: 0; margin: 10px 0 14px; border-top: 1px solid var(--line-2); font-size: .85rem; }
.app .proposal dt, .app .proposal dd { padding: 7px 0; border-bottom: 1px solid var(--line-2); }
.app .proposal dt { font-size: .8rem; }
.app-form { display: grid; gap: 10px; }
.app-form label { display: grid; grid-template-columns: 6em 1fr; gap: 12px; align-items: start; font-size: .82rem; color: var(--ink-2); }
.app-form label span { padding-top: 9px; }
@media (max-width: 640px) {
  .bulk { grid-template-columns: 1fr; }
  .apps { grid-template-columns: 1fr; }
  .app .proposal { grid-template-columns: 1fr; }
  .app .proposal dt { border-bottom: 0; padding-bottom: 0; }
  .area { display: none; }
}

/* ---- お約束 ---- */
.auth.wide { max-width: 600px; }
.auth.agree { max-width: 820px; text-align: center; }
.agree h1 { font-size: 1.4rem; margin-bottom: .2em; }
.terms { list-style: none; counter-reset: t; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 22px; margin: 20px 0; }
.terms li { counter-increment: t; display: grid; grid-template-columns: 28px 15em 1fr; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: .85rem; }
.terms li:last-child { border-bottom: 0; }
.terms li::before {
  content: counter(t); width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: .8rem;
}
.terms span { color: var(--ink-2); }
.agree-form { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }
.agree-form .btn { min-width: 200px; }
.check { display: flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 500; }
.check input { width: auto; }
@media (max-width: 640px) {
  .agree h1 { font-size: 1.15rem; }
  .terms { padding: 4px 16px; }
  .terms li { grid-template-columns: 28px 1fr; gap: 4px 12px; }
  .terms span { grid-column: 2; }
  .agree-form .btn { width: 100%; }
}
.form label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.form label.check input { width: auto; }

/* ---- 提案 ---- */
.proposal { margin: 8px 0; display: grid; grid-template-columns: 8em 1fr; gap: 6px 14px; font-size: .9rem; }
.proposal dt { color: var(--ink-2); }
.proposal dd { margin: 0; }
.pre { white-space: pre-wrap; }
@media (max-width: 640px) { .proposal { grid-template-columns: 1fr; } .proposal dd { margin-bottom: 6px; } }

/* ---- プロフィール・紹介シート（design/comp-profile.png） ---- */
.who-name { color: var(--ink); text-decoration: none; }
.who-name:hover { color: var(--accent); text-decoration: underline; }
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.avatar.small { width: 40px; height: 40px; font-size: .9rem; }
.avatar.large { width: 120px; height: 120px; font-size: 2.6rem; }
.avatar[hidden] { display: none; }
.privacy { font-size: .8rem; color: var(--ink-2); margin: 0 0 10px; }

.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin: 16px 0 12px; padding: 28px 32px 32px; }
.sheet-hero { display: flex; gap: 28px; align-items: center; padding-bottom: 24px; }
.sheet-id { flex: 1 1 auto; }
.sheet-kicker { display: inline-block; margin: 0 0 4px; font-size: .7rem; font-weight: 500; color: var(--ink-2); background: var(--muted-soft); padding: 1px 10px; border-radius: 3px; }
.sheet-id h1 { font-size: 1.9rem; margin: 0 0 .1em; letter-spacing: .04em; }
.sheet-headline { margin: 0 0 12px; font-size: .95rem; }
.sheet-marks { display: flex; gap: 8px; flex-wrap: wrap; }
.sheet-marks .pill { font-size: .82rem; padding: 4px 22px; }
.pill.solid { background: var(--teal); color: #fff; }
.sheet-actions { align-self: flex-start; display: flex; gap: 8px; }
.sheet-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; }
.sheet h2 { font-size: 1.05rem; margin: 0 0 10px; }
.sheet section + section { margin-top: 24px; }
.sheet p { margin: 0; font-size: .9rem; }
.sheet-empty { color: var(--ink-2); font-size: .85rem !important; font-weight: 400 !important; }
.work { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px 14px 14px; }
.work + .work { margin-top: 12px; }
.work h3 { font-size: .95rem; margin: 0 0 8px; }
.work dl { margin: 0; display: grid; grid-template-columns: 7em 1fr; border: 1px solid var(--line-2); font-size: .85rem; }
.work dt, .work dd { margin: 0; padding: 6px 10px; border-bottom: 1px solid var(--line-2); }
.work dt { background: var(--bg); font-weight: 700; font-size: .8rem; }
.work dt:last-of-type, .work dd:last-of-type { border-bottom: 0; }
.sheet-dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 4px 0; font-size: .88rem; }
.sheet-dl dt { white-space: nowrap; color: var(--ink-2); }
.sheet-dl dt::after { content: "："; margin: 0 6px 0 4px; }
.sheet-dl dd { margin: 0; }
.links { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .88rem; overflow-wrap: anywhere; }
.links a { font-weight: 700; }
.links a::after { content: " ›"; }
.internal { border: 1px dashed #b8bec9; border-radius: var(--radius-s); padding: 14px 18px; margin: 0 0 16px; background: var(--surface); }
.internal h2 { font-size: .85rem; margin: 0 0 8px; }
.internal h2 small { font-weight: 400; color: var(--ink-2); }
.internal .spec { margin: 0; }
.internal .spec div { border-bottom: 0; padding: 4px 0; grid-template-columns: 9em 1fr; }

.progress-head { margin: 0 0 10px; font-weight: 700; font-size: 1rem; }
.progress-head .count, .progress-strip .count { color: var(--accent); font-size: 1.25em; }
.progress-checks { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.progress-checks li { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--ink-2); }
.progress-checks li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #b8bec9; box-sizing: border-box; flex: none; }
.progress-checks li.ok { color: var(--ink); }
.progress-checks li.ok::before { content: "✓"; border-color: var(--teal); background: var(--teal); color: #fff; font-size: .65rem; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.progress-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line-2); padding-top: 10px; }
.progress-foot p { margin: 0; font-size: .84rem; }
.progress-foot .btn { flex: none; min-width: 6em; }
.progress-strip .icon-tile { width: 36px; height: 36px; }
.progress-strip p { flex: 1 1 auto; }
.progress-strip { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: var(--radius-s); padding: 10px 16px; margin: 8px 0 0; }
.progress-strip p { margin: 0; font-size: .88rem; }
.progress-strip a { font-weight: 700; font-size: .85rem; text-decoration: none; white-space: nowrap; }
.progress-strip a::after { content: " ›"; }
.nudge { padding: 0; border: 0; background: none; margin: 0; }

.attach { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.attach > div { display: grid; font-size: .82rem; flex: 1 1 auto; }
.attach .meta { margin: 0; font-size: .74rem; }
.attach-links { display: flex; gap: 12px; font-size: .8rem; font-weight: 700; flex: none; white-space: nowrap; }
.fit { font-size: .82rem; color: var(--ink-2); margin: 0 0 8px; }

.avail-ask {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 12px 0 0; padding: 18px 22px;
  background: linear-gradient(90deg, var(--teal-soft), var(--surface) 70%); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: var(--radius);
}
.avail-text { flex: 1 1 280px; display: grid; gap: 2px; }
.avail-text strong { font-size: 1rem; }
.avail-text .meta { margin: 0; }
.avail-ask label { display: grid; gap: 4px; font-size: .78rem; font-weight: 700; }
.avail-ask select { width: auto; min-width: 11em; }
.avail-ask .btn { align-self: flex-end; min-width: 8em; padding: 10px 22px; }

/* 直すフォーム：1枚の枠に、写真と一言・自己紹介を横に並べる */
.profile-form { display: grid; gap: 22px; padding: 24px 28px 28px; max-width: none; }
.profile-form h1 { font-size: 1.3rem; margin: 0; }
.profile-form > .note { margin: -16px 0 0; }
.profile-form label { display: grid; gap: 6px; font-size: .82rem; font-weight: 700; }
.pf-label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 6px; }
.pf-label small { font-weight: 400; color: var(--ink-2); font-size: .74rem; margin-left: 6px; }
.pf-top { display: grid; grid-template-columns: 180px 1fr; gap: 28px; }
.pf-photo { display: grid; justify-items: center; align-content: start; gap: 10px; }
.pf-photo .pf-label { justify-self: start; }
.pf-about { display: grid; gap: 14px; }
.file-btn { position: relative; overflow: hidden; display: inline-block !important; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pf-block { display: grid; gap: 10px; }
.pf-row { display: grid !important; grid-template-columns: 9em 1fr; align-items: center; }
.pf-row .pf-label { margin: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { display: inline-flex !important; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: inline-block; padding: 6px 14px; border: 1px solid var(--line); border-radius: var(--radius-s); font-size: .82rem; font-weight: 500; background: var(--surface); }
.choice input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.pf-works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.work-field { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 10px 12px 12px; margin: 0; display: grid; gap: 8px; min-width: 0; }
.work-field legend { font-size: .82rem; font-weight: 700; padding: 0 4px; }
.work-field label { grid-template-columns: 5.5em 1fr; align-items: start; font-size: .76rem; }
.work-field textarea { font-size: .84rem; }
.pf-avail { display: grid; grid-template-columns: 1fr 1fr .8fr 1fr 1fr; gap: 14px; align-items: start; }
.pf-avail .radios { display: grid; gap: 4px; padding: 0; }
.pf-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.profile-form label.check { display: flex; font-weight: 500; font-size: .78rem; gap: 6px; }
.profile-form label.check input { width: auto; }
[id^="f-"] { scroll-margin-top: 90px; }
.form-actions { display: flex; gap: 20px; align-items: center; justify-content: center; }
.form-actions .btn { min-width: 300px; padding: 11px 22px; }

@media (max-width: 960px) {
  .pf-works { grid-template-columns: 1fr; }
  .pf-avail { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .sheet { padding: 22px 18px 24px; }
  .sheet-hero { flex-direction: column; text-align: center; gap: 12px; }
  .sheet-marks { justify-content: center; }
  .sheet-actions { align-self: center; }
  .sheet-body { grid-template-columns: 1fr; gap: 24px; }
  .privacy { text-align: center; }
  .pf-top, .pf-pair { grid-template-columns: 1fr; }
  .pf-row { grid-template-columns: 1fr; }
  .profile-form { padding: 20px 16px; }
  .form-actions .btn { min-width: 0; width: 100%; }
  .progress-foot { flex-direction: column; align-items: stretch; }
}

/* 印刷（管理画面の紹介シートを PDF にする） */
@media print {
  @page { margin: 12mm; }
  body, body.has-side { background: #fff; font-size: 12px; display: block; }
  .top, .foot, .no-print, .flash { display: none !important; }
  .main { padding: 0; max-width: none; min-height: 0; }
  .sheet { border: 0; margin: 0; }
  .sheet-hero, .sheet-side { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sheet-hero::before, .tag, .label, .badge, .work { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .work { break-inside: avoid; }
}

/* ホームの空き具合の帯（スマホ）。基本の指定より後ろに置く */
@media (max-width: 640px) {
  .avail-ask { display: grid; grid-template-columns: 1fr 1fr; padding: 16px; gap: 12px; align-items: start; }
  .avail-ask .icon-tile.large { display: none; }
  .avail-text { grid-column: 1 / -1; }
  .avail-text strong { font-size: .92rem; }
  .avail-ask select { width: 100%; min-width: 0; }
  .avail-ask .btn { grid-column: 1 / -1; width: 100%; }
  .avail-text strong::before { content: ""; display: inline-block; width: 18px; height: 18px; margin: 0 6px -3px 0;
    background: var(--teal); -webkit-mask: var(--cal) center / contain no-repeat; mask: var(--cal) center / contain no-repeat; }
}

/* ---- 横メニューの下の3ページ（MCPサーバーとの接続方法・プライバシーポリシー・利用規約） ---- */
.info-nav { display: flex; flex-direction: column; gap: 0; margin: 22px 0 16px; padding: 14px 0 0; border-top: 1px solid rgba(255,255,255,.18); }
.info-nav a { color: rgba(255,255,255,.72); text-decoration: none; font-size: .74rem; padding: 4px 12px; line-height: 1.6; }
.info-nav a:hover, .info-nav a.on { color: #fff; text-decoration: underline; }
.info-nav a.on { font-weight: 700; }
.foot-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 6px; }
.foot-links a { color: var(--ink-2); }
.foot-links.narrow-only { display: none; }
.info { max-width: 820px; }
.info .prose { margin-top: 8px; }
@media (max-width: 960px) {
  .info-nav { display: none; }
  .foot-links.narrow-only { display: flex; }
}
/* MCPサーバーとの接続方法：Claude・ChatGPT のカード → 手順 */
html { scroll-behavior: smooth; }
.connect-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0 8px; max-width: 44em; }
.connect-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 18px 20px;
  border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); background: var(--surface);
  text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.connect-card + .connect-card { border-top-color: var(--teal); }
.connect-card:hover { border-color: var(--accent); box-shadow: 0 2px 10px rgba(37,43,55,.08); }
.connect-name { font-size: 1.25rem; font-weight: 900; line-height: 1.3; display: flex; flex-direction: column; }
.connect-name small { font-size: .74rem; font-weight: 500; color: var(--ink-2); margin-top: 2px; }
.connect-go { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; color: var(--accent); }
.connect-go .down { transform: rotate(90deg); }
.connect-steps { max-width: 44em; margin-top: 28px; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); scroll-margin-top: 20px; font-size: .92rem; }
.connect-steps h2 { margin: 0 0 .4em; font-size: 1.1rem; }
.connect-plan { margin: 0 0 10px; color: var(--ink-2); font-size: .85rem; }
.connect-steps ol { margin: 0; padding-left: 1.5em; }
.connect-steps li { margin: .45em 0; }
.connect-steps code { word-break: break-all; }
.connect-note { margin: 12px 0 0; font-size: .8rem; color: var(--ink-2); }
.connect-top { display: inline-block; margin-top: 8px; font-size: .78rem; }
@media (max-width: 960px) { .connect-steps { scroll-margin-top: 120px; } }
@media (max-width: 640px) {
  .connect-cards { grid-template-columns: 1fr; }
  .connect-steps { padding: 16px; }
}
.updated { margin: 0; font-size: .76rem; color: var(--ink-2); }
.connect-steps .updated { margin: -.2em 0 8px; }
