/* Shared compact personal-action toolbar; scoped to both new and legacy detail pages. */
.gbn-bucket-actions {
    --bucket-ink: #29483e;
    --bucket-line: #dce6de;
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:7px 14px;
    margin:12px 0 6px;
    max-width:100%;
    font:500 14px/1.35 system-ui,-apple-system,"Segoe UI",sans-serif;
}
.gbn-bucket-actions .gbn-bucket-caption {
    color:#64776c;
    font-size:12px;
    font-weight:650;
    white-space:nowrap;
}
.gbn-bucket-actions .gbn-bucket-segments {
    display:inline-flex;
    align-items:stretch;
    max-width:100%;
    padding:3px;
    gap:2px;
    background:#eef3ee;
    border:1px solid var(--bucket-line);
    border-radius:12px;
}
.gbn-bucket-actions .gbn-bucket-link {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    min-height:38px;
    padding:7px 13px;
    margin:0;
    border:0;
    border-radius:8px;
    background:transparent;
    color:var(--bucket-ink)!important;
    text-decoration:none!important;
    font:650 13px/1.3 system-ui,-apple-system,"Segoe UI",sans-serif;
    white-space:nowrap;
    transition:background-color .15s,color .15s;
}
.gbn-bucket-actions .gbn-bucket-link svg {width:17px;height:17px;flex:none;stroke-linecap:round;stroke-linejoin:round}
.gbn-bucket-actions .gbn-bucket-link:hover {background:#fff;color:#174738!important;box-shadow:0 1px 3px #173f3510}
.gbn-bucket-actions .gbn-bucket-link.is-selected {background:#245d4e;color:#fff!important;box-shadow:0 1px 3px #173f3520}
.gbn-bucket-actions .gbn-bucket-link:focus-visible {outline:2px solid #245d4e;outline-offset:2px}
.gbn-bucket-actions .gbn-bucket-feedback {display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 12px;flex-basis:100%}
.gbn-bucket-actions .gbn-bucket-feedback:has(.gbn-bucket-status:empty):has([data-bucket-view][hidden]) {display:none}
.gbn-bucket-actions .gbn-bucket-status {font-size:13px;color:#315e49}
.gbn-bucket-actions .gbn-bucket-status:empty {display:none}
.gbn-bucket-actions [data-bucket-view] {font-size:13px;font-weight:650;color:#245d4e!important;text-underline-offset:3px}
.gbn-bucket-actions [hidden] {display:none!important}
.gbn-bucket-actions[aria-busy="true"] .gbn-bucket-link {opacity:.65;cursor:wait}
@media(max-width:520px) {
    .gbn-bucket-actions {gap:5px;margin-top:12px}
    .gbn-bucket-actions .gbn-bucket-caption {flex-basis:100%}
    .gbn-bucket-actions .gbn-bucket-segments {width:100%;box-sizing:border-box}
    .gbn-bucket-actions .gbn-bucket-link {flex:1 1 0;min-width:0;min-height:42px;padding:8px 5px;gap:5px;white-space:normal;text-align:center}
}
@media(prefers-reduced-motion:reduce){.gbn-bucket-actions .gbn-bucket-link{transition:none}}

/* The public detail header shares its existing height with the personal actions.
   Flex wrapping keeps unusually long names and narrow screens free of overlap. */
.gbn-detail-heading:has(> .gbn-bucket-actions) {
    display:flex;
    flex-wrap:wrap;
    align-items:flex-end;
    column-gap:24px;
    row-gap:10px;
}
.gbn-detail-heading-copy {flex:1 1 410px;min-width:0;overflow-wrap:anywhere}
.gbn-detail-heading > .gbn-bucket-actions {
    flex:0 1 auto;
    min-width:0;
    max-width:100%;
    margin:0 0 2px auto;
    gap:5px;
    flex-direction:column;
    align-items:flex-end;
}
.gbn-detail-heading > .gbn-bucket-actions .gbn-bucket-caption {display:none}
.gbn-detail-heading > .gbn-bucket-actions .gbn-bucket-segments {
    max-width:100%;
    box-sizing:border-box;
}
.gbn-detail-heading > .gbn-bucket-actions .gbn-bucket-feedback {
    justify-content:flex-end;
    max-width:100%;
    text-align:right;
}
@media(max-width:700px) {
    .gbn-detail-heading:has(> .gbn-bucket-actions) {row-gap:8px}
    .gbn-detail-heading-copy {flex-basis:100%}
    .gbn-detail-heading > .gbn-bucket-actions {margin:0;align-items:flex-start;width:100%}
    .gbn-detail-heading > .gbn-bucket-actions .gbn-bucket-segments {width:auto}
    .gbn-detail-heading > .gbn-bucket-actions .gbn-bucket-feedback {justify-content:flex-start;text-align:left}
    .gbn-detail-heading .facts {margin-top:10px}
}
@media(max-width:380px) {
    .gbn-detail-heading > .gbn-bucket-actions .gbn-bucket-segments {width:100%}
}
