/* PC VISION / SUUMO 掲載監視 — A1「一覧集中」 theme. One file, system fonts only, nothing loaded from outside.

   Building blocks for the pages (use these names; each page's own markup stays inside main.page):
   - .page-head ..... page title row: <div class="page-head"><div><h1>…</h1><p class="lead">…</p></div><div class="actions">…</div></div>
   - .summary ....... summary strip of 4 metrics: <div class="summary"><div><span class="sum-label">…</span>
                      <strong class="sum-value">500<small>件</small></strong><small class="sum-sub">…</small></div> ×4</div>
   - .tabbar ........ tab bar with counts: <nav class="tabbar"><a href="…" class="on" aria-current="page">未確認 <span class="count">12</span></a>…</nav>
   - .toolbar ....... search, selects and buttons in one row: <form class="toolbar"><span class="search"><input type="search" name="q"></span>
                      <select>…</select><button class="btn">…</button><span class="grow"></span>…</form>
   - .chip .......... marks: .chip (gray, usual) / .chip.w (pale orange, needs care) / .chip.r (red, 契約済・終了 and other strong warnings)
                      / .chip.g (green, 登録済・新着) / .chip.b (blue, ITANDI・ATBB status)
   - .table ......... data table: the head row stays under the 56px header while the page scrolls; td.num = right-aligned digits;
                      tr.sel = the selected row (orange line on the left, pale orange row). Wrap in .table-wrap to scroll sideways.
   - .pager ......... page links: <div class="pager"><span>1〜50件 / 120件</span><a href="…">← 前へ</a><b>2</b><a href="…">3</a></div>
   - .card .......... white box, thin line, 8px corners (.card-head / .card-title for its heading)
   - .btn ........... secondary button (white with a line); .btn.primary orange with dark text #1c2a31 (--on-accent; .p is the same);
                      .btn.small 32px high (button.small too); .btn.block full width; .btn.ghost no frame
   - .field ......... label above an input: <label class="field"><span>名前</span><input name="…"></label>.
                      Inputs are 40px high with a #e2e8ec line, orange line and glow when focused.
   - .drawer ........ panel over the right side, at most 640px (--drawer-w; the left edge .drawer-edge drags it 360〜960px):
                      <a class="drawer-backdrop"></a> <aside class="drawer"><header class="drawer-head">…</header>
                      <nav class="drawer-tabs"><a class="dtab on">…</a></nav><div class="drawer-body"><section class="dpane on">…
                      </section></div><footer class="drawer-foot"><div class="dfoot on">…</div></footer></aside>;
                      hide both with the hidden attribute. Without script (no .js on <html>) every .dpane shows, stacked.
   - .alert ......... message box: .alert (info) / .alert.warn / .alert.error; .sitealert is the red bar about ITANDI・ATBB
   - .muted ......... unknown or empty values, always 「-」, never 0: <span class="muted">-</span>
   Shell (base.html): .sidebar (.nav-item, .nav-badge), .topbar (.breadcrumb, .topbar-date, .icon-btn), .gtabs (the tabs of a
   menu group), main.page. Below 760px the menu slides in from the left (#sw-nav checkbox, works without script).
   The second half of this file keeps the existing page parts (.bar, .tabs, .rows, .grid …) readable in this theme. */

:root {
  --accent: #ef8619;
  --accent-text: #a44e06;
  --accent-soft: #fff3e5;
  --accent-line: #f0c999;
  --on-accent: #1c2a31;      /* text on the orange accent (white on orange is too faint) */
  --sidebar: #132b36;
  --sidebar-on: #2a4652;
  --sidebar-hover: #1e3b48;
  --sidebar-text: #c5d3da;
  --sidebar-muted: #9cb2bd;
  --bg: #f3f5f7;
  --ink: #263640;
  --muted: #657681;
  --line: #e2e8ec;
  --line-strong: #cfd9df;
  --panel: #fff;
  --soft: #f7f9fb;
  --hover: #f5f8fa;
  --sel: #fff8ef;
  --link: #2d648e;
  --red: #b3261e;
  --red-soft: #fdeeec;
  --green: #267758;
  --green-soft: #eaf5ee;
  --blue: #2d648e;
  --blue-soft: #eaf2fa;
  --warn: #8a5a00;
  --radius: 8px;
  --sidebar-w: 188px;
  --header-h: 56px;
  --drawer-w: 640px;
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 14px;
  line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: #1d4a6c; }
h1 { margin: 2px 0 14px; font-size: 24px; line-height: 1.35; font-weight: 700; letter-spacing: -.02em; }
h2 { margin: 24px 0 10px; font-size: 16px; line-height: 1.5; font-weight: 700; }
h2 a.small { margin-left: 8px; font-size: 13px; font-weight: 400; }
h3 { margin: 0 0 8px; font-size: 15px; }
h4 { margin: 16px 0 6px; font-size: 14px; }
p { margin: 0 0 10px; }
:focus-visible { outline: 3px solid #c56a08; outline-offset: 2px; }
[hidden] { display: none !important; }
code { padding: 0 4px; border: 1px solid var(--line); border-radius: 4px; background: var(--soft);
  font-family: ui-monospace, Consolas, monospace; font-size: .92em; }
kbd { margin-left: 4px; padding: 0 6px; border: 1px solid var(--line); border-radius: 4px; background: var(--soft);
  color: var(--muted); font-family: inherit; font-size: 12px; }
.icon { display: inline-block; flex: none; vertical-align: middle; }
.muted, .hint, .attrs, .note { color: var(--muted); }
.grow { flex: 1; }
a.small { font-size: 13px; }

/* ---------- shell: sidebar ---------- */
.skip { position: fixed; top: -60px; left: 12px; z-index: 200; padding: 10px 16px; border-radius: var(--radius);
  background: var(--panel); color: var(--ink); box-shadow: 0 4px 16px rgba(20, 43, 53, .2); }
.skip:focus { top: 12px; }
.nav-check { display: none; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; display: flex; flex-direction: column; width: var(--sidebar-w);
  padding: 23px 10px 17px; overflow-y: auto; background: var(--sidebar); color: #e7eef1; }
.logo { display: flex; align-items: center; gap: 8px; padding: 0 5px; color: #fff; text-decoration: none; }
.logo:hover { color: #fff; }
.logo-mark { display: inline-flex; flex: 0 0 30px; align-items: center; justify-content: center; width: 30px; height: 33px;
  border-radius: 8px; background: var(--accent); color: var(--sidebar); font-size: 20px; font-weight: 800; line-height: 1; }
.logo-text { color: #fff; font-size: 16px; font-weight: 700; line-height: 1.25; letter-spacing: .01em; white-space: nowrap; }
.brand-sub { display: block; color: #a9bdc7; font-size: 12px; font-weight: 400; line-height: 1.45; letter-spacing: 0; }
.nav-section { margin: 27px 9px 10px; color: var(--sidebar-muted); font-size: 12px; font-weight: 600; letter-spacing: .07em; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 9px; border-radius: 6px;
  color: var(--sidebar-text); font-size: 14px; line-height: 1.5; text-decoration: none; white-space: nowrap; }
.nav-item .icon { opacity: .8; }
.nav-item:hover { background: var(--sidebar-hover); color: #fff; }
.nav-item[aria-current="page"] { background: var(--sidebar-on); color: #fff; font-weight: 700; }
.nav-item[aria-current="page"] .icon { color: #ffab50; opacity: 1; }
.nav-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nav-badge { min-width: 25px; margin-left: auto; padding: 1px 5px; border-radius: 5px; background: #3b535e; color: #eaf0f3;
  font-size: 12px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.nav-item[aria-current="page"] .nav-badge { background: var(--accent); color: var(--sidebar); }
.sidebar-bottom { margin-top: auto; padding-top: 24px; }
.sidebar-bottom .nav-item { color: #b7c9d1; }
.sidebar-bottom .nav-item[aria-current="page"] { color: #fff; }
.profile { display: flex; align-items: center; gap: 7px; margin-top: 18px; padding: 16px 5px 0; border-top: 1px solid #2c444f;
  color: #e7eef1; font-size: 12px; font-weight: 700; }
.profile .muted { color: var(--sidebar-muted); font-weight: 400; }
.avatar { display: inline-flex; flex: 0 0 28px; align-items: center; justify-content: center; width: 28px; height: 28px;
  border-radius: 50%; background: #304e5b; color: #fff; font-size: 13px; font-weight: 700; }
.org { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-scrim { display: none; margin: 0; }

/* ---------- shell: header, group tabs, page ---------- */
.shell { min-width: 0; min-height: 100vh; margin-left: var(--sidebar-w); }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; height: var(--header-h);
  padding: 0 24px; border-bottom: 1px solid var(--line); background: var(--panel); }
.menu-btn { display: none; flex: none; align-items: center; justify-content: center; width: 36px; height: 36px; margin: 0;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: #526773; cursor: pointer; }
.breadcrumb { display: flex; align-items: center; min-width: 0; color: var(--muted); font-size: 14px; white-space: nowrap; }
.breadcrumb strong { min-width: 0; overflow: hidden; color: var(--ink); font-weight: 600; text-overflow: ellipsis; }
.crumb-sep { padding: 0 12px; color: #9aa7ae; }
.topbar-tools { display: flex; flex: none; align-items: center; gap: 10px; margin-left: auto; }
.topbar-date { color: var(--muted); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border: 1px solid var(--line); border-radius: 50%; background: var(--panel); color: #526773; text-decoration: none; }
.icon-btn:hover { border-color: #bdcbd3; background: var(--soft); color: var(--ink); }
.gtabs { display: flex; gap: 24px; padding: 0 24px; overflow-x: auto; border-bottom: 1px solid var(--line);
  background: var(--panel); scrollbar-width: thin; }
.gtabs a { display: inline-flex; flex: none; align-items: center; min-height: 44px; padding: 10px 0 7px;
  border-bottom: 3px solid transparent; color: var(--muted); font-size: 14px; text-decoration: none; white-space: nowrap; }
.gtabs a:hover { color: var(--ink); }
.gtabs a.on, .gtabs a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--ink); font-weight: 700; }
.page { display: block; max-width: 1940px; padding: 18px 24px 32px; }

/* login and 「準備中」: no menu, one white card in the middle */
body.bare .shell { margin-left: 0; }
body.bare .page { max-width: 520px; margin: 0 auto; padding: 0 16px 40px; }
.bare-brand { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 56px 16px 20px; }
.bare-brand .logo-text { color: var(--ink); font-size: 18px; }
.bare-brand .brand-sub { color: var(--muted); }
.card.bare-card { padding: 26px 28px 24px; }
.bare-card h1 { margin: 0 0 6px; font-size: 20px; }
.bare-card form { margin-top: 16px; }

/* ---------- building blocks ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 13px; }
.page-head > div:first-child { min-width: 0; }
.page-head h1 { margin: 0; font-size: 24px; line-height: 1.3; }
.page-head .lead { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.page-head .actions { display: flex; flex-flow: row wrap; align-items: center; gap: 8px; }

.summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 10px; padding: 12px 0;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.summary > * { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 3px 12px; min-width: 0;
  padding: 0 18px; border-right: 1px solid var(--line); }
.summary > :last-child { border-right: 0; }
.sum-label { color: var(--muted); font-size: 14px; font-weight: 500; }
.sum-value { font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; text-align: right;
  font-variant-numeric: tabular-nums; }
.sum-value small { margin-left: 2px; color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: 0; }
.sum-sub { grid-column: 1 / -1; color: var(--muted); font-size: 12px; line-height: 1.5; }

.tabbar { display: flex; align-items: stretch; gap: 24px; min-height: 44px; padding: 0 18px; overflow-x: auto;
  border-bottom: 1px solid var(--line); background: var(--panel); scrollbar-width: thin; }
.tabbar a { display: inline-flex; flex: none; align-items: center; gap: 8px; padding: 9px 0 7px; border-bottom: 3px solid transparent;
  color: var(--muted); font-size: 14px; text-decoration: none; white-space: nowrap; }
.tabbar a:hover { color: var(--ink); }
.tabbar a.on, .tabbar a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--ink); font-weight: 700; }
.tabbar .count { min-width: 22px; padding: 1px 6px; border-radius: 4px; background: #eef2f5; color: var(--muted);
  font-size: 12px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.tabbar a.on .count, .tabbar a[aria-current="page"] .count { background: var(--accent-soft); color: var(--accent-text); }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 18px; }
.toolbar label { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-size: 13px; white-space: nowrap; }
.toolbar select { min-width: 130px; max-width: 240px; }
.toolbar .search { position: relative; flex: 1 1 260px; min-width: 200px; }
.toolbar .search input { width: 100%; padding-left: 36px; }
.toolbar .search::before { content: ""; position: absolute; top: 50%; left: 12px; width: 16px; height: 16px; transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2384949e' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E") no-repeat center / 16px;
  pointer-events: none; }

.chip { display: inline-flex; align-items: center; gap: 4px; margin: 1px 3px 1px 0; padding: 0 7px; border: 1px solid transparent;
  border-radius: 4px; background: #eef2f5; color: #4f626d; font-size: 12px; font-weight: 500; line-height: 1.7;
  vertical-align: middle; white-space: nowrap; }
.chip.w { border-color: #f6dcbc; background: var(--accent-soft); color: var(--accent-text); }
.chip.r { border-color: #f4cbc7; background: var(--red-soft); color: var(--red); }
.chip.g { background: var(--green-soft); color: var(--green); }
.chip.b { background: var(--blue-soft); color: var(--blue); }
.chip.v { background: #e3ecf1; color: #22404d; font-weight: 700; }
.chip.vo { border-color: #b9cad3; background: var(--panel); color: #3c5a68; }
.chip.occ { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-text); font-weight: 700; }
.chip.occ.k { border-color: var(--red); background: var(--red); color: #fff; }

.table, table.grid, table.rows { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--panel); font-size: 14px; }
.table th, .grid th, .rows th { position: sticky; top: var(--header-h); z-index: 5; padding: 8px 12px; border-bottom: 1px solid var(--line);
  background: var(--soft); color: var(--muted); font-size: 13px; font-weight: 600; line-height: 1.5; text-align: left; white-space: nowrap; }
.table td, .grid td, .rows td { padding: 8px 12px; border-bottom: 1px solid var(--line); line-height: 1.5; vertical-align: middle; }
.table tbody tr:last-child td, .grid tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td, .grid tbody tr:hover td, .rows tbody tr:hover td { background: var(--hover); }
.table tr.sel td, .rows tr.sel td { background: var(--sel); }
.table tr.sel td:first-child, .rows tr.sel td:first-child { box-shadow: inset 3px 0 var(--accent); }
th a { color: inherit; text-decoration: none; }
th a:hover { color: var(--ink); text-decoration: underline; }
th a.on { color: var(--accent-text); }
.num, td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap, .scroll { overflow-x: auto; }
/* a header row inside its own scroll box sticks to the top of that box, not under the page header */
.table-wrap th, .scroll th, .list th, .drawer th, .card .table-wrap th { top: 0; }

.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 2px; color: var(--muted); font-size: 13px; }
.pager > span:first-child { margin-right: 6px; font-variant-numeric: tabular-nums; }
.pager a, .pager b { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--ink); text-decoration: none;
  font-variant-numeric: tabular-nums; }
.pager a:hover { border-color: #bdcbd3; background: var(--soft); }
.pager b { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-text); }

.card { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.page > .card + .card, .sitehealth + .sitehealth { margin-top: 12px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.card-title { margin: 0; font-size: 16px; font-weight: 700; }

button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 7px 15px;
  border: 1px solid #d3dce2; border-radius: 6px; background: var(--panel); color: #334650; font: inherit; font-size: 14px;
  font-weight: 600; line-height: 1.4; text-decoration: none; white-space: nowrap; cursor: pointer; vertical-align: middle; }
button:hover, .btn:hover { border-color: #b7c7d0; background: var(--soft); color: var(--ink); }
button.p, .btn.p, button.primary, .btn.primary { border-color: var(--accent); background: var(--accent); color: var(--on-accent); font-weight: 700; }
button.p:hover, .btn.p:hover, button.primary:hover, .btn.primary:hover { border-color: #dd7409; background: #dd7409; color: var(--on-accent); }
button.small, .btn.small { min-height: 32px; padding: 4px 10px; font-size: 13px; }
button.block, .btn.block { display: flex; width: 100%; }
button.ghost, .btn.ghost { border-color: transparent; background: transparent; color: #526773; }
button.ghost:hover, .btn.ghost:hover { background: #edf2f5; }
button:disabled, button[disabled] { opacity: .5; cursor: not-allowed; }

input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea { min-height: 40px; max-width: 100%;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background-color: var(--panel); color: var(--ink);
  font: inherit; font-size: 14px; line-height: 1.4; }
input:not([type="checkbox"]):not([type="radio"]):hover, select:hover, textarea:hover { border-color: #b1c0ca; }
input:not([type="checkbox"]):not([type="radio"]):focus, select:focus, textarea:focus { border-color: var(--accent);
  outline: none; box-shadow: 0 0 0 3px rgba(239, 134, 25, .22); }
input::placeholder, textarea::placeholder { color: #7b8a93; }
select { padding-right: 32px; appearance: none; background-repeat: no-repeat; background-position: right 10px center; background-size: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23526773' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
textarea { min-height: 40px; }
input[type="checkbox"], input[type="radio"] { width: 16px; height: 16px; margin: 0 4px 0 0; vertical-align: middle; accent-color: var(--accent); }
label { display: block; margin-bottom: 6px; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; }
.field > span { color: #435c6a; font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; }

.drawer-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(18, 35, 46, .28); cursor: default; }
.drawer { position: fixed; inset: 0 0 0 auto; z-index: 80; display: flex; flex-direction: column; width: min(var(--drawer-w), 100%);
  background: var(--panel); box-shadow: -14px 0 55px rgba(20, 43, 53, .12); outline: none; }
.drawer-head { display: flex; flex: none; align-items: flex-start; gap: 15px; min-height: 71px; padding: 16px 27px 14px;
  border-bottom: 1px solid var(--line); }
.drawer-body { flex: 1; min-height: 0; padding: 24px 28px 32px; overflow-y: auto; overscroll-behavior: contain; }
.drawer-foot { display: flex; flex: none; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 28px; border-top: 1px solid var(--line); background: var(--panel); }
body.drawer-open { overflow: hidden; }

.alert { display: block; margin: 0 0 12px; padding: 10px 14px; border: 1px solid #dce8ef; border-radius: var(--radius);
  background: #f2f7fa; color: #3f5f72; font-size: 14px; }
.alert.warn { border-color: #f0dfc5; background: #fffbf4; color: var(--warn); }
.alert.error { border-color: #f4cbc7; background: var(--red-soft); color: var(--red); }
.sitealert { margin: 0 0 12px; padding: 10px 14px; border-radius: var(--radius); background: var(--red); color: #fff; font-weight: 700; }
.sitealert a { margin-left: 6px; color: #fff; text-decoration: underline; }
.sitealert.info { background: var(--blue-soft); color: var(--blue); border: 1px solid color-mix(in srgb, var(--blue) 30%, #fff); }
.sitealert.info a { color: var(--blue); }

/* ---------- existing page parts (restyled page by page later; until then readable in this theme) ---------- */
.pagehead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 0 0 14px; }
.pagehead h1 { margin: 0; font-size: 24px; }
.pagehead .lead { color: var(--muted); }
.pagehead .grow { flex: 1; }
.warn, .badge.warn { color: var(--warn); }
.error { color: var(--red); }
.badge { display: inline-block; padding: 0 6px; border: 1px solid currentColor; border-radius: 4px; font-size: 12px; }
.hint a.on { color: var(--ink); font-weight: 700; }
.note { margin-left: 6px; }
.empty { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--muted); }
.legend { margin: 0 0 8px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.few { color: var(--red); font-weight: 700; }
.cheap { color: var(--green); font-weight: 700; }
.dear { color: var(--muted); font-weight: 400; }
form.inline { display: inline-block; margin-right: 8px; }
details summary { color: var(--link); cursor: pointer; }
tr.st-parse_error, tr.st-error, tr.st-blocked { color: var(--red); }
tr.st-network_error { color: var(--warn); }
tr.off { color: var(--muted); }
.ev-gap td, .ev-relist td { background: var(--sel); }
table.grid { border: 1px solid var(--line); border-radius: var(--radius); }
table.grid.narrow { width: auto; }
.grid thead tr:first-child th:first-child { border-top-left-radius: var(--radius); }
.grid thead tr:first-child th:last-child { border-top-right-radius: var(--radius); }
.grid td { white-space: nowrap; }
.grid td.msg { max-width: 720px; white-space: normal; }

/* the board's filter form, tabs and condition pills */
form.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
form.bar label { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-size: 13px; white-space: nowrap; }
form.bar select { max-width: 170px; }
form.bar input[type=text] { width: 160px; min-width: 100px; flex: 1 1 120px; }
form.bar .upd { color: var(--muted); font-size: 12px; white-space: nowrap; }
body.sw-folded .bar, body.sw-folded .boardhead { display: none; }
body.sw-folded td .bar { display: block; }
.boardhead { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 10px; padding: 2px 14px 10px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.boardhead .tabs { margin: 0; }
.boardhead .tabs:not(.quick) { flex: 1 1 100%; }
.tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; margin: 0 0 8px; border-bottom: 1px solid var(--line); }
.tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 0 6px; border-bottom: 3px solid transparent;
  color: var(--muted); font-size: 14px; text-decoration: none; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a b { min-width: 22px; padding: 0 6px; border-radius: 4px; background: #eef2f5; color: var(--muted); font-size: 12px;
  text-align: center; font-variant-numeric: tabular-nums; }
.tabs a.on, .kanritabs a.on { border-bottom-color: var(--accent); color: var(--ink); font-weight: 700; }
.tabs a.on b { background: var(--accent-soft); color: var(--accent-text); }
.tabs.quick { gap: 6px; border-bottom: 0; }
.tabs.quick a { padding: 3px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); font-size: 13px; }
.tabs.quick a b { padding: 0; background: transparent; color: inherit; }
/* each condition keeps its own colour, as pale tints: tinted when off, stronger with a frame when on */
.tabs.conds a { --c: #5f6b78; border-color: color-mix(in srgb, var(--c) 35%, #fff); background: color-mix(in srgb, var(--c) 7%, #fff);
  color: var(--c); font-weight: 600; }
.tabs.conds a b { color: inherit; }
.tabs.conds a.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 18%, #fff); color: var(--c);
  box-shadow: inset 0 0 0 1px var(--c); font-weight: 700; }
.tabs.conds a.c-new { --c: #23704f; }
.tabs.conds a.c-nokanri { --c: #1d6f75; }
.tabs.conds a.c-kanritel { --c: #1d6f75; }
.tabs.conds a.c-sole { --c: #b0490b; }
.tabs.conds a.c-le4 { --c: #a52f66; }
.tabs.conds a.c-applied { --c: #93550b; }
.tabs.conds a.c-contracted { --c: #b3261e; }
.tabs.conds a.clear { border-style: dashed; background: transparent; color: var(--muted); }
.tabs.conds a small.notel { margin-left: 2px; font-size: 11px; font-weight: 500; }
.tabs.quick.conds > .hint { font-size: 13px; }

/* the board: the list takes the whole width; one room's details open in the drawer over its right side */
.board { min-width: 0; }
.list { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.board .list { max-height: max(320px, calc(100vh - 170px)); }
.rows thead th { z-index: 2; box-shadow: 0 1px 0 var(--line); }
.rows td { white-space: nowrap; }
.rows td.bn { min-width: 150px; white-space: normal; }
.rows td.bn a { color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.rows td.bn a:hover { color: var(--accent-text); text-decoration: underline; }
.rows td.bn .sub { margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.rows td.bn .shops { margin-right: 6px; color: var(--muted); }
.rows td.bn .sub .st { margin-right: 6px; }
.rows td.co { max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
.rows td.notes { min-width: 110px; max-width: 180px; white-space: normal; }
.rows td.pk { white-space: nowrap; }
.rows td.pk input { margin: 0 6px 0 0; }
.rows td.site { font-size: 13px; }
.rows td.price { font-weight: 700; }
.rows td.mk .bar { display: block; width: 60px; height: 4px; margin: 3px 0 0; padding: 0; border: 0; border-radius: 2px; background: #e3e9ed; }
.rows td.mk .bar i { display: block; height: 4px; border-radius: 2px; background: var(--green); }
.rows tr.grp td { padding: 7px 12px; background: var(--soft); color: var(--muted); font-size: 13px; }
.rows tr.grp td b { margin: 0 10px 0 6px; color: var(--ink); }
.rows tr.grp.gA td, .rows tr.grp.gA:hover td { background: #fdf1f0; color: var(--red); }
.rows tr.grp.gB td, .rows tr.grp.gB:hover td { background: #fff6eb; color: var(--accent-text); }
.rows tr.grp:hover td { background: var(--soft); }
.rows.report td.pk { text-align: center; }
.rows.report td.pk .tag { margin-top: 4px; }
.rows td.bn .renamed { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 4px; background: var(--red);
  color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; vertical-align: 1px; cursor: help; }
.rows.report td.ko { min-width: 170px; font-size: 13px; white-space: normal; }
.rows.report td.ko .kn { font-weight: 700; }
.rows.report td.ko .kt { color: var(--muted); font-variant-numeric: tabular-nums; }
.rows.report td.ko .vpn { color: var(--muted); font-size: 12px; margin-top: 2px; }
.rows.report td.ko .ks { display: flex; flex-direction: column; margin-top: 2px; color: var(--muted); font-size: 12px; }
.rows.report td.ko .ks i { color: var(--muted); font-style: normal; }
.rows.report td.ko .ks em { margin-right: 4px; }
.rows.report td.ko a.go-check { display: inline-block; margin-top: 3px; padding: 1px 8px; border: 1px solid #e8c59d; border-radius: 6px;
  background: var(--sel); color: #91500b; font-size: 12px; font-weight: 600; text-decoration: none; }
.rows.report td.vv { white-space: nowrap; }
.rows.report td.vv .vnote { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); }
/* a room VISION itself lists: not reported, so the line is greyed out a little */
.rows.report tr.own-row > td { background: var(--soft); }
.rows.report tr.own-row:hover > td { background: var(--hover); }
.rows.report tr.own-row.sel > td { background: var(--sel); }
.rows.report tr.own-row .bn a { color: var(--muted); }
.tag { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 4px; font-size: 12px; font-weight: 700; line-height: 18px; text-align: center; }
.tA { background: var(--red-soft); color: var(--red); }
.tB { background: var(--accent-soft); color: var(--accent-text); }
.tC { background: #eef2f5; color: #4f626d; }
.t- { color: var(--muted); }
.age { display: inline-block; color: var(--muted); font-size: 12px; white-space: nowrap; }
.age.new { color: var(--green); font-weight: 700; }
.age.semi { color: var(--green); }
.st { display: inline-block; padding: 1px 7px; border-radius: 4px; font-size: 12px; white-space: nowrap; }
.st-未確認 { background: #eef2f5; color: #4f626d; }
.st-確認中 { background: var(--accent-soft); color: var(--accent-text); }
.st-確認済み { background: var(--green-soft); color: var(--green); }
.st-指摘済み { background: var(--blue-soft); color: var(--blue); }
.site-itandi { color: #1f7a4d !important; font-style: normal; font-weight: 700; }
.site-atbb { color: #2d648e !important; font-style: normal; font-weight: 700; }
.live-itandi { color: #1f7a4d; font-weight: 700; }
.live-atbb { color: #2d648e; font-weight: 700; }
.bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 13px; }
.bulk label { display: inline-flex; align-items: center; gap: 6px; margin: 0; white-space: nowrap; }
.bulk button, .bulk .btn { min-height: 32px; padding: 4px 10px; font-size: 13px; }
.bulk button.atbb { border-color: var(--blue); background: var(--blue); color: #fff; }
.pager.top { padding: 2px 0 8px; }
.foot { display: flex; gap: 12px; margin-top: 12px; padding: 9px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); color: var(--muted); font-size: 12px; }
.foot b { margin-left: auto; color: var(--ink); }

/* the drawer's contents (_panel.html): one room, on the board, 管理会社調べ and a company's rooms */
.drawer-edge { position: absolute; top: 0; bottom: 0; left: -5px; z-index: 2; width: 10px; cursor: col-resize; touch-action: none; }
.drawer-edge::after { content: ""; position: absolute; top: 0; bottom: 0; left: 4px; width: 2px; background: transparent; }
.drawer-edge:hover::after, .drawer-edge:focus-visible::after, .drawer.resizing .drawer-edge::after { background: var(--accent); }
.drawer-edge:focus-visible { outline: none; }
.drawer.resizing { user-select: none; }
.drawer-panel { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.dh-room { flex: 1; min-width: 0; }
.dh-name { margin: 8px 0 0; font-size: 22px; line-height: 1.45; font-weight: 750; letter-spacing: -.02em; overflow-wrap: anywhere; }
.dh-note { margin-top: 6px; color: var(--red); font-size: 12px; line-height: 1.6; }
.dh-tools { display: flex; flex: none; align-items: center; gap: 8px; }
.dh-pos { margin-right: 4px; color: var(--muted); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dh-pos b { color: var(--ink); font-weight: 600; }
.dbtn { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 37px; height: 37px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: #526773; text-decoration: none; }
.dbtn:hover { border-color: #bdcbd3; background: #f8fafb; color: var(--ink); }
.dbtn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.drawer-tabs { display: flex; flex: none; gap: 26px; padding: 0 28px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.dtab { display: inline-flex; flex: none; align-items: center; min-height: 48px; padding: 11px 0 9px; border-bottom: 3px solid transparent;
  color: #697985; font-size: 14px; text-decoration: none; white-space: nowrap; }
.dtab:hover { color: var(--ink); }
.dtab.on { border-bottom-color: var(--accent); color: #283d49; font-weight: 700; }
.js .dpane:not(.on) { display: none; }       /* without script every tab shows, one under the other */
.js .nojs { display: none; }
.dpane + .dpane { margin-top: 28px; padding-top: 4px; border-top: 1px solid var(--line); }
.js .dpane + .dpane { margin-top: 0; padding-top: 0; border-top: 0; }
.pane-title { margin: 14px 0 12px; font-size: 16px; }
.dpane > :first-child:not(.pane-title), .js .dpane > .pane-title + * { margin-top: 0; }
.dpane h4 { margin: 24px 0 10px; font-size: 15px; }
.drawer-msg { margin: 0 0 16px; padding: 10px 14px; border: 1px solid #f4cbc7; border-radius: var(--radius); background: var(--red-soft);
  color: var(--red); font-size: 14px; font-weight: 600; }
.drawer-msg.ok { border-color: #cfe5d8; background: var(--green-soft); color: var(--green); }
.drawer-msg.warn { border-color: #f0dfc5; background: #fffbf4; color: var(--warn); }
.dfoot { display: none; }
.dfoot.on { display: flex; flex: 1; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.dfoot .small-print { max-width: 260px; }
.small-print { color: var(--muted); font-size: 12px; line-height: 1.75; }
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.badges .chip { margin: 0; }
.badge-p, .badge-s { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 5px; background: #eef2f5; color: #5a6d78;
  font-size: 13px; font-weight: 600; line-height: 1.45; white-space: nowrap; }
.badge-p.pA { background: var(--red-soft); color: var(--red); }
.badge-p.pB { background: #fff1db; color: #955710; }
.badge-s.st-確認中 { background: var(--accent-soft); color: var(--accent-text); }
.badge-s.st-確認済み { background: var(--green-soft); color: var(--green); }
.badge-s.st-指摘済み { background: var(--blue-soft); color: var(--blue); }
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 24px; padding: 19px;
  border: 1px solid var(--line); border-radius: 9px; background: #f7f9fa; }
.detail-item { min-width: 0; }
.detail-item > span { display: block; color: var(--muted); font-size: 12px; }
.detail-item > strong { display: block; margin-top: 7px; color: #334d5b; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.detail-item .chip { margin-left: 4px; }
.manager-card { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; padding: 16px 18px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--bg); }
.mc-icon { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 31px; height: 31px; border-radius: 7px;
  color: #788b98; }
.mc-main { flex: 1; min-width: 0; }
.manager-card .kanri { margin: 0; font-size: 15px; line-height: 1.7; }
.mc-sub { margin-top: 2px; color: var(--muted); font-size: 14px; }
.mc-sub .tel { color: var(--ink); font-variant-numeric: tabular-nums; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 15px; }
.form-grid .field { margin: 0; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field.check { flex-direction: row; align-items: center; gap: 8px; align-self: end; min-height: 40px; color: var(--ink); font-size: 14px; }
.field.check input { flex: none; width: 16px; margin: 0; }
.field textarea { min-height: 90px; resize: vertical; }
.req { margin-left: 6px; padding: 2px 5px; border-radius: 3px; background: var(--accent-soft); color: var(--accent-text); font-size: 11px;
  font-style: normal; font-weight: 500; }
.checkform { margin: 0; }
.checkform .alert { margin: 16px 0 0; font-size: 13px; }
.checkform button.nojs { margin-top: 14px; }
.dpane .discard { margin-top: 10px; }
.rows tr[data-room]:focus { outline: none; }
.rows tr[data-room]:focus-visible { outline: 3px solid #c56a08; outline-offset: -3px; }
.pending { margin-top: 26px; padding-top: 4px; border-top: 1px solid var(--line); }
.pending .quick { display: flex; gap: 8px; margin: 0 0 12px; }
.pending .quick input[name=note] { flex: 1; min-width: 0; }
.dpane .links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 18px; font-size: 13px; }
.sitebox { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; font-size: 13px; }
.kanriedit { margin-top: 20px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fafbfc; }
.kanriedit > summary { padding: 12px 15px; font-size: 14px; font-weight: 600; }
.kanriedit[open] > summary { border-bottom: 1px solid var(--line); }
.kanriform { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 15px; margin: 0; padding: 15px; }
.kanriform .field { margin: 0; min-width: 0; }
.kanriform .kf-save { display: flex; grid-column: 1 / -1; justify-content: flex-end; }
.checkpoints { margin: 0 0 12px; padding: 16px 18px; border: 1px solid #efddc7; border-radius: var(--radius); background: #fffaf3; }
.checkpoints h4 { margin: 0 0 10px; color: var(--accent-text); }
.checkpoints ol { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.checkpoints li { display: flex; gap: 12px; }
.checkpoints li b { font-size: 14px; }
.checkpoints .sub { color: #6e5f4c; font-size: 13px; }
.checkpoints .no { display: flex; flex: none; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%;
  background: #ece4d8; color: #6e5f4c; font-size: 12px; font-weight: 700; }
.checkpoints .no.hot { background: var(--accent); color: var(--on-accent); }
.checkpoints details { margin-top: 12px; }
.checkpoints p.sub { margin: 0; }
.checkpoints p.ref { margin-top: 12px; color: var(--muted); font-size: 12px; }
.memo { margin: 6px 0; padding: 8px 10px; border-radius: 6px; background: var(--accent-soft); color: #7a3d05; font-size: 13px; }
.kanri { margin: 4px 0; font-size: 14px; font-weight: 700; }
.card h4 { margin: 20px 0 8px; font-size: 15px; }
.tl { margin: 6px 0 12px 4px; padding-left: 12px; border-left: 2px solid var(--line); font-size: 13px; }
.tl div { margin: 3px 0; }
.tl em { margin-right: 8px; color: var(--muted); font-style: normal; font-variant-numeric: tabular-nums; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 8px 0; font-size: 13px; }
.kv span { color: var(--muted); }
.big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin: 12px 0 6px; }
.big b { font-size: 26px; }
.cmp { width: 100%; margin: 4px 0 10px; border-collapse: collapse; font-size: 13px; }
.cmp th, .cmp td { padding: 5px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp th { background: var(--soft); color: var(--muted); font-weight: 600; }
.cmp tr.hit td { background: var(--sel); }
.cmp tr.hit td.f { color: var(--accent-text); font-weight: 700; }
.cmp tr.ref td { color: var(--muted); }
.cmp .base { font-weight: 700; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.phonefix, .sitemiss { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0; font-size: 13px; }
.phonefix input[name=tel] { width: 140px; }
.webtel { display: inline-block; margin-left: 4px; padding: 0 6px; border: 1px solid var(--accent-line); border-radius: 4px;
  background: var(--accent-soft); color: var(--accent-text); font-size: 12px; font-weight: 700; }

/* the room page: ① 空室確認 and ② 指摘 side by side */
.attrs { margin: 0 0 14px; }
.steps { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 16px; }
.step h2 { margin: 0 0 10px; font-size: 17px; }
.who { margin-bottom: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.who-name { font-size: 15px; font-weight: 700; }
.who-tel { color: var(--accent-text); font-size: 20px; font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; }
.who-sites { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 4px; color: var(--muted); font-size: 13px; }
.who-sites i { font-style: normal; }
.roomcheck { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; }
.roomcheck label { display: flex; flex-direction: column; gap: 3px; margin: 0; color: var(--muted); font-size: 13px; }
.roomcheck label.check { flex-direction: row; align-items: center; align-self: end; gap: 6px; color: var(--ink); }
.roomcheck label.check input { width: auto; }
.roomcheck .full { grid-column: 1 / -1; }
.roomcheck input, .roomcheck select { width: 100%; }
.roomcheck .results { display: flex; flex-wrap: wrap; gap: 6px; }
.roomcheck .pill { position: relative; flex-direction: row; }
.roomcheck .pill input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.roomcheck .pill span { display: inline-block; padding: 5px 12px; border: 1px solid #d3dce2; border-radius: 16px; background: var(--panel);
  color: var(--ink); cursor: pointer; }
.roomcheck .pill input:checked + span { border-color: var(--accent); background: var(--accent); color: var(--on-accent); font-weight: 700; }
.roomcheck .pill input:focus-visible + span { outline: 3px solid #c56a08; outline-offset: 2px; }
.step .last { margin-bottom: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.step .done { color: var(--green); font-weight: 700; }
.flow { display: flex; flex-direction: column; gap: 10px; padding-left: 20px; }
.flow li:first-child button { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
details.records { margin-top: 16px; }
details.records > summary { font-weight: 700; }

/* other pages */
.tiles { display: grid; gap: 12px; }
.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 16px 0; }
.tl-label, .tl-sub { color: var(--muted); font-size: 13px; }
.tl-big { margin: 2px 0; font-size: 24px; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; }
.list + p, .list + .hint, .scroll + p { margin-top: 10px; }
.forms { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 14px; }
.checkbox { margin-bottom: 8px; padding: 8px 12px; border-radius: var(--radius); background: var(--soft); }
.help { max-width: 900px; font-size: 14px; line-height: 1.8; }
.help h2 { margin-top: 14px; }
.login input[type=password] { width: 100%; }
.phonecount { margin: 0 0 10px; font-size: 15px; }
.phonecount b { color: var(--accent-text); font-size: 18px; }
.phones input[name=tel] { width: 140px; }
.sitehealth h3 { margin: 0 0 6px; }
.sitehealth .st-bad { color: var(--red); font-size: 13px; }
.sitehealth .st-good { color: var(--green); font-size: 13px; }
.sitehealth table.narrow { width: auto; margin: 6px 0; }
textarea.sample { width: 100%; font-size: 12px; }
.shopstats tr.group th { color: var(--muted); font-size: 12px; text-align: center; }
.detailgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 12px; margin: 12px 0; }
.detailgrid h2 { margin: 0 0 8px; font-size: 15px; }
table.bars { width: 100%; border-collapse: collapse; }
table.bars td { padding: 3px 4px; font-size: 13px; }
table.bars td.lbl { width: 1%; white-space: nowrap; }
table.bars td.num { width: 1%; text-align: right; }
table.bars td.bar span { display: block; min-width: 2px; height: 10px; border-radius: 3px; background: var(--accent); }

/* ---------- narrower screens ---------- */
@media (max-width: 1100px) {
  .page { padding: 18px 22px 30px; }
  .board .list { max-height: none; }
  .steps { grid-template-columns: 1fr; }
  .roomcheck { grid-template-columns: 1fr 1fr; }
  .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 10px; }
  .summary > :nth-child(2) { border-right: 0; }
}
@media (max-width: 760px) {
  .sidebar { z-index: 65; width: 214px; padding: 20px 12px 16px; transform: translateX(-100%); visibility: hidden;
    transition: transform .18s ease, visibility .18s; }
  #sw-nav:checked ~ .sidebar { transform: none; visibility: visible; box-shadow: 8px 0 24px rgba(20, 43, 53, .18); }
  .nav-check { display: block; position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap; }
  #sw-nav:checked ~ .nav-scrim { display: block; position: fixed; inset: 0; z-index: 60; background: rgba(18, 35, 46, .35); }
  .nav-check:focus-visible ~ .shell .menu-btn { outline: 3px solid #c56a08; outline-offset: 2px; }
  .shell { margin-left: 0; }
  .menu-btn { display: inline-flex; }
  .topbar { gap: 10px; padding: 0 16px; }
  .crumb-root, .crumb-sep, .topbar-date { display: none; }
  .gtabs { gap: 20px; padding: 0 16px; }
  .page { padding: 16px 16px 28px; }
  h1, .page-head h1, .pagehead h1 { font-size: 22px; }
  .tiles { grid-template-columns: 1fr; }
  .roomcheck { grid-template-columns: 1fr; }
  table.grid { display: block; overflow-x: auto; }
  table.grid th { position: static; }
  .summary > * { padding: 0 12px; }
  .toolbar { padding: 10px 16px; }
  .toolbar .search { flex-basis: 100%; }
  .tabbar { gap: 20px; padding: 0 16px; }
  .drawer { width: 100%; }                          /* full width, whatever width was dragged on a wider screen */
  .drawer-head { gap: 10px; min-height: 61px; padding: 14px 16px 12px; }
  .drawer-foot { padding: 14px 16px; }
  .drawer-body { padding: 20px 16px 26px; }
  .drawer-tabs { gap: 20px; padding: 0 16px; }
  .drawer-edge { display: none; }
  .dh-name { font-size: 19px; }
  .dh-pos { display: none; }
  .dbtn { width: 34px; height: 34px; }
  .detail-grid { gap: 10px; padding: 14px; }
  .detail-item > strong { font-size: 14px; }
  .form-grid, .kanriform { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .dfoot .small-print { display: none; }
  .dfoot.on { justify-content: flex-end; }
  .dfoot.on .btn { padding-right: 12px; padding-left: 12px; }
  .card.bare-card { padding: 22px 18px 20px; }
  .bare-brand { padding-top: 36px; }
}
@media (max-width: 420px) {
  .summary > * { grid-template-columns: 1fr; }
  .sum-value { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; }
}
@media print {
  .sidebar, .topbar, .gtabs, .nav-check, .nav-scrim, .skip, .noprint, form, .btns, .tabs, .bulk, .drawer, .drawer-backdrop { display: none !important; }
  .shell { margin-left: 0; }
  body { background: #fff; }
  .page { padding: 0; }
  th { position: static !important; }
}

/* ---------- 対応ボード (report mode of board.html) ---------- */
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.card.flush { padding: 0; overflow: hidden; }
.card.boardtop { margin: 0 0 12px; }
.summary a.sum-label { text-decoration: none; }
.summary a.sum-label:hover { color: var(--accent-text); text-decoration: underline; }
.summary .sum-sub a { color: var(--link); text-decoration: none; }
.summary .sum-sub a:hover { text-decoration: underline; }
.boardtop .toolbar { border-bottom: 0; padding-bottom: 6px; }
.boardtop .toolbar .sortsel { margin: 0; }
.filters-btn.on { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-text); }
.filters-btn .count { min-width: 18px; padding: 0 5px; border-radius: 4px; background: var(--accent); color: var(--on-accent); font-size: 12px; text-align: center; }
.filters { display: flex; flex: 1 1 100%; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--soft); }
.filters label { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-size: 13px; white-space: nowrap; }
.filters input.days { width: 64px; min-width: 64px; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 4px 18px 14px; border-bottom: 0; }
.chips > .hint { margin-right: 4px; font-size: 13px; }
.chips .upd { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.chips.tabs.quick a { padding: 4px 11px; border-radius: 6px; font-size: 13px; }
.boardtop + .board .list, .boardtop + .board .bulk:empty { margin-top: 0; }
.board .bulk:empty { display: none; }
.selbar { position: sticky; top: calc(var(--header-h) + 8px); z-index: 8; display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin: 0 0 8px; padding: 8px 12px; border: 1px solid var(--accent-line); border-radius: var(--radius); background: var(--accent-soft);
  color: var(--accent-text); font-size: 14px; }
.selbar b { font-variant-numeric: tabular-nums; }
.rows.report td.pk { width: 1%; white-space: nowrap; text-align: left; }
.rows.report td.pk input.pick { margin: 0 8px 0 0; }
.rows.report td.pk .agecell { margin: 3px 0 0 24px; }
.rows.report td.mk .dear { color: var(--muted); font-weight: 400; }
.rows.report td.mk .cheap { color: var(--green); font-weight: 700; }
.rows tr[data-room] { cursor: pointer; }
@media (max-width: 760px) {
  .chips { padding: 4px 16px 12px; }
  .chips .upd { margin-left: 0; }
}
.toolbar .search input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) { padding-left: 38px; }
.toolbar .search::before { z-index: 1; }


/* ---------- 管理会社調べ (kanri mode of board.html), 電話帳, 取込 ---------- */
.toolbar .upd { color: var(--muted); font-size: 12px; white-space: nowrap; }
.summary .sum-value.muted { font-weight: 700; }
.summary .sum-sub b { color: var(--ink); font-variant-numeric: tabular-nums; }
.board .bulk { padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.board .bulk label { color: var(--ink); }
.board .bulk button.p { border-color: var(--accent); }
.board .bulk #sw-picked { margin-left: auto; color: var(--accent-text); font-weight: 600; }
.rows.kanri th.num a, .rows.kanri th a { color: inherit; text-decoration: none; }
.rows.kanri th a.on { color: var(--accent-text); }
.rows.kanri td.pk { width: 1%; }
.rows.kanri td.co { max-width: 220px; }
.rows.kanri td.site .hint { font-size: 12px; }
.summary.phonesum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pad { padding: 12px 18px; margin: 0; }
.card.flush > .card-head.pad { margin: 0; border-bottom: 1px solid var(--line); }
.card.flush .table-wrap { border: 0; border-radius: 0; }
.card.flush table.grid { border: 0; border-radius: 0; }
details.knowns > summary { padding: 12px 18px; font-weight: 600; }
details.knowns[open] > summary { border-bottom: 1px solid var(--line); }
table.phones input[name=tel] { width: 180px; min-width: 140px; }
@media (max-width: 760px) {
  .board .bulk #sw-picked { margin-left: 0; }
}


/* ---------- the other screens: 掲載の変化・店舗/会社の分析・監視・設定・使い方・物件ページ ---------- */
.summary.s3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.note-line { margin: 10px 2px; font-size: 13px; line-height: 1.8; }
.pad.hint { color: var(--muted); }
label.inl { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-size: 13px; }
.page-head .actions form { margin: 0; }
.page-head .actions select { min-width: 150px; }
.table td { white-space: nowrap; }
.table td.msg { max-width: 720px; white-space: normal; }
.table.narrow { width: auto; min-width: 320px; }
.table td.bn { min-width: 150px; white-space: normal; }
.table td.bn a, .table td > a > b { color: var(--ink); }
.table td.bn a { font-weight: 700; text-decoration: none; }
.table td.bn a:hover { color: var(--accent-text); text-decoration: underline; }
.table td.bn .sub { margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.table tr.off td { color: var(--muted); }
.card.flush > .table-wrap + .hint, .card.flush > p.pad { margin: 0; }
.card.flush > .hint.pad { border-bottom: 1px solid var(--line); }
.card-head > div > .sub-title { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

/* 店舗分析: the column-set switch (shown only with script) and the sets themselves */
.colset { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.colset[hidden] { display: none; }
.colset button { min-height: 32px; padding: 4px 12px; border-color: var(--line-strong); font-size: 13px; }
.colset button.on { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-text); font-weight: 700; }
.shopstats[data-set="cnt"] [data-g]:not([data-g="cnt"]),
.shopstats[data-set="chg"] [data-g]:not([data-g="chg"]),
.shopstats[data-set="ad"] [data-g]:not([data-g="ad"]) { display: none; }
.shopstats td.store, .shopstats th.store { position: sticky; left: 0; z-index: 3; min-width: 190px; background: var(--panel); box-shadow: 1px 0 0 var(--line); }
.shopstats th.store { z-index: 6; background: var(--soft); }
.shopstats tbody tr:hover td.store { background: var(--hover); }
.shopstats tr.kind-company td, .shopstats tr.kind-own td { background: var(--soft); }
.shopstats tr.kind-ownshop td { background: #f1f8f4; }

.card-head.pad { flex-wrap: wrap; }
.roomcheck .full > .hint { display: block; margin-top: 8px; }

/* forms in cards */
.forms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 14px; }
.forms form.card { margin: 0; }
.toolbar-card { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin: 0 0 12px; }
.toolbar-card .field { margin: 0; }
.toolbar-card .inl-field { flex: 0 1 320px; }
.toolbar-card .hint { align-self: center; }
.narrow-card { max-width: 640px; line-height: 1.8; }
.narrow-card.wide { max-width: 860px; }
.narrow-card h1 { font-size: 19px; }
.hint.spaced, .spaced { margin-top: 14px; }
textarea.sample { display: block; width: 100%; margin: 8px 0; font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
textarea.sample.tall { min-height: 240px; }
.status-line { margin: 0 0 6px; }
.sitehealth .card-head { margin-bottom: 8px; }
.reset-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; }
.sitehealth .table-wrap { margin: 6px 0; }

/* 表示設定 */
.settings { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap: 4px 24px; max-width: 1100px; margin: 0 0 12px; }
.settings .field { margin: 0 0 8px; }
.settings .field.check { align-self: end; min-height: 40px; margin-bottom: 8px; }
.settings fieldset.pw { grid-column: 1 / -1; margin: 8px 0 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.settings fieldset.pw legend { padding: 0 6px; font-weight: 700; }
.pw-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 4px 24px; }
.settings .save-row { grid-column: 1 / -1; padding-top: 8px; }
.card .btns { margin: 8px 0 12px; }

/* 使い方 */
.help-cards { display: grid; gap: 12px; max-width: 900px; }
.help.card h2.card-title { margin: 0 0 8px; }
.help ul, .help ol { margin: 0; padding-left: 22px; }
.help li { margin: 4px 0; }

/* 物件ページ */
.chips-line { margin: 4px 0 0; }
.chips-line:empty { display: none; }

@media (max-width: 1100px) {
  .summary.s3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .summary.s3 > :nth-child(2) { border-right: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .summary.s3 { grid-template-columns: 1fr; row-gap: 10px; }
  .summary.s3 > * { padding-bottom: 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .summary.s3 > :last-child { padding-bottom: 0; border-bottom: 0; }
  .forms { grid-template-columns: 1fr; }
  .toolbar-card .inl-field { flex-basis: 100%; }
  .shopstats td.store, .shopstats th.store { min-width: 140px; }
  .page-head .actions select { min-width: 0; }
}

/* 本部業務「空室確認」で分かった、指摘できる部屋(対応ボードの上の知らせと行のボタン) */
.vc-ready { display: flex; align-items: center; gap: 14px; margin: 0 0 12px; padding: 12px 16px; border-radius: 10px; background: #b91c1c; color: #fff; }
.vc-ready__t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.vc-ready__t b { font-size: 16px; }
.vc-ready__t span { font-size: 13px; }
.vc-ready__go { margin-left: auto; }
.vc-ready__link { color: #fff; font-weight: 700; margin-right: 12px; text-decoration: underline; }
.vc-ready__btn { border: 0; border-radius: 8px; padding: 7px 16px; background: #fff; color: #b91c1c; font-weight: 700; cursor: pointer; }
.rows td.ko .vc-res { margin-top: 6px; padding: 6px 8px; border-radius: 8px; background: #fef2f2; border: 1px solid #f2b8b8; font-size: 12px; color: #991b1b; }
.rows td.ko .vc-res .vc-open { margin-top: 5px; border: 0; border-radius: 6px; padding: 4px 12px; background: #b91c1c; color: #fff; font-weight: 700; cursor: pointer; }
.rows td.ko .vc-note { display: inline-block; margin-top: 4px; font-weight: 700; }
.rows td.ko .vc-unsure { margin-top: 6px; padding: 6px 8px; border-radius: 8px; background: #fff7e6; border: 1px solid #f6dcbc; font-size: 12px; font-weight: 700; }
.rows .vc-cannot { margin: 4px 0; padding: 3px 8px; border-radius: 6px; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; font-size: 12px; font-weight: 700; }
.rows .vc-disputed { margin: 4px 0; padding: 3px 8px; border-radius: 6px; background: #eef2ff; border: 1px solid #c7d2fe; color: #3730a3; font-size: 12px; font-weight: 700; }

/* 店舗分析:どの支店か見分ける電話番号と SUUMO の店舗ページ(利用者 12/1) */
.shopstats .shopid { margin-top: 2px; font-size: 11.5px; font-weight: 400; color: #78716c; }
.vc-ready__err { flex-basis: 100%; font-weight: 700; color: #fde68a; }
.vc-result { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; background: #fef2f2; border: 1px solid #fecaca; }
tr.overdue td { background: #fef2f2; }
.after-sum { font-size: 15px; margin: 0 0 12px; }
.vc-prog { margin: 0 0 12px; padding: 10px 14px; border: 1px solid var(--line2, #e5e7eb); border-radius: 10px; background: #fff; }
.vc-prog summary { cursor: pointer; font-weight: 700; }
.vc-progress { border-collapse: collapse; margin-top: 8px; font-size: 13px; }
.vc-progress th, .vc-progress td { padding: 4px 8px; border-bottom: 1px solid #eee; text-align: right; white-space: nowrap; }
.vc-progress th:first-child, .vc-progress td:first-child { text-align: left; }
.vc-progress tr.sum td { font-weight: 700; }
tr.ready td { background: #fef2f2; }
