.bvt-eval-wrap .bvt-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin: 20px 0;
}
.bvt-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    padding: 16px;
    border-radius: 6px;
}
.bvt-card strong {
    display: block;
    font-size: 28px;
    line-height: 1.2;
}
.bvt-card span {
    color: #646970;
}
.bvt-filter-form,
.bvt-action-bar {
    margin: 12px 0 18px;
}
.bvt-copy-input {
    width: 100%;
    max-width: 320px;
    font-size: 11px;
}
.bvt-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    background: #f0f0f1;
    font-size: 12px;
    white-space: nowrap;
}
.bvt-status-imported,
.bvt-status-not_submitted { background: #f0f0f1; }
.bvt-status-submitted,
.bvt-status-assigned { background: #e0f2fe; }
.bvt-status-sent_to_evaluator { background: #fef3c7; }
.bvt-status-reopened { background: #fde68a; }
.bvt-status-evaluated { background: #dbeafe; }
.bvt-status-reviewed { background: #dcfce7; }
.bvt-status-result_sent { background: #bbf7d0; }
.bvt-status-round2_submitted { background: #e9d5ff; }
.bvt-works-table td { vertical-align: top; }
.bvt-eval-public input[type="text"],
.bvt-eval-public input[type="email"],
.bvt-eval-public select,
.bvt-eval-public textarea {
    max-width: 720px;
    width: 100%;
}

/* Public evaluation form */
.bvt-eval-public {
    max-width: 1120px;
    margin: 0 auto;
    padding: 36px 24px;
    box-sizing: border-box;
}
.bvt-eval-public .bvt-eval-title {
    margin-top: 0;
    margin-bottom: 22px;
}
.bvt-eval-public .bvt-public-form,
.bvt-eval-public .bvt-public-field,
.bvt-eval-public label {
    width: 100%;
    display: block;
    box-sizing: border-box;
}
.bvt-eval-public input[type="text"],
.bvt-eval-public input[type="email"],
.bvt-eval-public select,
.bvt-eval-public textarea {
    max-width: none;
    width: 100%;
    box-sizing: border-box;
}
.bvt-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin: 14px 0 18px;
}
.bvt-metric-field {
    min-width: 0;
}
.bvt-metric-field label,
.bvt-metric-field select {
    width: 100%;
}
.bvt-metrics-settings td select {
    min-width: 180px;
}

.bvt-eval-public .bvt-public-error,
.bvt-eval-public .bvt-public-success {
  padding: 10px 14px;
  border-radius: 6px;
  margin: 0 0 16px;
}
.bvt-eval-public .bvt-public-error {
  border: 1px solid #d63638;
  background: #fcf0f1;
}
.bvt-eval-public .bvt-public-success {
  border: 1px solid #00a32a;
  background: #edfaef;
}
.bvt-loaded-work-info input[disabled] {
    background: #f0f0f1;
    color: #50575e;
    cursor: not-allowed;
}
.bvt-round2-form .button {
    width: auto;
}
.bvt-evaluator-derived.is-readonly,
.bvt-evaluator-derived[readonly] {
    background: #f0f0f1;
    color: #50575e;
    cursor: not-allowed;
}

/* Compact admin actions */
.bvt-icon-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    max-width: 120px;
}
.bvt-icon-form {
    display: inline-block;
    margin: 0;
}
.bvt-icon-button.button {
    width: 32px;
    min-width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.bvt-icon-button .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
    line-height: 18px;
}
.bvt-icon-button.button-primary .dashicons {
    color: #fff;
}
.bvt-works-table .column-actions,
.bvt-works-table th:last-child,
.bvt-works-table td:last-child {
    width: 128px;
}
.bvt-round-tabs {
    display: flex;
    gap: 6px;
    margin: 12px 0 8px;
}
.bvt-round-tab {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border: 1px solid #c3c4c7;
    background: #fff;
    text-decoration: none;
    border-radius: 4px 4px 0 0;
    color: #1d2327;
}
.bvt-round-tab.is-active {
    background: #3858e9;
    border-color: #3858e9;
    color: #fff;
    font-weight: 600;
}

/* Work editor polish */
.bvt-work-editor {
    max-width: 1180px;
}
.bvt-editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 18px;
    margin: 18px 0;
    align-items: start;
}
.bvt-editor-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.bvt-editor-card {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.bvt-editor-card h2 {
    margin: 0 0 14px;
    font-size: 16px;
}
.bvt-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
}
.bvt-field {
    margin: 0 0 12px;
}
.bvt-field-wide {
    grid-column: 1 / -1;
}
.bvt-field label {
    display: block;
    font-weight: 600;
}
.bvt-field span,
.bvt-evaluator-card span {
    display: block;
    margin-top: 5px;
    color: #646970;
    font-size: 12px;
}
.bvt-work-editor input[type="text"],
.bvt-work-editor input[type="url"],
.bvt-work-editor select,
.bvt-work-editor textarea {
    width: 100%;
    max-width: none;
    margin-top: 5px;
}
.bvt-work-editor input[type="file"] {
    margin-top: 8px;
}
.bvt-evaluator-card .bvt-evaluator-derived[readonly] {
    background: #f0f0f1;
    color: #50575e;
}
.bvt-result-card .bvt-result-list {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 8px 12px;
    margin: 12px 0 0;
}
.bvt-result-card dt {
    font-weight: 600;
    color: #3c434a;
}
.bvt-result-card dd {
    margin: 0;
    min-width: 0;
}
.bvt-editor-actions {
    position: sticky;
    bottom: 0;
    background: rgba(240,240,241,.94);
    padding: 14px 0;
    border-top: 1px solid #dcdcde;
}
.bvt-icon-actions .button-primary .dashicons,
.bvt-icon-actions .bvt-send-result-button .dashicons {
    color: #fff !important;
}
.bvt-icon-actions .button[disabled] .dashicons {
    opacity: .55;
}
@media (max-width: 960px) {
    .bvt-editor-grid,
    .bvt-editor-grid-two,
    .bvt-form-grid {
        grid-template-columns: 1fr;
    }
}

/* v0.4.9 form layout cleanup */
.bvt-work-editor,
.bvt-profile-editor {
    max-width: 1280px;
}
.bvt-editor-grid {
    margin: 18px 0;
}
.bvt-form-grid.bvt-form-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.bvt-form-grid.bvt-form-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.bvt-evaluator-grid,
.bvt-files-grid,
.bvt-result-grid {
    align-items: stretch;
}
.bvt-evaluator-grid .bvt-editor-card,
.bvt-files-grid .bvt-editor-card,
.bvt-result-grid .bvt-editor-card {
    height: auto;
}
.bvt-profile-card {
    max-width: 1180px;
    margin: 18px 0 22px;
}
.bvt-profile-editor input[type="text"],
.bvt-profile-editor input[type="email"],
.bvt-profile-editor textarea,
.bvt-profile-editor select {
    width: 100%;
    max-width: none;
    margin-top: 5px;
}
.bvt-active-field {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.bvt-active-field label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.bvt-editor-actions-inline {
    margin: 18px 0 0;
}
.bvt-profile-table td,
.bvt-profile-table th {
    vertical-align: middle;
}
@media (max-width: 1100px) {
    .bvt-form-grid.bvt-form-grid-three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 760px) {
    .bvt-form-grid.bvt-form-grid-three,
    .bvt-form-grid.bvt-form-grid-two {
        grid-template-columns: 1fr;
    }
}

/* v0.5.1 email/settings polish */
.bvt-settings-card {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 10px;
    padding: 18px;
    margin: 18px 0;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.bvt-settings-card h2 {
    margin-top: 0;
}
.bvt-settings-card textarea.large-text {
    max-width: 980px;
    font-family: Consolas, Monaco, monospace;
    font-size: 12px;
}
.bvt-file-summary {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    color: #1d2327;
    font-size: 12px;
    white-space: nowrap;
}
.bvt-file-summary .dashicons {
    color: #3858e9;
    font-size: 17px;
    width: 17px;
    height: 17px;
}

/* Buena Vista permanent branding */
.bvt-admin-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: #030B30;
    color: #fff;
    padding: 22px 26px;
    border-radius: 14px;
    margin: 18px 0 22px;
    box-shadow: 0 10px 24px rgba(3,11,48,.12);
}
.bvt-admin-hero h1 {
    color: #fff;
    margin: 0 0 6px;
    padding: 0;
}
.bvt-admin-hero p {
    color: rgba(255,255,255,.84);
    margin: 0;
    font-size: 14px;
}
.bvt-admin-hero a {
    color: #fff;
}
.bvt-admin-hero img {
    display: block;
    max-width: 230px;
    max-height: 54px;
    width: auto;
    height: auto;
    background: rgba(255,255,255,.98);
    padding: 8px 12px;
    border-radius: 10px;
}
.bvt-dev-footer {
    margin: 24px 20px 8px 0;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #50575e;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.bvt-dev-footer img {
    display: block;
    max-width: 190px;
    max-height: 42px;
    width: auto;
    height: auto;
}

/* Prettier public forms for evaluators and postulantes */
.bvt-public-shell {
    max-width: 980px;
    margin: 0 auto;
    padding: 42px 20px 56px;
    font-family: inherit;
}
.bvt-public-brand {
    background: #030B30;
    color: #fff;
    border-radius: 20px 20px 0 0;
    padding: 30px 32px 28px;
    text-align: center;
    box-shadow: 0 16px 36px rgba(3,11,48,.14);
}
.bvt-public-brand img {
    max-width: 260px;
    max-height: 70px;
    width: auto;
    height: auto;
    background: rgba(255,255,255,.98);
    border-radius: 12px;
    padding: 10px 14px;
    margin: 0 auto 18px;
    display: block;
}
.bvt-public-brand h1 {
    color: #fff;
    margin: 0 0 8px;
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.1;
}
.bvt-public-brand p {
    color: rgba(255,255,255,.78);
    margin: 0;
    font-size: 14px;
}
.bvt-public-brand a {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}
.bvt-public-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-top: 0;
    border-radius: 0 0 20px 20px;
    padding: 34px 32px;
    box-shadow: 0 16px 36px rgba(3,11,48,.10);
}
.bvt-public-card .bvt-eval-title {
    color: #030B30;
    font-size: clamp(22px, 3vw, 32px);
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5e7eb;
}
.bvt-public-card p {
    color: #111;
}
.bvt-public-card strong {
    color: #030B30;
}
.bvt-public-form {
    margin-top: 24px;
}
.bvt-public-field,
.bvt-round2-form p {
    margin: 0 0 18px;
}
.bvt-public-card label {
    color: #030B30;
    font-weight: 700;
}
.bvt-public-card input[type="text"],
.bvt-public-card input[type="email"],
.bvt-public-card input[type="file"],
.bvt-public-card select,
.bvt-public-card textarea {
    width: 100%;
    max-width: none;
    margin-top: 8px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    background: #fff;
    box-sizing: border-box;
}
.bvt-public-card input[type="file"] {
    padding: 11px 14px;
    background: #f9fafb;
}
.bvt-public-card input:focus,
.bvt-public-card select:focus,
.bvt-public-card textarea:focus {
    border-color: #D92929;
    box-shadow: 0 0 0 2px rgba(217,41,41,.14);
    outline: none;
}
.bvt-public-primary,
.bvt-public-card button[type="submit"],
.bvt-round2-form .button {
    background: #D92929 !important;
    border: 0 !important;
    color: #fff !important;
    border-radius: 10px !important;
    padding: 13px 22px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    min-height: 44px;
    cursor: pointer;
    text-decoration: none;
}
.bvt-round2-form .button {
    background: #030B30 !important;
}
.bvt-public-success,
.bvt-public-error {
    border-radius: 12px !important;
    padding: 14px 16px !important;
}
.bvt-loaded-work-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 14px;
    margin: 18px 0 22px;
    padding: 18px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}
.bvt-loaded-work-info p {
    margin: 0;
}
.bvt-loaded-work-info input[disabled] {
    background: #eef2f7;
    color: #374151;
    opacity: 1;
}
.bvt-metrics-grid {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px;
}
@media (max-width: 720px) {
    .bvt-admin-hero,
    .bvt-public-brand,
    .bvt-public-card {
        border-radius: 14px;
    }
    .bvt-admin-hero,
    .bvt-loaded-work-info {
        grid-template-columns: 1fr;
        flex-direction: column;
        text-align: center;
    }
    .bvt-public-brand,
    .bvt-public-card {
        padding-left: 20px;
        padding-right: 20px;
    }
}


/* v0.5.4 dashboard/plugin branding sizing fix */
.bvt-admin-hero {
    min-height: 0;
    padding: 14px 18px !important;
    border-radius: 10px !important;
    margin: 14px 0 18px !important;
    box-shadow: 0 4px 12px rgba(3,11,48,.10) !important;
}
.bvt-admin-hero h1 {
    font-size: 22px !important;
    line-height: 1.2 !important;
    margin: 0 0 4px !important;
}
.bvt-admin-hero p {
    font-size: 13px !important;
}
.bvt-admin-hero a.bvt-brand-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    max-width: 170px;
    background: #fff;
    border-radius: 8px;
    padding: 6px 9px;
}
.bvt-admin-hero img {
    max-width: 145px !important;
    max-height: 34px !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
}
.bvt-dev-footer img {
    max-width: 135px !important;
    max-height: 30px !important;
}
@media (max-width: 720px) {
    .bvt-admin-hero {
        align-items: flex-start !important;
        text-align: left !important;
    }
}

/* v0.5.5 public form branding cleanup */
#adminmenu .toplevel_page_bvt-evaluations .wp-menu-image img {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    padding: 7px 0 0 !important;
    object-fit: contain !important;
}
.bvt-public-brand img {
    display: none !important;
}
.bvt-public-brand {
    padding: 26px 32px 24px !important;
}
.bvt-public-brand h1 {
    margin-bottom: 0 !important;
}
.bvt-public-brand p {
    display: none !important;
}
.bvt-public-byline {
    margin: 12px 0 0 !important;
    text-align: center;
    color: #9ca3af;
    font-size: 12px;
    font-style: italic;
}
.bvt-public-byline a {
    color: #9ca3af;
    text-decoration: underline;
}
.bvt-public-byline a:hover {
    color: #6b7280;
}

/* v0.5.6: menu icon and author profile autofill fixes */
#adminmenu .toplevel_page_bvt-evaluations .wp-menu-image img {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    padding: 7px 0 0 !important;
    object-fit: contain !important;
    opacity: 1 !important;
}
.bvt-author-derived.is-readonly,
.bvt-author-derived[readonly] {
    background: #f0f0f1;
    color: #50575e;
    cursor: not-allowed;
}


/* v0.5.7 evaluation form readability */
.bvt-public-card .bvt-work-code-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    background: #030B30;
    color: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .03em;
    margin: 0 0 12px;
    line-height: 1;
}
.bvt-public-card .bvt-eval-title {
    margin-top: 0 !important;
}
.bvt-public-card .bvt-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 14px;
    padding: 16px;
    align-items: stretch;
}
.bvt-public-card .bvt-metric-field {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px;
    min-width: 0;
}
.bvt-public-card .bvt-metric-field label {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    color: #030B30;
    font-weight: 800;
    line-height: 1.12;
}
.bvt-public-card .bvt-metric-label {
    min-height: 38px;
    display: flex;
    align-items: flex-start;
}
.bvt-public-card .bvt-metric-field select {
    margin-top: auto;
}
@media (max-width: 720px) {
    .bvt-public-card .bvt-metrics-grid {
        grid-template-columns: 1fr;
    }
    .bvt-public-card .bvt-metric-label {
        min-height: 0;
    }
}
