/* 契約と検収。style.css・flow.css・fm.css の上に重ねる */
.ct-lead { margin: 0 0 8px; font-size: 13px; color: var(--ink2); }
.ct-types th, .ct-types td { font-size: 13px; }
.ct-types tbody th { white-space: nowrap; color: var(--muted); }
.ct-types thead th { font-size: 13px; color: var(--ink); }
.ct-types tr.ct-mine td, .ct-types tr.ct-mine th { background: #f0fdfa; }
.ct-k b { display: flex; align-items: center; gap: 6px; }
.ct-k b i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 600 11.5px var(--latin); background: #0f172a; color: #fff; }
.ct-cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ct-case { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.ct-case > p:first-child { margin: 0; font-size: 13.5px; color: var(--ink); }
.ct-case.ok { border-color: #86efac; }
.ct-case.ng { border-color: #fca5a5; }
.ct-two { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ct-two button { appearance: none; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 7px 8px; color: var(--ink2); }
.ct-two button:hover { border-color: #94a3b8; }
.ct-two button[aria-pressed="true"] { background: #0f172a; border-color: #0f172a; color: #fff; }
.ct-fb { margin: 0; font-size: 12.5px; border-radius: 8px; padding: 6px 10px; background: var(--line2); color: var(--ink2); }
.ct-case.ok .ct-fb { background: #f0fdf4; color: #14532d; }
.ct-case.ng .ct-fb { background: #fef2f2; color: #7f1d1d; }
.ct-score { margin: 8px 0 0; font-size: 13px; font-weight: 700; color: var(--ink2); }
.ct-model { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 12px; align-items: start; }
.ct-mlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.ct-mlist button { appearance: none; font: inherit; text-align: left; cursor: pointer; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 8px 10px; color: var(--ink); display: flex; flex-direction: column; gap: 2px; }
.ct-mlist button b { font-size: 13px; }
.ct-mlist button small { font: 500 11px var(--latin); color: var(--muted); }
.ct-mlist button:hover { border-color: #94a3b8; }
.ct-mlist button[aria-pressed="true"] { background: #0f172a; border-color: #0f172a; color: #fff; }
.ct-mlist button[aria-pressed="true"] small { color: #cbd5e1; }
.ct-minfo { padding: 12px 16px; position: sticky; top: 12px; }
.ct-minfo h3 { margin: 0 0 6px; font-size: 16px; }
.ct-minfo p { margin: 6px 0 0; font-size: 13.5px; color: var(--ink2); }
.ct-art { margin: 0 !important; font: 600 12px var(--latin) !important; color: #1d4ed8 !important; }
.ct-mine2 { background: #f8fafc; border-radius: 8px; padding: 7px 10px; }
.ct-mine2 b { display: block; font-size: 11.5px; color: var(--muted); }
.ct-period { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.ct-pcard { padding: 12px 14px; display: flex; flex-direction: column; }
.ct-pcard h3 { margin: 0 0 4px; font-size: 14px; }
.ct-pcard p { margin: 4px 0 0; font-size: 13px; color: var(--ink2); }
.ct-pcard .srcl { margin-top: auto; padding-top: 8px; }
.ct-calc, .ct-scale { padding: 12px 14px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 12px; align-items: start; }
.ct-inputs { display: grid; gap: 8px; }
.ct-inputs label { display: grid; gap: 3px; font-size: 12px; font-weight: 700; color: var(--muted); }
.ct-inputs input, .ct-inputs select { font: inherit; font-size: 14px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; background: var(--paper); color: var(--ink); min-width: 0; }
.ct-inputs input:disabled { background: var(--line2); color: var(--muted); }
.ct-res { border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; margin-bottom: 8px; background: #f8fafc; }
.ct-res.ok { background: #f0fdf4; border-color: #86efac; }
.ct-res.ng { background: #fef2f2; border-color: #fca5a5; }
.ct-res h4 { margin: 0 0 4px; font-size: 12.5px; color: var(--muted); }
.ct-res p { margin: 3px 0 0; font-size: 13px; color: var(--ink); }
.ct-accsteps { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; counter-reset: a; }
.ct-accsteps li { counter-increment: a; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.ct-accsteps b { font-size: 13.5px; }
.ct-accsteps b::before { content: counter(a) ". "; font-family: var(--latin); color: #1d4ed8; }
.ct-accsteps span { font-size: 12.5px; color: var(--ink2); }
.ct-acc { margin: 10px 0 0; font-size: 13.5px; border-radius: 10px; padding: 9px 12px; background: var(--line2); color: var(--ink2); }
.ct-acc b { display: block; font-size: 12px; margin-bottom: 2px; }
.ct-acc.good { background: #f0fdf4; color: #14532d; }
.ct-acc.mid { background: #fffbeb; color: #78350f; }
.ct-acc.warn { background: #eff6ff; color: #1e3a8a; }
.ct-sub th { white-space: nowrap; color: var(--muted); font-size: 12.5px; }
.ct-sub td { font-size: 13px; }
.ct-scale { margin-top: 4px; }
.ct-verdict { margin: 0 0 8px; font-size: 15px; font-weight: 700; border-radius: 10px; padding: 8px 12px; }
.ct-verdict.yes { background: #fef3c7; color: #92400e; }
.ct-verdict.no { background: #e2e8f0; color: #334155; }
.ct-rows td, .ct-rows th { font-size: 12.5px; }
.ct-rows tr.on td { background: #fef9c3; font-weight: 700; }
.ct-small { margin: 6px 0 0; font-size: 11.5px; color: var(--muted); }
.ct-subgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 10px; }
.ct-list { padding: 12px 14px; }
.ct-list h3 { margin: 0 0 6px; font-size: 14px; }
.ct-list ol { margin: 0; padding-left: 1.4em; font-size: 13px; color: var(--ink2); display: grid; gap: 3px; }
.ct-bans { columns: 2; display: block !important; }
.ct-bans li { margin-bottom: 3px; break-inside: avoid; }
#ctFree { margin-top: 10px; }
.ct-plan { padding: 12px 16px; margin-top: 10px; }
.ct-plan h3 { margin: 0 0 6px; font-size: 15px; }
.ct-plan > p { margin: 4px 0 0; font-size: 13.5px; color: var(--ink2); }
.ct-who { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.ct-who > div { background: #f8fafc; border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.ct-who b { font-size: 12px; color: var(--muted); }
.ct-two button:focus-visible, .ct-mlist button:focus-visible, .ct-inputs input:focus-visible, .ct-inputs select:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
@media (max-width: 1100px) {
  .ct-model, .ct-calc, .ct-scale { grid-template-columns: minmax(0, 1fr); }
  .ct-minfo { position: static; }
  .ct-period { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .ct-cases, .ct-subgrid, .ct-accsteps, .ct-who { grid-template-columns: minmax(0, 1fr); }
  .ct-mlist { grid-template-columns: minmax(0, 1fr); }
  .ct-two { grid-template-columns: minmax(0, 1fr); }
  .ct-bans { columns: 1; }
  .ct-types tbody th { white-space: normal; }
}
