.ficha-page .pf-header .pfh-availability-row {
    flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 5px;
}
.ficha-page .pf-header .pfh-profile-links {
    display: flex; align-items: center; gap: 6px; width: 100%; min-width: 0;
}
.ficha-page .pf-header .pfh-profile-links .pfh-transfermarkt-link { flex: 0 0 auto; }
.ficha-page .pf-header .pfh-agency-link {
    display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 190px;
    flex: 1 1 auto;
    min-height: 22px; padding: 3px 8px 3px 5px;
    border: 1px solid #b8cbdc; border-radius: 4px;
    background: #f3f7fa; color: #214b6c;
    font: 650 11px/1.1 var(--font-body, sans-serif); cursor: pointer;
}
.ficha-page .pf-header .pfh-agency-link:hover,
.ficha-page .pf-header .pfh-agency-link:focus-visible {
    background: #e6eff7; border-color: #477aa6; outline-color: #86b3d7;
}
.ficha-page .pf-header .pfh-agency-link > span:last-child {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pfh-agency-mark {
    display: grid; place-items: center; flex: 0 0 17px; height: 16px;
    border-radius: 2px; background: #204b6c; color: #fff;
    font-size: 8px; letter-spacing: -.03em;
}
.pf-agency-modal-box {
    display: flex; flex-direction: column;
    max-width: 900px; width: min(900px, 96vw); max-height: 88vh;
    padding: 0; overflow: hidden; border: 1px solid #cbd9e4;
    border-radius: 8px; background: #fff;
}
.pf-agency-modal-box .les-modal-close { z-index: 2; color: #58738a; }
.pf-agency-heading { padding: 22px 30px 16px; background: #f7f9fb; }
.pf-agency-eyebrow {
    display: block; color: #5f809b; font-size: 10px; font-weight: 800;
    letter-spacing: .11em;
}
.pf-agency-heading h2 {
    display: flex; align-items: baseline; flex-wrap: wrap; gap: 15px;
    margin: 5px 30px 0 0; color: #153f60;
    font: 650 26px/1.15 var(--font-display, sans-serif);
}
.pf-agency-heading h2 a {
    color: #587c9a; font: 600 11px/1.2 var(--font-body, sans-serif);
    text-decoration: none;
}
.pf-agency-heading h2 a:hover { text-decoration: underline; }
.pf-agency-content { overflow-y: auto; min-height: 0; padding: 8px 30px 28px; }
.pf-agency-section-title {
    margin: 20px 0 14px; padding-bottom: 9px; border-bottom: 1px solid #dce6ed;
    color: #173f60; font: 700 17px/1.25 var(--font-display, sans-serif);
}
#pf-agency-players-panel { margin-top: 28px; }
.pf-agency-vote-summary {
    padding: 15px 17px; border: 1px solid #dce6ed; border-radius: 6px;
    background: #f8fafc;
}
.pf-agency-vote-title, .pf-agency-vote-legend { display: flex; align-items: center; gap: 12px; }
.pf-agency-vote-title { justify-content: space-between; margin-bottom: 12px; }
.pf-agency-vote-title strong { color: #173f60; font-size: 14px; }
.pf-agency-vote-title span { color: #71899c; font-size: 11px; }
.pf-agency-vote-bar { display: flex; height: 12px; overflow: hidden; border-radius: 8px; background: #e5edf2; }
.pf-agency-vote-segment { height: 100%; }
.pf-agency-vote-3 { background: #37a66d; }
.pf-agency-vote-2 { background: #edbc49; }
.pf-agency-vote-1 { background: #d25d5c; }
.pf-agency-vote-legend { flex-wrap: wrap; justify-content: space-between; margin-top: 11px; }
.pf-agency-vote-legend > span { display: inline-flex; align-items: center; gap: 5px; color: #627b90; font-size: 11px; }
.pf-agency-vote-legend strong { color: #254e6d; }
.pf-agency-vote-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.pf-agency-rating-pill {
    display: inline-flex; padding: 5px 9px; border-radius: 4px;
    font-size: 11px; font-weight: 700;
}
.pf-agency-rating-3 { background: #e3f2e9; color: #17744a; }
.pf-agency-rating-2 { background: #fff1d2; color: #91620b; }
.pf-agency-rating-1 { background: #fbe8e7; color: #a93737; }
.pf-agency-form {
    margin: 19px 0 22px; padding: 18px 20px; border: 1px solid #dbe5ec;
    border-radius: 6px; background: #f7f9fb;
}
.pf-agency-form h3 { margin: 0 0 13px; color: #173f60; font-size: 15px; }
.pf-agency-form > label { display: block; margin: 15px 0 7px; color: #547188; font-size: 11px; font-weight: 700; }
.pf-agency-rating-options { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-agency-rating-options label {
    display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px;
    border: 1px solid #ccdae5; border-radius: 4px; background: #fff;
    color: #244a68; font-size: 12px; font-weight: 700; cursor: pointer;
}
.pf-agency-rating-options label:has(input:checked) {
    border-color: #1766a4; background: #e7f2fa; color: #0e4f82;
}
.pf-agency-rating-options input { accent-color: #1766a4; }
#pf-agency-comment {
    width: 100%; min-height: 80px; resize: vertical; padding: 10px 12px;
    border: 1px solid #cbd9e4; border-radius: 4px; background: #fff;
    color: #173f60; font: 13px/1.45 var(--font-body, sans-serif);
}
.pf-agency-form-actions { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
#pf-agency-save {
    padding: 9px 15px; border: 0; border-radius: 4px;
    background: #174f7a; color: #fff; font-size: 12px; font-weight: 700; cursor: pointer;
}
#pf-agency-save:hover { background: #0f3e63; }
.pf-agency-success { color: #17744a; font-size: 11px; }
.pf-agency-error { color: #a93737; font-size: 11px; }
.pf-agency-empty { margin: 15px 0; color: #72899b; font-size: 12px; }
.pf-agency-opinions { display: grid; gap: 8px; }
.pf-agency-opinion { padding: 13px 15px; border: 1px solid #e0e8ee; border-radius: 5px; background: #fff; }
.pf-agency-opinion-head { display: flex; align-items: center; gap: 10px; }
.pf-agency-opinion-head strong { color: #173f60; font-size: 13px; }
.pf-agency-opinion-head time { margin-left: auto; color: #889bad; font-size: 10px; }
.pf-agency-opinion-text { margin: 9px 0 0; color: #36566f; font-size: 12px; line-height: 1.5; white-space: pre-wrap; }
.pf-agency-players-heading { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding-bottom: 12px; }
.pf-agency-players-heading strong { color: #173f60; font-size: 15px; }
.pf-agency-players-heading span { color: #7a8fa1; font-size: 11px; }
.pf-agency-player-list { border-top: 1px solid #dce6ed; }
.pf-agency-player-row {
    display: grid; grid-template-columns: minmax(0,1fr) 105px 115px;
    gap: 12px; align-items: center; min-height: 58px; padding: 6px 7px;
    border-bottom: 1px solid #e4ebf0;
}
.pf-agency-player-row:nth-child(even) { background: #f8fafc; }
.pf-agency-player-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pf-agency-player-identity img, .pf-agency-player-placeholder {
    width: 35px; height: 42px; flex: 0 0 35px; object-fit: contain;
    border-radius: 3px; background: #e9f0f5;
}
.pf-agency-player-placeholder { display: grid; place-items: center; color: #aabac6; }
.pf-agency-player-identity a { display: block; color: #174f7a; font-size: 12px; font-weight: 700; text-decoration: none; }
.pf-agency-player-identity a:hover { text-decoration: underline; }
.pf-agency-player-identity small { display: block; margin-top: 3px; color: #7f92a1; font-size: 10px; }
.pf-agency-player-identity .pf-agency-player-scouts { color: #59798f; }
.pf-agency-player-row > strong, .pf-agency-player-row > span { color: #244b68; text-align: right; font-size: 11px; }
.pf-agency-more { display: block; margin: 16px auto 0; padding: 8px 18px; border: 1px solid #9db8cf; border-radius: 4px; background: #fff; color: #174f7a; cursor: pointer; }
@media (max-width: 720px) {
    .pf-agency-heading { padding: 18px; }
    .pf-agency-content { padding: 8px 16px 22px; }
    .pf-agency-player-row { grid-template-columns: minmax(0,1fr) 75px; }
    .pf-agency-player-row > span { grid-column: 1 / -1; text-align: right; }
}

/* Agency dossier: one wide surface, with three independent player perspectives. */
.pf-agency-modal-box {
    width: min(1340px, calc(100vw - 48px));
    max-width: none;
    max-height: calc(100vh - 48px);
    border: 1px solid #b9cedd;
    border-radius: 10px;
    box-shadow: 0 25px 75px rgba(8, 38, 64, .24);
}
.pf-agency-heading {
    flex: 0 0 auto;
    padding: 23px 36px 21px;
    border-top: 4px solid #2a8a79;
    background: linear-gradient(120deg, #113b5d 0%, #174b71 70%, #246182 100%);
}
.pf-agency-eyebrow { color: #9dc9d9; font-size: 10px; }
.pf-agency-heading h2 {
    align-items: center;
    gap: 14px;
    margin-top: 7px;
    color: #fff;
    font-size: 28px;
}
.pf-agency-heading h2 a {
    display: inline-flex;
    padding: 6px 9px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 4px;
    color: #e4f1f7;
    font-size: 11px;
}
.pf-agency-modal-box .les-modal-close { color: #fff; }
.pf-agency-content {
    padding: 8px 36px 32px;
    background: #f3f7fa;
    scrollbar-color: #b8cad8 transparent;
}
.pf-agency-section-title {
    margin: 21px 0 15px;
    padding: 0 0 10px;
    border-bottom: 1px solid #cddde8;
    color: #123e60;
    font-size: 20px;
}
.pf-agency-feedback-grid {
    display: grid;
    grid-template-columns: minmax(290px, .8fr) minmax(430px, 1.2fr);
    align-items: stretch;
    gap: 16px;
}
.pf-agency-vote-summary, .pf-agency-form {
    min-height: 190px;
    box-sizing: border-box;
    margin: 0;
    padding: 19px 21px;
    border: 1px solid #d5e2eb;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 2px 9px rgba(15, 53, 81, .035);
}
.pf-agency-vote-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #607f95;
    text-align: center;
}
.pf-agency-vote-empty strong { color: #244f70; font-size: 15px; }
.pf-agency-vote-empty > span:last-child { font-size: 11px; }
.pf-agency-empty-symbol {
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    border: 1px solid #c5d8e5;
    border-radius: 50%;
    background: #f1f7fa;
}
.pf-agency-empty-symbol::before {
    content: "—";
    color: #6d92ac;
    font-size: 20px;
    line-height: 1;
}
.pf-agency-vote-title strong { font-size: 16px; }
.pf-agency-vote-bar { height: 16px; margin-top: 23px; border-radius: 10px; }
.pf-agency-vote-legend { margin-top: 17px; gap: 7px 13px; }
.pf-agency-form { display: grid; grid-template-columns: minmax(275px,.9fr) minmax(0,1.1fr); gap: 3px 15px; }
.pf-agency-form h3 { grid-column: 1/-1; margin-bottom: 2px; font-size: 16px; }
.pf-agency-rating-options {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    grid-column: 1;
    grid-row: 2 / span 2;
    align-content: start;
    gap: 6px;
}
.pf-agency-rating-options label { justify-content: center; padding: 9px 7px; font-size: 11px; }
.pf-agency-form > label { grid-column: 2; grid-row: 2; align-self: start; margin: 0 0 5px; }
#pf-agency-comment { grid-column: 2; grid-row: 3; min-height: 76px; }
.pf-agency-form-actions { grid-column: 1/-1; align-items: center; flex-wrap: wrap; margin-top: 5px; }
#pf-agency-save-status { min-width: 0; flex: 1 1 250px; }
.pf-agency-success, .pf-agency-error {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 11px;
    border: 1px solid #b7dcc8;
    border-radius: 5px;
    background: #eaf7ee;
    color: #176941;
    font-size: 11px;
    line-height: 1.25;
}
.pf-agency-success strong { font-size: 12px; }
.pf-agency-error { border-color: #edc4c3; background: #fdf0ef; color: #a33b39; }
#pf-agency-opinions-list { margin-top: 12px; }
.pf-agency-opinions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    max-height: 186px;
    overflow-y: auto;
    gap: 10px;
}
.pf-agency-opinion { background: #fff; }
.pf-agency-opinion-head strong { font-size: 13px; }
#pf-agency-players-panel { margin-top: 25px; }
.pf-agency-roster-count {
    margin: -7px 0 13px;
    color: #69859a;
    font-size: 11px;
    font-weight: 700;
}
.pf-agency-player-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    align-items: stretch;
    gap: 14px;
}
.pf-agency-player-column {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #d5e2eb;
    border-top: 3px solid #1e6b9e;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(15, 53, 81, .045);
}
.pf-agency-column-reports { border-top-color: #329580; }
.pf-agency-column-market { border-top-color: #b68a3a; }
.pf-agency-column-head {
    display: grid;
    grid-template-columns: 28px minmax(0,1fr) auto;
    align-items: start;
    gap: 10px;
    min-height: 72px;
    padding: 16px 15px 12px;
    border-bottom: 1px solid #e3ebf1;
    background: #f8fafc;
}
.pf-agency-column-number { color: #7e99ab; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.pf-agency-column-head h4 { margin: -3px 0 3px; color: #173f60; font-size: 16px; line-height: 1.18; }
.pf-agency-column-head p { margin: 0; color: #728ba0; font-size: 11px; line-height: 1.25; }
.pf-agency-column-count {
    display: inline-grid;
    min-width: 27px;
    height: 25px;
    place-items: center;
    padding: 0 6px;
    border-radius: 15px;
    background: #e9f0f5;
    color: #1e506f;
    font-size: 11px;
}
.pf-agency-column-list { flex: 1; }
.pf-agency-player-card {
    display: grid;
    grid-template-columns: 21px 41px minmax(0,1fr) auto;
    align-items: center;
    gap: 9px;
    min-height: 74px;
    padding: 7px 12px;
    border-bottom: 1px solid #e9eff3;
    background: #fff;
}
.pf-agency-player-card:hover { background: #f4f9fc; }
.pf-agency-card-rank { color: #8ea2b0; font-size: 10px; font-weight: 700; }
.pf-agency-card-photo {
    width: 40px;
    height: 48px;
    object-fit: contain;
    border-radius: 4px;
    background: #eaf0f4;
}
.pf-agency-card-placeholder { display: grid; place-items: center; font-size: 0; }
.pf-agency-card-placeholder::before {
    content: "";
    width: 15px; height: 15px;
    margin-top: 5px;
    border-radius: 50%;
    background: #b9cbd7;
    box-shadow: 0 13px 0 6px #b9cbd7;
}
.pf-agency-card-main { min-width: 0; }
.pf-agency-card-main a {
    display: block;
    overflow: hidden;
    color: #153f61;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pf-agency-card-main a:hover { color: #1172a7; text-decoration: underline; }
.pf-agency-card-main span, .pf-agency-card-main small {
    display: block;
    overflow: hidden;
    margin-top: 2px;
    color: #7b90a0;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pf-agency-card-main small { color: #50768c; }
.pf-agency-card-figure {
    max-width: 83px;
    padding: 5px 6px;
    border-radius: 4px;
    background: #edf4f8;
    color: #1b5275;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}
.pf-agency-card-figure-reports { background: #e8f5ef; color: #21795b; font-size: 14px; }
.pf-agency-card-figure-market { background: #f9f2e6; color: #90692b; }
.pf-agency-column-foot {
    margin-top: auto;
    padding: 10px 14px;
    color: #7890a1;
    font-size: 10px;
    text-align: center;
}
.pf-agency-column-empty {
    display: grid;
    min-height: 150px;
    place-items: center;
    padding: 20px;
    color: #7891a4;
    font-size: 12px;
    text-align: center;
}
.pf-agency-player-column:has(.pf-agency-column-empty) .pf-agency-column-list {
    display: grid;
    place-items: center;
    background: #fafcfd;
}
.pf-agency-more { margin: 19px auto 0; padding: 9px 17px; font-size: 12px; font-weight: 700; }
@media (max-width: 1050px) {
    .pf-agency-feedback-grid { grid-template-columns: 1fr; }
    .pf-agency-player-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 720px) {
    .pf-agency-modal-box { width: calc(100vw - 16px); max-height: calc(100vh - 16px); }
    .pf-agency-heading { padding: 17px 20px; }
    .pf-agency-heading h2 { font-size: 22px; }
    .pf-agency-content { padding: 8px 15px 23px; }
    .pf-agency-form { grid-template-columns: 1fr; }
    .pf-agency-form h3, .pf-agency-rating-options, .pf-agency-form > label,
    #pf-agency-comment, .pf-agency-form-actions { grid-column: 1; grid-row: auto; }
    .pf-agency-form > label { margin-top: 7px; }
    .pf-agency-opinions { grid-template-columns: 1fr; }
    .pf-agency-player-grid { grid-template-columns: 1fr; }
}
