/* 本人申請サポート
   色：役所の書類の青灰の紙と紺の文字を土台に、蛍光ペンの山吹・完了の若竹・ハンコの朱を差し色に。
   分野ごとの色（--c）は app.py の CATEGORY_STYLE。 */
:root {
  --paper: #EEF1F4;
  --card: #FFFFFF;
  --ink: #1B2A41;
  --muted: #586579;
  --line: #C9D1DB;
  --shu: #C8412B;
  --ok: #2E7D5B;
  --focus: #2B6CB0;
  --kiiro: #F5C842;      /* 蛍光ペン */
  --wakatake: #2E7D5B;   /* 若竹（完了） */
  --sora: #E3ECF6;       /* 淡い空色 */
  --shadow: 0 1px 2px rgba(27,42,65,.06), 0 4px 14px rgba(27,42,65,.07);
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", "Yu Gothic", "Meiryo", sans-serif;
  --mincho: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", "Noto Serif CJK JP", serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.8;
       background: var(--paper);
       background-image: radial-gradient(rgba(27,42,65,.045) 1px, transparent 1px);
       background-size: 18px 18px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
a { color: var(--focus); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- ヘッダー ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px;
       padding: 10px 20px; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line);
       position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(1.4) blur(6px); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
         font-weight: 700; letter-spacing: .04em; }
.seal { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 2px solid var(--shu);
        border-radius: 50%; color: var(--shu); font-family: var(--mincho); font-size: 15px; line-height: 1; }
.top-tools { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- ボタン ---------- */
.primary, .secondary, .ghost { border-radius: 6px; padding: 10px 20px; border: 1px solid transparent;
                               font-weight: 700; line-height: 1.4; }
.primary { background: var(--ink); color: #fff; box-shadow: 0 2px 0 #0e1726; }
.primary:hover { background: #2a3f5f; }
.primary:active { transform: translateY(1px); box-shadow: 0 1px 0 #0e1726; }
.secondary { background: var(--card); color: var(--ink); border-color: var(--ink); }
.ghost { background: transparent; color: var(--ink); border-color: var(--line); font-weight: 500; }
.ghost:hover { background: #fff; border-color: var(--muted); }
.ghost.file { display: inline-block; cursor: pointer; }
.sm { padding: 5px 12px; font-size: 14px; }
.big { padding: 14px 28px; font-size: 17px; }
.danger { color: var(--shu); }
.link { background: none; border: 0; padding: 0; color: var(--focus); text-decoration: underline; font-weight: 700; }
button:disabled { opacity: .6; cursor: progress; }

/* ---------- トップページ ---------- */
.home-main { max-width: 1080px; margin: 0 auto; padding: 0 20px 56px; }
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: center; padding: 48px 0 28px; }
.hero-kicker { display: inline-block; margin: 0 0 14px; padding: 2px 12px; border-radius: 20px; font-size: 13px; font-weight: 700;
               color: var(--wakatake); background: #E4F1EA; }
.hero h1 { font-family: var(--mincho); font-size: clamp(30px, 4.6vw, 46px); line-height: 1.45; letter-spacing: .03em; margin: 0 0 16px; }
.mark { background: linear-gradient(transparent 62%, rgba(245,200,66,.75) 62%); padding: 0 .08em; }
.hero-lead { color: var(--muted); max-width: 34em; margin: 0 0 22px; }
.hero-search { display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid var(--ink); border-radius: 12px;
               padding: 6px 14px; max-width: 520px; box-shadow: 0 4px 0 rgba(27,42,65,.12); }
.hero-search svg { width: 22px; height: 22px; color: var(--muted); flex: none; }
.hero-search input { border: 0; outline: 0; min-height: 46px; font-size: 17px; padding: 0; width: 100%; background: transparent; }
.hero-search:focus-within { border-color: var(--focus); box-shadow: 0 0 0 4px rgba(43,108,176,.18); }
.hero-count { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.hero-count b { color: var(--ink); font-size: 18px; margin-right: 2px; }
.hero-art { display: flex; justify-content: center; }
.desk { width: 100%; max-width: 380px; height: auto; overflow: visible; }
.desk .stamp { transform-origin: 250px 252px; animation: stamp 1.1s .5s cubic-bezier(.3,1.6,.5,1) both; }
.desk .fill-lines rect { animation: write .5s both; }
.desk .fill-lines rect:nth-child(2) { animation-delay: .1s; } .desk .fill-lines rect:nth-child(3) { animation-delay: .2s; }
.desk .fill-lines rect:nth-child(4) { animation-delay: .3s; } .desk .fill-lines rect:nth-child(5) { animation-delay: .4s; }
@keyframes stamp { 0% { opacity: 0; transform: scale(1.8) rotate(-12deg); } 60% { opacity: 1; } 100% { opacity: 1; transform: scale(1) rotate(-8deg); } }
@keyframes write { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.desk .fill-lines rect { transform-box: fill-box; transform-origin: left center; }
@media (prefers-reduced-motion: reduce) { .desk .stamp, .desk .fill-lines rect { animation: none; } .desk .stamp { transform: rotate(-8deg); } }

.howto ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.howto li { display: flex; gap: 12px; background: #fff; border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow); }
.howto .num { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
              background: var(--ink); color: #fff; font-weight: 700; }
.howto li:nth-child(3) .num { background: var(--shu); }
.howto b { font-size: 16px; }
.howto p { margin: 2px 0 0; font-size: 14px; color: var(--muted); line-height: 1.7; }

.sec-title { font-size: 20px; margin: 44px 0 14px; }
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 10px; }
.cat-tile { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; border-radius: 10px;
            text-decoration: none; color: var(--ink); box-shadow: var(--shadow); border-left: 5px solid var(--c);
            font-size: 14px; font-weight: 700; line-height: 1.4; transition: transform .12s; }
.cat-tile:hover { transform: translateY(-2px); }
.cat-tile .ci, .cat h3 .ci { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; flex: none;
                             background: color-mix(in srgb, var(--c) 14%, #fff); font-size: 17px; }
.cat-tile .cn { flex: 1; }
.cat-tile .cc { font-size: 12px; color: #fff; background: var(--c); border-radius: 10px; padding: 0 8px; }
.cat { margin-top: 34px; scroll-margin-top: 70px; }
.cat h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; margin: 0 0 10px; padding-bottom: 8px;
          border-bottom: 3px solid var(--c); }
.cat h3 .cc { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: auto; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.proc a { display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; height: 100%;
          padding: 14px 14px; background: #fff; border-radius: 10px; color: inherit; text-decoration: none;
          box-shadow: var(--shadow); border: 1.5px solid transparent; transition: border-color .12s, transform .12s; }
.proc a:hover { border-color: var(--c); transform: translateY(-1px); }
.proc-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; font-size: 24px;
             background: color-mix(in srgb, var(--c) 12%, #fff); }
.proc-body { display: flex; flex-direction: column; min-width: 0; }
.proc-title { font-size: 17px; font-weight: 700; line-height: 1.5; }
.proc-sum { color: var(--muted); font-size: 13.5px; line-height: 1.65; }
.proc-go { font-size: 20px; color: var(--c); font-weight: 700; }
.proc-resume { display: block; color: var(--wakatake); font-size: 13px; font-weight: 700; margin-top: 2px; }
.no-hit { color: var(--muted); margin-top: 18px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 52px; }
.facts > div { background: #fff; border-radius: 12px; padding: 18px; box-shadow: var(--shadow); }
.facts .fi { font-size: 22px; }
.facts h3 { font-size: 16px; margin: 6px 0 6px; }
.facts p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.85; }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 20px 16px 32px; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 28px; }
  .hero-art { order: -1; } .desk { max-width: 240px; }
  .howto ol, .facts { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .cat-tiles { grid-template-columns: 1fr 1fr; }
  .cat-tile { font-size: 13px; padding: 8px; gap: 6px; }
  .cat-tile .ci { width: 26px; height: 26px; font-size: 14px; }
}

/* ---------- 入力画面 ---------- */
.wiz-main { display: grid; grid-template-columns: 220px minmax(0, 640px) minmax(420px, 1fr);
            gap: 0; min-height: calc(100vh - 53px); }
.steps { padding: 20px 12px 24px 16px; border-right: 1px solid var(--line); background: rgba(255,255,255,.55); }
.steps-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.steps-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; font-size: 21px; flex: none;
              background: color-mix(in srgb, var(--c) 14%, #fff); }
.steps-title { font-weight: 700; margin: 0; line-height: 1.45; }
.progress { height: 8px; border-radius: 4px; background: #DCE3EA; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--c), var(--wakatake));
                 border-radius: 4px; transition: width .4s ease; }
.progress-text { font-size: 12px; color: var(--muted); margin: 4px 0 12px; }
.steps ol { list-style: none; margin: 0; padding: 0; position: sticky; top: 16px; }
.steps li button { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left;
                   background: none; border: 0; padding: 7px 8px; border-radius: 6px; color: var(--muted); line-height: 1.45; }
.steps li button:hover { background: var(--card); color: var(--ink); }
.steps .n { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
            border: 1.5px solid var(--line); font-size: 13px; font-weight: 700; background: var(--card); }
.steps li.done .n { background: var(--wakatake); border-color: var(--wakatake); color: #fff; }
.steps li.cur button { color: var(--ink); font-weight: 700; background: var(--card); }
.steps li.cur .n { border-color: var(--shu); color: var(--shu); background: #fff; }
.steps li.done.cur .n { color: #fff; background: var(--ok); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--shu); }
.steps li.last { margin-top: 8px; border-top: 1px dashed var(--line); padding-top: 8px; }

.pane { padding: 0 0 40px; background: var(--card); border-right: 1px solid var(--line); }
.pane > form, .pane > .pager, .pane > .change-banner { margin-left: 32px; margin-right: 32px; }
.pane > form { padding-top: 0; }
.step-no { margin: 0 -32px 18px; padding: 16px 32px 14px; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .06em;
           background: var(--c); background-image: linear-gradient(110deg, var(--c) 55%, color-mix(in srgb, var(--c) 70%, #fff)); }
.pane h1 { font-size: 25px; margin: 0 0 6px; line-height: 1.45; }
.qs .field:not(.note) { background: #FAFBFD; border: 1px solid #E3E8EE; border-radius: 10px; padding: 14px 16px 12px; }
.qs .field.bad { border-color: var(--shu); background: #FFF8F6; }
.pane h2 { font-size: 18px; margin: 32px 0 6px; padding-top: 18px; border-top: 1px solid var(--line); }
.intro { color: var(--muted); margin: 0 0 18px; max-width: 40em; }
.field { margin: 0 0 22px; }
.field fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.lab { display: block; font-weight: 700; margin-bottom: 2px; padding: 0; line-height: 1.6; }
.req { display: inline-block; margin-left: 8px; padding: 0 6px; font-size: 12px; line-height: 1.6; color: var(--shu);
       border: 1px solid var(--shu); border-radius: 3px; vertical-align: 2px; font-weight: 700; }
.help { margin: 0 0 6px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
input[type=text], input[type=tel], input[type=date], input[type=month], input[type=number], select, textarea {
  font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #9AA6B5; border-radius: 6px;
  padding: 9px 12px; min-height: 46px; width: 100%; max-width: 100%; }
.row input { flex: 1 1 260px; width: auto; }
.t-zip .row input, .t-number .row input, .t-tel .row input { flex: 0 1 220px; }
.t-date .row input, .t-month .row input { flex: 0 1 220px; }
input::placeholder, textarea::placeholder { color: #9AA3AF; }
input:focus, select:focus, textarea:focus { border-color: var(--focus); outline: 3px solid rgba(43,108,176,.25); outline-offset: 0; }
.suffix { font-weight: 700; }
.wareki { color: var(--ok); font-weight: 700; }
.choices { display: flex; flex-direction: column; gap: 6px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--line);
          border-radius: 6px; cursor: pointer; line-height: 1.55; }
.choice:hover { border-color: #9AA6B5; }
.choice input { margin: 3px 0 0; width: 18px; height: 18px; flex: none; accent-color: var(--ink); }
.choice { background: #fff; }
.choice:has(input:checked) { border-color: var(--c, var(--ink)); background: color-mix(in srgb, var(--c, #1B2A41) 8%, #fff); font-weight: 700; }
.field.bad input, .field.bad select, .field.bad .choice { border-color: var(--shu); }
.err { margin: 4px 0 0; color: var(--shu); font-weight: 700; font-size: 14px; }
.err:empty, .warn:empty { display: none; }
.warn { margin: 4px 0 0; color: #8a5a00; font-size: 14px; font-weight: 700; }
.note { background: #FFF9E6; border-left: 4px solid var(--kiiro); padding: 10px 14px; border-radius: 0 8px 8px 0; }
.note p { margin: 0; font-size: 15px; }
.rep { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.rep th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 500; padding: 0 4px; }
.rep td { padding: 3px 4px 3px 0; }
.rep td:first-child { width: 42%; }
.rep td.x { width: 1%; }
.rep input { min-height: 42px; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.pane form > h1:first-child { margin-top: 28px; }
.pager .primary { margin-left: auto; padding: 12px 28px; }

/* 最後の画面 */
.gaps { border: 1.5px solid #E2B33C; background: #FFF9E8; border-radius: 6px; padding: 12px 16px; margin-bottom: 18px; }
.gaps p { margin: 0 0 4px; } .gaps ul { margin: 0; padding-left: 20px; font-size: 15px; }
.done-head { display: flex; gap: 16px; align-items: center; margin: 4px 0 18px; }
.done-seal { display: grid; place-items: center; flex: none; width: 58px; height: 58px; border-radius: 50%;
             border: 3px solid var(--shu); color: var(--shu); font-family: var(--mincho); font-size: 26px; font-weight: 700;
             transform: rotate(-8deg); animation: stamp .9s cubic-bezier(.3,1.6,.5,1) both; }
@media (prefers-reduced-motion: reduce) { .done-seal { animation: none; } }
.summary { display: grid; gap: 0; margin-bottom: 8px; background: #FAFBFD; border: 1px solid #E3E8EE; border-radius: 10px; padding: 4px 16px; }
.summary > div:last-child { border-bottom: 0; }
.summary > div { display: grid; grid-template-columns: 7em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary span { color: var(--muted); font-size: 14px; font-weight: 700; }
.summary p { margin: 0; font-size: 15px; }
.doclist, .obtain { list-style: none; margin: 14px 0 0; padding: 0; }
.doclist > li { display: flex; justify-content: space-between; gap: 12px; align-items: center; background: #fff; border: 1px solid #E3E8EE; border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; }
.doclist p { margin: 2px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.pill { display: inline-block; margin-left: 8px; font-size: 12px; padding: 0 8px; border-radius: 10px; background: var(--paper); font-weight: 700; }
.obtain > li { padding: 12px 14px 12px 16px; margin-bottom: 10px; border: 1px solid #E3E8EE; border-left: 4px solid var(--c, var(--ink)); border-radius: 8px; background: #fff; }
.obtain p { margin: 4px 0 0; font-size: 15px; }
.obtain p span { display: inline-block; min-width: 5em; color: var(--muted); font-size: 13px; font-weight: 700; }
.obtain ul { margin: 6px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.75; }
.fine { margin-top: 28px; font-size: 13px; color: var(--muted); }

/* ---------- プレビュー（書類が机の上にある見え方） ---------- */
.preview { display: flex; flex-direction: column; background: #D9DEE5; position: sticky; top: 0; height: calc(100vh - 53px); }
.preview-bar { display: flex; gap: 8px; align-items: center; padding: 8px 12px; background: #CED4DC; font-size: 14px; }
.preview-bar label { font-weight: 700; }
.preview-bar select { min-height: 34px; padding: 3px 8px; font-size: 14px; flex: 1; width: auto; }
#btn-preview-close { display: none; }
.desk { flex: 1; overflow: hidden; padding: 0 12px; }
#preview-frame { --s: .6; border: 0; width: 794px; height: calc((100vh - 110px) / var(--s));
                 transform: scale(var(--s)); transform-origin: 0 0; background: transparent; }
.preview-fab { display: none; }

@media (max-width: 1240px) {
  .wiz-main { grid-template-columns: 220px minmax(0, 1fr); }
  .preview { display: none; }
  .preview-fab { display: block; position: fixed; right: 16px; bottom: 16px; z-index: 5; background: var(--ink); color: #fff;
                 border: 0; border-radius: 24px; padding: 12px 20px; font-weight: 700; box-shadow: 0 2px 8px rgba(27,42,65,.35); }
  body.pv-open .preview { display: flex; position: fixed; inset: 0; z-index: 10; height: 100vh; }
  body.pv-open #btn-preview-close { display: inline-block; }
  #preview-frame { height: calc((100vh - 60px) / var(--s)); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .top { padding: 8px 12px; }
  .top-tools .ghost { padding: 4px 8px; font-size: 13px; }
  .top-tools .long { display: none; }
  .brand { font-size: 15px; white-space: nowrap; }
  .wiz-main { display: block; }
  .steps { border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 12px; overflow-x: auto; }
  .steps-title { display: none; }
  .steps ol { display: flex; gap: 4px; position: static; }
  .steps li button span:not(.n) { display: none; }
  .steps li.cur button span:not(.n) { display: inline; white-space: nowrap; }
  .steps li.last { margin: 0; border: 0; padding: 0; }
  .pane { padding: 0 0 88px; border-right: 0; }
  .pane > form, .pane > .pager, .pane > .change-banner { margin-left: 16px; margin-right: 16px; }
  .step-no { margin: 0 -16px 14px; padding: 10px 16px; }
  .steps-head, .progress-text { display: none; }
  .progress { margin-bottom: 8px; }
  .pane h1 { font-size: 22px; }
  .rep thead { display: none; }
  .rep tr { display: grid; grid-template-columns: 1fr auto; gap: 4px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
  .rep td:first-child { width: auto; }
  .rep td.x { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
}

/* ---------- 図面エディタ ---------- */
.draw { border: 1.5px solid var(--line); border-radius: 8px; padding: 12px; background: #FAFBFC; }
.draw-hint { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.draw-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chip { background: #fff; border: 1px solid #9AA6B5; border-radius: 16px; padding: 4px 12px; font-size: 14px; line-height: 1.5; }
.chip:hover { border-color: var(--ink); }
.draw-canvas { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.draw-canvas svg { display: block; width: 100%; height: auto; touch-action: none; user-select: none; }
.draw-canvas svg text { font-family: var(--sans); pointer-events: none; }
.draw-canvas .obj { cursor: move; }
.draw-canvas .hd { cursor: nwse-resize; }
.draw-empty { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 8px; }
.draw-empty p { margin: 0; color: var(--muted); }
.draw-sel { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; padding: 10px;
            background: #fff; border: 1px solid var(--shu); border-radius: 6px; font-size: 14px; }
.draw-sel label { display: inline-flex; gap: 6px; align-items: center; }
.draw-sel input { min-height: 36px; padding: 4px 8px; font-size: 15px; }
.draw-sel input[data-k=label] { width: 13em; }
.draw-sel input[type=number] { width: 5.5em; }
.draw-sel .dims { display: inline-flex; gap: 8px; }
.draw-sel .len { font-weight: 700; color: #1f5fa8; }
.draw-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; font-size: 14px; }
.draw-foot .size input { width: 4.5em; min-height: 32px; padding: 2px 6px; }

/* 一覧・検索 */
.procs-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; justify-content: space-between; margin-bottom: 12px; }
.procs-head h2 { margin: 0; }
.count { font-weight: 500; font-size: 13px; margin-left: 6px; }
#proc-search { max-width: 360px; min-height: 42px; }
.cat { margin-top: 26px; }
.cat h3 { font-size: 16px; margin: 0 0 4px; }

.no-hit { color: var(--muted); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 0 8px; margin-right: 8px; border-radius: 3px; background: var(--paper); color: var(--muted); border: 1px solid var(--line); }
.tag.full { background: #E8F3EE; color: var(--ok); border-color: #B9DCC9; }
.change-banner { border: 1.5px solid var(--shu); background: #FDF1EE; border-radius: 6px; padding: 10px 14px; margin-bottom: 18px; font-size: 15px; }
.links { padding-left: 20px; } .links li { margin-bottom: 4px; }
/* 見張りの状況 */
.status-main { max-width: 980px; margin: 0 auto; padding: 32px 20px 64px; }
.status-main table { width: 100%; border-collapse: collapse; background: var(--card); font-size: 14px; }
.status-main th, .status-main td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.status-main .bad { color: var(--shu); font-weight: 700; } .status-main .good { color: var(--ok); font-weight: 700; }
.proposal { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px; margin-bottom: 14px; }
.proposal h3 { margin: 0 0 6px; font-size: 17px; }
.patch { max-height: 420px; overflow: auto; background: #f6f8fa; padding: 10px; font-size: 12px; line-height: 1.5; white-space: pre-wrap; }
.decide { display: flex; gap: 10px; margin-top: 10px; }

.nw { white-space: nowrap; }
.doclist button { white-space: nowrap; flex: none; }
