[hidden] { display: none !important; }
.flush { margin-top: 0; margin-bottom: 0; }
.card { margin-bottom: 20px; }
.fgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 12px;
  margin: 12px 0;
}
.field { min-width: 0; }
.field label { display: block; margin-bottom: 4px; overflow-wrap: anywhere; }
textarea { resize: vertical; line-height: 1.55; min-height: 180px; }
.top-gap { margin-top: 12px; }
.helper-note { margin: 8px 0 0; overflow-wrap: anywhere; }
.status-line { margin: 8px 0 0; overflow-wrap: anywhere; }
.err-msg { color: var(--warn); font-weight: 600; margin: 10px 0 0; overflow-wrap: anywhere; }
.warn-box {
  background: var(--chip);
  border: 1px solid var(--warn);
  color: var(--warn);
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  overflow-wrap: anywhere;
}

button, .btn, label.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
select, input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]) {
  min-height: 44px;
  min-width: 44px;
  max-width: 100%;
}

.head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 12px;
}
.head-row > * { min-width: 0; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.stat-tile {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-val {
  font-family: var(--mono);
  font-size: 18px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.chart-box {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 16px;
}
.sent-svg {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 6px 0;
}
.svg-bg { fill: var(--chip); }
.svg-ok { fill: var(--accent); }
.svg-long { fill: var(--field-line); }
.svg-vlong { fill: var(--warn); }

.sec-sub { margin: 16px 0 8px; font-size: 17px; }
.issue-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.issue-pills .pill {
  margin: 0;
  padding: 4px 10px;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.issue-group {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 12px;
}
.issue-group h4 {
  margin: 0 0 8px;
  font-size: 15px;
  overflow-wrap: anywhere;
}
.issue-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.issue-list li {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  min-width: 0;
}
.issue-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  background: var(--chip);
  color: var(--warn);
  border-radius: 6px;
  padding: 2px 8px;
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}
.issue-quote {
  margin: 0;
  font-size: 14px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.sum-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sum-ctrl select { width: auto; }
.sum-list {
  margin: 10px 0 0;
  padding-left: 20px;
}
.sum-list li {
  margin-bottom: 10px;
  padding-left: 4px;
  overflow-wrap: anywhere;
}

.list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}
.list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
}
.list .title {
  font-weight: 600;
  overflow-wrap: anywhere;
  flex: 1 1 160px;
  min-width: 0;
}
.list .meta {
  flex: 1 1 100%;
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
code {
  font-family: var(--mono);
  font-size: 13px;
  overflow-wrap: anywhere;
}

@media print {
  .no-print, header.top, footer { display: none !important; }
  body { background: #fff; color: #000; }
  .card { border: none; padding: 0; }
}
