:root{font-family:system-ui,"Noto Sans JP",sans-serif;color:#202020;background:#f7f7f5;font-size:18px;line-height:1.75;--red:#a00}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer;border:1px solid #696969;border-radius:6px;padding:.55rem .9rem;font-weight:700;background:white;color:#222}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #176fbb;outline-offset:3px}.top{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:14px max(20px,calc((100vw - 1420px)/2));background:#fff;border-bottom:4px solid var(--red)}.top>div{display:flex;align-items:baseline;gap:1rem}.brand{font-weight:800;color:var(--red)}h1{font-size:1.5rem;margin:0}h2{font-size:1.3rem;line-height:1.5;margin:.7rem 0}p{margin:.7rem 0}main{max-width:1460px;margin:auto;padding:18px 24px 40px}.intro{max-width:62em}.login{max-width:540px;margin:45px auto;background:#fff;padding:28px;border-radius:8px}.login form{display:grid;gap:.7rem}.primary{background:var(--red);border-color:var(--red);color:white}.warning{background:#fff0d6;color:#593400;border-color:#8e5b13}.quiet{background:#fff}.toolbar{display:flex;align-items:end;gap:1rem;flex-wrap:wrap;padding:16px 0;border-top:1px solid #aaa;border-bottom:1px solid #aaa}.toolbar>div:first-child{flex:1;min-width:260px}label{display:block;font-weight:700}select,input[type=password],textarea{width:100%;padding:.55rem .7rem;border:1px solid #777;border-radius:5px;background:#fff;color:#202020}select{max-width:100%}.toolbar p{margin:0 0 .55rem;min-width:180px}.stepnav{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:15px 0}.stepnav p{text-align:center;margin:0;font-weight:700}.review-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,1fr);gap:26px}.image-panel{background:#e6e6e2;padding:14px;align-self:start;text-align:center;border-radius:7px}.image-panel>p{font-size:16px;margin:0 0 10px;overflow-wrap:anywhere}.image-button{width:100%;padding:0;border:0;background:white;line-height:0}.image-button img{max-width:100%;max-height:70vh;object-fit:contain;width:auto;height:auto}.image-panel a{display:block;color:#075eab;text-decoration:underline;font-size:16px;padding-top:10px}.review-panel{background:#fff;padding:22px;border-radius:7px;min-width:0;overflow-wrap:anywhere}.badge{font-size:16px;font-weight:700;color:#7b0808}.review-panel>p{white-space:pre-wrap}fieldset{border:0;border-top:1px solid #aaa;margin:22px 0;padding:14px 0 0}legend{font-weight:800;padding-right:10px}fieldset label{font-weight:500;margin:.6rem 0;display:flex;align-items:flex-start;gap:.6rem}input[type=checkbox]{width:22px;height:22px;margin:6px 0 0;flex:none;accent-color:var(--red)}.save-buttons{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}#save-state{font-size:16px;font-weight:700;min-height:1.8em}.error{padding:12px;background:#fff1ee;border:2px solid #ac1f13;color:#7b130b}.saved{color:#146032}dialog{width:min(96vw,1400px);max-height:95vh;border:0;padding:16px;border-radius:7px}dialog::backdrop{background:#000c}dialog button{display:block;margin:0 0 12px auto}dialog img{display:block;width:100%;height:auto}[hidden]{display:none!important}@media(max-width:760px){:root{font-size:16px}.top{padding:12px 16px}.top>div{gap:.6rem}h1{font-size:1.25rem}.top button{font-size:14px}main{padding:12px 14px 28px}.review-layout{grid-template-columns:1fr;gap:15px}.toolbar{gap:10px}.toolbar>div:first-child{min-width:100%}.toolbar p{font-size:16px}.review-panel{padding:18px}.stepnav{gap:6px}.stepnav button{padding:.5rem .6rem;font-size:15px}.image-button img{max-height:65vh}.login{margin:25px 14px;padding:22px}.save-buttons button{flex:1;min-width:130px}}
.screenshot-tools{text-align:left}.edit-actions{display:flex;flex-wrap:wrap;gap:.4rem}.edit-actions button[aria-pressed=true]{background:#a00;color:white;border-color:#a00}#edit-hint{font-size:16px}.screenshot-canvas{background:#fff;line-height:0;padding:0}.screenshot-canvas canvas{width:100%;height:auto;display:block;cursor:zoom-in}#edit-canvas[data-mode=mask],#edit-canvas[data-mode=crop]{cursor:crosshair;touch-action:none}#zoom-canvas{display:block;width:100%;height:auto}
.annotation-options,.annotation-fields{display:flex;flex-wrap:wrap;gap:.4rem .8rem;align-items:center;margin:.7rem 0}.annotation-options label{font-size:16px}.annotation-options input,.annotation-fields input{width:6rem;padding:.3rem;border:1px solid #777;border-radius:4px}.annotation-fields label{display:grid;font-size:16px}.annotation-list{margin-top:1rem}.annotation-list select{max-width:25rem}.annotation-list .edit-actions{margin-top:.6rem}#edit-canvas[data-mode=frame],#edit-canvas[data-mode=arrow],#edit-canvas[data-mode=move]{cursor:crosshair;touch-action:none}
#edit-canvas[data-mode=mask-select]{cursor:move;touch-action:none}.bulk-tools{display:flex;align-items:center;gap:.4rem 1rem;flex-wrap:wrap}.bulk-tools p{font-size:16px}.bulk-tools p:empty,#bulk-error:empty{display:none}#bulk-dialog{max-width:42rem}#bulk-dialog ul{max-height:45vh;overflow:auto;overflow-wrap:anywhere}#bulk-dialog .edit-actions button{margin:0;display:inline-block}
#owner-panel {margin:1rem 0}
#owner-state {white-space:pre-wrap;overflow-wrap:anywhere;font-weight:700}
#owner-select-label {padding:.6rem 0}
#owner-actions {margin:.8rem 0}
.review-read-only .screenshot-tools button:not(#mode-view),
.review-read-only .screenshot-tools .annotation-list {display:none}
.review-read-only .review-panel > fieldset,
.review-read-only .review-panel > label[for="comment"],
.review-read-only #comment,
.review-read-only .review-panel > .save-buttons,
.review-owner-role .review-panel > fieldset,
.review-owner-role .review-panel > label[for="comment"],
.review-owner-role #comment,
.review-owner-role .review-panel > .save-buttons {display:none}
#save-owner-edit {margin:.4rem 0 .8rem}
#zoom-content {margin:0;cursor:zoom-out}

.screenshot-layout {
  --editor-sidebar-width: 392px;
  --editor-rule: #d3d5d3;
  --editor-paper: #fafaf9;
  display: grid;
  grid-template-columns: minmax(0,1fr) var(--editor-sidebar-width);
  width: 100%;
  height: 100dvh;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #2c3033;
  font-size: 16px;
  line-height: 1.5;
}
.editor-viewport {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #afb8bd #2c3033;
}
.editor-viewport:focus-visible {outline-offset: -3px}
.editor-stage {
  display: grid;
  place-items: center;
  width: max-content;
  min-width: 100%;
  min-height: 100%;
}
.editor-image-source {display: none}
.screenshot-layout .screenshot-canvas {padding: 0}
.screenshot-layout #edit-canvas {max-width: none}

.editor-sidebar {
  grid-column: 2;
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto;
  min-width: 0;
  min-height: 0;
  border-inline-start: 1px solid var(--editor-rule);
  background: var(--editor-paper);
}
.editor-sidebar > .top {padding: 9px 14px;border-bottom: 1px solid var(--editor-rule)}
.editor-sidebar > .top > div {gap: .55rem}
.editor-sidebar h1 {font-size: 20px;white-space: nowrap}
.editor-sidebar .brand {font-size: 14px;white-space: nowrap}
.editor-sidebar button {padding: 6px 8px;line-height: 1.35}
.editor-sidebar .top button {font-size: 14px}
.editor-scroll {min-height: 0;min-width: 0;padding: 9px 14px 14px;overflow: auto;overscroll-behavior: contain}
.editor-sidebar .toolbar {display: grid;grid-template-columns: minmax(0,1fr) minmax(0,120px);gap: 6px 8px;padding: 0 0 7px;border: 0}
.editor-sidebar .toolbar > div:first-child {min-width: 0}
.editor-sidebar .toolbar label {font-size: 14px;margin-bottom: 2px}
.editor-sidebar select {padding: 5px 7px;font-size: 15px}
.editor-sidebar #progress {grid-column: 1/-1;display: flex;flex-wrap: wrap;gap: 0 8px;min-width: 0;margin: 0;color: #3e474a;font-size: 14px}
.editor-sidebar #progress span {white-space: nowrap}
#editor-navigation {padding-bottom: 6px;border-bottom: 1px solid var(--editor-rule)}
.editor-sidebar .stepnav {gap: 4px;margin: 0 0 4px}
.editor-sidebar .stepnav button {font-size: 14px;white-space: nowrap}
#editor-navigation #image-meta {margin: 0;color: #3e474a;font-size: 14px;overflow-wrap: anywhere}
.editor-zoom {display: flex;align-items: center;justify-content: space-between;gap: 6px;margin: 9px 0}
.editor-zoom span {font-weight: 700}
.editor-zoom output {min-width: 3ch;text-align: center;font-variant-numeric: tabular-nums}
.editor-zoom button {min-width: 32px}
.editor-tool-area {display: grid;grid-template-columns: minmax(0,1fr) 102px;align-items: start;gap: 10px}
.editor-tool-area .edit-actions {display: grid;grid-template-columns: repeat(2,minmax(0,1fr));gap: 5px}
.editor-tool-area button {min-width: 0;font-size: 14px}
.editor-tool-area #reset-edit {grid-column: 1/-1}
.editor-tool-area #edit-hint {margin: 7px 0;font-size: 15px;line-height: 1.5}
.editor-tool-area .annotation-options,.editor-tool-area .annotation-fields {gap: 5px 8px}
.editor-tool-area .annotation-options label,.editor-tool-area .annotation-fields label {font-size: 14px}
.editor-tool-area .annotation-options input,.editor-tool-area .annotation-fields input {width: 65px;padding: 3px}
.editor-tool-area .annotation-list {margin-top: 9px}
.editor-tool-area .annotation-list .edit-actions {grid-template-columns: 1fr}
.editor-overview {text-align: center}
.editor-overview h2 {margin: 0 0 4px;font-size: 15px}
.editor-overview p {margin: 5px 0;font-size: 13px;color: #3e474a}
.editor-overview #editor-overview-jump {position: relative;display: inline-block;padding: 0;line-height: 0;border-radius: 0;cursor: crosshair}
.editor-overview canvas {display: block;max-width: 100%}
#editor-overview-range {position: absolute;border: 2px solid #1b6ab5;pointer-events: none}
.editor-sidebar .review-panel {padding: 0;margin-top: 7px;background: transparent}
.editor-sidebar .review-panel textarea {display: block;padding: 6px;font-size: 16px}
.editor-sidebar .badge,.editor-sidebar .intro,#bulk-hint {font-size: 15px}
.editor-sidebar #owner-panel {margin: 9px 0}
.editor-sidebar #owner-state {margin: 0 0 6px}
.editor-sidebar #owner-actions {margin: 0}

.editor-footer {
  z-index: 1;
  max-height: min(44dvh,290px);
  min-height: 0;
  overflow: auto;
  padding: 7px 14px 9px;
  border-top: 1px solid var(--editor-rule);
  background: #fff;
}
.editor-footer fieldset {margin: 0;padding: 0;border: 0}
.editor-footer legend {position: absolute;width: 1px;height: 1px;overflow: hidden;clip-path: inset(50%)}
.editor-footer fieldset label,.editor-footer #owner-select-label {display: flex;align-items: flex-start;gap: 7px;margin: 0;padding: 0;font-weight: 700}
.editor-footer input[type=checkbox] {width: 19px;height: 19px;margin: 2px 0 0}
.editor-footer #save-state,.editor-footer #bulk-status {min-height: 0;margin: 3px 0;font-size: 14px;overflow-wrap: anywhere}
.editor-footer #save-state:empty,.editor-footer #bulk-status:empty {display: none}
.editor-footer .error {padding: 3px 5px;border-width: 1px}
.editor-footer .save-buttons {gap: 6px;margin-top: 5px}
.editor-footer .save-buttons button {flex: 1 1 auto;min-width: 0}
.editor-footer .editor-main-actions button {font-size: 16px}
.editor-footer #open-bulk {background: var(--red);border-color: var(--red);color: #fff}
.editor-footer #save-ok {background: #fff;border-color: #696969;color: #222}
.editor-footer #save-owner-edit {margin: 0}
.editor-footer:not(.editor-can-approve) #editor-single-actions > .save-buttons:not(.editor-single-buttons),
.editor-footer:not(.editor-can-approve) #save-owner-edit,
.review-owner-role #editor-checks fieldset,
.review-owner-role .editor-single-buttons,
.review-read-only #editor-checks fieldset,
.review-read-only .editor-single-buttons,
.review-read-only #save-pending,
.editor-no-image #editor-checks,
.editor-no-image #editor-main-actions,
.editor-no-image #editor-single-actions {display: none}

.exclusion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
}
.exclusion-actions button {font-size: 16px}
#exclusion-summary, #exclusion-reason {white-space: pre-wrap;overflow-wrap: anywhere}
#exclusion-panel {border-top: 1px solid #ccc}
#exclusion-dialog {max-width: 34rem;padding: 1.25rem}
#exclusion-dialog .edit-actions {justify-content: flex-end}
#exclusion-dialog .edit-actions button {display: inline-block;margin: 0}
#exclusion-reason-presets {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: .4rem 0 .6rem;
}
#exclusion-reason-presets button {margin: 0;padding: .4rem .75rem}
#exclusion-file {font-weight: 700;overflow-wrap: anywhere}
#exclusion-error {color: #7b130b}

@media (max-width: 850px) {
  .screenshot-layout {display: flex;flex-direction: column;height: auto;min-height: 100dvh;overflow: visible;background: var(--editor-paper)}
  .editor-sidebar,.editor-scroll {display: contents}
  .editor-sidebar > .top {order: 0}
  .editor-sidebar .toolbar {order: 1;padding: 8px 12px}
  #editor-navigation {order: 2;padding: 0 12px 7px}
  .editor-viewport {order: 3;height: min(60dvh,580px);background: #2c3033}
  .screenshot-layout #workspace,.editor-sidebar #empty,.editor-sidebar .intro,.editor-sidebar #load-error {order: 4;padding: 0 12px}
  .editor-footer {order: 5;position: sticky;bottom: 0;max-height: 48dvh;padding: 7px 12px}
  .editor-tool-area {grid-template-columns: minmax(0,1fr) minmax(74px,102px)}
  .editor-overview #editor-overview-jump {max-width: 100%}
}

.top.review-header { position: relative; z-index: 2; flex-wrap: nowrap; gap: .65rem; }
.top .review-header-title { min-width: 0; white-space: nowrap; }
.review-header-title h1 { font-size: clamp(17px, 4.25vw, 20px); line-height: 1.3; }
.review-header-actions a { color: #850015; font-size: 15px; font-weight: 700; white-space: nowrap; padding: .3rem .12rem; }
.review-menu { flex: 0 0 auto; position: relative; }
.review-menu summary {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  list-style: none;
  border: 1px solid #696969;
  border-radius: 6px;
  background: #fff;
  color: #222;
  cursor: pointer;
}
.review-menu summary::-webkit-details-marker { display: none; }
.review-menu[open] summary { background: #f4eeee; }
.review-menu-icon { width: 18px; height: 2px; border-radius: 1px; background: currentColor; box-shadow: 0 -5px currentColor, 0 5px currentColor; }
.review-header-actions a:focus-visible,
.review-menu summary:focus-visible { outline: 2px solid #850015; outline-offset: 2px; }
.review-menu:not([open]) .review-menu-panel { display: none; }
.review-menu-panel {
  position: absolute;
  inset-inline-end: 0;
  inset-block-start: calc(100% + 5px);
  width: min(218px, calc(100vw - 32px));
  margin: 0;
  padding: 4px;
  max-height: calc(100dvh - 74px);
  overflow-y: auto;
  border: 1px solid #696969;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 3px 8px #2222;
}
.review-menu-panel form { margin: 0; }
.top .review-menu-panel a,
.top .review-menu-panel button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 0;
  border-radius: 3px;
  background: #fff;
  color: #222;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  text-align: start;
  text-decoration: none;
  white-space: nowrap;
}
.top .review-menu-panel a:hover,
.top .review-menu-panel button:hover { background: #f4eeee; }
.top .review-menu-panel a:focus-visible,
.top .review-menu-panel button:focus-visible { outline: 2px solid #850015; outline-offset: -2px; }
@media (max-width: 360px) {
  .review-header-title .brand { display: none; }
}

.password-settings { width: min(calc(100% - 2rem), 560px); }
.password-settings h2 { margin: .55rem 0 .2rem; }
.password-settings select { width: 100%; border: 1px solid #777; border-radius: 4px; background: #fff; padding: .5rem; margin-bottom: .9rem; }
.password-settings form p { margin: .25rem 0 .9rem; }
.password-settings a { color: #850015; }
.password-notice { color: #174931; background: #eff7f0; padding: .6rem .8rem; border-radius: 4px; }
