/* 入札チェックボード：紺＋ティールの業務向けスタイル */
:root {
  --navy-900: #0f2440;
  --navy-800: #1a3557;
  --navy-700: #24476f;
  --navy-100: #e3eaf3;
  --teal-700: #0b6e69;
  --teal-600: #0f8079;
  --teal-100: #d9f0ee;
  --bg: #f3f6f9;
  --surface: #ffffff;
  --line: #d4dde7;
  --text: #1b2733;
  --muted: #5b6b7c;
  --ok: #0b6e69;
  --ok-bg: #dcf1ee;
  --fix: #a3271d;
  --fix-bg: #fbe3e0;
  --warn: #8a5300;
  --warn-bg: #fdf0d8;
  --na: #5b3f9a;
  --na-bg: #ece6f8;
  --gray-bg: #eceff3;
  --focus: #f0a400;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(15, 36, 64, 0.06), 0 2px 8px rgba(15, 36, 64, 0.05);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

a { color: var(--navy-700); }
a:hover { color: var(--teal-700); }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 0.5em; color: var(--navy-900); }
h1 { font-size: 1.45rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
h4 { font-size: 0.95rem; }
p { margin: 0 0 0.6em; }
ul, ol { margin: 0 0 0.6em; padding-left: 1.3em; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 50;
  background: var(--navy-900); color: #fff; padding: 8px 14px; border-radius: 6px;
}
.skip-link:focus { top: 8px; color: #fff; }

.noscript { padding: 24px; }
.muted { color: var(--muted); font-size: 0.9em; }
.empty { color: var(--muted); padding: 16px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---- 上部 ---- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--navy-900);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.topbar-inner {
  max-width: 1180px; margin: 0 auto; padding: 8px 16px;
  display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between;
}
.brand { display: flex; gap: 10px; align-items: center; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-mark {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px;
  background: var(--teal-600); font-weight: 700;
}
.brand-text { display: flex; flex-direction: column; }
.brand-title { font-weight: 700; font-size: 1.05rem; }
.brand-sub { font-size: 0.75rem; opacity: 0.85; }

.roleswitch { border: 0; margin: 0; padding: 0; min-width: 0; }
/* 一般の legend（紺文字）を上書きし、紺背景のヘッダー上で読める明るい色にする */
.topbar .roleswitch legend { font-size: 0.75rem; color: #eef3f8; padding: 0; margin-bottom: 2px; }
.roleswitch-options { display: flex; flex-wrap: wrap; gap: 4px; }
.role-opt {
  position: relative; display: inline-flex; align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px;
  padding: 3px 12px; cursor: pointer; font-size: 0.88rem;
}
.role-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.role-opt.is-active { background: var(--teal-600); border-color: var(--teal-600); font-weight: 700; }
.role-opt:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.role-who { margin: 2px 0 0; font-size: 0.75rem; opacity: 0.9; }

/* サーバー版：ログイン中の人（紺背景の上で読める明るい色） */
.userbox { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 0.85rem; }
.userbox-name { margin: 0; }
.userbox-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.userbox-links a { color: #eef3f8; }
.userbox-links a:hover { color: #fff; }
.userbox .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.5); }

.notices {
  list-style: none; margin: 0; padding: 4px 16px 6px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 18px;
  background: var(--navy-800); color: #fff; font-size: 0.78rem;
}
.notices li::before { content: "！ "; color: var(--focus); font-weight: 700; }

.main { max-width: 1180px; margin: 0 auto; padding: 16px 16px 64px; }

/* ---- 通知 ---- */
.storage-banners { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.banner, .flash {
  border-radius: var(--radius); padding: 10px 14px; margin: 12px 0 0;
  border: 1px solid var(--line); background: var(--surface);
}
.banner-title { font-weight: 700; }
.banner-error, .flash-error { background: var(--fix-bg); border-color: #e7b3ad; color: #5e1610; }
.banner-warn, .flash-warn { background: var(--warn-bg); border-color: #ecd09a; color: #4e3000; }
.flash-ok { background: var(--ok-bg); border-color: #a9d9d2; color: #064541; }
.flash-info { background: var(--navy-100); border-color: #bfcde0; }
.flash { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: flex-start; margin-bottom: 12px; }
.flash p { flex: 1 1 260px; margin: 0; font-weight: 600; }
.flash ul { flex-basis: 100%; margin: 0; }

/* ---- ボタン・フォーム ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 6px 16px; border-radius: 8px; border: 1px solid transparent;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; line-height: 1.3;
}
.btn-primary { background: var(--teal-700); color: #fff; }
.btn-primary:hover { background: var(--teal-600); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--navy-800); border-color: var(--navy-700); }
.btn-secondary:hover { background: var(--navy-100); color: var(--navy-900); }
.btn-danger { background: var(--surface); color: var(--fix); border-color: var(--fix); }
.btn-danger:hover { background: var(--fix-bg); }
.btn-ghost { background: transparent; color: var(--navy-700); border-color: transparent; text-decoration: underline; }
.btn-small { min-height: 30px; padding: 2px 10px; font-size: 0.85rem; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }

.field { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--navy-800); }
.req { color: var(--fix); font-weight: 600; margin-left: 2px; font-size: 0.8em; }
input[type="text"], input[type="url"], input[type="search"], input[type="date"], input[type="datetime-local"], select, textarea {
  width: 100%; min-height: 40px; padding: 7px 10px;
  border: 1px solid #b7c4d3; border-radius: 7px; background: #fff; color: var(--text);
  font: inherit;
}
textarea { resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--teal-700); }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px 10px; margin: 0 0 10px; min-width: 0; }
legend { font-size: 0.85rem; font-weight: 700; color: var(--navy-800); padding: 0 4px; }
.radio, .checkbox { display: inline-flex; align-items: center; gap: 6px; margin: 2px 14px 2px 0; cursor: pointer; }
.radio input, .checkbox input { width: 18px; height: 18px; accent-color: var(--teal-700); }
.radio-group .radio { display: flex; }

.grid-2, .grid-3 { display: grid; gap: 10px 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 .field-wide { grid-column: 1 / -1; }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---- 共通パネル ---- */
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px 16px; margin: 0 0 14px;
}
.subpanel { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.page-head { display: flex; flex-wrap: wrap; gap: 10px 16px; justify-content: space-between; align-items: flex-end; margin-bottom: 14px; }
.page-head h1 { margin-bottom: 4px; }
.back { display: inline-block; margin-bottom: 4px; font-size: 0.9rem; }

.badge {
  display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 0.78rem; font-weight: 600;
  background: var(--gray-bg); color: var(--navy-800); border: 1px solid transparent; white-space: nowrap;
}
.badges { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.tpl-pref { background: var(--navy-100); color: var(--navy-900); }
.tpl-mlit { background: var(--teal-100); color: #064541; }
.badge-sample { background: #fff4c7; color: #5a4500; border-color: #e6cf73; }
.kind-official { background: var(--navy-100); color: var(--navy-900); border-color: #b9c8dc; }
.kind-internal { background: var(--teal-100); color: #064541; border-color: #a9d9d2; }
.qual-ok { background: var(--ok-bg); color: var(--ok); }
.qual-ng { background: var(--fix-bg); color: var(--fix); }
.qual-pending { background: var(--warn-bg); color: var(--warn); }

/* 状態（文字で表記し、色だけに頼らない） */
.pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 6px;
  font-size: 0.8rem; font-weight: 600; border: 1px solid transparent; white-space: nowrap;
}
.pill-role { font-weight: 500; opacity: 0.8; }
.pill-role::after { content: "："; }
.st-ok { background: var(--ok-bg); color: var(--ok); border-color: #a9d9d2; }
.st-fix { background: var(--fix-bg); color: var(--fix); border-color: #e7b3ad; }
.st-unchecked { background: var(--gray-bg); color: #44515e; border-color: #d0d7df; }
.st-recheck { background: var(--warn-bg); color: var(--warn); border-color: #ecd09a; }
.st-na { background: var(--na-bg); color: var(--na); border-color: #cfc1ec; }
.st-na-ok { background: var(--na-bg); color: var(--na); border-color: var(--na); }
.ap-approved { background: var(--ok-bg); color: var(--ok); }
.ap-stale, .ap-revoked { background: var(--warn-bg); color: var(--warn); }
.ap-none { background: var(--gray-bg); color: #44515e; }

/* ---- 一覧 ---- */
.filters { display: grid; gap: 10px 14px; grid-template-columns: 1fr; margin-bottom: 14px; }
@media (min-width: 720px) { .filters { grid-template-columns: 2fr 1fr 1fr; } }
.case-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.case-card { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--teal-700); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); }
.case-card-head { display: flex; flex-wrap: wrap; gap: 6px 12px; justify-content: space-between; align-items: baseline; }
.case-card h2 { margin: 0; font-size: 1.05rem; }
.case-meta { color: var(--muted); font-size: 0.88rem; margin: 2px 0 6px; }
.deadlines { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.88rem; margin-bottom: 8px; }
.due { padding: 0 8px; border-radius: 6px; font-weight: 600; }
.due-ok { background: var(--navy-100); }
.due-soon { background: var(--warn-bg); color: var(--warn); }
.due-overdue { background: var(--fix-bg); color: var(--fix); }
.stage-progress { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.stage-progress li { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: 0.85rem; }
.stage-name { min-width: 7.5em; font-weight: 600; color: var(--navy-800); }
.bar { flex: 0 1 140px; height: 8px; background: var(--gray-bg); border-radius: 999px; overflow: hidden; min-width: 60px; }
.bar-fill { display: block; height: 100%; background: var(--teal-700); }
.stage-count { font-variant-numeric: tabular-nums; min-width: 3.5em; }

/* ---- 詳細 ---- */
.stage-chips { display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 10px; }
.stage-chip { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: inherit; border: 1px solid var(--line); font-size: 0.85rem; }
.stage-chip strong { font-size: 0.95rem; }
.separation-note { background: var(--navy-100); border-radius: 8px; padding: 8px 12px; font-size: 0.9rem; }
.section-nav ul { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.section-nav a { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 0.85rem; text-decoration: none; }

details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details.section > summary { display: flex; align-items: center; gap: 8px; }
details.section > summary::before, details.item > summary::before, .return-box > summary::before, .ledger-edit > summary::before {
  content: "▸"; color: var(--teal-700); font-size: 0.9em; transition: transform 0.15s; flex: none;
}
details[open].section > summary::before, details[open].item > summary::before, details[open].return-box > summary::before, details[open].ledger-edit > summary::before { transform: rotate(90deg); }
details.section > summary h2 { margin: 0; }
details.section[open] > summary { margin-bottom: 10px; }
.section { scroll-margin-top: 120px; }

.meta-summary { display: grid; gap: 2px 16px; grid-template-columns: 1fr; margin: 0 0 10px; }
@media (min-width: 720px) { .meta-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dl-row { display: flex; gap: 8px; font-size: 0.88rem; }
.dl-row dt { color: var(--muted); min-width: 6.5em; flex: none; }
.dl-row dd { margin: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 4px; }

.stage-scope { font-weight: 600; color: var(--navy-800); }
.notes { list-style: none; padding: 0; display: grid; gap: 4px; font-size: 0.88rem; }
.notes .badge { margin-right: 4px; }
.version-current { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; background: var(--navy-100); padding: 0 8px; border-radius: 6px; }

.items { display: grid; gap: 8px; margin-top: 12px; }
details.item { border: 1px solid var(--line); border-radius: 8px; background: #fbfcfd; }
details.item > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 9px 12px; }
details.item[open] > summary { border-bottom: 1px solid var(--line); background: #f5f8fb; }
.item-id { font-weight: 700; color: #fff; background: var(--navy-800); border-radius: 6px; padding: 0 8px; font-variant-numeric: tabular-nums; }
.item-title { display: flex; flex-direction: column; flex: 1 1 200px; min-width: 0; }
.item-judgment { color: var(--muted); font-size: 0.85rem; }
.pills { display: flex; flex-wrap: wrap; gap: 4px; }
details.item > :not(summary) { margin-left: 12px; margin-right: 12px; }
.judgment { margin-top: 10px; }
.roles { display: grid; gap: 10px; grid-template-columns: 1fr; padding-bottom: 12px; }
@media (min-width: 960px) { .roles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rolecard { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: #fff; min-width: 0; }
.rolecard.is-mine { border-color: var(--teal-700); box-shadow: inset 4px 0 0 var(--teal-700); }
.rolecard h4 { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mine-tag { font-size: 0.75rem; background: var(--teal-700); color: #fff; padding: 0 8px; border-radius: 999px; }
.view { font-size: 0.88rem; }
.view-label { font-weight: 700; color: var(--navy-800); }
.record { margin: 0 0 8px; display: grid; gap: 2px; }
.check-form { border-top: 1px dashed var(--line); padding-top: 8px; display: grid; gap: 8px; }
.status-radios { display: flex; flex-wrap: wrap; }
.status-opt { padding: 2px 8px; border-radius: 6px; border: 1px solid transparent; }
.na-fields { background: #faf8fe; }

.gate { border: 2px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-top: 14px; background: #fff; }
.gate-approved { border-color: var(--ok); }
.gate-stale, .gate-revoked { border-color: #e2b354; }
.gate-stopped { border-color: var(--fix); }
.reasons { background: #fff8f6; border-radius: 8px; padding: 8px 12px; }
.reasons ul { font-size: 0.88rem; margin: 0; }
.ok-line { color: var(--ok); font-weight: 600; }
.warn-line { color: var(--warn); font-weight: 600; }
.stop-line { color: #fff; background: var(--fix); padding: 6px 10px; border-radius: 6px; font-weight: 700; }
.return-box { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 8px; }
.return-box > summary { display: flex; gap: 6px; font-weight: 600; color: var(--fix); }
.checkbox-group { display: flex; flex-wrap: wrap; }

.qual-state { padding: 6px 10px; border-radius: 8px; }
.snapshot { background: var(--navy-100); padding: 6px 10px; border-radius: 8px; font-size: 0.9rem; }
.warn-list { background: var(--warn-bg); color: #4e3000; border-radius: 8px; padding: 8px 12px 8px 28px; font-size: 0.9rem; }
.role-confirms { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }

.ledger { list-style: none; padding: 0; display: grid; gap: 8px; }
.ledger-row { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.ledger-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.ledger-edit { margin-top: 6px; }
.ledger-edit > summary { display: flex; gap: 6px; font-size: 0.88rem; color: var(--navy-700); }

/* 様式への記入 */
details.form-group { border: 1px solid var(--line); border-radius: 8px; background: #fbfcfd; margin-top: 10px; }
details.form-group > summary { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-weight: 700; color: var(--navy-900); }
details.form-group > summary::before { content: "▸"; color: var(--teal-700); transition: transform 0.15s; }
details[open].form-group > summary::before { transform: rotate(90deg); }
details[open].form-group > summary { border-bottom: 1px solid var(--line); background: #f5f8fb; }
details.form-group > form { padding: 10px 12px 12px; }
.field-label { font-size: 0.85rem; font-weight: 600; color: var(--navy-800); }
.readonly-value { margin: 0; padding: 7px 10px; border: 1px dashed #b7c4d3; border-radius: 7px; background: var(--gray-bg); }
.char-count { font-weight: 600; color: var(--muted); margin-left: 6px; }
.char-count.over { color: var(--fix); }
.template-list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 2px; }
.fill-report { background: var(--navy-100); border-radius: 8px; padding: 8px 12px; margin-top: 8px; font-size: 0.9rem; }
.fill-report ul { margin: 4px 0 0; }
fieldset.period, fieldset.checkbox-group { margin: 0; }
.checkbox-group .checkbox { display: flex; }
.set-toggle { font-weight: 600; color: var(--navy-800); }
fieldset.table-field { margin: 0; }
.table-rows { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.table-row { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: #fff; }
.row-no { display: inline-block; font-size: 0.8rem; font-weight: 700; color: var(--teal-700); margin-bottom: 4px; }

.history { list-style: none; padding: 0; display: grid; gap: 4px; font-size: 0.85rem; max-height: 480px; overflow-y: auto; }
.history li { display: grid; grid-template-columns: 1fr; gap: 0 10px; padding: 4px 0; border-bottom: 1px solid var(--gray-bg); }
@media (min-width: 720px) { .history li { grid-template-columns: 9.5em 12em 1fr; } }
.h-at { font-variant-numeric: tabular-nums; color: var(--muted); }
.h-who { font-weight: 600; color: var(--navy-800); }

@media (max-width: 560px) {
  body { font-size: 14.5px; }
  h1 { font-size: 1.25rem; }
  .stage-chips { grid-template-columns: 1fr; }
  .topbar-inner { padding: 6px 12px; }
  .brand-sub { display: none; }
}

/* ---- 印刷 ---- */
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; font-size: 10.5pt; }
  .topbar { position: static; box-shadow: none; background: #fff; color: #000; border-bottom: 2px solid #000; }
  .brand, .brand:hover { color: #000; }
  .brand-mark { border: 1px solid #000; background: #fff; color: #000; }
  .roleswitch, .skip-link, .no-print, .section-nav, .btn, .check-form, form, .return-box, .flash, .storage-banners, .data-tools { display: none !important; }
  .notices { background: #fff; color: #000; border-bottom: 1px solid #000; justify-content: flex-start; }
  .main { max-width: none; padding: 0; }
  .panel, .gate, details.item, .rolecard { box-shadow: none; break-inside: avoid; }
  .panel { border-color: #888; }
  details > summary::before { display: none !important; }
  .roles { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .history { max-height: none; overflow: visible; }
  a { color: #000; }
  .pill, .badge { border-color: #666 !important; }
}

/* ---- サーバー版：ログイン・アカウント管理 ---- */
.auth { max-width: 520px; margin: 24px auto; display: grid; gap: 12px; }
.auth h1 { margin: 0; }
.field .hint { margin: 0; font-size: 0.8rem; color: var(--muted); }
label.check { display: flex; gap: 6px; align-items: center; font-weight: 600; }
.temp-password { border: 2px solid var(--teal-600); background: var(--ok-bg); border-radius: var(--radius); padding: 10px 14px; margin: 12px 0; }
.temp-password code { font-size: 1.2rem; letter-spacing: 0.06em; user-select: all; }
.user-list { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 10px; }
.user-row { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; background: var(--surface); }
.user-row.is-inactive { opacity: 0.7; background: var(--bg); }
.user-head { margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.badge-warn { background: var(--warn-bg); color: #4e3000; border-color: #ecd09a; }
.group-conflict { margin: 0 0 10px; }

/* ---- 入札説明書からの読み込み ---- */
.notice-panel { margin: 0 0 14px; }
.notice-panel h3 { margin: 0 0 4px; }
.notice-paste { margin-top: 8px; }
.notice-paste > summary, .more-fields > summary { color: var(--navy-700); font-size: 0.9rem; font-weight: 600; }
.notice-paste > summary::before, .more-fields > summary::before { content: "▸ "; }
.notice-paste[open] > summary::before, .more-fields[open] > summary::before { content: "▾ "; }
.notice-paste textarea { width: 100%; }
.notice-box { margin-top: 10px; }
.table-wrap { overflow-x: auto; margin: 8px 0; }
.notice-table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 0.9rem; }
.notice-table th, .notice-table td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.notice-table th { background: var(--navy-100); color: var(--navy-800); font-weight: 600; white-space: nowrap; }
.notice-table td:first-child { text-align: center; width: 3.5em; }
.notice-table input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--teal-700); }
.notice-table .nt-value { font-weight: 600; }
.notice-table .nt-current, .notice-table .nt-src { color: var(--muted); }
.notice-table .nt-src { font-size: 0.82rem; max-width: 22em; }
.notice-table .nt-note { display: block; color: var(--warn); }
.notice-table tr.same td { opacity: 0.6; }
.more-fields { margin-top: 12px; }
.more-fields > .grid-2 { margin-top: 8px; }
.field.autofilled input, .field.autofilled select, .field.autofilled textarea { background: var(--teal-100); border-color: var(--teal-600); }
.notice-table tr.applied .nt-current { color: var(--ok); font-weight: 600; }
