:root {
  --bg: #f6f5f2;
  --panel: #fff;
  --ink: #17171a;
  --sub: #6b6862;
  --faint: #8a8780;
  --line: #e6e3dd;
  --hover: #f3f1ec;
  --sub-tag: #2f5d8a;
  --od-tag: #8a5a2f;
  --ok: #0a8a57;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 14px/1.55 "Public Sans", "Noto Sans JP", system-ui, sans-serif; }
button { font: inherit; color: inherit; }
.adm { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }

/* left column */
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 20px 12px 28px; background: var(--panel); border-right: 1px solid var(--line); }
.side a.brand { display: flex; align-items: center; gap: 10px; margin: 0 4px 18px; padding: 4px 6px; background: none; color: var(--ink); }
.side a.brand:hover { background: none; }
.brand .emblem { flex: none; width: 36px; height: 36px; }
.brand .wordmark { display: block; width: 160px; height: auto; }
.brand small { display: block; margin-top: 3px; color: var(--faint); font-size: 12px; font-weight: 500; }
.grp { margin: 18px 10px 6px; font-size: 11px; font-weight: 700; color: var(--faint); letter-spacing: .04em; }
.side a, .side .fold { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: #4a4842; font-weight: 600; text-decoration: none; text-align: left; cursor: pointer; }
.side a svg, .side .fold svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.side a:hover, .side .fold:hover { background: var(--hover); }
.side a[aria-current="page"] { background: var(--ink); color: #fff; }
.side .fold .chev { margin-left: auto; transition: transform .2s; }
.side .fold[aria-expanded="true"] .chev { transform: rotate(90deg); }
.side .fold-body[hidden] { display: none; }
.side .fold-body a { padding-left: 36px; font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.sub { background: var(--sub-tag); }
.dot.od { background: var(--od-tag); }

/* main */
.main { padding: 28px 32px 48px; min-width: 0; outline: none; }
.head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.head h1 { margin: 0; font-size: 22px; font-weight: 700; }
.head .tag { margin-left: 2px; }
.head .act { margin-left: auto; display: flex; gap: 8px; }
.btn { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); font-weight: 600; text-decoration: none; color: var(--ink); cursor: pointer; }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.note { margin: -8px 0 18px; color: var(--faint); font-size: 12px; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; color: #fff; white-space: nowrap; }
.tag.sub { background: var(--sub-tag); }
.tag.od { background: var(--od-tag); }
.tag.draft { background: #b9b5ad; }
.tag.live { background: var(--ok); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; min-width: 0; }
.card small { display: block; color: var(--sub); font-size: 12px; }
.card .big { display: block; margin-top: 4px; font-family: Archivo, sans-serif; font-weight: 700; font-size: 24px; }
.card .split { display: flex; gap: 14px; margin-top: 8px; font-size: 12px; color: var(--sub); }
.card .split span { display: inline-flex; align-items: center; gap: 6px; }
.meter { display: block; height: 6px; margin-top: 10px; border-radius: 6px; background: #eceae4; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--ok); }
.of { display: block; margin-top: 4px; color: var(--faint); font-size: 12px; }
.two { display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px; }
.card h2 { margin: 0 0 10px; font-size: 14px; font-weight: 700; }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; font-weight: 600; color: var(--sub); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.c { display: flex; align-items: center; gap: 10px; min-width: 0; }
.c img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; flex: none; background: #ddd; }
.c b { font-weight: 600; }
.c small { display: block; color: var(--faint); font-size: 12px; }
.tablecard { padding: 4px 8px; overflow-x: auto; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.feed li:last-child { border-bottom: 0; }
.feed time { grid-column: 2; color: var(--faint); font-size: 12px; }
.bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: end; height: 150px; margin-top: 6px; }
.bars .col { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; gap: 2px; }
.bars .col i { display: block; border-radius: 3px; }
.bars .col i.sub { background: var(--sub-tag); }
.bars .col i.od { background: var(--od-tag); }
.bars-x { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 6px; text-align: center; font-size: 12px; color: var(--faint); }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--sub); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.empty { padding: 40px 20px; text-align: center; color: var(--sub); }
.empty b { display: block; margin-bottom: 6px; color: var(--ink); font-size: 15px; }
.tools { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.tools input, .tools select { min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); font: inherit; }
.tools input { flex: 1; min-width: 180px; }
.menu-btn { display: none; }

@media (max-width: 900px) {
  .adm { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 10; left: 0; top: 0; width: 260px; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(0,0,0,.15); }
  .side.open { transform: none; }
  .main { padding: 64px 16px 40px; }
  .menu-btn { display: block; position: fixed; z-index: 11; left: 12px; top: 12px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); font-weight: 700; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two { grid-template-columns: 1fr; }
}
.feed .tag { align-self: start; margin-top: 2px; min-width: 64px; text-align: center; }
.feed li > span:not(.tag) { min-width: 0; overflow-wrap: anywhere; }
