.box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
}

.box h2 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 5px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  border-top: 4px solid var(--gold);
}

.stat b {
  display: block;
  font-size: 26px;
  color: var(--navy);
  line-height: 1.2;
}

.tw { overflow-x: auto; }

table.tb {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

table.tb th,
table.tb td {
  padding: 7px 6px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  vertical-align: middle;
}

table.tb th {
  background: #eef2f8;
  color: var(--navy);
  white-space: nowrap;
}

table.tb img.av {
  width: 34px;
  height: 44px;
  object-fit: cover;
  border-radius: 4px;
  background: #eef2f8;
}

.tag {
  display: inline-block;
  padding: 1px 9px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  background: #eef2f8;
}

.tg-ok { background: #eaf7f0; color: #1d8a5a; }
.tg-bd { background: #fdeceb; color: #c0392b; }
.tg-wr { background: #fdf5e4; color: #b7791f; }

.split {
  display: grid;
  grid-template-columns: 430px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

@media (max-width: 1100px) {
  .split { grid-template-columns: 1fr; }
}

.ovl {
  position: fixed;
  inset: 0;
  background: rgba(20,30,50,.55);
  z-index: 60;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: auto;
  padding: 20px 10px;
}

.mdl {
  background: #fff;
  border-radius: 14px;
  max-width: 640px;
  width: 100%;
  padding: 16px;
  border-top: 5px solid var(--gold);
}

.mdl h3 {
  margin: 0 0 6px;
  color: var(--navy);
}

#toast {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  z-index: 120;
}

#toast.on { opacity: 1; }

.ph-box {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.ph-pv {
  width: 90px;
  height: 120px;
  border: 2px dashed #b9c2cf;
  border-radius: 8px;
  overflow: hidden;
  background: #eef2f8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--mut);
  flex: none;
  text-align: center;
}

.ph-pv img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stg { overflow: hidden; }

.st-p { color: #1d8a5a; font-weight: 800; }
.st-l { color: #b7791f; font-weight: 800; }
.st-x { color: #2f5597; font-weight: 800; }
.st-e { color: #c0720b; font-weight: 800; }
.st-a { color: #c0392b; font-weight: 800; }.gq{display:flex;gap:6px;margin-top:4px}

fieldset.ro {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

fieldset.ro:disabled button { display: none; }

fieldset.ro:disabled :is(input, select, textarea) {
  background: #f6f7fa;
}

@media (min-width: 900px) {
  .ovl { padding: 28px 24px; }

  .mdl {
    max-width: 960px;
    padding: 22px 28px;
  }

  .mdl.narrow { max-width: 520px; }
}
