/* The Brotherhood uses the shared palette, including every light theme. */
.brotherhood-screen { color: var(--text); width: 100%; max-width: 1180px; margin: 0 auto; font-family: var(--font-ui); }
.brotherhood-screen *, .brotherhood-screen *::before, .brotherhood-screen *::after { box-sizing: border-box; }
.brotherhood-screen [hidden] { display: none !important; }
.brotherhood-screen h1, .brotherhood-screen h2, .brotherhood-screen h3, .brotherhood-screen h4 { margin: 0; color: var(--text-bright); line-height: 1.22; overflow-wrap: anywhere; }
.brotherhood-screen p { color: var(--text-muted); line-height: 1.6; margin: 8px 0 0; }
.brotherhood-screen small { color: var(--text-muted); font-size: 12px; line-height: 1.5; }
.bh-hero { position: relative; display: flex; align-items: center; justify-content: space-between; overflow: hidden; gap: 20px; padding: 32px 38px; border: 1px solid var(--border); border-radius: 24px; background: radial-gradient(ellipse at 90% 20%, var(--accent-dim), transparent 65%), var(--panel); }
.bh-hero-copy { position: relative; z-index: 1; max-width: 650px; }
.bh-eyebrow { display: block; color: var(--accent-bright); font-size: 11px; font-weight: 850; letter-spacing: .12em; line-height: 1.6; margin-bottom: 8px; }
.bh-hero h1 { font-size: clamp(30px, 4vw, 48px); }
.bh-hero p { margin-top: 12px; font-size: 15px; }
.bh-hero-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.bh-hero-pills > span { padding: 8px 12px; font-size: 12px; border-radius: 10px; background: var(--bg-soft); color: var(--text-muted); border: 1px solid var(--border); }
.bh-hero-pills b { color: var(--text-bright); }
.bh-hero-art { position: relative; width: 160px; flex: 0 0 160px; color: var(--accent-bright); }
.bh-hero-art svg { width: 130px; height: 145px; margin-left: 10px; filter: drop-shadow(0 8px 14px var(--accent-dim)); }
.bh-hero-art i { position: absolute; right: 0; bottom: 20px; display: grid; place-items: center; width: 31px; height: 35px; border: 1px solid var(--border); border-radius: 9px 9px 5px 5px; background: var(--panel-elevated); color: var(--text-bright); font-size: 15px; font-weight: 800; font-style: normal; transform: rotate(8deg); }
.bh-hero-art i:nth-of-type(2) { right: 30px; bottom: -5px; transform: rotate(-7deg); background: var(--panel); }
.bh-hero-art i:nth-of-type(3) { right: 60px; bottom: 10px; transform: rotate(3deg); }
.bh-content { display: grid; gap: 20px; }
.bh-card { background: var(--panel); border: 1px solid var(--border); border-radius: 20px; padding: 24px; min-width: 0; }
.bh-message { padding: 12px 4px; min-height: 47px; color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.bh-message-error { color: var(--error); }
.bh-pending { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px 18px; margin-bottom: 20px; border: 1px solid var(--warm-border); border-radius: 14px; background: var(--warm-dim); color: var(--text); font-size: 13px; }
.bh-start { display: grid; grid-template-columns: 1fr minmax(250px, 390px); align-items: center; gap: 36px; }
.bh-start h2, .bh-section-heading h2 { font-size: 23px; }
.bh-create-form { display: grid; gap: 10px; }
.brotherhood-screen label { display: block; font-size: 12px; line-height: 1.5; font-weight: 750; color: var(--text-muted); }
.brotherhood-screen input:not([type="color"]), .brotherhood-screen select { width: 100%; height: 46px; border: 1px solid var(--border); border-radius: 11px; background: var(--bg-soft); color: var(--text-bright); font: inherit; font-size: 14px; padding: 10px 12px; min-width: 0; }
.brotherhood-screen input::placeholder { color: var(--text-dim); opacity: 1; }
.bh-button { min-height: 44px; padding: 10px 16px; border: 1px solid var(--border); border-radius: 11px; background: var(--bg-soft); color: var(--text); font: inherit; font-size: 13px; font-weight: 750; line-height: 1.45; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.bh-button:hover:not(:disabled) { background: var(--panel-elevated); border-color: var(--accent); transform: translateY(-1px); }
.bh-button:active:not(:disabled) { transform: translateY(1px); }
.bh-button:disabled { cursor: default; opacity: .55; }
.bh-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.bh-primary:hover:not(:disabled) { background: var(--accent-bright); color: var(--accent-ink); }
.bh-quiet { background: transparent; color: var(--text-muted); }
.bh-small { min-height: 40px; padding: 8px 12px; font-size: 12px; }
.brotherhood-screen :is(button, input, select, canvas):focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; }
.bh-mine-heading { display: flex; align-items: center; gap: 18px; padding-bottom: 20px; }
.bh-clan-mark, .bh-rank-flag, .bh-banner-preview { display: grid; place-items: center; background: var(--accent-dim); color: var(--accent-bright); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; flex-shrink: 0; }
.bh-clan-mark { width: 78px; height: 88px; }
.bh-clan-mark svg { width: 59px; height: 70px; }
.bh-clan-mark img, .bh-rank-flag img, .bh-banner-preview img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; padding: 6px; }
.bh-mine-title { flex: 1; min-width: 0; }
.bh-mine-title h2 { font-size: 28px; }
.bh-mine-title p { font-size: 13px; }
.bh-owner-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.bh-owner-actions small { min-width: 0; overflow-wrap: anywhere; }
.bh-danger { border-color: color-mix(in srgb, var(--error) 60%, var(--border)); background: var(--error-dim); color: var(--text-bright); }
.bh-danger:hover:not(:disabled) { background: color-mix(in srgb, var(--error) 20%, var(--panel)); border-color: var(--error); color: var(--text-bright); }
.bh-disband-dialog { width: min(500px, calc(100vw - 24px)); max-width: calc(100vw - 24px); max-height: calc(100svh - 24px); margin: auto; padding: 26px; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--border); border-radius: 20px; background: var(--panel); color: var(--text); font-family: var(--font-ui); box-shadow: 0 24px 70px #0005; }
.bh-disband-dialog::backdrop { background: #11182799; backdrop-filter: blur(5px); }
.bh-disband-dialog h2 { font-size: 24px; }
.bh-disband-copy p { font-size: 14px; overflow-wrap: anywhere; }
.bh-disband-copy p + p { font-size: 12px; }
.bh-disband-status { font-size: 12px; overflow-wrap: anywhere; }
.bh-disband-status:empty { display: none; }
.bh-disband-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.bh-disband-actions button { min-width: 0; }
.bh-disband-dialog :is(button, input):focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; }
@media (max-width: 480px) {
  .bh-disband-dialog { padding: 20px 18px; border-radius: 17px; }
  .bh-disband-dialog h2 { font-size: 22px; }
  .bh-disband-actions { flex-direction: column-reverse; margin-top: 20px; }
  .bh-disband-actions button { width: 100%; }
  .bh-owner-actions > button { width: 100%; min-height: 44px; }
}
.bh-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: 14px; background: var(--bg-soft); padding: 18px 10px; gap: 0; }
.bh-metrics > div { padding: 0 14px; min-width: 0; }
.bh-metrics > div + div { border-left: 1px solid var(--border); }
.bh-metrics span { display: block; font-size: 11px; color: var(--text-muted); line-height: 1.45; }
.bh-metrics strong { display: block; color: var(--text-bright); font-size: clamp(18px, 2vw, 24px); margin-top: 8px; line-height: 1.4; overflow-wrap: anywhere; }
.bh-contribute { display: grid; grid-template-columns: 1fr minmax(230px, 370px); align-items: center; gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--border); }
.bh-contribute h3, .bh-upgrades h3, .bh-banner h3, .bh-people h3 { font-size: 18px; }
.bh-contribute p, .bh-upgrades > p, .bh-banner p { font-size: 13px; }
.bh-contribute-form { display: grid; gap: 8px; }
.bh-amount-row { display: flex; gap: 8px; }
.bh-amount-row input { flex: 1; }
.bh-amount-row button { flex-shrink: 0; }
.bh-quick-amounts { display: flex; gap: 8px; }
.bh-quick-amounts button { min-width: 58px; }
.bh-upgrades { padding: 26px 0; border-bottom: 1px solid var(--border); }
.bh-upgrade-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.bh-upgrade { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-soft); }
.bh-upgrade-mark { color: var(--warm); font-size: 24px; line-height: 1; }
.bh-upgrade-copy { flex: 1; min-width: 110px; }
.bh-upgrade h4 { font-size: 14px; }
.bh-upgrade p { font-size: 12px; margin-top: 6px; }
.bh-upgrade > button { width: 100%; }
.bh-owned { background: var(--success-dim); border-color: color-mix(in srgb, var(--success) 35%, var(--border)); }
.bh-owned .bh-upgrade-mark { color: var(--success-bright); }
.bh-banner { padding: 26px 0; border-bottom: 1px solid var(--border); }
.bh-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bh-section-heading > div { min-width: 0; }
.bh-banner-display { display: flex; gap: 24px; align-items: flex-start; margin-top: 18px; }
.bh-banner-preview { width: 140px; height: 156px; background: var(--bg-soft); }
.bh-banner-preview svg { width: 80px; height: 100px; }
.bh-banner-editor { min-width: 0; flex: 1; }
.bh-banner-editor:empty { display: none; }
.bh-people { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding-top: 26px; }
.bh-people h3 > span { display: inline-block; margin-left: 5px; color: var(--text-muted); font-size: 13px; }
.bh-members, .bh-application-list { margin-top: 12px; display: grid; gap: 8px; }
.bh-member { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; padding: 12px 14px; border: 1px solid var(--border); background: var(--bg-soft); border-radius: 11px; }
.bh-member-name { font-size: 13px; font-weight: 750; overflow-wrap: anywhere; }
.bh-member-role { grid-column: 1; }
.bh-member-contribution { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--warm); font-size: 12px; white-space: nowrap; }
.bh-application { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px; border: 1px solid var(--border); border-radius: 11px; background: var(--bg-soft); }
.bh-application-name { flex: 1; font-size: 13px; min-width: 80px; overflow-wrap: anywhere; }
.bh-application-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.bh-live { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; padding: 8px 10px; border-radius: 9px; background: var(--success-dim); color: var(--success-bright); font-size: 11px; }
.bh-live i { width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.bh-war > p { font-size: 14px; }
.bh-war-rule { font-size: 12px; color: var(--text-muted); background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-top: 16px; line-height: 1.65; }
.bh-war-rule b { color: var(--warm); }
.bh-rank-count { color: var(--text-muted); font-size: 12px; white-space: nowrap; }
.bh-ranking-note { font-size: 12px; }
.bh-ranking-list { margin-top: 20px; display: grid; gap: 10px; }
.bh-rank-row { display: grid; grid-template-columns: 42px 46px minmax(0, 1fr) 100px auto; align-items: center; gap: 14px; padding: 14px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 14px; }
.bh-rank-position { color: var(--text-muted); font-size: 14px; text-align: center; }
.bh-rank-flag { width: 46px; height: 52px; border-radius: 9px; }
.bh-rank-flag svg { width: 32px; height: 40px; }
.bh-rank-name { font-size: 15px; }
.bh-rank-members { font-size: 11px; margin-top: 5px !important; overflow-wrap: anywhere; }
.bh-rank-treasury { display: block; font-size: 11px !important; margin-top: 4px; }
.bh-rank-score { text-align: right; }
.bh-rank-score strong { display: block; font-size: 19px; color: var(--text-bright); }
.bh-rank-score small { display: block; font-size: 10px; }
.bh-rank-own { border-color: var(--accent); background: var(--accent-dim); }
.bh-rank-leader .bh-rank-position { color: var(--warm); }
.bh-empty { margin-top: 16px !important; font-size: 13px; }
.bh-painter { border: 1px solid var(--border); background: var(--bg-soft); border-radius: 14px; padding: 16px; display: grid; grid-template-columns: minmax(140px, 320px) minmax(150px, 1fr); gap: 16px; }
.bh-painter-heading { display: flex; align-items: center; justify-content: space-between; grid-column: 1 / -1; font-size: 13px; color: var(--text-bright); }
.bh-painter-heading span { color: var(--text-muted); font-size: 11px; }
.bh-painter-board { width: 100%; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background-color: var(--panel-elevated); background-image: conic-gradient(var(--panel) 25%, transparent 0 50%, var(--panel) 0 75%, transparent 0); background-size: 20px 20px; }
.bh-canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: crosshair; image-rendering: pixelated; }
.bh-erasing { cursor: cell; }
.bh-painter-tools { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.bh-palette { display: grid; grid-template-columns: repeat(4, minmax(28px, 1fr)); gap: 7px; }
.bh-swatch { min-width: 0; min-height: 36px; border: 2px solid var(--border); background: var(--swatch); border-radius: 8px; cursor: pointer; }
.bh-swatch[aria-pressed="true"] { outline: 2px solid var(--accent-bright); outline-offset: 2px; }
.bh-brush-controls { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 10px; }
.bh-brush-controls > button { grid-column: 1 / -1; }
.bh-brush-controls select { font-size: 12px; padding: 6px !important; height: 38px !important; margin-top: 5px; }
.bh-color-label input { display: block; width: 100%; height: 38px; border: 1px solid var(--border); padding: 4px; border-radius: 8px; background: var(--panel); cursor: pointer; margin-top: 5px; }
.bh-brush-controls [aria-pressed="true"] { color: var(--accent-bright); border-color: var(--accent); background: var(--accent-dim); }
.bh-painter-actions { display: grid; gap: 8px; }
.bh-painter-status { min-height: 34px; }
.bh-painter-help { font-size: 11px !important; }
.bh-painter-locked .bh-canvas { cursor: wait; opacity: .7; }
@media (max-width: 900px) {
  .bh-painter { grid-template-columns: minmax(0, 1fr); max-width: 390px; }
  .bh-painter-heading { grid-column: 1; }
  .bh-palette { grid-template-columns: repeat(8, minmax(22px, 1fr)); }
  .bh-painter-actions { grid-template-columns: 1fr 1fr; }
  .bh-painter-actions > [data-paint="save"] { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .brotherhood-screen > .bh-content { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .brotherhood-screen :is(button, input, canvas) { scroll-margin-block: 100px; }
  .bh-hero { padding: 24px 20px; gap: 10px; }
  .bh-hero-art { display: none; }
  .bh-hero-pills { gap: 7px; }
  .bh-hero-pills > span { padding: 7px 9px; font-size: 11px; }
  .bh-card { padding: 18px 16px; border-radius: 17px; }
  .bh-start, .bh-contribute, .bh-people { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .bh-start h2, .bh-section-heading h2 { font-size: 20px; }
  .bh-mine-heading { gap: 12px; flex-wrap: wrap; }
  .bh-clan-mark { width: 54px; height: 62px; border-radius: 10px; }
  .bh-clan-mark svg { width: 42px; height: 50px; }
  .bh-mine-title h2 { font-size: 23px; }
  .bh-mine-title .bh-eyebrow { font-size: 9px; margin-bottom: 3px; }
  .bh-mine-title p { font-size: 11px; }
  .bh-mine-heading > button { margin-left: auto; min-height: 36px; padding: 6px 12px; }
  .bh-metrics { padding: 12px 5px; }
  .bh-metrics > div { padding: 0 8px; }
  .bh-metrics span { font-size: 10px; }
  .bh-metrics strong { font-size: 16px; }
  .bh-upgrade-list { grid-template-columns: minmax(0, 1fr); }
  .bh-upgrade { align-items: center; flex-wrap: nowrap; padding: 13px 11px; gap: 8px; }
  .bh-upgrade-copy { min-width: 0; }
  .bh-upgrade > button { width: auto; flex: 0 0 96px; padding: 8px 7px; }
  .bh-upgrade h4 { font-size: 12px; }
  .bh-upgrade p { font-size: 10px; }
  .bh-upgrade-mark { font-size: 20px; }
  .bh-section-heading { flex-wrap: wrap; gap: 12px; }
  .bh-banner-display { flex-direction: column; gap: 16px; }
  .bh-banner-preview { width: 92px; height: 104px; }
  .bh-banner-preview svg { width: 58px; height: 74px; }
  .bh-banner-editor { width: 100%; }
  .bh-painter { width: 100%; padding: 12px; }
  .bh-palette { gap: 5px; }
  .bh-swatch { min-height: 31px; }
  .bh-rank-row { grid-template-columns: 28px 38px minmax(0, 1fr) 64px; gap: 9px; padding: 12px 10px; }
  .bh-rank-flag { width: 38px; height: 43px; }
  .bh-rank-name { font-size: 13px; }
  .bh-rank-position { font-size: 12px; }
  .bh-rank-members, .bh-rank-treasury { font-size: 10px !important; }
  .bh-rank-score strong { font-size: 16px; overflow-wrap: anywhere; }
  .bh-rank-row > button { grid-column: 3 / -1; justify-self: start; margin-top: 3px; min-height: 34px; padding: 6px 10px; }
  .bh-ranking-list { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .brotherhood-screen * { transition: none !important; animation: none !important; } }

/* Large classroom display: one live ranking, no account or spending controls. */
.bh-presentation{max-width:1800px}
.brotherhood-screen:has(>.bh-presentation){max-width:1800px}
.bh-presentation>.bh-card{padding:24px 30px;border-radius:24px}
.bh-presentation h1{font-size:clamp(30px,3vw,56px)}
.bh-presentation .bh-eyebrow{font-size:clamp(11px,.8vw,16px)}
.bh-presentation .bh-live{font-size:clamp(12px,.9vw,18px);padding:10px 14px}
.bh-board-meta{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:12px}
.bh-presentation .bh-ranking-note,.bh-presentation .bh-rank-count{font-size:clamp(12px,.9vw,17px);margin:0}
.bh-board-columns{display:grid;grid-template-columns:clamp(44px,4vw,72px) minmax(0,1fr) clamp(120px,13vw,240px) clamp(120px,13vw,240px);gap:18px;padding:18px 20px 10px;color:var(--text-muted);font-size:clamp(10px,.8vw,15px)}
.bh-board-columns>span:first-child{text-align:center}
.bh-board-columns>span:nth-last-child(-n+2){text-align:right}
.bh-presentation .bh-ranking-list{margin-top:0;gap:10px;max-height:calc(100svh - 255px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--border) transparent;padding-right:4px}
.bh-presentation .bh-rank-row{grid-template-columns:clamp(44px,4vw,72px) clamp(46px,4.2vw,80px) minmax(0,1fr) clamp(120px,13vw,240px) clamp(120px,13vw,240px);gap:18px;padding:12px 20px;border-radius:16px;min-width:0}
.bh-presentation .bh-rank-position{font-size:clamp(20px,1.7vw,34px)}
.bh-presentation .bh-rank-leader{border-color:var(--warm-border);background:var(--surface-warm)}
.bh-presentation .bh-rank-leader .bh-rank-position{font-size:clamp(34px,2.8vw,54px);color:var(--warm)}
.bh-presentation .bh-rank-flag{width:clamp(46px,4.2vw,80px);height:clamp(52px,4.6vw,90px)}
.bh-presentation .bh-rank-flag svg{width:70%;height:80%}
.bh-presentation .bh-rank-name{font-size:clamp(20px,1.6vw,32px)}
.bh-presentation .bh-rank-members{font-size:clamp(11px,.8vw,16px);margin-top:7px!important}
.bh-presentation .bh-rank-score strong,.bh-board-treasury strong{display:block;font-size:clamp(25px,2vw,40px);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.bh-board-treasury{text-align:right;color:var(--warm)}
.bh-presentation .bh-rank-score small,.bh-board-treasury small{display:block;font-size:clamp(10px,.75vw,15px)}
.bh-board-message{font-size:14px;margin-top:8px!important}
.bh-board-message:empty{display:none}
/* Public clan windows reuse the site's palette and never add a polling loop. */
.bh-clan-link { display: inline; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-weight: inherit; text-align: left; line-height: inherit; cursor: pointer; overflow-wrap: anywhere; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 38%, transparent); text-underline-offset: 5px; }
.bh-clan-link:hover { color: var(--accent-bright); text-decoration-color: currentColor; }
.lb-clan-link { border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.lb-clan-link:hover { background: var(--accent-dim); }
.lb-clan-link:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; border-radius: 8px; }
.bh-mine-view { margin-left: auto; flex-shrink: 0; }
.bh-public-host { width: 0; height: 0; margin: 0; }
.bh-public-dialog { color: var(--text); font-family: var(--font-ui); width: min(1040px, calc(100vw - 32px)); max-width: calc(100vw - 32px); max-height: min(900px, calc(100svh - 32px)); padding: 0; border: 1px solid var(--border); border-radius: 24px; background: var(--panel); box-shadow: 0 28px 90px #0005; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.bh-public-dialog::backdrop { background: #11182799; backdrop-filter: blur(5px); }
.bh-public-shell { width: 100%; min-width: 0; }
.bh-public-topbar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 24px 12px; background: var(--panel); border-bottom: 1px solid var(--border); }
.bh-public-topbar .bh-eyebrow { margin: 0; font-size: 10px; }
.bh-public-close { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border: 1px solid var(--border); border-radius: 12px; padding: 0; background: var(--bg-soft); color: var(--text-muted); cursor: pointer; }
.bh-public-close:hover { background: var(--panel-elevated); color: var(--text-bright); border-color: var(--accent); }
.bh-public-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.bh-public-body { padding: 26px; }
.bh-public-loading { min-height: 300px; }
.bh-public-loading .boot-keyboard { background: var(--bg-soft); border-color: var(--border); }
.bh-public-head { display: flex; align-items: center; gap: 22px; padding: 6px 0 26px; }
.bh-public-flag { display: grid; place-items: center; flex: 0 0 108px; width: 108px; height: 122px; padding: 8px; border: 1px solid var(--border); border-radius: 18px; background: linear-gradient(145deg, var(--accent-dim), var(--bg-soft)); color: var(--accent-bright); }
.bh-public-flag svg { width: 80px; height: 94px; }
.bh-public-flag img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.bh-public-clan-copy { min-width: 0; flex: 1; }
.bh-public-clan-copy h2 { font-size: clamp(26px, 3vw, 40px); letter-spacing: -.02em; }
.bh-public-clan-copy p { font-size: 13px; margin-top: 10px; }
.bh-public-clan-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.bh-public-stat { min-width: 0; }
.bh-public-stat strong { display: block; color: var(--text-bright); font-size: 20px; font-weight: 850; font-variant-numeric: tabular-nums; line-height: 1.4; overflow-wrap: anywhere; }
.bh-public-stat span { display: block; color: var(--text-muted); font-size: 11px; line-height: 1.45; margin-top: 3px; }
.bh-public-clan-metrics > .bh-public-stat { border: 1px solid var(--border); border-radius: 14px; background: var(--bg-soft); padding: 15px; }
.bh-public-clan-metrics .bh-public-stat strong { font-size: clamp(16px, 1.8vw, 22px); }
.bh-public-gold strong { color: var(--warm); }
.bh-public-roster-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 30px 0 15px; }
.bh-public-roster-heading h3 { font-size: 20px; }
.bh-public-roster-heading p { font-size: 12px; margin-top: 5px; }
.bh-public-refresh { flex-shrink: 0; }
.bh-public-roster { display: grid; gap: 10px; }
.bh-public-member { min-width: 0; border: 1px solid var(--border); border-radius: 15px; background: var(--bg-soft); overflow: hidden; }
.bh-public-member-summary { display: grid; grid-template-columns: minmax(180px, 1.1fr) minmax(0, 1.5fr) 22px; align-items: center; gap: 18px; padding: 16px; cursor: pointer; list-style: none; }
.bh-public-member-summary::-webkit-details-marker { display: none; }
.bh-public-member-summary:hover { background: var(--accent-dim); }
.bh-public-member-summary:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: -3px; border-radius: 15px; }
.bh-public-identity { display: flex; align-items: center; min-width: 0; gap: 11px; }
.bh-public-avatar { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 44px; border: 1px solid var(--border); border-radius: 11px; color: var(--accent-bright); background: var(--panel); font-size: 20px; font-weight: 850; }
.bh-public-person { min-width: 0; }
.bh-public-person strong { display: block; color: var(--text-bright); font-size: 14px; overflow-wrap: anywhere; line-height: 1.4; }
.bh-public-person small { display: block; font-size: 10px; margin-top: 3px; }
.bh-public-member-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.bh-public-member-metrics .bh-public-stat strong { font-size: 16px; }
.bh-public-member-metrics .bh-public-stat span { font-size: 10px; }
.bh-public-expand { justify-self: center; align-self: center; color: var(--text-muted); font-size: 25px; line-height: 1; transition: transform .16s; }
.bh-public-member[open] .bh-public-expand { transform: rotate(180deg); }
.bh-public-member[open] { border-color: var(--accent); }
.bh-public-member-panel { border-top: 1px solid var(--border); padding: 18px; background: var(--panel); }
.bh-public-details-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 18px; }
.bh-public-details-grid .bh-public-stat strong { font-size: 17px; }
.bh-public-details-grid .bh-public-stat span { font-size: 10px; }
.bh-public-status { padding: 9px 12px; margin: 0 0 18px !important; border: 1px solid var(--border); border-radius: 9px; background: var(--accent-dim); color: var(--text) !important; font-size: 12px; }
.bh-public-extra { border-top: 1px solid var(--border); margin-top: 22px; padding-top: 18px; }
.bh-public-extra .bh-public-loading { min-height: 150px; padding: 15px; }
.bh-public-streak { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.bh-public-streak .bh-public-stat strong { font-size: 17px; }
.bh-public-awards { margin-top: 24px; }
.bh-public-awards h4 { font-size: 13px; }
.bh-public-award-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.bh-public-award { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; padding: 7px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-soft); color: var(--text); font-size: 11px; line-height: 1.5; }
.bh-public-award i { font-style: normal; font-size: 18px; flex-shrink: 0; }
.bh-public-award > span { overflow-wrap: anywhere; }
.bh-public-empty, .bh-public-feedback p { color: var(--text-muted); font-size: 13px; }
.bh-public-total { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--text-muted); font-size: 11px; line-height: 1.5; padding-top: 20px; margin-top: 22px; border-top: 1px solid var(--border); }
.bh-public-feedback { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 30px 12px; }
.bh-public-dialog :is(button, summary):focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; }
@media (max-width: 700px) {
  .bh-public-dialog { width: calc(100vw - 20px); max-width: calc(100vw - 20px); max-height: calc(100svh - 20px); border-radius: 18px; }
  .bh-public-topbar { padding: 12px 16px; }
  .bh-public-body { padding: 18px 16px; }
  .bh-public-head { gap: 14px; padding: 0 0 20px; }
  .bh-public-flag { width: 68px; height: 80px; flex-basis: 68px; border-radius: 12px; padding: 4px; }
  .bh-public-flag svg { width: 50px; height: 62px; }
  .bh-public-clan-copy .bh-eyebrow { font-size: 8px; letter-spacing: .07em; margin-bottom: 5px; }
  .bh-public-clan-copy h2 { font-size: 25px; }
  .bh-public-clan-copy p { font-size: 10px; margin-top: 7px; }
  .bh-public-clan-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .bh-public-clan-metrics > .bh-public-stat { padding: 12px; }
  .bh-public-roster-heading { align-items: flex-start; gap: 10px; margin-top: 25px; }
  .bh-public-roster-heading h3 { font-size: 18px; }
  .bh-public-roster-heading p { font-size: 10px; line-height: 1.5; }
  .bh-public-refresh { padding: 7px 9px; min-height: 36px; font-size: 10px; }
  .bh-public-member-summary { grid-template-columns: minmax(0, 1fr) 18px; gap: 13px 10px; padding: 13px; }
  .bh-public-member-metrics { grid-column: 1 / -1; grid-row: 2; gap: 8px; }
  .bh-public-person strong { font-size: 13px; }
  .bh-public-member-metrics .bh-public-stat strong { font-size: 14px; }
  .bh-public-member-metrics .bh-public-stat span { font-size: 9px; }
  .bh-public-member-panel { padding: 15px 13px; }
  .bh-public-details-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .bh-public-total { gap: 7px; flex-direction: column; }
  .bh-public-dialog .bh-public-close { width: 36px; height: 36px; }
  .bh-mine-view { flex-basis: 100%; }
}
@media (max-width: 420px) {
  .bh-public-member-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
  .bh-public-member-metrics .bh-public-stat strong { white-space: nowrap; overflow-wrap: normal; word-break: normal; font-size: 15px; }
  .bh-public-member-metrics .bh-public-stat span { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { .bh-public-dialog *, .bh-clan-link { animation: none !important; transition: none !important; } }
@media(max-width:850px){.bh-presentation>.bh-card{padding:18px}.bh-presentation .bh-rank-row{grid-template-columns:36px 44px minmax(0,1fr) 92px;gap:12px;padding:12px}.bh-presentation .bh-rank-flag{width:44px;height:50px}.bh-presentation .bh-rank-score strong{font-size:24px}.bh-presentation .bh-rank-name{font-size:20px}.bh-presentation .bh-board-treasury{grid-column:3/-1;display:flex;align-items:center;justify-content:flex-end;gap:6px;font-size:13px}.bh-presentation .bh-board-treasury strong{font-size:16px}.bh-presentation .bh-board-treasury small{font-size:11px}.bh-board-columns{display:none}.bh-board-meta{align-items:flex-start;margin-bottom:18px}.bh-presentation .bh-ranking-list{max-height:calc(100svh - 205px)}}
@media(max-width:480px){.bh-presentation>.bh-card{padding:14px}.bh-presentation .bh-section-heading{align-items:flex-start;gap:8px}.bh-presentation .bh-live{font-size:10px;padding:7px}.bh-presentation h1{font-size:27px}.bh-presentation .bh-rank-row{grid-template-columns:28px 36px minmax(0,1fr) 68px;gap:8px;padding:10px}.bh-presentation .bh-rank-flag{width:36px;height:41px}.bh-presentation .bh-rank-name{font-size:16px}.bh-presentation .bh-rank-members{font-size:10px}.bh-presentation .bh-rank-score strong{font-size:20px}.bh-presentation .bh-rank-position{font-size:16px}.bh-presentation .bh-rank-leader .bh-rank-position{font-size:30px}}
.bh-access-choice{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:5px 0 8px;padding:0;border:0;min-width:0}
.bh-access-choice legend{margin-bottom:10px;color:var(--text-bright);font-size:.85rem;font-weight:750}
.bh-access-choice label{display:flex;align-items:flex-start;gap:10px;min-width:0;padding:13px;border:1px solid var(--border);border-radius:14px;background:var(--bg-soft);cursor:pointer}
.bh-access-choice label:has(input:checked){border-color:var(--accent);background:var(--accent-dim);box-shadow:inset 0 0 0 1px var(--accent)}
.bh-access-choice input[type=radio]{flex:0 0 18px;width:18px;height:18px;min-height:0;margin:2px 0 0;padding:0;accent-color:var(--accent)}
.bh-access-choice input:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.bh-access-choice b,.bh-access-choice small{display:block;line-height:1.45;overflow-wrap:anywhere}
.bh-access-choice b{font-size:.86rem;color:var(--text-bright)}
.bh-access-choice small{margin-top:4px;color:var(--text-muted);font-size:.73rem;font-weight:500}
.bh-access-choice:disabled{opacity:.6}.bh-access-status{font-weight:700;color:var(--accent-bright)}
@media(max-width:480px){.bh-access-choice{grid-template-columns:minmax(0,1fr)}}

/* The public ranking shares the same view in Leaders and on the classroom display. */
.bh-public-ranking > .bh-ranking { padding: 0; overflow: hidden; }
.bh-ranking-back { margin-bottom: 14px; }
.bh-ranking-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 30px 24px; background: radial-gradient(ellipse at 95% 0%, var(--accent-dim), transparent 70%), var(--panel); }
.bh-ranking-heading { min-width: 0; }
.bh-ranking-heading h1 { font-size: clamp(30px, 3.5vw, 44px); letter-spacing: -.025em; }
.bh-ranking-heading p { font-size: 14px; margin-top: 10px; }
.bh-ranking-emblem { flex: 0 0 82px; width: 82px; height: 94px; color: var(--accent-bright); }
.bh-ranking-emblem svg { width: 100%; height: 100%; }
.bh-ranking-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 30px 22px; border-bottom: 1px solid var(--border); }
.bh-ranking-periods { display: inline-flex; gap: 5px; padding: 5px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-soft); }
.bh-ranking-period { min-height: 42px; padding: 9px 18px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--text-muted); font: inherit; font-size: 13px; font-weight: 800; line-height: 1.4; cursor: pointer; }
.bh-ranking-period:hover { color: var(--text-bright); background: var(--panel); }
.bh-ranking-period[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.bh-public-ranking .bh-board-meta { padding: 18px 30px 0; margin-top: 0; }
.bh-public-ranking .bh-ranking-note, .bh-public-ranking .bh-rank-count { font-size: 12px; }
.bh-public-ranking .bh-board-columns { grid-template-columns: 44px minmax(0, 1fr) 150px 120px; gap: 16px; margin: 0 30px; padding: 18px 18px 10px; font-size: 11px; }
.bh-public-ranking .bh-ranking-list { margin: 0; padding: 0 30px 26px; gap: 10px; }
.bh-public-ranking .bh-rank-row { grid-template-columns: 44px 50px minmax(0, 1fr) 150px 120px; gap: 16px; padding: 16px 18px; }
.bh-public-ranking .bh-rank-flag { width: 50px; height: 57px; }
.bh-public-ranking .bh-rank-name { font-size: 18px; }
.bh-public-ranking .bh-rank-members { font-size: 11px; }
.bh-public-ranking .bh-rank-position { font-size: 17px; font-variant-numeric: tabular-nums; }
.bh-public-ranking .bh-rank-leader { border-color: var(--warm-border); background: var(--surface-warm); }
.bh-public-ranking .bh-rank-leader .bh-rank-position { font-size: 34px; }
.bh-public-ranking .bh-rank-score strong, .bh-public-ranking .bh-board-treasury strong { font-size: 24px; line-height: 1.35; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.bh-public-ranking .bh-rank-score small, .bh-public-ranking .bh-board-treasury small { font-size: 10px; }
.bh-public-ranking .bh-board-treasury { min-width: 0; }
.bh-public-ranking :is(.bh-ranking-loading, .bh-empty, .bh-board-message) { margin: 0 !important; padding: 18px 30px 26px; font-size: 13px; }
.bh-public-ranking .bh-board-message:empty { display: none; }
.bh-public-ranking.bh-presentation .bh-ranking-header { padding: 26px 30px 20px; }
.bh-public-ranking.bh-presentation h1 { font-size: clamp(30px, 3vw, 56px); }
.bh-public-ranking.bh-presentation .bh-ranking-heading p { font-size: clamp(13px, .95vw, 18px); }
.bh-public-ranking.bh-presentation .bh-ranking-emblem { flex-basis: 90px; width: 90px; height: 102px; }
.bh-public-ranking.bh-presentation .bh-ranking-period { font-size: clamp(13px, .9vw, 18px); min-height: 46px; }
.bh-public-ranking.bh-presentation .bh-board-meta { padding-top: 16px; }
.bh-public-ranking.bh-presentation .bh-ranking-note, .bh-public-ranking.bh-presentation .bh-rank-count { font-size: clamp(12px, .9vw, 17px); }
.bh-public-ranking.bh-presentation .bh-board-columns { grid-template-columns: clamp(44px, 4vw, 72px) minmax(0, 1fr) clamp(150px, 13vw, 240px) clamp(120px, 13vw, 240px); gap: 18px; font-size: clamp(11px, .8vw, 15px); }
.bh-public-ranking.bh-presentation .bh-ranking-list { max-height: calc(100svh - 335px); padding-bottom: 18px; }
.bh-public-ranking.bh-presentation .bh-rank-row { grid-template-columns: clamp(44px, 4vw, 72px) clamp(46px, 4.2vw, 80px) minmax(0, 1fr) clamp(150px, 13vw, 240px) clamp(120px, 13vw, 240px); gap: 18px; padding: 12px 18px; }
.bh-public-ranking.bh-presentation .bh-rank-name { font-size: clamp(20px, 1.6vw, 32px); }
.bh-public-ranking.bh-presentation .bh-rank-members { font-size: clamp(11px, .8vw, 16px); }
.bh-public-ranking.bh-presentation .bh-rank-position { font-size: clamp(20px, 1.7vw, 34px); }
.bh-public-ranking.bh-presentation .bh-rank-leader .bh-rank-position { font-size: clamp(34px, 2.8vw, 54px); }
.bh-public-ranking.bh-presentation .bh-rank-flag { width: clamp(46px, 4.2vw, 80px); height: clamp(52px, 4.6vw, 90px); }
.bh-public-ranking.bh-presentation .bh-rank-score strong, .bh-public-ranking.bh-presentation .bh-board-treasury strong { font-size: clamp(25px, 2vw, 40px); }
.bh-public-ranking.bh-presentation .bh-rank-score small, .bh-public-ranking.bh-presentation .bh-board-treasury small { font-size: clamp(10px, .75vw, 15px); }
@media (max-width: 850px) {
  .bh-public-ranking .bh-ranking-header { padding: 24px 20px 20px; }
  .bh-public-ranking .bh-ranking-toolbar { padding: 0 20px 18px; }
  .bh-public-ranking .bh-board-meta { padding: 16px 20px 0; margin-bottom: 16px; }
  .bh-public-ranking .bh-board-columns { display: none; }
  .bh-public-ranking .bh-ranking-list { padding: 0 20px 20px; }
  .bh-public-ranking .bh-rank-row, .bh-public-ranking.bh-presentation .bh-rank-row { grid-template-columns: 30px 42px minmax(0, 1fr) 96px; gap: 10px; padding: 13px; }
  .bh-public-ranking .bh-rank-flag, .bh-public-ranking.bh-presentation .bh-rank-flag { width: 42px; height: 48px; }
  .bh-public-ranking .bh-board-treasury { grid-column: 3 / -1; display: flex; justify-content: flex-end; align-items: baseline; gap: 5px; }
  .bh-public-ranking .bh-board-treasury strong, .bh-public-ranking.bh-presentation .bh-board-treasury strong { font-size: 15px; }
  .bh-public-ranking .bh-board-treasury small::after { content: " в казне"; }
}
@media (max-width: 480px) {
  .bh-public-ranking .bh-ranking-header, .bh-public-ranking.bh-presentation .bh-ranking-header { padding: 22px 16px 18px; gap: 10px; }
  .bh-public-ranking .bh-ranking-heading .bh-eyebrow { font-size: 9px; letter-spacing: .09em; }
  .bh-public-ranking .bh-ranking-heading h1 { font-size: 30px; }
  .bh-public-ranking .bh-ranking-heading p, .bh-public-ranking.bh-presentation .bh-ranking-heading p { font-size: 12px; }
  .bh-public-ranking .bh-ranking-emblem, .bh-public-ranking.bh-presentation .bh-ranking-emblem { flex-basis: 56px; width: 56px; height: 66px; }
  .bh-public-ranking .bh-ranking-toolbar { padding: 0 16px 16px; align-items: flex-start; flex-wrap: wrap; gap: 12px; }
  .bh-public-ranking .bh-ranking-periods { width: 100%; }
  .bh-public-ranking .bh-ranking-period, .bh-public-ranking.bh-presentation .bh-ranking-period { flex: 1; min-width: 0; min-height: 42px; padding: 9px 8px; font-size: 13px; }
  .bh-public-ranking .bh-live { font-size: 10px; padding: 6px 8px; }
  .bh-public-ranking .bh-board-meta { padding: 14px 16px 0; gap: 10px; margin-bottom: 14px; align-items: flex-start; }
  .bh-public-ranking .bh-ranking-note, .bh-public-ranking.bh-presentation .bh-ranking-note { font-size: 10px; }
  .bh-public-ranking .bh-rank-count, .bh-public-ranking.bh-presentation .bh-rank-count { font-size: 10px; }
  .bh-public-ranking .bh-ranking-list { padding: 0 12px 16px; gap: 9px; }
  .bh-public-ranking .bh-rank-row, .bh-public-ranking.bh-presentation .bh-rank-row { grid-template-columns: 24px 32px minmax(0, 1fr) 66px; gap: 7px; padding: 11px 9px; }
  .bh-public-ranking .bh-rank-flag, .bh-public-ranking.bh-presentation .bh-rank-flag { width: 32px; height: 38px; }
  .bh-public-ranking .bh-rank-name, .bh-public-ranking.bh-presentation .bh-rank-name { font-size: 14px; }
  .bh-public-ranking .bh-rank-members, .bh-public-ranking.bh-presentation .bh-rank-members { font-size: 9px; margin-top: 5px !important; }
  .bh-public-ranking .bh-rank-position, .bh-public-ranking.bh-presentation .bh-rank-position { font-size: 13px; }
  .bh-public-ranking .bh-rank-leader .bh-rank-position, .bh-public-ranking.bh-presentation .bh-rank-leader .bh-rank-position { font-size: 27px; }
  .bh-public-ranking .bh-rank-score strong, .bh-public-ranking.bh-presentation .bh-rank-score strong { font-size: 18px; }
  .bh-public-ranking .bh-rank-score small, .bh-public-ranking.bh-presentation .bh-rank-score small { font-size: 9px; }
  .bh-public-ranking .bh-board-treasury strong, .bh-public-ranking.bh-presentation .bh-board-treasury strong { font-size: 13px; }
  .bh-public-ranking .bh-board-treasury small, .bh-public-ranking.bh-presentation .bh-board-treasury small { font-size: 9px; }
  .bh-public-ranking :is(.bh-ranking-loading, .bh-empty, .bh-board-message) { padding: 16px; }
}

/* Profile discovery is a directory, independent of the public competition view. */
.bh-directory .bh-directory-count { color: var(--text-muted); font-size: 12px; white-space: nowrap; }
.bh-directory .bh-directory-list { display: grid; gap: 10px; margin-top: 20px; }
.bh-directory .bh-directory-row { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; align-items: center; gap: 16px; min-width: 0; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-soft); }
.bh-directory .bh-directory-own { border-color: var(--accent); }
.bh-directory .bh-directory-flag { display: grid; place-items: center; width: 50px; height: 57px; overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: var(--accent-dim); color: var(--accent-bright); }
.bh-directory .bh-directory-flag svg { width: 36px; height: 44px; }
.bh-directory .bh-directory-flag img { width: 100%; height: 100%; padding: 5px; object-fit: contain; image-rendering: pixelated; }
.bh-directory .bh-directory-copy { min-width: 0; }
.bh-directory .bh-directory-name { font-size: 17px; }
.bh-directory .bh-directory-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; margin-top: 8px; color: var(--text-muted); font-size: 12px; line-height: 1.5; }
.bh-directory .bh-directory-access { padding: 2px 7px; border: 1px solid var(--border); border-radius: 6px; font-size: 11px; }
.bh-directory .bh-directory-access-open { background: var(--success-dim); color: var(--success-bright); }
.bh-directory .bh-directory-apply { min-width: 145px; }
.bh-directory .bh-directory-feedback { margin-top: 16px; font-size: 13px; }
@media (max-width: 640px) {
  .bh-directory .bh-directory-list { gap: 10px; margin-top: 16px; }
  .bh-directory .bh-directory-row { grid-template-columns: 42px minmax(0, 1fr); align-items: start; gap: 12px; padding: 13px; }
  .bh-directory .bh-directory-flag { width: 42px; height: 49px; }
  .bh-directory .bh-directory-flag svg { width: 31px; height: 39px; }
  .bh-directory .bh-directory-name { font-size: 15px; }
  .bh-directory .bh-directory-meta { gap: 6px 9px; font-size: 11px; }
  .bh-directory .bh-directory-access { font-size: 10px; }
  .bh-directory .bh-directory-apply { grid-column: 2; width: 100%; min-width: 0; min-height: 42px; padding: 8px; font-size: 12px; }
}
