/* Benchmark adaptation: search/category/community only; the homepage hero is unchanged. */
.reference-search-toolbar { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(160px,220px); align-items: center; gap: 12px; }
.reference-search-toolbar > form { width: 100%; min-width: 0; max-width: none; margin: 0; }
.reference-search-toolbar .results-search-form { padding: 0 8px 0 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--white); box-shadow: none; }
.reference-search-toolbar input { min-width: 0; width: 100%; min-height: 48px; font-size: 16px; }
.reference-filter-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 10px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--white); color: var(--navy); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.reference-filter-button svg { width: 18px; height: 18px; }
.reference-filter-button[aria-expanded=true] { background: var(--blue-light); border-color: var(--blue); color: var(--blue); }
.reference-sort { margin: 0; min-width: 0; }
.reference-sort select { width: 100%; min-height: 50px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--white); color: var(--navy); font: inherit; font-size: 14px; }
.reference-home-page .finder-panel { display: block; padding: 20px; }
.reference-home-page .reference-home-filters { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.reference-home-page .reference-home-filters[hidden] { display: none !important; }
.reference-home-page .filter-group { min-width: 0; }
.reference-home-page .filter-group select { width: 100%; min-height: 48px; }
.reference-home-page .active-search-filters { margin-top: 16px; }
.reference-search-page .results-filters { margin-top: 16px; }
.reference-search-page .results-filters:not([open]) { border: 0; padding: 0; margin: 0; }
.reference-search-page .results-filters .results-filter-panel { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; width: 100%; overflow: visible; margin: 0; padding: 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--white); }
.reference-search-page .results-filter-panel label { min-width: 0; }
.reference-search-page .results-filter-panel select { width: 100%; max-width: 100%; min-height: 48px; }
.reference-category-intro { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: center; gap: 48px; margin-bottom: 32px; }
.reference-category-intro > * { min-width: 0; }
.reference-category-intro .section-heading { margin: 0; }
.reference-category-intro h2 { max-width: 14ch; overflow-wrap: anywhere; font-size: clamp(32px,4vw,52px); line-height: 1.1; letter-spacing: -1.5px; }
.reference-category-intro p { margin-top: 20px; max-width: 48ch; color: var(--muted); font-size: 16px; line-height: 1.8; }
.reference-category-visual { position: relative; isolation: isolate; width: 100%; max-width: 560px; aspect-ratio: 1.24; margin-inline: auto; }
.reference-category-visual::before { content: ""; position: absolute; z-index: -1; inset: 0 0 12% 15%; background: var(--blue-light); border-radius: 48% 0 40% 35%; opacity: .55; }
.category-photo { position: absolute; overflow: hidden; border: 5px solid var(--white); background: var(--border); box-shadow: 0 12px 28px rgb(11 31 58 / .14); }
.category-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.category-photo-main { inset: 7% 21% 8% 5%; border-radius: 42% 20px 24px 20px; background: var(--border); }
.category-photo-main img { object-position: 50% center; }
.category-photo-top { top: 1%; right: 2%; width: 29%; height: 27%; border-radius: 18px; transform: rotate(4deg); }
.category-photo-bottom { right: 3%; bottom: 1%; width: 30%; height: 27%; border-radius: 18px; transform: rotate(-4deg); }
.category-photo-bottom img { object-position: 68% center; }
.reference-category-visual > .category-photo-badge { position: absolute; left: 0; bottom: 4%; display: flex; align-items: center; gap: 10px; max-width: 66%; padding: 14px 16px; border-radius: 12px; background: var(--navy); color: #fff; box-shadow: 0 8px 20px rgb(11 31 58 / .18); font-size: clamp(12px,1.3vw,17px); font-weight: 700; line-height: 1.4; }
.category-photo-badge small { display: block; margin-top: 3px; font-size: 11px; font-weight: 400; }
.category-photo-badge svg { width: 26px; height: 26px; flex: none; }
[data-theme=dark] .reference-category-visual > .category-photo-badge { background: #173659; }

.reference-community, .reference-faq { padding: 64px 0; }
.reference-community { background: var(--blue-light); }
.reference-faq { background: var(--white); }
.reference-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.reference-section-heading h2, .reference-faq h2 { margin: 8px 0 12px; max-width: 25ch; color: var(--navy); font-size: clamp(26px,3vw,40px); line-height: 1.2; letter-spacing: -1px; }
.reference-section-heading p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.reference-section-heading button { flex: none; min-height: 44px; }
.reference-feedback-note { margin-top: 20px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.reference-review-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.reference-review { display: flex; flex-direction: column; gap: 16px; padding: 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--white); }
.reference-review .review-stars { color: #a85b00; letter-spacing: 3px; font-size: 20px; }
[data-theme=dark] .reference-review .review-stars { color: #ffc86a; }
.reference-review blockquote { margin: 0; flex: 1; color: var(--text); font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; white-space: pre-wrap; }
.reference-review footer { display: grid; gap: 4px; color: var(--muted); font-size: 12px; }
.reference-review footer strong { color: var(--navy); }
.reference-faq-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 40px; margin-top: 24px; align-items: start; }
.reference-faq details { padding: 20px 0; border-bottom: 1px solid var(--border); }
.reference-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; color: var(--navy); font-size: 16px; font-weight: 600; cursor: pointer; list-style: none; }
.reference-faq summary::-webkit-details-marker { display: none; }
.reference-faq summary span { flex: none; color: var(--blue); font-size: 24px; }
.reference-faq details[open] summary span { transform: rotate(45deg); }
.reference-faq details p { padding-top: 14px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.reference-review-grid[hidden] { display: none; }
.feedback-dialog { position: fixed; inset: 0; margin: auto; box-sizing: border-box; width: min(520px,calc(100% - 24px)); max-width: calc(100% - 24px); max-height: calc(100dvh - 32px); overflow: auto; padding: 24px; border: 1px solid var(--border); border-radius: 16px; background: var(--white); color: var(--text); --feedback-action: #1769e0; --feedback-action-text: #fff; }
.feedback-dialog::backdrop { background: rgba(11,31,58,.55); }
.feedback-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.feedback-dialog h2 { color: var(--navy); font-size: 24px; line-height: 1.3; }
.feedback-dialog button { min-height: 44px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--white); color: var(--navy); font: inherit; cursor: pointer; }
.feedback-dialog p { margin: 12px 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.feedback-dialog label { display: grid; gap: 8px; margin-top: 16px; font-size: 13px; font-weight: 600; }
.feedback-dialog textarea, .feedback-dialog select { width: 100%; min-height: 44px; padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--white); color: var(--text); font: inherit; font-size: 16px; }
.feedback-dialog textarea { min-height: 100px; resize: vertical; }
.feedback-rating { display: flex; min-width: 0; max-width: 100%; gap: 4px; margin: 12px 0 0; padding: 0; border: 0; }
.feedback-rating legend { margin-top: 16px; font-size: 14px; font-weight: 700; }
.feedback-rating label { position: relative; display: grid; place-items: center; margin: 8px 0 0; cursor: pointer; }
.feedback-rating input { position: absolute; opacity: 0; }
.feedback-rating span { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 8px; color: var(--muted); font-size: 26px; }
.feedback-rating input:checked + span { background: var(--blue-light); border-color: var(--blue); color: var(--blue); }
.feedback-rating input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 3px; }
.feedback-dialog footer { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.feedback-dialog button[type=submit] { background: var(--feedback-action); color: var(--feedback-action-text); border-color: var(--feedback-action); }
.feedback-dialog button:disabled { opacity: .6; cursor: wait; }
[data-theme=dark] .feedback-dialog { --feedback-action: #8bbaff; --feedback-action-text: #0b1f3a; }
.feedback-dialog [hidden] { display: none !important; }
@media(max-width:768px) {
 .reference-search-toolbar { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
 .reference-search-toolbar > form { grid-column: 1 / -1; }
 .reference-filter-button, .reference-sort select { min-height: 46px; font-size: 13px; }
 .reference-home-page .finder-panel { padding: 14px; }
 .reference-home-page .reference-home-filters, .reference-search-page .results-filters .results-filter-panel { grid-template-columns: 1fr; }
 .reference-home-page .reference-home-filters { display: grid; }
 .reference-category-intro { grid-template-columns: minmax(0,1fr); gap: 24px; }
 .reference-category-intro h2 { max-width: 18ch; font-size: 32px; }
 .reference-category-intro p { margin-top: 12px; font-size: 14px; }
 .reference-category-visual { max-width: 460px; }
 .category-photo { border-width: 4px; }
 .reference-category-visual > .category-photo-badge { padding: 10px 12px; gap: 6px; }
 .category-photo-badge small { font-size: 10px; }
 .reference-home-page .categories-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
 .reference-home-page .category-card { min-width: 0; padding: 16px; grid-template-columns: minmax(0,1fr); row-gap: 8px; }
 .reference-home-page .category-card .category-icon { grid-row: auto; grid-column: 1; justify-self: center; margin: 0 0 4px; }
 .reference-home-page .category-card h3, .reference-home-page .category-card p { grid-column: 1; text-align: center; word-break: normal; overflow-wrap: normal; hyphens: none; }
 .reference-home-page .category-card h3 { font-size: 16px; line-height: 1.4; }
 .reference-home-page .category-card p { font-size: 12px; }
 .reference-community, .reference-faq { padding: 40px 0; }
 .reference-section-heading { display: grid; gap: 12px; }
 .reference-section-heading button { justify-self: start; }
 .reference-review-grid, .reference-faq-grid { grid-template-columns: 1fr; }
 .reference-review { padding: 20px; }
 .feedback-dialog { padding: 16px; }
}
.feedback-dialog .feedback-public-ack { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; line-height: 1.6; }
.feedback-public-ack input { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.feedback-text-link { border: 0; background: transparent; color: var(--blue); font: inherit; font-size: 13px; min-height: 44px; cursor: pointer; }
.feedback-admin-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 16px; margin-top: 24px; }
#feedbackAdminList { grid-template-columns: repeat(2,minmax(0,1fr)); }
#feedbackAdminList select { width: 100%; min-height: 44px; margin-top: 8px; padding: 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--white); color: var(--text); font: inherit; }
#feedbackAdminList p { overflow-wrap: anywhere; font-size: 12px; color: var(--muted); }
#feedbackAdminList button { min-height: 44px; }
@media(max-width:768px) { #feedbackAdminList { grid-template-columns: 1fr; } }

.feedback-rating label:has(~ label input:checked) > span:not(.sr-only) { background: var(--blue-light); border-color: var(--blue); color: var(--blue); }
.reference-search-page .results-filters:not([open]) > .results-filter-panel { display: none; }

/* Homepage discovery controls stay off the landing page. */
.reference-home-page .finder-panel[hidden] { display: none; }

/* Keep even unbroken pasted text inside a predictable review preview. */
.reference-review-grid > .reference-review { min-width: 0; overflow: hidden; }
.reference-review-grid .reference-review blockquote { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; line-clamp: 6; flex: none; min-width: 0; max-width: 100%; height: 10.8em; overflow: hidden; overflow-wrap: anywhere; word-break: break-word; white-space: normal; }
.reference-review-grid .reference-review footer { display: flex; align-items: center; gap: 12px; margin-top: auto; min-width: 0; }
.review-identity { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.review-avatar { position: relative; display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--blue-light); color: var(--text); font-size: 14px; font-weight: 700; }
.review-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
[data-feedback-word-count] { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }

/* Real review aggregate, with profile photos rather than fabricated social proof. */
#student-experiences .experience-rating-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.experience-summary-faces { display: inline-flex; align-items: center; padding-right: 4px; flex: none; }
.experience-summary-avatar { position: relative; display: grid; place-items: center; width: 48px; height: 48px; flex: none; margin-left: -12px; overflow: hidden; border: 3px solid var(--white); border-radius: 50%; background: var(--blue-light); color: var(--text); font-size: 13px; font-weight: 700; }
.experience-summary-avatar:first-child { margin-left: 0; }
.experience-summary-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.experience-summary-details { display: grid; gap: 2px; padding-left: 16px; border-left: 1px solid var(--border); }
.experience-summary-details:first-child { padding-left: 0; border-left: 0; }
.experience-summary-rating { display: flex; align-items: center; gap: 10px; line-height: 1.3; }
.experience-summary-stars { position: relative; display: inline-block; color: var(--border); font-size: 23px; letter-spacing: 1px; white-space: nowrap; }
.experience-summary-stars > span { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: #efb400; white-space: nowrap; }
.experience-summary-score { color: var(--text); font-size: 15px; font-weight: 600; }
.experience-summary-caption { color: var(--muted); font-size: 13px; line-height: 1.5; }
.experience-summary-caption strong { color: var(--text); font-weight: 700; }
[data-theme=dark] .experience-summary-stars > span { color: #ffc86a; }
@media (max-width: 480px) {
 #student-experiences .experience-rating-summary { gap: 10px; }
 .experience-summary-avatar { width: 40px; height: 40px; margin-left: -14px; }
 .experience-summary-details { padding-left: 10px; }
 .experience-summary-stars { font-size: 20px; }
}

.feedback-profile-trigger { display: flex; align-items: center; gap: 16px; width: 100%; min-width: 0; padding: 0; border: 0; border-radius: 6px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.feedback-profile-trigger:disabled { cursor: default; opacity: 1; }
.feedback-profile-trigger:not(:disabled):hover strong { text-decoration: underline; text-underline-offset: 3px; }
.feedback-profile-trigger:focus-visible, .experience-summary-avatar:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
button.experience-summary-avatar { padding: 0; cursor: pointer; font-family: inherit; }
.feedback-history-navigation, .feedback-profile-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; font-size: 12px; }
.feedback-public-profile { width: min(600px,calc(100% - 24px)); }
[data-profile-identity] { display: flex; align-items: center; gap: 12px; margin-block: 16px; }
[data-profile-identity] .review-avatar { width: 56px; height: 56px; flex-basis: 56px; }
.feedback-profile-post { padding: 16px 0; border-top: 1px solid var(--border); }
.feedback-public-profile .feedback-profile-post p { overflow-wrap: anywhere; word-break: break-word; white-space: pre-wrap; }
.feedback-profile-post time { font-size: 12px; color: var(--muted); }
.feedback-restrictions { margin-top: 40px; }
.feedback-restrictions > p { margin: 12px 0 20px; }
#feedbackAdminList p, #feedbackBlockedList p { overflow-wrap: anywhere; }

.feedback-public-profile .feedback-profile-post p[data-i18n-ignore],
.feedback-public-profile [data-profile-identity] strong[data-i18n-ignore] { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }

.feedback-invitation { position: fixed; z-index: 1900; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom,0px)); transform: translateX(-50%); display: grid; grid-template-columns: 28px minmax(0,1fr) repeat(3,44px); align-items: center; width: min(480px,calc(100% - 24px)); min-height: 56px; padding: 4px 4px 4px 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--white); color: var(--text); box-shadow: 0 8px 28px rgb(11 31 58 / .12); }
.feedback-invitation[hidden] { display: none !important; }
.feedback-invitation-question { min-width: 0; padding-right: 8px; font-size: 13px; font-weight: 600; line-height: 1.4; }
.feedback-invitation button { display: grid; place-items: center; width: 44px; min-width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.feedback-invitation button:hover { background: var(--blue-light); color: var(--blue); }
.feedback-invitation button:focus-visible { outline: 3px solid var(--blue); outline-offset: -2px; }
.feedback-invitation [data-feedback-choice=dislike] svg { transform: rotate(180deg); }
.feedback-invitation [data-feedback-invitation-close] { border-left: 1px solid var(--border); border-radius: 0 8px 8px 0; }
.feedback-dialog [data-feedback-intent-hint] { padding: 12px; border-radius: 8px; background: var(--blue-light); color: var(--text); }
.feedback-dialog [data-feedback-intent-hint][hidden] { display: none; }
@media (max-width: 768px) { .feedback-invitation { bottom: calc(156px + env(safe-area-inset-bottom,0px)); } }

/* Keep standalone homepage sections inside the mobile reading area. */
@media (max-width: 900px) {
  #student-experiences > .section-container,
  #faq > .section-container {
    width: calc(100% - 40px);
    margin-inline: auto;
    min-width: 0;
  }
}

.feedback-admin-identity { display: flex; align-items: center; gap: 12px; min-width: 0; margin-bottom: 16px; }
.feedback-admin-identity strong { min-width: 0; overflow-wrap: anywhere; }
.feedback-admin-identity .review-avatar { flex: 0 0 48px; width: 48px; height: 48px; }

/* A quiet blue surface gives provider cards definition without heavy color. */
.reference-home-page .category-card{background:#edf4fc;border-color:#cadcf0;box-shadow:0 3px 12px rgb(11 31 58 / .04)}
.reference-home-page .category-icon,.reference-home-page .category-icon svg{color:#245c9c}
[data-theme=dark] .reference-home-page .category-card{background:#16253a;border-color:#36506d;box-shadow:0 3px 12px rgb(0 0 0 / .1)}
[data-theme=dark] .reference-home-page .category-icon,[data-theme=dark] .reference-home-page .category-icon svg{color:#a8cfff}
@media(hover:hover) and (pointer:fine){.reference-home-page .category-card:hover{background:#e6f0fc;border-color:#91b6e7;box-shadow:0 6px 18px rgb(11 31 58 / .08);transform:translateY(-2px)}[data-theme=dark] .reference-home-page .category-card:hover{background:#1b304b;border-color:#6288b8}}
.reference-home-page .category-card:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
@media(prefers-reduced-motion:reduce){.reference-home-page .category-card{transition:none}.reference-home-page .category-card:hover,.reference-home-page .category-card:focus-visible{transform:none}}

/* Public category guidance remains useful alongside the current published listings. */
.category-guide { max-width: 1200px; margin: 0 auto 48px; padding: 24px; border: 1px solid var(--border, #e5eaf1); border-radius: 16px; background: var(--white, #fff); }
.category-guide h2 { margin-bottom: 12px; font-size: clamp(20px, 3vw, 26px); }
.category-guide p { margin: 0 0 12px; color: var(--muted, #667085); }
.category-guide nav { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 20px; }
.category-guide nav a { color: var(--blue, #1769e0); text-decoration: underline; text-underline-offset: 3px; }
@media(max-width:1248px) { .category-guide { margin-inline: 24px; } }
@media(max-width:600px) { .category-guide { margin-inline: 16px; padding: 20px; } }

/* Keep the original header layout; place verification beneath it at the right. */
.details-page .detail-hero-card{flex-wrap:wrap}
.details-page .detail-hero-card>div{min-width:0;flex:1}
.details-page .detail-verification{flex:0 0 100%;width:100%;align-self:stretch;margin-top:-8px;text-align:right;color:var(--muted);font-size:12px;font-weight:500;line-height:1.4}

/* Compare uses the same compact pill sizing as the adjacent Save action. */
.details-page .detail-kicker>.comparison-button{height:36px;min-height:36px;box-sizing:border-box;padding:0 11px;border-color:#cbd8e7;border-radius:999px;font-size:12px;font-weight:800;line-height:normal}
@media(max-width:768px){.details-page .detail-kicker>.comparison-button{min-height:44px}}

/* Footer feedback belongs inside the shared content width, with readable contrast. */
.footer-bottom .feedback-text-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;max-width:100%;padding:8px 0;color:inherit;text-decoration:underline;text-underline-offset:3px;white-space:normal;text-align:left}
.footer-bottom .feedback-text-link:hover{color:#fff}
.footer-bottom .feedback-text-link:focus-visible{outline:2px solid currentColor;outline-offset:4px;border-radius:4px}

/* Category search has an explicit submit action on phones and desktop. */
.category-search-form{flex:0 1 440px;width:min(440px,100%);min-width:0}
.category-results-toolbar .category-search-form>label{display:block;width:auto;margin-bottom:8px}
.category-search-controls{display:flex;align-items:center;gap:8px;min-width:0}
.category-search-controls input{flex:1;min-width:0;color:var(--text)}
.category-search-button{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;min-height:50px;padding:0 20px;border:1px solid var(--blue);border-radius:11px;background:var(--blue);color:#fff;font:inherit;font-size:14px;font-weight:700;cursor:pointer}
.category-search-button:hover{filter:brightness(.95)}
.category-search-button:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
@media(max-width:620px){.category-search-form{flex-basis:auto;width:100%}.category-search-button{padding-inline:16px}}

/* The first scholarship card gives the title space and keeps phone actions together. */
@media(max-width:768px){
 .details-page .detail-hero-card{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;gap:12px 8px;padding:20px 16px}
 .details-page .detail-hero-card>div,.details-page .detail-kicker{display:contents}
 .details-page .detail-provider-logo{grid-column:1;grid-row:1;width:56px;height:56px;min-width:56px;margin:0;justify-self:start}
 .details-page .detail-kicker>.status{grid-column:2;grid-row:1;justify-self:end;align-self:start;display:inline-flex;align-items:center;justify-content:center;height:28px;min-height:28px;padding:0 12px;font-size:11px;border-radius:999px}
 .details-page .detail-hero-card h1{grid-column:1/-1;grid-row:2;max-width:none;min-width:0;margin:0;font-size:clamp(24px,6vw,30px);line-height:1.2;letter-spacing:-.025em;text-wrap:balance;overflow-wrap:anywhere}
 .details-page #detailProvider{grid-column:1/-1;grid-row:3;min-width:0;margin:0 0 4px;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
 .details-page .detail-kicker>.detail-save-button,.details-page .detail-kicker>.comparison-button{grid-row:4;align-self:stretch;justify-content:center;gap:6px;width:100%;min-width:0;height:auto;min-height:44px;margin:0;padding:8px 10px;border-radius:12px;font-size:12px;line-height:1.3;white-space:normal;text-align:center}
 .details-page .detail-kicker>.detail-save-button{grid-column:1}
 .details-page .detail-save-button svg{flex-shrink:0}
 .details-page .detail-save-button span{min-width:0}
 .details-page .detail-kicker>.comparison-button{grid-column:2}
 .details-page .detail-verification{grid-column:1/-1;grid-row:5;margin:0;font-size:11px;line-height:1.4;text-align:right}
}

/* White unrated stars become yellow through the selected rating. */
.feedback-dialog .feedback-rating .feedback-rating-star { color: #fff; --rating-star-stroke: #64748b; background: var(--white); border-color: var(--border); }
.feedback-dialog .feedback-rating input:checked + .feedback-rating-star,
.feedback-dialog .feedback-rating label:has(~ label input:checked) > .feedback-rating-star { color: #facc15; --rating-star-stroke: #946200; background: var(--white); border-color: var(--border); }

/* Keep history and writing actions together beside Close. */
.feedback-header-actions { display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-shrink:0; }
.feedback-header-actions [data-feedback-history-toggle] { display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:12px; }
.feedback-header-actions svg { flex-shrink:0; }
.feedback-dialog [data-feedback-history-section][hidden] { display:none; }
.feedback-dialog [data-feedback-history-section] { padding:0;border:0;background:transparent; }
.feedback-dialog [data-feedback-history-empty] { color:var(--muted);font-size:12px;font-weight:400; }
@media(max-width:520px){.feedback-dialog:has([data-feedback-history-toggle])>header{flex-wrap:wrap;gap:12px}.feedback-dialog:has([data-feedback-history-toggle])>header h2{flex-basis:100%}.feedback-header-actions{width:100%}}
.feedback-header-actions>button { height:44px;min-height:44px;padding:8px 12px;line-height:1.2; }

/* A short history list opens a full comment preview before edit or deletion. */
.feedback-dialog form[hidden] { display:none; }
.feedback-dialog [data-feedback-history-list] { max-height:440px;max-height:min(56dvh,440px);overflow:auto; }
.feedback-dialog .feedback-history-entry { display:grid;grid-template-columns:minmax(0,1fr) 18px;gap:5px 12px;width:100%;min-width:0;min-height:72px;padding:14px 4px;text-align:left;border:0;border-bottom:1px solid var(--border);border-radius:0;background:transparent; }
.feedback-history-entry>span { grid-column:1;line-height:1.5;font-size:14px;font-weight:600;color:var(--text);overflow-wrap:anywhere; }
.feedback-history-entry>time { grid-column:1;line-height:1.5;font-size:12px;color:var(--muted);font-weight:400; }
.feedback-dialog .feedback-history-entry:hover { background:var(--background); }
.feedback-dialog .feedback-history-entry:focus-visible { outline:2px solid var(--blue);outline-offset:-2px; }
.feedback-comment-preview [data-comment-text] { white-space:pre-wrap;overflow-wrap:anywhere;max-height:40dvh;overflow:auto;font-size:15px;color:var(--text); }
.feedback-comment-preview footer { display:flex;gap:8px; }
.feedback-comment-preview footer button { flex:1;min-width:0;min-height:44px; }
.feedback-comment-preview [data-comment-delete] { color:#b42335; }
html[data-theme=dark] .feedback-comment-preview [data-comment-delete] { color:#ff9aaa; }

.feedback-dialog[data-feedback-view=history] { padding:20px; }
.feedback-dialog[data-feedback-view=history]>header { gap:12px; }
.feedback-dialog[data-feedback-view=history]>header h2 { font-size:24px;line-height:1.25; }
.feedback-dialog[data-feedback-view=history] .feedback-header-actions { justify-content:space-between; }
.feedback-dialog[data-feedback-view=history] [data-feedback-history-toggle] { background:#1769cf;border-color:#1769cf;color:#fff; }
.feedback-dialog .feedback-history-description { margin:16px 0 8px;font-size:13px;line-height:1.5;color:var(--muted); }
.feedback-history-entry>svg { grid-column:2;grid-row:1/3;align-self:center;width:18px;height:18px;fill:none;stroke:var(--muted);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round; }
.feedback-dialog .feedback-history-entry:last-child { border-bottom:0; }
