/* Golf-Tracker – Layout & Komponenten. Nutzt Variablen aus variables.css.
   Funktioniert in hellem und dunklem Theme automatisch. */
* { box-sizing: border-box; }
body {
  margin: 0; font-family: var(--font-family); font-size: var(--font-base);
  background: var(--bg); color: var(--text);
}

/* ===== Grundlayout: Sidebar links, Inhalt rechts ===== */
.app-layout { display: flex; min-height: 100vh; }

/* ----- Sidebar ----- */
.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg); color: var(--sidebar-text);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
  border-right: 1px solid var(--sidebar-border);
}
.sidebar-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 18px; font-size: var(--font-lg); font-weight: bold;
  color: var(--sidebar-brand); border-bottom: 1px solid var(--sidebar-border);
}
.sidebar-brand-icon { color: var(--sidebar-brand); }
.sidebar-brand-icon svg { width: 24px; height: 24px; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 12px 10px; }
.nav-cat {
  color: var(--sidebar-muted); font-size: var(--font-xs); text-transform: uppercase;
  letter-spacing: 0.05em; margin: 16px 10px 6px; font-weight: bold;
}
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; margin: 2px 0; border-radius: var(--radius);
  color: var(--sidebar-text); text-decoration: none; font-size: var(--font-base);
}
.nav-item:hover { background: var(--sidebar-hover); }
.nav-item.active { background: var(--sidebar-active-bg); color: var(--sidebar-active-text); font-weight: bold; }
.nav-item .icon { flex-shrink: 0; }
.nav-item .icon svg { width: 19px; height: 19px; }

.sidebar-footer { padding: 12px 10px; border-top: 1px solid var(--sidebar-border); }
.sidebar-user {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; color: var(--sidebar-muted); font-size: var(--font-sm);
}
.nav-item.logout:hover { background: var(--err-bg); color: var(--err-text); }

/* ----- Hauptbereich ----- */
.main { flex: 1; margin-left: var(--sidebar-width); display: flex; flex-direction: column; min-height: 100vh; }
.content-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; border-bottom: 1px solid var(--border); background: var(--card-bg);
}
.content-title { font-size: var(--font-lg); font-weight: bold; color: var(--text); }
.content-tools { display: inline-flex; align-items: center; gap: 12px; }

.wrap { max-width: 1500px; width: 100%; margin: 0 auto; padding: 24px 20px; }

/* ----- Mobil: Sidebar oben, Inhalt darunter ----- */
@media (max-width: 720px) {
  .app-layout { flex-direction: column; }
  .sidebar { position: static; width: 100%; flex-direction: column; }
  .sidebar-nav { padding: 8px 10px; }
  .main { margin-left: 0; }
}

h1 { font-size: var(--font-xl); margin: 0 0 16px; display:flex; align-items:center; gap:8px; }
h2 { font-size: var(--font-lg); margin: 20px 0 10px; }

.card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px; margin-bottom: 18px;
  box-shadow: var(--shadow);
}

label { display: block; margin: 10px 0 4px; color: var(--text); font-size: var(--font-sm); }
input[type=text], input[type=email], input[type=password], input[type=file], select {
  width: 100%; padding: 9px 10px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--input-bg); color: var(--text);
  font-size: var(--font-base);
}
button, .btn {
  background: var(--brand); color: var(--brand-contrast); border: 1px solid var(--brand);
  border-radius: var(--radius-sm); padding: 9px 16px; font-size: var(--font-base);
  font-weight: bold; cursor: pointer; margin-top: 12px;
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
}
button:hover, .btn:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--hover-bg); }

a.link { color: var(--brand); }

.msg { padding: 10px 12px; border-radius: var(--radius-sm); margin-bottom: 14px; font-size: var(--font-sm); }
.msg.error { background: var(--err-bg); border: 1px solid var(--err-border); color: var(--err-text); }
.msg.ok    { background: var(--ok-bg); border: 1px solid var(--ok-border); color: var(--ok-text); }

.muted { color: var(--text-muted); font-size: var(--font-sm); }

/* Icons */
.icon { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; }
.icon svg { width: 20px; height: 20px; }
.icon-sm svg { width: 16px; height: 16px; }
.icon-lg svg { width: 26px; height: 26px; }
.icon-xl svg { width: 34px; height: 34px; }

/* Theme-/Sprach-Umschalter (rechts oben im Content-Header) */
.theme-toggle {
  display: inline-flex; align-items: center;
  background: transparent; border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius-sm); padding: 6px 8px; margin: 0; cursor: pointer;
  text-decoration: none;
}
.theme-toggle:hover { background: var(--hover-bg); border-color: var(--brand); color: var(--brand); }
.langsw { font-size: var(--font-sm); }
.langsw a { color: var(--text-muted); text-decoration: none; margin: 0 3px; }
.langsw a:hover { color: var(--brand); }
.langsw strong { color: var(--brand); margin: 0 3px; }

.footer {
  text-align: center; color: var(--text-muted); font-size: var(--font-xs);
  padding: 20px; border-top: 1px solid var(--border); margin-top: 30px;
}

/* Benutzerverwaltung */
.utable { width: 100%; border-collapse: collapse; }
.utable th, .utable td {
  text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border);
  vertical-align: top; font-size: var(--font-sm);
}
.utable th { color: var(--brand); font-size: var(--font-sm); }
.inline { display: inline; margin: 0; }
.btn-small {
  background: transparent; color: var(--text); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 5px 10px; font-size: var(--font-xs);
  font-weight: bold; cursor: pointer; margin: 2px 2px 2px 0;
  display: inline-flex; align-items: center; gap: 4px;
}
.btn-small:hover { background: var(--hover-bg); border-color: var(--brand); }
.btn-small.danger { background: var(--err-bg); border-color: var(--err-border); color: var(--err-text); }
.badge { background: var(--brand); color: var(--brand-contrast); font-size: 11px; border-radius: 4px; padding: 1px 6px; margin-left: 6px; }
.ok-dot { color: var(--brand); font-weight: bold; }
.off-dot { color: var(--err-text); font-weight: bold; }
.utable select { padding: 5px 6px; font-size: var(--font-sm); width: auto; }
.pwrow { margin-top: 6px; }
.pwrow input { width: 200px; padding: 5px 8px; }

/* Dropzone (für späteren Upload) */
.dropzone {
  border: 1px solid var(--brand); border-radius: var(--radius-lg); background: var(--hover-bg);
  padding: 22px; text-align: center; cursor: pointer;
}
.dropzone:hover { border-color: var(--brand-hover); }

/* Rechte-Matrix */
.matrix { width: 100%; border-collapse: collapse; font-size: var(--font-sm); }
.matrix th, .matrix td { padding: 8px 6px; border-bottom: 1px solid var(--border); }
.matrix thead th { text-align: center; color: var(--text); vertical-align: bottom; }
.matrix .mcol { min-width: 70px; }
.matrix .mrole { font-size: var(--font-xs); color: var(--text-muted); }
.matrix .mperm { text-align: left; min-width: 220px; }
.matrix .mcheck { text-align: center; }
.matrix .marea td {
  background: var(--hover-bg); font-weight: bold; color: var(--brand);
  text-transform: uppercase; font-size: var(--font-xs); letter-spacing: 0.03em;
}
.matrix input[type=checkbox] { width: 18px; height: 18px; cursor: pointer; }
.mono { font-family: var(--font-mono, monospace); font-size: 11px; }

/* Icon-Auswahl */
.icon-picker, .color-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.icon-option, .color-option { cursor: pointer; }
.icon-option input, .color-option input { display: none; }
.icon-pick {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 2px solid var(--border); border-radius: var(--radius);
  color: var(--text); background: var(--input-bg);
}
.icon-option input:checked + .icon-pick { border-color: var(--brand); color: var(--brand); }
.color-pick {
  display: inline-block; width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid transparent; box-shadow: 0 0 0 1px var(--border);
}
.color-option input:checked + .color-pick { border-color: var(--card-bg); box-shadow: 0 0 0 2px var(--brand); }

/* Login/Bare-Layout: zentriert, ohne Sidebar */
body.bare { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.bare-wrap { width: 100%; max-width: 400px; padding: 24px; }
.bare-wrap h1 { justify-content: center; color: var(--brand); }

/* Zielwerte-Tool */
.bench-form { margin: 12px 0; }
.bench-fields { display: flex; flex-wrap: wrap; gap: 14px; }
.bench-field { flex: 1 1 180px; min-width: 160px; }
.bench-field label { font-size: var(--font-xs); color: var(--text-muted); margin-bottom: 3px; }
.bench-summary {
  margin-top: 14px; padding: 14px; border-left: 4px solid var(--brand);
  background: var(--hover-bg); border-radius: 0 var(--radius) var(--radius) 0;
}
.bench-head { margin-bottom: 12px; font-size: var(--font-base); }
.bench-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bench-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 20px;
  background: var(--card-bg); border: 1px solid var(--border);
  font-size: var(--font-sm);
}
.bench-chip-icon { display: inline-flex; }
.bench-note { margin-top: 12px; font-size: var(--font-xs); color: var(--text-muted); line-height: 1.5; }

/* kleiner Gefahr-Knopf (z.B. Session löschen) */
.btn-danger-small {
  background: transparent; border: 1px solid var(--border);
  color: #c0392b; padding: 4px 8px; border-radius: var(--radius);
  cursor: pointer; display: inline-flex; align-items: center;
}
.btn-danger-small:hover { background: rgba(192,57,43,.08); border-color: #c0392b; }

/* Zielwerte-Vergleich in der Session */
.cmp-badge {
  display: inline-block; margin-left: 6px; padding: 1px 8px;
  border-radius: 10px; font-size: var(--font-xs); font-weight: 600;
}
.cmp-green  { background: rgba(46,157,70,.15);  color: #1d7a33; border: 1px solid rgba(46,157,70,.4); }
.cmp-yellow { background: rgba(214,166,30,.15); color: #9a7410; border: 1px solid rgba(214,166,30,.45); }
.cmp-red    { background: rgba(192,57,43,.12);  color: #b03a2e; border: 1px solid rgba(192,57,43,.4); }
[data-theme="dark"] .cmp-green  { color: #7fdc95; }
[data-theme="dark"] .cmp-yellow { color: #e8c86a; }
[data-theme="dark"] .cmp-red    { color: #f19a8e; }

/* aus der Wertung genommene Schläge */
.shot-excluded td { opacity: .45; }
.shot-excluded td:first-child { text-decoration: line-through; }

/* neutraler kleiner Umschalt-Knopf */
.btn-toggle-small {
  background: transparent; border: 1px solid var(--border);
  color: var(--text-muted); padding: 3px 7px; border-radius: var(--radius);
  cursor: pointer; display: inline-flex; align-items: center;
}
.btn-toggle-small:hover { border-color: var(--brand); color: var(--brand); }

/* kompakte Schlag-Tabelle: Einheiten im Kopf, Zellen nur Zahlen -> passt ohne Scrollen */
.shots-table { font-size: var(--font-xs); }
.shots-table th, .shots-table td { padding: 4px 6px; white-space: nowrap; }
.shots-table th { line-height: 1.25; vertical-align: bottom; }
.shots-table .unit-sub {
  display: block; font-weight: normal; color: var(--text-muted);
  font-size: 10px; margin-top: 1px;
}
.shots-table .btn-toggle-small { padding: 2px 5px; }

/* Tendenz-Anzeige in der Session-Liste */
.trend-up   { color: #2e9d46; font-weight: 600; white-space: nowrap; }
.trend-down { color: #c0392b; font-weight: 600; white-space: nowrap; }
.trend-flat { color: var(--text-muted); white-space: nowrap; }
[data-theme="dark"] .trend-up   { color: #7fdc95; }
[data-theme="dark"] .trend-down { color: #f19a8e; }

/* Zielprofile: schmale Zahleneingaben */
.targets-table .tgt-in { width: 90px; text-align: right; }
.targets-table td, .targets-table th { vertical-align: middle; }

/* Verlaufs-Diagramm */
.chart-wrap { margin-top: 12px; }
.legend-dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  vertical-align: middle; margin-right: 4px;
}
.legend-line {
  display: inline-block; width: 22px; height: 0; vertical-align: middle;
  border-top: 2px dashed; margin-right: 4px;
}

/* Garmin-Runden: Loch-Kacheln nebeneinander */
.holes-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px; margin-top: 10px;
}
.hole-box { border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; }
.hole-box h3 { margin: 0 0 6px; font-size: var(--font-md); }
.bookmarklet { cursor: grab; }
.hole-map { width: 100%; height: auto; border-radius: 8px; display: block; margin-bottom: 8px; }

/* Runden im HTA-Stil: geteilte Ansicht */
.garmin-split { display: grid; grid-template-columns: 360px 1fr; gap: 16px; align-items: start; }
@media (max-width: 1000px) { .garmin-split { grid-template-columns: 1fr; } }
.round-list { max-height: 68vh; overflow-y: auto; margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.round-item { display: block; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px;
              text-decoration: none; color: inherit; }
.round-item:hover { border-color: var(--brand); }
.round-item.active { border-color: var(--brand); background: var(--ok-bg); }
.hole-btns { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0 10px; }
.hole-btn { display: flex; flex-direction: column; align-items: center; min-width: 44px; padding: 4px 6px;
            border: 1px solid var(--border); border-radius: 8px; background: transparent; color: inherit; cursor: pointer; }
.hole-btn .hole-no { font-weight: bold; font-size: 15px; }
.hole-btn .hole-sub { font-size: 11px; color: var(--muted); }
.hole-btn.active { border-color: var(--brand); background: var(--ok-bg); }
.hole-flex { display: grid; grid-template-columns: minmax(280px, 46%) 1fr; gap: 16px; align-items: start; }
@media (max-width: 800px) { .hole-flex { grid-template-columns: 1fr; } }

/* Scorecard im Garmin-Stil */
.sc-wrap { overflow-x: auto; margin-top: 14px; }
.sc-table { border-collapse: collapse; min-width: 100%; }
.sc-table th, .sc-table td { padding: 4px 8px; text-align: center; border-bottom: 1px solid var(--border); font-size: 13px; }
.sc-table th:first-child { text-align: left; color: var(--muted); font-weight: normal; }
.sc-table th:last-child { border-left: 2px solid var(--border); }
.sc-table td:last-child { border-left: 2px solid var(--border); }
.sc-badge { display: inline-flex; align-items: center; justify-content: center;
            min-width: 24px; height: 24px; border-radius: 4px; border: 2px solid transparent; }
.sc-eagle  { border-color: #3aa0ff; border-radius: 50%; box-shadow: 0 0 0 2px #3aa0ff33; }
.sc-birdie { border-color: #3aa0ff; border-radius: 50%; }
.sc-bogey  { border-color: #d9a441; }
.sc-double { border-color: #d9534f; }
.sc-pen { color: #d9534f; }
.sc-legend { margin-top: 8px; }
.sc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 8px; }
.sc-table td[data-h] { cursor: pointer; }
.sc-table td.sc-hover { background: var(--ok-bg); }
.sc-table td.sc-active { background: var(--ok-bg); box-shadow: inset 0 -2px 0 var(--brand); }
.sc-hint { font-size: 12px; }
.sc-ico { vertical-align: middle; display: inline-block; }

/* Statistik-Leiste oben in der Runde */
.stat-strip { display: flex; gap: 14px; flex-wrap: wrap; align-items: stretch; margin: 14px 0 4px; }
.ring-tile, .stat-tile { display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 4px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; min-width: 96px; }
.ring-tile > :first-child, .stat-tile > :first-child { margin-top: auto; }
.ring-label { font-size: 12px; color: var(--muted); text-align: center; margin-top: auto; }
.stat-big { font-size: 22px; font-weight: bold; line-height: 1.1; }
.score-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.chip { display: inline-block; padding: 2px 8px; border-radius: 999px; border: 2px solid var(--border); font-size: 12px; }
.chip-blue  { border-color: #3aa0ff; }
.chip-green { border-color: #4caf6d; }
.chip-amber { border-color: #d9a441; }
.chip-red   { border-color: #d9534f; }
.stat-ratings { flex: 1 1 260px; max-width: none; }

/* Aufklappbare Schläger-Tabelle (jetzt oberhalb der Scorecard) */
.club-details { border: 1px solid var(--border); border-radius: 10px; padding: 8px 14px; margin: 12px 0 4px; }
.club-details summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; font-size: 16px; }
.club-details summary::-webkit-details-marker { display: none; }
.club-details summary:hover { color: var(--brand); }
.chev-wrap { margin-left: auto; display: inline-flex; color: var(--muted); transition: transform .15s; }
.club-details[open] .chev-wrap { transform: rotate(90deg); }
.club-details summary:hover .chev-wrap { color: var(--brand); }

/* Info-Fragezeichen + schwebendes Erklaerfenster */
.sc-table th:first-child { white-space: nowrap; }
.th-flex { display: inline-flex; align-items: center; gap: 6px; }
.qtip { display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 5px; border: 1px solid #3a4f3a;
  background: #1d2b1d; color: #cfe0cf; font-size: 11px; font-weight: bold;
  cursor: help; margin-left: 0; padding: 0; line-height: 1; flex: 0 0 auto;
  box-shadow: 0 1px 2px rgba(0,0,0,.35); }
.qtip:hover { border-color: var(--brand); color: var(--brand); background: #223522; }
.tipbox .sc-ico { vertical-align: -3px; margin: 0 1px; }
.tipbox { position: fixed; z-index: 200; max-width: 280px; padding: 9px 12px;
  background: #142014; border: 1px solid var(--brand); border-radius: 8px;
  font-size: 12.5px; line-height: 1.45; color: var(--text, #e6efe6);
  box-shadow: 0 6px 18px rgba(0,0,0,.55); }
tr.shot-off td { opacity: .45; }
tr.shot-off td:first-child { opacity: 1; }

/* Info-Boxen als Zeilen-Raster + Abstand Scorecard -> Lochkarte */
.tip-intro { margin-bottom: 7px; }
.tip-grid { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; }
.tip-sym { display: inline-flex; justify-content: center; min-width: 26px; }
.tip-note { margin-top: 8px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--border); padding-top: 6px; }
.sc-wrap { margin-bottom: 18px; }

/* Runden-Schalter (Wertung / HC) + Listen-Kennzeichen */
.flag-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer;
  padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); }
.flag-label input { accent-color: var(--brand); }
.flag-label.flag-on-red { border-color: #d9534f; color: #e8b4b2; }
.flag-label.flag-on-green { border-color: #4caf6d; color: #bfe5c8; }
.mini-flag { display: inline-block; font-size: 10px; padding: 1px 6px; border-radius: 999px;
  margin-left: 6px; vertical-align: 1px; border: 1px solid; }
.mini-red { border-color: #d9534f; color: #e8b4b2; }
.mini-green { border-color: #4caf6d; color: #bfe5c8; }

/* Dokumente-Block */
.doc-upload { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.dropzone { display: flex; align-items: center; gap: 10px; padding: 16px 14px; border: 2px dashed var(--border);
  border-radius: 10px; cursor: pointer; color: var(--muted); position: relative; }
.dropzone:hover, .dropzone:focus-within { border-color: var(--brand); color: var(--brand); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dz-file { font-size: 12px; }
.doc-upload-row { display: flex; gap: 10px; align-items: center; }
.doc-badge { display: inline-block; font-size: 10px; font-weight: bold; padding: 2px 7px;
  border: 1.5px solid; border-radius: 6px; letter-spacing: .3px; }

/* Dokumente-Tabelle: aufgeraeumt */
.doc-table td, .doc-table th { vertical-align: middle; padding: 8px 10px; }
.doc-table th:first-child, .doc-table td:first-child { width: 58px; text-align: center; padding-left: 0; }
.doc-table td:nth-child(2) a { color: var(--brand); text-decoration: none; }
.doc-table td:nth-child(2) a:hover { text-decoration: underline; }
.doc-table td:nth-child(2) a:visited { color: var(--brand); }
.doc-table th:last-child, .doc-table td:last-child { width: 46px; text-align: right; }
.doc-table td:nth-child(4), .doc-table th:nth-child(4),
.doc-table td:nth-child(5), .doc-table th:nth-child(5) { white-space: nowrap; }

/* Anhang-Hinweis in der Runden-Liste */
.mini-doc { border-color: var(--border); color: var(--muted); display: inline-flex; align-items: center; gap: 3px; }

/* Muelleimer in der Dokument-Zeile exakt mittig */
.doc-table td:last-child form { margin: 0; display: inline-flex; align-items: center; }
.doc-table td:last-child .btn-danger-small { margin: 0; }

/* Lightbox (Bild-Modal) */
.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(0,0,0,.82);
  display: flex; align-items: center; justify-content: center; padding: 24px; }
.lb-inner { max-width: min(94vw, 1100px); max-height: 92vh; display: flex; flex-direction: column;
  background: #131d13; border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.6); }
.lb-head { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; border-bottom: 1px solid var(--border); font-weight: bold; }
.lb-close { background: transparent; border: 1px solid var(--border); color: var(--muted);
  border-radius: 8px; width: 30px; height: 30px; cursor: pointer; font-size: 14px; line-height: 1; }
.lb-close:hover { border-color: var(--brand); color: var(--brand); }
.lightbox img { display: block; max-width: 100%; max-height: calc(92vh - 56px); object-fit: contain; }
.round-sub { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.round-sub .mini-flag { margin-left: 0; flex: 0 0 auto; }
