.claims-shell {
  max-width: none;
  width: 100%;
}

.claims-header {
  align-items: start;
  background: #ffffff;
  border: 1px solid #d7dde5;
  border-radius: 8px;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 16px;
  padding: 18px;
}

.claims-header h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  max-width: 980px;
}

.claims-header .lead {
  max-width: 780px;
}

.guard-badge {
  align-self: start;
  background: #ecfeff;
  border: 1px solid #67e8f9;
  border-radius: 8px;
  color: #155e75;
  font-weight: 900;
  max-width: 420px;
  padding: 12px 14px;
  text-align: right;
}

.claims-summary {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 12px;
}

.claims-summary div,
.claims-scope,
.claims-scope div,
.claims-controls,
.claims-main,
.claim-detail,
.claims-method {
  background: #ffffff;
  border: 1px solid #d7dde5;
  border-radius: 8px;
}

.claims-summary div {
  padding: 14px;
}

.claims-summary span {
  color: #0b6b75;
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.claims-summary strong {
  color: #111827;
  display: block;
  font-size: 1.8rem;
  line-height: 1.1;
  margin-top: 4px;
}

.claims-scope {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
  padding: 12px;
}

.claims-scope div {
  background: #f8fafc;
  padding: 14px;
}

.claims-scope strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}

.claims-scope p {
  color: #475569;
  margin: 0;
}

.claims-layout {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(640px, 1fr) minmax(420px, 520px);
}

.claims-controls,
.claim-detail {
  padding: 16px;
}

.claims-controls {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 14px;
}

.sidebar .claims-controls {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  padding: 14px;
  position: static;
}

.claims-controls label {
  color: #0f172a;
  display: grid;
  gap: 6px;
  font-weight: 900;
}

.sidebar .claims-controls label {
  color: rgba(255, 255, 255, 0.86);
}

.claims-controls select,
.claims-controls input {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #111827;
  font: inherit;
  font-size: 0.95rem;
  min-height: 42px;
  padding: 9px 10px;
  width: 100%;
}

.sidebar .claims-controls select,
.sidebar .claims-controls input {
  background: rgba(15, 23, 42, 0.38);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.sidebar .claims-controls input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.claims-controls option {
  font-size: 0.95rem;
}

.sidebar .claims-controls option {
  color: #111827;
}

.claims-controls button {
  background: #475569;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  min-height: 42px;
  padding: 10px 12px;
}

.policy-note {
  background: #f8fafc;
  border: 1px solid #d7dde5;
  border-radius: 8px;
  padding: 12px;
}

.policy-note summary,
.claims-help summary {
  cursor: pointer;
  color: #0f172a;
  font-weight: 900;
  outline: none;
  transition: color 140ms ease, transform 140ms ease;
}

.sidebar .policy-note summary {
  color: rgba(255, 255, 255, 0.92);
}

.policy-note summary:hover,
.policy-note summary:focus-visible,
.claims-help summary:hover,
.claims-help summary:focus-visible {
  color: #0f766e;
  transform: translateX(2px);
}

.sidebar .policy-note {
  background: rgba(15, 23, 42, 0.28);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
}

.policy-note p {
  color: #475569;
  margin: 6px 0 0;
}

.sidebar .policy-note p {
  color: rgba(255, 255, 255, 0.74);
}

.claims-main {
  min-width: 0;
  overflow: hidden;
}

.claims-toolbar {
  align-items: end;
  border-bottom: 1px solid #d7dde5;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 16px;
}

.claims-toolbar h2 {
  margin: 0;
}

.visible-count {
  color: #475569;
  font-weight: 900;
}

.claims-table-wrap {
  max-height: 680px;
  overflow: auto;
}

.claims-table {
  border-collapse: collapse;
  min-width: 760px;
  table-layout: fixed;
  width: 100%;
}

.claims-table th:nth-child(1),
.claims-table td:nth-child(1) {
  width: 38%;
}

.claims-table th:nth-child(2),
.claims-table td:nth-child(2) {
  width: 20%;
}

.claims-table th:nth-child(3),
.claims-table td:nth-child(3) {
  width: 17%;
}

.claims-table th:nth-child(4),
.claims-table td:nth-child(4) {
  width: 9%;
}

.claims-table th:nth-child(5),
.claims-table td:nth-child(5) {
  width: 16%;
}

.claims-table th,
.claims-table td {
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.claims-table th {
  background: #f8fafc;
  color: #0b6b75;
  font-size: 0.78rem;
  position: sticky;
  text-transform: uppercase;
  top: 0;
  z-index: 1;
}

.claims-table tr {
  cursor: pointer;
}

.claims-table tr:hover,
.claims-table tr.active {
  background: #eff6ff;
}

.claim-id {
  color: #0f172a;
  display: block;
  font-weight: 900;
}

.claim-text {
  color: #475569;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  max-width: 520px;
  overflow: hidden;
}

.claim-problem {
  color: #111827;
  display: block;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.claim-pack {
  color: #64748b;
  display: block;
  font-size: 0.84rem;
  margin-top: 2px;
}

.status-pill,
.decision-pill {
  border-radius: 999px;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 5px 9px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.status-project,
.status-hypothesis,
.status-needs {
  background: #fef3c7;
  color: #92400e;
}

.status-open {
  background: #fee2e2;
  color: #991b1b;
}

.status-known,
.status-resolved,
.status-standard,
.status-definition,
.status-history {
  background: #dcfce7;
  color: #166534;
}

.decision-block {
  background: #fee2e2;
  color: #991b1b;
}

.decision-warn {
  background: #fef3c7;
  color: #92400e;
}

.decision-ok {
  background: #dcfce7;
  color: #166534;
}

.claim-detail {
  min-width: 0;
  position: sticky;
  top: 14px;
}

.claim-detail h2 {
  margin-top: 0;
  overflow-wrap: anywhere;
}

.decision-panel {
  border-radius: 8px;
  font-weight: 900;
  margin: 10px 0 14px;
  padding: 12px;
}

.decision-panel.block {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.decision-panel.warn {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  color: #92400e;
}

.decision-panel.ok {
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #166534;
}

.decision-panel.neutral {
  background: #f8fafc;
  border: 1px solid #d7dde5;
  color: #475569;
}

.detail-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.detail-list dt {
  color: #0b6b75;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-list dd {
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}

.detail-list a {
  color: #0f766e;
  font-weight: 900;
}

.claims-method {
  margin-top: 16px;
  padding: 16px;
}

.claims-help {
  background: #ffffff;
  border: 1px solid #d7dde5;
  border-radius: 8px;
  margin: 0 0 14px;
  padding: 12px;
}

.claims-help .claims-scope {
  margin: 12px 0 0;
}

.claims-help.claims-method {
  margin-top: 16px;
}

.method-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.method-grid div {
  background: #f8fafc;
  border: 1px solid #d7dde5;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.method-grid strong {
  color: #0f766e;
  font-size: 1.4rem;
}

@media (max-width: 1280px) {
  .claims-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .claim-detail {
    grid-column: 1 / -1;
    position: static;
  }
}

@media (max-width: 900px) {
  .claims-header,
  .claims-layout,
  .claims-summary,
  .claims-scope,
  .method-grid {
    grid-template-columns: 1fr;
  }

  .guard-badge,
  .claims-controls {
    position: static;
    text-align: left;
  }
}
