:root {
  color-scheme: light;
  --ink: #193d5b;
  --body: #384e5e;
  --blue: #126293;
  --line: #c6dce8;
  --paper: #fff;
  font: 100%/1.65 "Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;
}
* { box-sizing: border-box; }
body { margin:0; color:var(--body); background:#fbfaf6; }
img { display:block; max-width:100%; height:auto; }
a { color:var(--blue); text-underline-offset:.22em; }
button,input { font:inherit; }
button { cursor:pointer; }
a:focus-visible,button:focus-visible,input:focus-visible { outline:3px solid #1e6f99; outline-offset:4px; }
[hidden] { display:none !important; }
.masthead { display:grid; place-items:center; padding:11px; background:#b6dff6 url("/assets/masthead-sky.webp") center 46%/cover; border-bottom:1px solid #9dc7de; }
.masthead img { width:clamp(205px,22vw,290px); }
.shell { width:min(980px,calc(100% - 48px)); margin:auto; padding-bottom:54px; }
.crumb { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:20px 0 24px; font-size:.875rem; }
.intro { margin-bottom:24px; }
.eyeline, .status-label { font-size:.875rem; font-weight:700; margin:0; }
.eyeline { color:#28658a; letter-spacing:.05em; }
h1,h2 { color:var(--ink); line-height:1.32; }
h1 { margin:6px 0; font-size:clamp(1.85rem,4vw,2.65rem); }
h2 { font-size:clamp(1.25rem,2.8vw,1.6rem); margin:0 0 10px; }
p { margin:8px 0 12px; }
.switcher { display:flex; flex-wrap:wrap; align-items:center; gap:5px; margin:0 0 16px; }
.switcher span { font-size:.875rem; font-weight:700; margin-right:6px; }
.switcher button { padding:7px 16px; border:1px solid #99b7c8; border-radius:999px; background:white; color:var(--ink); font-weight:650; }
.switcher button[aria-pressed=true] { background:#214f70; color:white; border-color:#214f70; }
.panel { background:white; border:1px solid var(--line); border-radius:18px; box-shadow:0 4px 16px #274c6810; overflow:hidden; }
.work-head { display:flex; align-items:center; gap:16px; padding:14px 24px; background:#f0f8fc; border-bottom:1px solid var(--line); }
.work-head img { width:80px; height:54px; border-radius:6px; object-fit:cover; }
.work-head h2 { margin:0; }
.issued-layout,.public-layout { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); align-items:center; gap:clamp(20px,3vw,36px); padding:clamp(18px,3vw,32px); }
.mark-display { background:#f9f4ea; border:1px solid #e8dfca; border-radius:12px; margin:0; padding:clamp(16px,3vw,30px); text-align:center; }
.mark-display img { width:100%; }
.mark-display figcaption,.muted,.sample-note { color:#516477; font-size:.9rem; }
.mark-display figcaption { margin-top:8px; }
.status-label { display:inline-block; border-radius:8px; padding:3px 10px; margin-bottom:9px; color:#205f47; background:#e2f3e9; }
.status-label.waiting { background:#e9f4fc; color:#235878; }
.status-label.asking { background:#fff0d9; color:#733e19; }
.stage-content { padding:clamp(22px,4vw,42px); max-width:760px; }
.record { margin:16px 0; }
.record>div { display:flex; align-items:baseline; flex-wrap:wrap; gap:2px 18px; padding:8px 0; border-bottom:1px solid #dfebf1; }
.record dt { font-size:.9rem; font-weight:600; }
.record dd { margin:0; color:var(--ink); font-weight:bold; }
.number,.record strong { font:700 1.15rem/1.4 ui-monospace,Consolas,monospace; }
.action-row { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.action { display:inline-flex; align-items:center; justify-content:center; padding:9px 15px; min-height:44px; font-weight:700; font-size:.94rem; border-radius:10px; text-decoration:none; color:white; background:var(--blue); border:1px solid var(--blue); }
.action.secondary { color:var(--blue); background:#fff; }
.action:hover,.switcher button:hover { box-shadow:0 0 0 2px #8cb9ca; }
.text-link { display:inline-block; margin-top:15px; font-weight:650; }
.feedback { font-size:.9rem; }
.feedback:empty { display:none; }
.feedback input { width:100%; color:var(--ink); }
.public-layout { grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr); margin-bottom:16px; }
.public-details p:last-child { margin-bottom:0; }
.badge-thumb { width:min(100%,260px); margin:auto; }
.poster { width:100%; border-radius:10px; }
.sample-note { margin-top:16px; }
@media(max-width:680px) {
  .shell { width:calc(100% - 28px); }
  .crumb { margin:14px 0 20px; }
  .issued-layout,.public-layout { grid-template-columns:1fr; }
  .mark-display { padding:12px; }
  .mark-display img { max-width:230px; margin:auto; }
  .work-head { padding:12px 16px; }
  .switcher button { padding:6px 11px; }
  .switcher { gap:5px; }
}
