/* Design review ("对图"): three panes - projects and versions, the picture, marks / comments / confirmation. */
.tabs { display: flex; gap: 4px; margin-left: 28px; }
.tabs button { border: 0; background: transparent; padding: 8px 18px; border-radius: 9px; font-size: 15px; font-weight: 700;
  color: #6b7789; cursor: pointer; }
.tabs button:hover { background: #eef2f8; }
.tabs button.on { background: #e8f1fd; color: #1a6fd4; }
.tabs button[hidden] { display: none; }
.note { color: #8592a5; font-size: 13px; text-align: center; padding: 14px 10px; line-height: 1.7; }
.tab { display: none; }
.tab.on { display: block; }

.review { display: grid; grid-template-columns: 270px minmax(0, 1fr) 340px; gap: 14px; padding: 0 20px 20px;
  height: calc(100vh - 58px - 20px - 22px); box-sizing: border-box; min-height: 520px; }
#tab-review { height: calc(100vh - 58px); overflow: hidden; box-sizing: border-box; }
.pane { background: #fff; border: 1px solid #e3e8f0; border-radius: 12px; display: flex; flex-direction: column;
  min-height: 0; overflow: hidden; }
.pane h3 { margin: 0; padding: 12px 14px 8px; font-size: 14px; color: #4a5568; }
.pane .body { flex: 1; min-height: 0; overflow: auto; padding: 0 8px 8px; }
.pane .foot { padding: 10px 12px; border-top: 1px solid #edf1f7; }

.btn { border: 1px solid #cfd8e6; background: #fff; color: #1f2a3a; border-radius: 8px; padding: 7px 12px; font-size: 14px;
  cursor: pointer; white-space: nowrap; width: auto; }
.btn:hover { background: #f3f6fb; }
.btn.primary { background: #1a6fd4; border: 1px solid #1a6fd4; color: #fff; font-weight: 600; width: auto; padding: 7px 12px;
  font-size: 14px; border-radius: 8px; }
.btn.primary:hover { background: #1560ba; }
.btn.good { background: #1d9a5b; border-color: #1d9a5b; color: #fff; font-weight: 600; }
.btn.good:hover { background: #178450; }
.btn.danger { color: #d94848; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.small { padding: 3px 9px; font-size: 13px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.proj { padding: 9px 10px; border-radius: 9px; cursor: pointer; display: flex; justify-content: space-between; gap: 6px; }
.proj:hover { background: #f3f6fb; }
.proj.on { background: #e8f1fd; }
.proj b { font-size: 14px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proj small { color: #8592a5; font-size: 12px; }
.badge { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: #fdeceb; color: #c93b3b; white-space: nowrap; height: 18px; }
.badge.ok { background: #e6f5ec; color: #1a7d4b; }

.drop { border: 1.5px dashed #b9c6da; border-radius: 10px; padding: 12px; text-align: center; color: #6b7789; font-size: 13px;
  margin: 6px 4px; cursor: pointer; }
.drop.over, .drop:hover { border-color: #1a6fd4; color: #1a6fd4; background: #f3f8ff; }
.file { display: flex; gap: 8px; align-items: center; padding: 6px 6px; border-radius: 8px; cursor: pointer; }
.file:hover { background: #f3f6fb; }
.file.on { background: #e8f1fd; }
.file img { width: 46px; height: 36px; object-fit: contain; background: #f6f8fb; border: 1px solid #e3e8f0; border-radius: 5px; flex: none; }
.file .nm { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file small { color: #8592a5; font-size: 12px; }
.file input { flex: none; }
.vhead { font-size: 12px; color: #8592a5; padding: 6px 6px 2px; }

.stage { flex: 1; min-height: 0; overflow: hidden; background: #eef1f6; position: relative; display: flex; }
.stage .canvas { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.paper { position: relative; background: #fff; box-shadow: 0 1px 6px rgba(20, 40, 80, .18); user-select: none; }
.paper img { display: block; width: 100%; height: 100%; pointer-events: none; }
.paper .over { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.paper.markable { cursor: crosshair; }
.mark { position: absolute; border: 2px solid #e03e3e; background: rgba(224, 62, 62, .18); border-radius: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center; font: 700 13px/1 sans-serif; color: #fff; }
.mark i { position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%;
  background: #e03e3e; display: flex; align-items: center; justify-content: center; font-style: normal; }
.mark.done { border-color: #1d9a5b; background: rgba(29, 154, 91, .16); }
.mark.done i { background: #1d9a5b; }
.overlay { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: contain; }
.stages { display: flex; flex: 1; min-height: 0; }
.stages .stage { flex: 1; }
.toolbar { display: flex; gap: 6px; align-items: center; padding: 8px 10px; border-bottom: 1px solid #edf1f7; font-size: 13px; color: #4a5568; flex-wrap: wrap; }
.toolbar .sp { flex: 1; }
.toolbar input[type=range] { width: 110px; flex: none; }
.composer { display: flex; gap: 6px; padding: 8px 10px; border-top: 1px solid #edf1f7; }
.composer input, .composer textarea { flex: 1; border: 1px solid #cfd8e6; border-radius: 8px; padding: 7px 10px; font-size: 14px; font: inherit; }
.composer textarea { resize: vertical; min-height: 44px; }
.empty { color: #8592a5; font-size: 14px; text-align: center; padding: 40px 16px; line-height: 1.8; }
.item { padding: 8px 8px; border-bottom: 1px solid #f0f3f8; font-size: 14px; line-height: 1.5; }
.item .who { color: #8592a5; font-size: 12px; margin-right: 6px; }
.item .txt { white-space: pre-wrap; word-break: break-word; }
.item .n { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; background: #e03e3e; color: #fff; font-size: 12px;
  font-weight: 700; align-items: center; justify-content: center; margin-right: 6px; vertical-align: 1px; }
.item.done .n { background: #1d9a5b; }
.item .act { float: right; }
.sub { display: flex; gap: 2px; padding: 0 10px; border-bottom: 1px solid #edf1f7; }
.sub button { border: 0; background: transparent; padding: 9px 10px; font-size: 14px; color: #6b7789; cursor: pointer; border-bottom: 2px solid transparent; }
.sub button.on { color: #1a6fd4; border-bottom-color: #1a6fd4; font-weight: 600; }
.title { padding: 12px 14px 6px; }
.title h2 { margin: 0 0 4px; font-size: 17px; }
.title small { color: #8592a5; }
.confirm { margin: 10px; padding: 12px; border-radius: 10px; background: #f6f9ff; border: 1px solid #dbe7fb; font-size: 14px; line-height: 1.6; }
.err { color: #c93b3b; font-size: 13px; padding: 4px 10px; min-height: 20px; }
.program { max-width: 900px; margin: 30px auto; padding: 0 20px; }
.program .card { background: #fff; border: 1px solid #e3e8f0; border-radius: 12px; padding: 22px 26px; line-height: 1.8; }
.landing { max-width: 680px; margin: 54px auto; padding: 0 20px; }
.lcard { background: #fff; border: 1px solid #e3e8f0; border-radius: 14px; padding: 28px 30px; line-height: 1.8; }
.lcard h2 { margin: 0 0 8px; font-size: 20px; }
.lcard p { margin: 0 0 16px; color: #4a5568; }
.lcard p.small { font-size: 13px; color: #8592a5; margin: 18px 0 0; }
.lbtn { display: inline-block; background: #1a6fd4; color: #fff; font-weight: 600; text-decoration: none; border-radius: 9px; padding: 11px 26px; }
.lbtn:hover { background: #1560ba; }
.who { font-size: 13px; color: #4a5568; margin-right: 10px; }
.who button { margin-left: 8px; }
