.tryout-scope-bar {
    display: flex;
    align-items: flex-end;
    gap: .65rem;
    margin-bottom: 1rem;
    padding: .8rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-muted);
}

.tryout-scope-bar label {
    display: grid;
    flex: 0 1 24rem;
    gap: .3rem;
    color: var(--muted);
    font-size: .75rem;
    font-weight: 750;
}

.tryout-scope-bar select { width: 100%; }
.tryout-tabs { margin-bottom: 1.25rem; }

.tryout-policy-banner {
    padding: .85rem 1rem;
    border: 1px solid var(--line);
    border-left: 4px solid var(--brand-blue);
    border-radius: var(--radius-sm);
    background: var(--white);
}
.tryout-intake-grid,
.tryout-team-layout,
.tryout-offer-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.tryout-intake-grid > .panel,
.tryout-team-layout > .panel,
.tryout-offer-layout > .panel,
.tryout-offer-layout > .notice-card {
    margin: 0;
}

.tryout-verification-results,
.tryout-name-results {
    margin-top: 1rem;
}

.tryout-team-layout {
    grid-template-columns: minmax(18rem, .8fr) minmax(24rem, 1.2fr);
}

.tryout-team-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tryout-team-list article {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: .8rem 0;
    border-bottom: 1px solid var(--line);
}

.tryout-team-list article:first-child { padding-top: 0; }
.tryout-team-list article:last-child { padding-bottom: 0; border-bottom: 0; }
.tryout-team-list article > div { display: grid; gap: .12rem; }
.tryout-team-list article span,
.tryout-team-list article small { color: var(--muted); }

.tryout-filters .tryout-search { flex: 1 1 18rem; }
.tryout-filters .tryout-search input { width: 100%; }

.tryout-table td > small,
.tryout-table td > strong {
    display: block;
}

.tryout-table td > small { margin-top: .18rem; color: var(--muted); }
.tryout-table .tryout-quiet-note { color: #815a0b; font-weight: 700; }
.tryout-unavailable-row { background: rgba(102, 116, 126, .06); }
.tryout-unavailable-row > td:first-child strong { color: var(--muted); }

.status-info { background: #e6f3f8; color: #005783; }
.status-muted { background: #edf0f2; color: #58666f; }

.table-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .4rem;
}

.row-action-menu { position: relative; }
.row-action-menu > summary {
    padding: .48rem .68rem;
    color: var(--ink);
    font-size: .78rem;
    font-weight: 750;
    cursor: pointer;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: .45rem;
    background: var(--white);
}
.row-action-menu > summary::-webkit-details-marker { display: none; }
.row-action-menu > div {
    position: static;
    right: auto;
    min-width: 10rem;
    margin-top: .3rem;
    padding: .35rem;
    border: 1px solid var(--line);
    border-radius: .55rem;
    background: var(--white);
    box-shadow: var(--shadow);
}
.row-action-menu form { margin: 0; }
.row-action-menu button {
    width: 100%;
    padding: .55rem .6rem;
    color: var(--ink);
    text-align: left;
    border: 0;
    border-radius: .35rem;
    background: transparent;
    cursor: pointer;
}
.row-action-menu button:hover,
.row-action-menu button:focus-visible { background: var(--surface-muted); }

.record-facts,
.tryout-response-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
    margin: 1rem 0 0;
}
.record-facts div { min-width: 0; }
.record-facts dt { color: var(--muted); font-size: .75rem; font-weight: 700; }
.record-facts dd { margin: .15rem 0 0; font-weight: 750; overflow-wrap: anywhere; }
.tryout-response-facts dd small {
    display: block;
    margin-top: .18rem;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 650;
}

.tryout-offer-form { max-width: 54rem; }
.tryout-response-card { max-width: 42rem; }
.tryout-response-actions { display: grid; gap: .65rem; margin-top: 1.25rem; }

html[data-theme="dark"] .tryout-policy-banner,
html[data-theme="dark"] .row-action-menu > summary,
html[data-theme="dark"] .row-action-menu > div {
    background: #173247;
}
html[data-theme="dark"] .tryout-scope-bar { background: #152c3d; }
html[data-theme="dark"] .status-info { background: #173f54; color: #a8d8ef; }
html[data-theme="dark"] .status-muted { background: #303d46; color: #c7d0d6; }
html[data-theme="dark"] .tryout-table .tryout-quiet-note { color: #f4d486; }

@media (max-width: 900px) {
    .tryout-intake-grid,
    .tryout-team-layout,
    .tryout-offer-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .tryout-scope-bar { align-items: stretch; flex-direction: column; }
    .tryout-scope-bar label { flex-basis: auto; }
    .tryout-scope-bar .button { width: 100%; }
    .record-facts { grid-template-columns: 1fr; }
    .tryout-team-list article { flex-direction: column; }
    .table-actions { align-items: stretch; flex-direction: column; }
    .table-actions .button,
    .table-actions form,
    .table-actions form button { width: 100%; }
    .row-action-menu > div { position: static; min-width: 0; }
}
