.brand-logo { width: 46px; height: 46px; flex: none; object-fit: contain; background: #fff; }
.brand { font-size: 1.1rem; }
.sidebar .brand { gap: 7px; font-size: .95rem; }
.tag-options { margin: 12px 0 0; padding: 16px 0 0; border: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tag-options legend { font-size: .9rem; font-weight: 700; padding: 0; }
.tag-options label { display: flex; gap: 8px; align-items: start; font-size: .84rem; min-width: 0; }
.tag-options input { width: 16px; height: 16px; flex: none; accent-color: #cf2541; margin-top: 3px; }
.tag-options small { display: block; color: var(--muted); font-size: .75rem; }
.tag-options span { overflow-wrap: anywhere; }
.banner-list { border-top: 1px solid var(--line); }
.banner-row { display: grid; grid-template-columns: minmax(180px, .55fr) minmax(200px, 1fr) auto; gap: 24px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.banner-row > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.banner-row-copy { min-width: 0; }
.banner-row-copy small { color: var(--muted); }
.banner-row-copy h3 { margin: 6px 0; overflow-wrap: anywhere; font-size: 1.15rem; }
.banner-row-copy p { font-size: .9rem; color: var(--muted); margin: 5px 0 14px; }
.banner-row-actions { display: flex; gap: 5px; flex-wrap: wrap; max-width: 190px; }
.banner-enabled { display: flex; align-items: center; gap: 7px; font-size: .9rem; }
.banner-enabled input { width: 17px; height: 17px; accent-color: #cf2541; }
.banner-edit-preview { aspect-ratio: 16 / 6; width: 100%; display: grid; place-items: center; background: #eff2f1; overflow: hidden; }
.banner-edit-preview img { width: 100%; height: 100%; object-fit: cover; }
.banner-upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0 8px; }
.banner-upload-grid .upload-zone { min-height: 85px; }
.banner-edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.banner-edit-grid .wide { grid-column: 1 / -1; }
.banner-edit-grid textarea { min-height: 105px; }
@media (max-width: 900px) { .banner-row { grid-template-columns: minmax(150px, .6fr) minmax(0, 1fr); } .banner-row-actions { grid-column: 2; max-width: none; } }
@media (max-width: 600px) { .tag-options { grid-template-columns: 1fr 1fr; } .banner-row { grid-template-columns: 1fr; gap: 14px; } .banner-row-actions { grid-column: 1; } .banner-upload-grid, .banner-edit-grid { grid-template-columns: 1fr; } .banner-edit-grid .wide { grid-column: 1; } .sidebar .brand-logo { width: 34px; height: 34px; } }
.tag-options { display: block; }
.tag-options legend .hint { margin-left: 8px; font-weight: 400; }
.tag-picker-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.tag-picker-tools .search-input { min-width: 170px; max-width: none; }
.tag-options .search-input { align-items: center; }
.tag-options .tag-picker-tools input { width: 100%; height: auto; margin: 0; min-width: 0; }
.new-tag-inline { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 250px; }
.new-tag-inline input { border: 1px solid var(--line); border-radius: 3px; padding: 10px; min-height: 43px; flex: 1; }
.new-tag-inline button { flex: none; min-height: 43px; }
.tag-picker-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-height: 310px; overflow-y: auto; padding: 6px 3px; }
.tag-options input:checked + span { font-weight: 700; color: #a91d39; }
.tag-picker-options > .hint { grid-column: 1 / -1; margin: 0; }
.tag-create-form { display: flex; align-items: end; gap: 12px; padding-bottom: 22px; }
.tag-create-form .field { flex: 1; max-width: 500px; min-width: 0; }
.tag-library { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.tag-library-table { table-layout: fixed; }
.tag-library-table th:first-child { width: 55%; }
.tag-library-table td { overflow-wrap: anywhere; }
.tag-library-table small { display: block; color: var(--muted); margin-top: 4px; }
@media (max-width: 690px) {
  .side-nav { min-width: 0; overflow-x: auto; justify-content: flex-start; }
  .side-nav button { flex: 0 0 40px; }
  .sidebar .brand, .side-bottom { flex: none; }
  .tag-picker-tools .search-input, .new-tag-inline { width: 100%; min-width: 0; flex-basis: 100%; }
  .tag-picker-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tag-library-table th:nth-child(2), .tag-library-table td:nth-child(2), .tag-library-table th:nth-child(4), .tag-library-table td:nth-child(4) { display: table-cell; }
  .tag-library-table th:first-child { width: 40%; }
  .tag-library-table th:last-child, .tag-library-table td:last-child { width: auto; }
  .tag-library-table td { font-size: .78rem; }
}
