.proof-boundary {
    display: flex;
    gap: 12px;
    align-items: baseline;
    margin: 0 0 10px;
    padding: 9px 13px;
    border: 1px solid #415027;
    border-radius: 10px;
    background: rgba(185, 242, 39, .045);
    color: var(--muted);
    font-size: .78rem;
}

.proof-boundary strong {
    flex: 0 0 auto;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: .07em;
}

.proof-boundary--live {
    border-color: #6e8a32;
    background: rgba(185, 242, 39, .08);
}

.command-button--finish:not(:disabled) {
    border-color: #d0a63d;
    color: #ffe09a;
}

.work-board { min-width: 1160px; }
.work-board td { vertical-align: middle; }
.work-board td:nth-child(2) { min-width: 220px; }
.work-board td:nth-child(4) { min-width: 130px; }
.work-board td:nth-child(8) { min-width: 212px; }

.command-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
}

.command-grid form { margin: 0; }

.command-button {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #6e8a32;
    border-radius: 7px;
    background: #263408;
    color: var(--green);
    font: inherit;
    font-size: .7rem;
    font-weight: 800;
    cursor: pointer;
}

.command-button:hover { background: #34470b; }
.command-button:disabled {
    border-color: var(--line);
    background: #1c211d;
    color: #737d75;
    cursor: not-allowed;
}

.reason-summary {
    display: block;
    margin-top: 5px;
    overflow-wrap: anywhere;
    font-size: .64rem;
}

.read-only-tag,
.proof-result__state {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 999px;
    background: var(--panel-2);
    color: var(--muted);
    font-size: .66rem;
    font-weight: 900;
    letter-spacing: .06em;
}

.proof-result {
    max-width: 660px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.proof-result--authorized { border-color: #5b7620; }
.proof-result--rejected { border-color: #7a3939; }
.proof-result--authorized .proof-result__state { color: var(--green); background: var(--green-dark); }
.proof-result--rejected .proof-result__state { color: var(--red); background: #351414; }
.proof-result h2 { margin-top: 14px; }
.proof-result__boundary { color: var(--muted); font-size: .82rem; }

@media (max-width: 780px) {
    .proof-boundary { align-items: flex-start; flex-direction: column; gap: 4px; }
}

.uro-contour-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
}

.uro-contour-nav a {
    padding: 7px 10px;
    border: 1px solid #6e8a32;
    border-radius: 8px;
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    text-decoration: none;
}

.uro-contour-nav a:hover,
.uro-contour-nav a:focus-visible {
    background: #263408;
    color: var(--green);
}

.repair-child-section { margin-top: 28px; scroll-margin-top: 20px; }

.repair-child-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.repair-child-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
    scroll-margin-top: 20px;
}

.repair-child-card--available { border-color: #5b7620; }
.repair-child-card--wide { grid-column: 1 / -1; }

.repair-child-card__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.repair-child-card h3 { margin: 0; color: #fff; }
.repair-child-card p { color: var(--muted); line-height: 1.55; }
.repair-child-card code { color: #eaf4ed; overflow-wrap: anywhere; }

.contour-state {
    flex: 0 0 auto;
    padding: 5px 8px;
    border-radius: 999px;
    background: #292f2a;
    color: #d7dfd9;
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .06em;
}

.contour-state--available { background: #263408; color: var(--green); }
.contour-note { color: #aebbb1; font-size: .74rem; }

.child-page-nav { display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px; }
.child-page-nav a { padding:7px 10px;border:1px solid #6e8a32;border-radius:8px;color:#fff;text-decoration:none;font-weight:800; }
.metric-grid { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0; }
.metric { padding:15px;border:1px solid var(--line);border-radius:10px;background:var(--panel); }
.metric span { display:block;color:var(--muted);font-size:.72rem; }
.metric strong { display:block;margin-top:5px;font-size:1.25rem;color:#fff; }
.source-warning { padding:16px;border:1px solid #7f6222;border-radius:10px;background:#2d2412;color:#f5d47a; }

@media (max-width: 780px) {
    .repair-child-grid { grid-template-columns: 1fr; }
    .repair-child-card--wide { grid-column: auto; }
    .repair-child-card__heading { align-items: flex-start; }
    .metric-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* Client / Asset directory pages */
.detail-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:20px 0 28px; }
.detail-grid .panel { margin:0; }
.table-wrap { margin-bottom:28px; }
td small { display:block; color:var(--muted); margin-top:4px; }
@media (max-width:900px) { .detail-grid { grid-template-columns:1fr; } }
