.brm-wrap {
    --brm-ink: #15231f;
    --brm-muted: #65736e;
    --brm-line: #dfe8e2;
    --brm-panel: #ffffff;
    --brm-soft: #f4f8f5;
    --brm-accent: #0f8f6f;
    --brm-accent-dark: #09624e;
    --brm-warn: #b54708;
    color: var(--brm-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.brm-wrap * {
    box-sizing: border-box;
}

.brm-hero {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 24px;
    margin: 0 0 18px;
    color: #fff;
    background: linear-gradient(135deg, #10231e, #0f8f6f);
    border-radius: 8px;
}

.brm-hero h2 {
    margin: 2px 0 0;
    color: inherit;
    font-size: 30px;
    line-height: 1.15;
}

.brm-hero-sub {
    margin: 8px 0 0;
    color: rgba(255,255,255,.82);
}

.brm-kicker {
    display: block;
    color: rgba(255,255,255,.76);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

.brm-hero-stat {
    min-width: 120px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 8px;
    text-align: center;
}

.brm-hero-stat strong {
    display: block;
    font-size: 28px;
    line-height: 1;
}

.brm-hero-stat span,
.brm-stat small,
.brm-list-row span {
    color: var(--brm-muted);
    font-size: 13px;
}

.brm-panel,
.brm-bike-card,
.brm-stat {
    background: var(--brm-panel);
    border: 1px solid var(--brm-line);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(21, 35, 31, .06);
}

.brm-panel {
    padding: 20px;
    margin-bottom: 18px;
}

.brm-panel h3 {
    margin: 0 0 16px;
    font-size: 19px;
}

.brm-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.brm-section-head h3 {
    margin: 0;
}

.brm-grid {
    display: grid;
    gap: 14px;
}

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

.brm-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.brm-form label {
    display: grid;
    gap: 7px;
    color: var(--brm-muted);
    font-size: 13px;
    font-weight: 700;
}

.brm-form .brm-check {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: var(--brm-ink);
}

.brm-form input,
.brm-form select,
.brm-form textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    color: var(--brm-ink);
    background: #fff;
    border: 1px solid var(--brm-line);
    border-radius: 8px;
    font: inherit;
}

.brm-form textarea {
    resize: vertical;
}

.brm-form input:focus,
.brm-form select:focus,
.brm-form textarea:focus {
    border-color: var(--brm-accent);
    box-shadow: 0 0 0 3px rgba(15,143,111,.14);
    outline: none;
}

.brm-extras {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
}

.brm-extras label {
    display: inline-flex;
    grid-template-columns: none;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 12px;
    color: var(--brm-ink);
    background: var(--brm-soft);
    border: 1px solid var(--brm-line);
    border-radius: 8px;
}

.brm-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    color: #fff;
    background: var(--brm-accent);
    border: 1px solid var(--brm-accent);
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.brm-button:hover {
    color: #fff;
    background: var(--brm-accent-dark);
}

.brm-button-light {
    color: #fff;
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.3);
}

.brm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.brm-notice {
    padding: 12px 14px;
    margin: 0 0 14px;
    border-radius: 8px;
    font-weight: 700;
}

.brm-success {
    color: #05603a;
    background: #ecfdf3;
    border: 1px solid #abefc6;
}

.brm-error {
    color: var(--brm-warn);
    background: #fff4ed;
    border: 1px solid #fedf89;
}

.brm-bike-grid,
.brm-stat-grid,
.brm-dashboard-grid {
    display: grid;
    gap: 16px;
}

.brm-bike-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.brm-dashboard-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
}

.brm-bike-editor {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.brm-image-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    margin-bottom: 10px;
    color: var(--brm-muted);
    background: var(--brm-soft);
    border: 1px dashed var(--brm-line);
    border-radius: 8px;
    overflow: hidden;
}

.brm-image-preview img,
.brm-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brm-thumb {
    width: 74px;
    height: 54px;
    color: var(--brm-muted);
}

.brm-gallery-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin: 10px 0;
}

.brm-gallery-preview img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 6px;
    object-fit: cover;
}

.brm-danger {
    color: #b42318;
}

.brm-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.brm-pagination a {
    min-width: 34px;
    padding: 7px 10px;
    color: var(--brm-ink);
    background: var(--brm-soft);
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
}

.brm-pagination a.is-active {
    color: #fff;
    background: var(--brm-accent);
}

.brm-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 0 18px;
}

.brm-stat {
    padding: 18px;
}

.brm-stat span {
    display: block;
    color: var(--brm-muted);
    font-size: 13px;
    font-weight: 800;
}

.brm-stat strong {
    display: block;
    margin: 5px 0;
    font-size: 30px;
    line-height: 1;
}

.brm-bike-media {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 10;
    color: var(--brm-muted);
    background: var(--brm-soft);
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.brm-bike-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brm-bike-body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
}

.brm-bike-features {
    margin-top: 8px;
    font-size: 13px;
}

.brm-bike-body h3 {
    margin: 0 0 4px;
    font-size: 18px;
}

.brm-bike-body p,
.brm-rate span {
    margin: 0;
    color: var(--brm-muted);
}

.brm-rate {
    text-align: right;
}

.brm-rate strong {
    display: block;
    color: var(--brm-accent-dark);
}

.brm-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.brm-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.brm-table th,
.brm-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--brm-line);
    text-align: left;
}

.brm-table th {
    color: var(--brm-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0;
}

.brm-inline-form select {
    min-height: 34px;
    padding: 6px 8px;
    border: 1px solid var(--brm-line);
    border-radius: 8px;
    font: inherit;
}

.brm-link-button {
    color: var(--brm-accent-dark);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.brm-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    color: var(--brm-accent-dark);
    background: #e7f7f2;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.brm-list {
    display: grid;
    gap: 10px;
}

.brm-spaced {
    margin-top: 16px;
}

.brm-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    background: var(--brm-soft);
    border-radius: 8px;
}

.brm-list-row strong,
.brm-list-row span {
    display: block;
}

@media (max-width: 900px) {
    .brm-grid-2,
    .brm-grid-4,
    .brm-bike-grid,
    .brm-bike-editor,
    .brm-stat-grid,
    .brm-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .brm-hero {
        align-items: stretch;
        flex-direction: column;
    }
}
