:root { --bg: #f5f6f8; --panel: #fff; --line: #d9dee5; --text: #1d2733; --muted: #6b7684; --accent: #1f5fbf; --subtle: #e9edf2; --warn: #b5470b; }
[hidden] { display: none !important; }
* { box-sizing: border-box; }
body { margin: 0; font-family: "Noto Sans JP", system-ui, sans-serif; background: var(--bg); color: var(--text); }
.top { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: #13233f; color: #fff; }
.top .brand { color: #fff; font-weight: 700; text-decoration: none; }
.top .who { font-size: 13px; opacity: .85; }
.top .ghost { color: #fff; border-color: #ffffff55; }
.sp { flex: 1; }
.page { padding: 16px; max-width: 1100px; margin: 0 auto; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin-bottom: 14px; }
.card.narrow { max-width: 460px; margin: 40px auto; }
.card h2 { margin: 0 0 4px; font-size: 18px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 6px 0; }
input, select, textarea { font: inherit; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
#email { flex: 1; min-width: 0; }
textarea { width: 100%; resize: vertical; }
.btn { border: 0; border-radius: 6px; padding: 8px 14px; background: var(--accent); color: #fff; font: inherit; cursor: pointer; }
.ghost { border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; background: transparent; color: var(--text); font: inherit; cursor: pointer; }
.hint { color: var(--muted); font-size: 13px; }
.bad { color: var(--warn); }
.files { list-style: none; padding: 0; margin: 8px 0 0; }
.files li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.tag { display: inline-block; font-size: 12px; padding: 0 7px; border-radius: 10px; background: var(--subtle); margin-right: 4px; }
.tag:empty { display: none; }
.tag.fix { background: #f8d7da; color: #842029; } .tag.req { background: #fff3cd; color: #664d03; } .tag.ok { background: #d1e7dd; color: #0f5132; }
.filepage { max-width: none; display: grid; grid-template-columns: 1fr 380px; gap: 12px; height: calc(100dvh - 48px); padding: 12px; }
.stage { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; min-height: 300px; }
.canvas { position: absolute; inset: 0; }
.loading { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #fffd; padding: 10px 16px; border-radius: 6px; }
.stagebar { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 8px; align-items: center; background: #fffc; padding: 4px 8px; border-radius: 6px; }
.side { display: flex; flex-direction: column; min-height: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.filehead h2 { margin: 4px 0; font-size: 18px; }
.comments { flex: 1; overflow: auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 8px 0; padding: 4px 0; }
.comments .c { padding: 8px 2px; border-bottom: 1px dashed var(--line); }
.comments .c.other { opacity: .6; }
.comments .meta { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.bigstamp { font-size: 22px; margin-right: 6px; }
.pinlink { margin-top: 4px; font-size: 12px; padding: 2px 8px; }
.stamps { display: flex; gap: 4px; }
.stamp { border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 2px 7px; font-size: 18px; cursor: pointer; }
dialog { border: 1px solid var(--line); border-radius: 8px; padding: 16px 20px; min-width: 280px; }
dialog label { display: block; margin: 8px 0; }
.toast { position: fixed; right: 16px; bottom: 16px; background: #13233f; color: #fff; padding: 8px 14px; border-radius: 6px; }
@media (max-width: 860px) { .filepage { grid-template-columns: 1fr; height: auto; } .stage { height: 55vh; } .side { min-height: 50vh; } }
.tl { position: absolute; left: 12px; right: 12px; bottom: 52px; background: #fffe; border-radius: 8px; padding: 6px 12px; box-shadow: 0 1px 4px #0002; }
.tl input[type=range] { width: 100%; padding: 0; border: 0; }
.ticks { display: flex; justify-content: space-between; font-size: 12px; }
.ticks span { flex: 1; text-align: center; cursor: pointer; }
.ticks span.on { font-weight: 700; color: var(--accent); }
.leg { display: inline-block; width: 11px; height: 11px; border-radius: 3px; vertical-align: -1px; margin: 0 3px 0 6px; }
.dlist { max-height: 140px; overflow: auto; font-size: 13px; border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; }
.dlist div { padding: 2px 0; cursor: pointer; }
.dlist div.rm { cursor: default; color: var(--muted); text-decoration: line-through; }
