/* ============================================================
 * GM確認デモ画面のスタイル
 * 参加者画面と見分けがつくように、上の帯を紫にしている。
 * ============================================================ */

.gm { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; background: var(--surface-quiet); }
html[data-view="gm"] body { background: var(--surface-quiet); }
.gm__bar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  padding: 8px max(12px, calc((100vw - 880px) / 2));
  background: var(--purple-deep); color: var(--white);
  box-shadow: 0 2px 0 0 var(--white), 0 4px 0 0 var(--purple-deep);
}
.gm__bar img { flex: none; }
.gm__name { flex: 1 1 auto; min-width: 0; }
.gm__title { font-family: var(--font-dot); font-size: 22px; line-height: 1.2; }
.gm__sub { font-size: 12px; line-height: 1.3; opacity: .9; }
.gm__main { max-width: 880px; margin: 0 auto; padding: 16px 12px 56px; }
.gm__main > * + * { margin-top: 18px; }

.gm-sec > * + * { margin-top: 10px; }
.gm-sec__head { gap: 8px 16px; }
.gm-sec__title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-family: var(--font-dot); font-weight: 400; font-size: 22px; line-height: 1.3; }
.gm-count { padding: 2px 8px; font-size: 16px; background: var(--ink); color: var(--white); }
.gm-filter { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); }
.gm-filter .input { width: 130px; min-height: 44px; font-family: var(--font-dot); font-size: 18px; text-transform: uppercase; }
.gm-empty { display: flex; align-items: center; gap: 12px; }
.gm-empty img { flex: none; width: 84px; height: 84px; object-fit: contain; }

.reqs { display: grid; gap: 14px; }
.req { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.req > * + * { margin-top: 0; }
.req__code { display: flex; align-items: baseline; gap: 12px; padding: 8px 12px; background: var(--gold-pale); box-shadow: inset 0 0 0 2px var(--gold-deep); }
.req__code span { font-family: var(--font-dot); font-size: 14px; color: var(--gold-deep); }
.req__code b { font-family: var(--font-dot); font-weight: 400; font-size: 46px; line-height: 1.1; letter-spacing: .18em; }
.req__title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-family: var(--font-dot); font-weight: 400; font-size: 20px; line-height: 1.35; }
.req__cond { margin-top: 6px; font-size: 16px; line-height: 1.6; }
.req__cond span { display: inline-block; margin-right: 8px; padding: 2px 6px; font-family: var(--font-dot); font-size: 12px; line-height: 1.3; background: var(--ink); color: var(--white); }
.req__body > * + * { margin-top: 6px; }
.req__actions { display: grid; gap: 8px; }
.req__reject { padding: 10px 12px; background: var(--surface-quiet); box-shadow: inset 0 0 0 2px var(--line); }
.req__reject > * + * { margin-top: 8px; }
.req__reject-title { font-family: var(--font-dot); font-size: 15px; }
.req__other .input { min-height: 44px; font-size: 16px; }

.hists { padding: 4px 12px; }
.hists > * + * { margin-top: 0; }
.hist { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 8px 0; font-size: 14px; }
.hist + .hist { border-top: 2px dotted var(--line); }
.hist__time { font-family: var(--font-dot); font-size: 13px; color: var(--ink-soft); }
.hist__code { font-family: var(--font-dot); font-size: 16px; letter-spacing: .08em; }
.hist__what { flex: 1 1 200px; min-width: 0; }
.hist__what b { font-family: var(--font-dot); font-weight: 400; color: var(--gold-deep); }

@media (min-width: 700px) {
  .req { grid-template-columns: 220px minmax(0, 1fr) 200px; align-items: start; }
  .req__code { flex-direction: column; align-items: flex-start; gap: 2px; }
  .req__reject { grid-column: 1 / -1; }
}
