.brand-column-page h1,
.brand-column-page h2,
.brand-column-page h3,
.brand-column-page h4,
.brand-column-page .public-section-head h2 {
    font-family: var(--sans) !important;
}

.brand-ranking-hero {
    padding: 32px 0;
    border-bottom: 1px solid var(--line);
    background: var(--rose-soft);
}

.brand-ranking-hero .breadcrumbs {
    margin-bottom: 20px;
}

.brand-ranking-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    align-items: end;
    gap: 24px;
}

.brand-ranking-hero h1 {
    margin: 6px 0 10px !important;
    color: var(--text) !important;
    font-size: 36px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
}

.brand-ranking-hero-grid > div:first-child > span {
    color: var(--rose);
    font-size: 12px;
    font-weight: 700;
}

.brand-ranking-hero p {
    max-width: 680px;
    margin: 0;
    color: var(--text-soft);
    font-size: 14px;
}

.brand-ranking-hero-stat {
    padding-left: 20px;
    border-left: 2px solid var(--rose);
}

.brand-ranking-hero-stat strong,
.brand-ranking-hero-stat span {
    display: block;
}

.brand-ranking-hero-stat strong {
    color: var(--rose);
    font-size: 38px;
    line-height: 1;
}

.brand-ranking-hero-stat span {
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
}

.brand-ranking-layout,
.brand-detail-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
    padding-top: 30px;
    padding-bottom: 70px;
}

.brand-ranking-side {
    align-self: start;
    position: sticky;
    top: 18px;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    background: #fff;
}

.brand-ranking-side-head {
    display: flex;
    align-items: center;
    padding: 15px 14px;
    border-bottom: 1px solid var(--line);
}

.brand-ranking-side-head a {
    color: var(--rose);
    font-size: 16px;
    font-weight: 700;
}

.brand-tree {
    padding: 8px;
}

.brand-tree-node + .brand-tree-node {
    margin-top: 2px;
}

.brand-tree-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.brand-tree-link {
    display: flex;
    min-height: 36px;
    flex: 1;
    align-items: center;
    padding: 0 9px;
    color: var(--text-soft);
    font-size: 15px;
    font-weight: 600;
}

.brand-tree-link:hover,
.brand-tree-link.is-active {
    color: var(--rose);
    background: var(--rose-soft);
}

.brand-tree-toggle {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border: 0;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
}

.brand-tree-toggle span {
    font-size: 20px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.brand-tree-toggle[aria-expanded="true"] span {
    transform: rotate(90deg);
}

.brand-tree-children {
    margin: 2px 0 4px 18px;
    padding-left: 7px;
    border-left: 1px solid var(--line);
}

.brand-tree-children .brand-tree-link {
    min-height: 36px;
    font-size: 14px;
    font-weight: 400;
}

.brand-ranking-main {
    min-width: 0;
    border: 1px solid var(--line-strong);
    background: #fff;
}

.brand-ranking-main .pager {
    flex-wrap: wrap;
    padding: 0 14px 16px;
}

.brand-ranking-head,
.brand-ranking-item {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 92px 92px 76px;
    align-items: center;
    gap: 14px;
}

.brand-ranking-head {
    min-height: 58px;
    padding: 0 18px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    background: var(--soft);
    font-size: 16px;
    font-weight: 600;
}

.brand-ranking-item {
    min-height: 124px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
}

.brand-ranking-item:last-of-type {
    border-bottom: 0;
}

.brand-ranking-number {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 8px;
    color: var(--badge-text, var(--rose));
    background: var(--badge-bg, var(--rose-soft));
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 1;
}

.brand-ranking-item .brand-ranking-number.is-top {
    color: #fff;
    background: var(--ranking-color);
}

.brand-ranking-item .brand-ranking-number.is-later {
    color: #fff;
    background: #9ca1a5;
}

.brand-ranking-company {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.brand-ranking-logo {
    display: grid;
    width: 180px;
    height: 80px;
    flex: 0 0 180px;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
}

.brand-ranking-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-ranking-logo b {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    color: var(--badge-text, var(--rose));
    background: var(--badge-bg, var(--rose-soft));
    font-size: 16px;
}

.brand-ranking-company > div {
    min-width: 0;
}

.brand-ranking-company h2 {
    overflow: hidden;
    margin: 0 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-ranking-company h2 a:hover {
    color: var(--rose);
}

.brand-ranking-company p {
    display: block;
    overflow: hidden;
    margin: 4px 0 0;
    color: var(--text-soft);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-ranking-company .brand-positioning {
    color: var(--muted);
}

.brand-ranking-index {
    text-align: center;
}

.brand-ranking-index strong,
.brand-ranking-index span {
    display: block;
}

.brand-ranking-index strong {
    color: var(--rose);
    font-size: 26px;
    line-height: 1;
}

.brand-ranking-index span {
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
}

.brand-ranking-index--votes strong {
    color: var(--text);
}

.brand-vote-button,
.brand-like-button,
.brand-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 0;
    color: #fff;
    background: var(--rose);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    transition: background 0.2s ease;
}

.brand-vote-button {
    min-height: 38px;
    padding: 0 15px;
    font-size: 14px;
}

.brand-vote-button:hover,
.brand-primary-button:hover {
    background: var(--rose-dark);
}

.brand-ranking-empty {
    padding: 72px 24px;
    text-align: center;
}

.brand-ranking-empty strong {
    display: block;
    color: var(--text);
    font-size: 20px;
}

.brand-ranking-empty p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.brand-profile-logo {
    display: grid;
    width: 118px;
    height: 82px;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    background: #fff;
}

.brand-profile-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-profile-logo b {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 50%;
    color: var(--badge-text, var(--rose));
    background: var(--badge-bg, var(--rose-soft));
    font-size: 26px;
}

.brand-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.brand-profile-actions form {
    margin: 0;
}

.brand-like-button {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--line-strong);
    color: var(--text-soft);
    background: #fff;
}

.brand-like-button .icon {
    width: 15px;
    height: 15px;
}

.brand-like-button b {
    margin-left: 3px;
    color: var(--rose);
}

.brand-like-button:hover,
.brand-like-button.is-active {
    border-color: var(--rose);
    color: var(--rose);
    background: var(--rose-soft);
}

.brand-content-panel,
.brand-product-panel {
    margin: 0;
    padding: 24px;
    border: 1px solid var(--line-strong);
    background: #fff;
}

.brand-section-head {
    margin-bottom: 16px;
}

.brand-section-head h2 {
    margin: 0 !important;
    color: var(--text) !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}

.brand-section-head--row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.brand-section-head--row > a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--rose);
    font-size: 12px;
}

.brand-section-head--row .icon {
    width: 14px;
    height: 14px;
}

.brand-story-copy {
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.9;
}

.brand-story-copy p {
    margin: 0 0 12px;
}

.brand-story-copy p:last-child {
    margin-bottom: 0;
}

.brand-comment-panel {
    padding: 24px;
    border: 1px solid var(--line-strong);
    background: #fff;
}

.brand-comment-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.brand-comment-head h2 {
    margin: 0 !important;
    color: var(--text) !important;
    font-size: 20px !important;
    font-weight: 600 !important;
}

.brand-comment-head span {
    color: var(--muted);
    font-size: 13px;
}

.brand-comment-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.brand-comment-item:last-child {
    border-bottom: 0;
}

.brand-comment-item header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.brand-comment-item header strong {
    color: var(--text);
    font-size: 14px;
}

.brand-comment-item header span {
    color: #d99a00;
    font-size: 12px;
}

.brand-comment-item header time {
    margin-left: auto;
    color: var(--muted);
    font-size: 11px;
}

.brand-comment-item p {
    margin: 9px 0 0;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.product-grid--brand-detail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.brand-rank-hero {
    background: var(--rose-soft);
}

.brand-update-panel {
    padding: 24px 0;
}

.brand-category-section {
    background: var(--soft);
}

.brand-category-group .public-section-head {
    margin-top: 20px;
}

.brand-list-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.brand-list-card {
    min-height: 230px;
    padding: 18px;
}

.brand-list-card h3 {
    font-size: 18px;
}

.brand-top-three .brand-top-item {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    border-top: 1px solid var(--line);
}

.brand-top-three .brand-top-item > i {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.brand-top-three .brand-top-item > i.ranking-mini-number {
    color: var(--ranking-color);
    font-weight: 700;
}

.brand-top-copy {
    min-width: 0;
}

.brand-top-copy strong,
.brand-top-copy small,
.brand-top-copy em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-top-copy strong {
    color: var(--text-soft);
    font-size: 13px;
}

.brand-top-copy small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 10px;
}

.brand-top-copy em {
    margin-top: 3px;
    color: var(--rose);
    font-size: 11px;
    font-style: normal;
}

.brand-detail-breadcrumbs {
    margin-top: 30px;
    margin-bottom: 0;
}

.brand-detail-breadcrumbs + .brand-detail-layout {
    padding-top: 18px;
}

.brand-profile-inline {
    padding: 24px;
    border: 1px solid var(--line-strong);
    background: #fff;
}

.brand-profile-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: center;
    gap: 28px;
}

.brand-profile-identity {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    align-items: center;
    gap: 22px;
}

.brand-profile-logo--large {
    width: 170px;
    height: 100px;
}

.brand-profile-identity > div > span {
    color: var(--rose);
    font-size: 12px;
    font-weight: 700;
}

.brand-profile-identity h1 {
    margin: 5px 0 0 !important;
    color: var(--text) !important;
    font-size: 36px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

.brand-profile-company {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.brand-profile-summary {
    max-width: 650px;
    margin: 8px 0 0;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.8;
}

.brand-profile-vote-copy {
    margin: 8px 0 0 !important;
    color: var(--rose) !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
}

.brand-profile-scores {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 122px;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    background: #fff;
}

.brand-profile-score-main,
.brand-profile-score-side {
    padding: 18px;
    text-align: center;
}

.brand-profile-score-side {
    border-left: 1px solid var(--line);
}

.brand-profile-score-main span,
.brand-profile-score-main small,
.brand-profile-score-side span,
.brand-profile-score-side small {
    display: block;
    color: var(--muted);
    font-size: 10px;
}

.brand-profile-score-main strong {
    display: inline-block;
    margin: 5px 2px 0;
    color: var(--rose);
    font-size: 48px;
    line-height: 1;
}

.brand-profile-score-main small {
    display: inline;
}

.brand-profile-score-side strong {
    display: block;
    margin-top: 8px;
    color: var(--text);
    font-size: 28px;
    line-height: 1;
}

.brand-detail-main {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 20px;
}

.brand-data-panel,
.brand-content-panel,
.brand-product-panel {
    margin: 0;
    padding: 24px;
    border: 1px solid var(--line-strong);
    background: #fff;
}

.brand-data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
}

.brand-data-grid > div {
    min-width: 0;
    padding: 16px 12px;
    border: 1px solid var(--line);
    background: #fff;
    text-align: center;
}

.brand-data-icon-visual {
    display: grid;
    width: 38px;
    height: 38px;
    margin: 0 auto 10px;
    place-items: center;
    border-radius: 10px;
}

.brand-data-icon-visual .icon {
    width: 19px;
    height: 19px;
}

.brand-data-item > span:not(.brand-data-icon-visual),
.brand-data-grid strong {
    display: block;
}

.brand-data-item > span:not(.brand-data-icon-visual) {
    color: var(--muted);
    font-size: 11px;
}

.brand-data-grid strong {
    margin-top: 6px;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.brand-data-icon--category {
    color: #176d62;
    background: #e8f4f1;
}

.brand-data-icon--company {
    color: #315f9c;
    background: #eaf1fb;
}

.brand-data-icon--origin {
    color: #8b5a19;
    background: #fff3dd;
}

.brand-data-icon--founded {
    color: #7a4b9d;
    background: #f3eafa;
}

.brand-data-icon--votes {
    color: #b24822;
    background: #fff0e9;
}

.brand-data-icon--likes {
    color: #bd2f54;
    background: #fdebf0;
}

.brand-vote-dialog {
    width: min(520px, calc(100% - 24px));
    max-height: calc(100% - 40px);
    padding: 0;
    overflow: auto;
    border: 0;
    background: #fff;
    box-shadow: 0 24px 80px rgba(21, 23, 28, 0.24);
}

.brand-vote-dialog::backdrop {
    background: rgba(21, 23, 28, 0.58);
}

.brand-vote-dialog form {
    padding: 24px;
}

.brand-vote-dialog-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.brand-vote-dialog-head span {
    color: var(--rose);
    font-size: 10px;
    font-weight: 700;
}

.brand-vote-dialog-head h2 {
    margin: 4px 0 0;
    color: var(--text);
    font-size: 20px;
    line-height: 1.4;
}

.brand-vote-dialog-head button {
    width: 32px;
    height: 32px;
    border: 0;
    color: var(--muted);
    background: var(--soft);
    font-size: 22px;
    cursor: pointer;
}

.brand-star-picker {
    margin: 0;
    padding: 0;
    border: 0;
}

.brand-star-picker legend,
.brand-vote-comment {
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 600;
}

.brand-star-options {
    display: grid;
    gap: 7px;
    margin-top: 9px;
}

.brand-star-options label {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    border: 1px solid var(--line-strong);
    cursor: pointer;
}

.brand-star-options input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.brand-star-options span {
    color: #d99a00;
    font-size: 18px;
}

.brand-star-options input:checked + span {
    color: var(--rose);
}

.brand-star-options small {
    color: var(--muted);
    font-size: 11px;
}

.brand-star-options label:has(input:checked) {
    border-color: var(--rose);
    background: var(--rose-soft);
}

.brand-vote-comment {
    display: block;
    margin-top: 18px;
}

.brand-vote-comment textarea {
    width: 100%;
    min-height: 110px;
    margin-top: 8px;
    padding: 10px;
    border: 1px solid var(--line-strong);
    font: inherit;
    font-size: 14px;
    resize: vertical;
}

.brand-vote-hint {
    margin: 7px 0 16px;
    color: var(--muted);
    font-size: 11px;
}

.brand-primary-button {
    min-height: 40px;
    padding: 0 18px;
}

.brand-vote-login {
    padding: 18px;
    background: var(--soft);
    text-align: center;
}

.brand-vote-login p {
    margin: 0 0 14px;
    color: var(--text-soft);
    font-size: 13px;
}

.brand-update-panel,
.brand-category-section {
    background: var(--soft);
}

.brand-list-card,
.brand-rank-hero {
    border-radius: 0 !important;
}

@media (max-width: 1100px) {
    .brand-ranking-layout,
    .brand-detail-layout {
        grid-template-columns: 200px minmax(0, 1fr);
    }

    .brand-ranking-head,
    .brand-ranking-item {
        grid-template-columns: 48px minmax(0, 1fr) 82px 82px 70px;
        gap: 10px;
    }
}

@media (max-width: 1000px) {
    .brand-profile-hero-grid {
        grid-template-columns: minmax(0, 1fr) 300px;
    }
}

@media (max-width: 900px) {
    .brand-ranking-layout,
    .brand-detail-layout {
        grid-template-columns: 1fr;
    }

    .brand-ranking-side {
        position: static;
    }

    .brand-profile-hero-grid {
        grid-template-columns: 1fr;
    }

    .brand-product-panel .product-grid--brand-detail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .brand-data-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .brand-ranking-hero {
        padding: 24px 0;
    }

    .brand-ranking-hero h1 {
        font-size: 28px !important;
    }

    .brand-ranking-hero-grid {
        grid-template-columns: 1fr 100px;
        align-items: center;
    }

    .brand-ranking-head {
        display: none;
    }

    .brand-ranking-item {
        grid-template-columns: 42px minmax(0, 1fr) 72px;
        gap: 10px;
        padding: 14px;
    }

    .brand-ranking-number {
        grid-row: 1 / span 2;
    }

    .brand-ranking-company {
        grid-column: 2 / span 2;
    }

    .brand-ranking-index {
        grid-column: 2;
        text-align: left;
    }

    .brand-ranking-index--votes {
        grid-column: 3;
    }

    .brand-ranking-item .brand-vote-button {
        grid-column: 2 / span 2;
    }

    .brand-content-panel,
    .brand-product-panel,
    .brand-profile-inline,
    .brand-comment-panel {
        padding: 18px;
    }

    .brand-list-cards {
        grid-template-columns: 1fr;
    }

    .brand-profile-identity {
        grid-template-columns: 130px minmax(0, 1fr);
    }

    .brand-profile-logo--large {
        width: 130px;
        height: 82px;
    }

    .brand-profile-identity h1 {
        font-size: 28px !important;
    }
}

@media (max-width: 480px) {
    .brand-ranking-hero-grid {
        grid-template-columns: 1fr;
    }

    .brand-ranking-hero-stat {
        display: flex;
        align-items: baseline;
        gap: 8px;
        padding: 0;
        border-left: 0;
    }

    .brand-ranking-hero-stat strong {
        font-size: 28px;
    }

    .brand-product-panel .product-grid--brand-detail {
        grid-template-columns: 1fr;
    }

    .brand-profile-identity {
        grid-template-columns: 1fr;
    }

    .brand-profile-logo--large {
        width: 100%;
        height: 96px;
    }

    .brand-data-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}
