/* HANEHiatari：初期ツール（PDF・CSV）と同じ作り。白い面・細い実線・角丸なし・ツールの色は要所だけ */
:root{--brand:#d97706;--brand-ink:#b45309;--brand-dark:#b45309;--tint:#fdf3e3;--line:#e3e9ef;--border:#dde3ee;--muted:#6b7585}
.page-title{margin:0;padding:13px 22px 12px;background:rgba(255,255,255,.72);border-bottom:1px solid var(--border);font-size:18px;font-weight:800;line-height:1.55;color:#1e2837;letter-spacing:.01em;position:relative;z-index:1}
.page-title .pt-sep{color:var(--brand)}
.ha{position:relative;z-index:1;display:grid;grid-template-columns:330px minmax(0,1fr);gap:0;max-width:1400px;margin:0 auto;border-bottom:1px solid var(--border)}
.ha-side{background:#fff;border-right:1px solid var(--border)}
.ha-side section{padding:12px 16px 14px;border-bottom:1px solid var(--line)}
.ha h2{font-size:14px;font-weight:800;color:var(--brand-ink);margin:0 0 8px}
.ha label.f{display:block;font-size:12px;color:var(--muted);margin-bottom:8px}
.ha label.f span{display:block;margin-bottom:3px}
.ha label.f b{color:var(--brand-ink)}
.ha input[type=number],.ha input[type=date],.ha select{width:100%;font:inherit;font-size:14px;color:#1e2837;border:1px solid #c7cee0;background:#fff;padding:6px 8px;border-radius:0}
.ha .row2{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ha .row3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px}
.ha .hint{font-size:12px;color:var(--muted);line-height:1.7;margin:2px 0 0}
.ha .chips{display:flex;flex-wrap:wrap;gap:6px}
.ha .chips button,.ha .views button{font:inherit;font-size:13px;font-weight:700;padding:5px 12px;border:1px solid #c7cee0;background:#fff;color:#46566a;cursor:pointer;border-radius:0}
.ha .chips button:hover,.ha .views button:hover{border-color:var(--brand);color:var(--brand-ink);background:var(--tint)}
.ha .check{display:flex;gap:8px;align-items:center;font-size:13.5px;font-weight:700;margin-bottom:8px}
.ha-side section.sub{padding-top:10px}
.ha-side section.grp{border-bottom:0;padding-bottom:0}
.ha-side section.off .nbf{display:none}
.ha-side section.off{padding-bottom:6px}
.ha-main{min-width:0;background:#fff}
.stage{position:relative;height:min(62vh,560px);min-height:340px;background:#dfe8f0;border-bottom:1px solid var(--border);overflow:hidden}
.stage canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}
.stage .zoom{position:absolute;right:10px;top:10px;display:flex;flex-direction:column;gap:4px}
.stage .zoom button{width:36px;height:36px;font-size:20px;line-height:1;border:1px solid #c7cee0;background:#fff;color:var(--brand-ink);cursor:pointer;border-radius:0}
.stage .views{position:absolute;left:10px;top:10px;display:flex;gap:4px}
.stage .roomtag{position:absolute;transform:translate(-50%,-100%);background:#fff;border:1px solid #d97706;color:#b45309;font-size:12.5px;font-weight:800;padding:3px 8px;white-space:nowrap;pointer-events:none}
.viewnote{margin:0;padding:6px 16px;font-size:12px;color:var(--muted);border-bottom:1px solid var(--line)}
.timebar{display:flex;gap:14px;align-items:center;padding:12px 16px;border-bottom:1px solid var(--line)}
.timebar .btn{white-space:nowrap}
.timebar .tl{flex:1;display:flex;align-items:center;gap:10px;min-width:0}
.timebar .tl span{font-size:20px;font-weight:800;color:var(--brand-ink);min-width:3.2em;font-variant-numeric:tabular-nums}
.timebar input[type=range]{flex:1;min-width:0;accent-color:var(--brand)}
.now{margin:0;padding:10px 16px;font-size:14px;line-height:1.8;border-bottom:1px solid var(--line)}
.now b{color:#1e2837}
.muted{color:var(--muted)}
.res{padding:14px 16px 18px}
.rl{margin:0 0 18px;border-top:1px solid var(--line)}
.rl>div{display:grid;grid-template-columns:240px 1fr;gap:10px;padding:9px 0;border-bottom:1px solid var(--line);align-items:baseline}
.rl dt{font-size:13px;color:var(--muted);font-weight:700}
.rl dd{margin:0;font-size:16px;font-weight:800;color:#1e2837;font-variant-numeric:tabular-nums}
.rl dd small{display:block;font-size:12.5px;font-weight:400;color:var(--muted);margin-top:2px}
.rl .hl dd{color:var(--brand-ink)}
.tw{overflow-x:auto}
.mt{width:100%;border-collapse:collapse;font-size:13.5px;background:#fff;font-variant-numeric:tabular-nums}
.mt th,.mt td{border:1px solid #dfe5eb;padding:6px 9px;text-align:right;white-space:nowrap}
.mt th{background:var(--tint);color:var(--brand-dark);font-weight:800;text-align:center}
.mt td:first-child{text-align:center;font-weight:700}
.mt tbody tr{cursor:pointer}
.mt tbody tr:hover{background:#fbf7f0}
.mt tr.cur td{background:var(--tint);font-weight:800}
.hg{max-width:1080px;margin:0 auto;padding:6px 18px 40px;position:relative;z-index:1}
.hg table.lvt{width:100%;border-collapse:collapse;font-size:14px;margin:0 0 14px;background:#fff}
@media (max-width:900px){
  .page-title{font-size:14.5px;padding:10px 12px 9px}
  .ha{grid-template-columns:1fr}
  .ha-side{border-right:0;order:2}
  .ha-main{order:1}
  .stage{height:56vh;min-height:300px}
  .timebar{flex-wrap:wrap;padding:10px 12px}
  .timebar .btn{width:100%}
  .rl>div{grid-template-columns:1fr;gap:2px}
  .hg{padding:6px 12px 30px}
}
