.report-gallery-toolbar .primary-button,
.kb-hotfix-actions .primary-button,
.kb-auto-repair-button{box-shadow:0 18px 34px #22c55e38}
.events-board-toolbar__actions{flex-wrap:wrap}
.kb-auto-repair-button{white-space:nowrap}

.report-photo-grid{gap:6px}
.report-photo-grid--dense,
.report-photo-grid--map.report-photo-grid--dense{grid-template-columns:repeat(auto-fill,minmax(78px,1fr))}
.report-photo-grid--balanced,
.report-photo-grid--map.report-photo-grid--balanced{grid-template-columns:repeat(auto-fill,minmax(88px,1fr))}
.report-photo-grid--comfortable,
.report-photo-grid--map.report-photo-grid--comfortable{grid-template-columns:repeat(auto-fill,minmax(98px,1fr))}
.report-photo-tile{gap:4px}
.report-photo-tile__frame{aspect-ratio:1;border-radius:14px}
.report-photo-tile__frame img{width:100%;height:100%;object-fit:contain;object-position:center;background:#fff;image-orientation:from-image;transform:none}
.report-photo-grid .report-photo-tile__meta{gap:.04rem}
.report-photo-grid .report-photo-tile__meta strong{font-size:.66rem;line-height:1.1}
.report-photo-tile__meta--single-line{padding-top:.08rem}

.report-location-tile__frame{aspect-ratio:1}
.report-location-thumb,
.report-location-thumb .map-thumbnail,
.map-thumbnail--square{width:100%;height:100%;aspect-ratio:1}
.report-location-thumb .map-thumbnail__layer,
.location-preview__map .map-thumbnail__layer{background:#e2e8f0}
.map-thumbnail__tile{transform:none!important}
.map-thumbnail__layer .kb-map-canvas{display:block;position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.map-thumbnail--flattened .map-thumbnail__tile{opacity:0!important}
.location-preview__map{width:100%;max-width:100%;overflow:hidden}
.location-preview__map .map-thumbnail,
.location-preview__map .map-thumbnail__link{display:block;aspect-ratio:16/10}
.location-preview__map .map-thumbnail__pin{z-index:2}
.location-preview__map .map-thumbnail__overlay{display:none}

.photo-preview__frame img,
.log-thumb__photo,
.log-media-card__photo{image-orientation:from-image}
.photo-preview__meta,
.location-preview__meta{padding-top:.1rem}
.photo-preview__meta strong,
.location-preview__meta strong{font-size:1rem}
.photo-preview__meta p,
.location-preview__meta span{color:var(--text-soft)}

.kb-hotfix-modal-backdrop{z-index:2000}
.kb-hotfix-modal{width:min(94vw,840px)}
.kb-hotfix-stack{display:grid;gap:1rem}
.kb-hotfix-note,
.kb-hotfix-status{color:var(--text-soft);margin:0}
.kb-hotfix-note strong{color:var(--text)}
.kb-hotfix-field-grid{display:grid;gap:1rem;grid-template-columns:repeat(3,minmax(0,1fr))}
.kb-hotfix-result{background:#f8fafc;border:1px solid var(--border);border-radius:18px;padding:.9rem 1rem;display:grid;gap:.35rem}
.kb-hotfix-result strong,
.kb-hotfix-result p{margin:0}
.kb-hotfix-actions{display:flex;justify-content:flex-end;gap:.75rem;flex-wrap:wrap}
.kb-hotfix-toast{position:fixed;top:1rem;right:1rem;z-index:2200;max-width:min(92vw,420px);padding:1rem 1.1rem;border-radius:18px;border:1px solid var(--border-strong);background:#fffffff2;box-shadow:var(--shadow-soft);backdrop-filter:blur(18px)}
.kb-hotfix-toast strong,
.kb-hotfix-toast p{margin:0}
.kb-hotfix-toast p{color:var(--text-soft);margin-top:.22rem}
.kb-hotfix-toast--success{border-color:#22c55e40;background:#f0fdf4f5}
.kb-hotfix-toast--error{border-color:#ef444440;background:#fff1f2f7}
.kb-hotfix-toast--info{border-color:#3b82f640;background:#eff6fff5}

@media (width<=760px){
  .report-photo-grid--dense,
  .report-photo-grid--map.report-photo-grid--dense{grid-template-columns:repeat(auto-fill,minmax(66px,1fr))}
  .report-photo-grid--balanced,
  .report-photo-grid--map.report-photo-grid--balanced{grid-template-columns:repeat(auto-fill,minmax(76px,1fr))}
  .report-photo-grid--comfortable,
  .report-photo-grid--map.report-photo-grid--comfortable{grid-template-columns:repeat(auto-fill,minmax(84px,1fr))}
  .kb-hotfix-field-grid{grid-template-columns:1fr}
}


.brand--sidebar,
.brand--auth{display:flex;align-items:center;gap:.7rem}
.top-navigation__brand-link,
.mobile-drawer__header .brand{display:flex;align-items:center}
.kb-brand-icon{width:42px;height:42px;object-fit:contain;flex:0 0 auto;display:block;filter:drop-shadow(0 14px 24px #22c55e24)}
.kb-brand-icon--auth{width:56px;height:56px}
.kb-brand-icon--sidebar{width:40px;height:40px;border-radius:14px}
.brand__lockup{width:auto;max-width:100%;flex:0 1 auto}
.report-location-thumb.map-thumbnail,
.location-preview__map.map-thumbnail{display:block}
.location-preview .map-thumbnail__link{display:block;width:100%;aspect-ratio:16/10}
.map-thumbnail__layer{isolation:isolate}
.map-thumbnail__layer .kb-map-canvas{z-index:1;image-rendering:auto}
.map-thumbnail--flattened .map-thumbnail__tile{opacity:0!important;visibility:hidden!important}

@media (width<=760px){
  .kb-brand-icon{width:36px;height:36px}
  .kb-brand-icon--auth{width:46px;height:46px}
  .brand--sidebar,
  .brand--auth{gap:.55rem}
}


/* branding layout fix 2026-03-20e */
.top-navigation__brand,
.top-navigation__brand-link,
.top-navigation .brand,
.brand--sidebar,
.brand--auth{
  display:inline-flex;
  align-items:center;
  min-width:0;
  width:auto;
  flex:0 0 auto;
}
.top-navigation__brand-link{
  max-width:260px;
}
.top-navigation .brand,
.brand--sidebar,
.brand--auth{
  gap:.55rem;
}
.brand__lockup{
  display:block;
  width:auto !important;
  height:auto !important;
  max-width:none !important;
  flex:0 0 auto;
}
.brand__lockup--sidebar{
  height:34px !important;
  max-width:192px !important;
}
.brand__lockup--auth{
  height:42px !important;
  max-width:260px !important;
}
.kb-brand-icon{
  width:34px;
  height:34px;
  border-radius:12px;
}
.kb-brand-icon--sidebar{
  width:34px;
  height:34px;
  border-radius:12px;
}
.kb-brand-icon--auth{
  width:46px;
  height:46px;
}
@media (width<=760px){
  .top-navigation__brand-link{max-width:220px}
  .brand__lockup--sidebar{height:30px !important;max-width:166px !important}
  .kb-brand-icon,
  .kb-brand-icon--sidebar{width:30px;height:30px}
  .kb-brand-icon--auth{width:40px;height:40px}
}
