:root { font: 16px/1.5 system-ui, sans-serif; color: #202844; background: #f5f7fc; --blue: #303670; --line: #dce1ee; }
* { box-sizing: border-box; }
body { margin: 0; }
.mast { background: white; border-bottom: 1px solid var(--line); }
.mast-inner, main { max-width: 1160px; margin: auto; padding: 20px 28px; }
.mast-inner, .brand, .role, .row { display: flex; align-items: center; gap: 14px; }
.mast-inner, .between { justify-content: space-between; }
.brand strong { font-size: 1.2rem; }
.brand small { display: block; color: #59647e; }
.mark { display: grid; place-items: center; background: var(--blue); color: white; width: 44px; height: 44px; border-radius: 12px; font-weight: 700; }
.eyebrow { color: #556184; font-size: .75rem; font-weight: 700; letter-spacing: .09em; }
nav, .actions { display: flex; flex-wrap: wrap; gap: 8px; }
nav { margin-bottom: 24px; }
button, input, select, textarea { font: inherit; }
button, input, select, textarea { border: 1px solid #bbc4da; border-radius: 8px; background: white; color: inherit; padding: 9px 12px; }
button { cursor: pointer; font-weight: 600; }
button:hover { border-color: var(--blue); }
button.primary, nav button[aria-current="page"] { background: var(--blue); border-color: var(--blue); color: white; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #6279cb; outline-offset: 2px; }
h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.2; margin: 0 0 8px; }
h2 { font-size: 1.1rem; margin-top: 0; }
p { margin: 0 0 14px; }
.muted, footer { color: #59647e; }
.panel { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin: 16px 0; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid > .panel { margin: 0; }
form label { display: grid; gap: 5px; }
form .actions { margin-top: 16px; }
textarea { width: 100%; resize: vertical; }
.table-wrap { overflow: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; }
td, th { padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: #495779; font-size: .85rem; }
.pill { display: inline-block; white-space: nowrap; background: #edf0fd; color: #35448a; border-radius: 99px; padding: 4px 10px; font-size: .82rem; font-weight: 700; }
.pill.accepted { background: #e2f4eb; color: #1b6040; }
.pill.returned { background: #fff0e3; color: #88471d; }
.checkpoint-picker { margin-bottom: 16px; }
.remark { margin-top: 16px; }
.remark summary { color: #a52b36; font-weight: 600; cursor: pointer; padding: 8px 0; }
.remark p { white-space: pre-wrap; margin-top: 8px; }
.checkpoint-picker button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: white; }
.photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.photo-group { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 10px 0; }
.slot { display: grid; place-items: center; aspect-ratio: 1.45; border: 1px dashed #bac5e1; border-radius: 6px; color: #5b6791; }
.slot.filled { background: #e8edf9; border-style: solid; }
#status:not(:empty) { padding: 9px 12px; margin-bottom: 14px; background: #e6f2ed; border-radius: 8px; }
footer { margin-top: 26px; font-size: .85rem; }
@media (max-width: 680px) {
  .mast-inner, main { padding: 15px; }
  .mast-inner, .row { flex-wrap: wrap; }
  .grid, .photos { grid-template-columns: 1fr; }
  .panel { padding: 16px; }
}
