:root {
  color-scheme: dark;
  --bg: #0c0e10;
  --panel: rgba(20, 23, 27, 0.91);
  --panel-strong: #232830;
  --line: rgba(255, 255, 255, 0.13);
  --text: #f2f4f7;
  --muted: #aab2bd;
  --soft: #d8dee7;
  --accent: #ff3d2e;
  --accent-2: #22c081;
  --accent-3: #f5c542;
  --mud: #765b3f;
  --warning: #f1b44c;
  --danger: #d74d57;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(12, 14, 16, 0.42), #0c0e10 430px),
    linear-gradient(115deg, rgba(255, 61, 46, 0.18), transparent 36%),
    radial-gradient(circle at 82% 12%, rgba(245, 197, 66, 0.18), transparent 240px),
    radial-gradient(circle at 14% 70%, rgba(34, 192, 129, 0.1), transparent 260px),
    var(--bg);
  color: var(--text);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(12, 14, 16, 0.86) 0%, rgba(12, 14, 16, 0.64) 42%, rgba(12, 14, 16, 0.9) 100%),
    linear-gradient(180deg, rgba(12, 14, 16, 0.08), #0c0e10 82%),
    url("./assets/rally-hero.png") center top / cover no-repeat;
  content: "";
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, black, transparent 78%);
  content: "";
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
label.file-action {
  cursor: pointer;
}

.topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 250px;
  padding: 32px clamp(16px, 4vw, 48px) 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.topbar::before {
  position: absolute;
  inset: auto 0 0;
  height: 7px;
  background: linear-gradient(90deg, var(--accent), var(--accent-3) 42%, var(--accent-2));
  content: "";
}

.topbar::after {
  position: absolute;
  right: clamp(18px, 5vw, 72px);
  bottom: 14px;
  width: min(420px, 44vw);
  height: 72px;
  opacity: 0.13;
  background:
    linear-gradient(45deg, #fff 25%, transparent 25%) 0 0 / 24px 24px,
    linear-gradient(45deg, transparent 75%, #fff 75%) 0 0 / 24px 24px,
    linear-gradient(45deg, transparent 75%, #fff 75%) 12px 12px / 24px 24px,
    linear-gradient(45deg, #fff 25%, transparent 25%) 12px 12px / 24px 24px;
  content: "";
  transform: skewX(-12deg);
}

.title-block,
.top-actions {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent-2);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

h2 {
  margin-bottom: 0;
  font-size: 1.25rem;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.top-actions,
.form-actions,
.row-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.driver-session {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(8, 11, 13, 0.62);
}

.driver-session span {
  color: var(--soft);
  font-size: 0.86rem;
  font-weight: 900;
}

.rally-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.rally-tags span,
.rally-tags a {
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 4px solid var(--accent-3);
  border-radius: 5px;
  background: rgba(13, 16, 19, 0.62);
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.rally-tags a:first-child {
  border-left-color: var(--accent);
}

.rally-tags span:last-child {
  border-left-color: var(--accent-2);
}

.rally-strip {
  height: 14px;
  background:
    linear-gradient(90deg, rgba(255, 61, 46, 0.95), rgba(245, 197, 66, 0.95) 36%, rgba(34, 192, 129, 0.9)),
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(255, 255, 255, 0.18) 12px 24px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.app-tabs {
  display: flex;
  gap: 10px;
  padding: 18px clamp(16px, 4vw, 48px) 0;
}

.main-tab-button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
    rgba(20, 23, 27, 0.9);
  color: var(--muted);
  font-weight: 900;
}

.main-tab-button.active {
  border-color: rgba(34, 192, 129, 0.62);
  background:
    linear-gradient(180deg, rgba(34, 192, 129, 0.18), rgba(34, 192, 129, 0.05)),
    rgba(20, 23, 27, 0.94);
  color: var(--text);
}

.row-actions {
  flex-wrap: nowrap;
  gap: 8px;
}

.layout,
.chronos-layout,
.form-layout,
.admin-layout {
  display: grid;
  gap: 20px;
  padding: 22px clamp(14px, 2.6vw, 34px) 48px;
}

.layout {
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
}

.chronos-layout,
.admin-layout {
  grid-template-columns: minmax(0, 1fr);
}

.form-layout {
  grid-template-columns: minmax(300px, 760px);
  justify-content: center;
}

.app-view {
  display: none;
}

.app-view.active.layout {
  display: grid;
}

.app-view.active.chronos-layout,
.app-view.active.form-layout,
.app-view.active.admin-layout {
  display: grid;
}

.stats-layout {
  padding: 22px clamp(14px, 2.6vw, 34px) 48px;
}

.app-view.active.stats-layout {
  display: block;
}

.stats-layout .analytics-panel {
  width: 100%;
}

.entry-panel,
.board-panel,
.analytics-panel {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 32%),
    var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.entry-panel {
  border-top: 3px solid var(--accent);
}

.board-panel {
  border-top: 3px solid var(--accent-2);
}

.analytics-panel {
  grid-column: 1 / -1;
  border-top: 3px solid var(--accent-3);
}

.entry-panel {
  align-self: start;
  padding: 22px;
}

.board-panel {
  min-width: 0;
  padding: 22px;
}

.analytics-panel {
  min-width: 0;
  padding: 22px;
}

.section-heading {
  margin-bottom: 20px;
}

.board-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.board-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.analytics-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.count {
  min-width: 92px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  font-size: 0.88rem;
  text-align: center;
}

.time-form,
.filters {
  display: grid;
  gap: 14px;
}

.filters {
  grid-template-columns: minmax(240px, 1.5fr) minmax(190px, 1fr) repeat(5, minmax(142px, 0.72fr)) auto;
  align-items: end;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 61, 46, 0.055), transparent 38%),
    rgba(9, 12, 15, 0.56);
}

.filter-field {
  min-width: 0;
}

.driver-filter-field {
  position: relative;
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.filter-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
}

.filter-actions .plain-button {
  min-height: 42px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(8, 11, 13, 0.86);
  color: var(--text);
  outline: none;
}

input,
select {
  min-height: 42px;
  padding: 0 12px;
}

select[multiple] {
  min-height: 92px;
  padding: 8px 10px;
}

.native-driver-filter {
  display: none;
}

.filter-select-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 42px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(8, 11, 13, 0.86);
  color: var(--text);
  font-weight: 800;
  text-align: left;
}

.driver-filter-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 8;
  min-width: 260px;
  padding: 10px;
  border: 1px solid rgba(34, 192, 129, 0.32);
  border-radius: 7px;
  background: #101419;
  box-shadow: var(--shadow);
}

.driver-filter-menu input {
  margin-bottom: 9px;
}

.checkbox-list {
  display: grid;
  max-height: 260px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(6, 8, 10, 0.62);
}

.checkbox-row {
  display: flex;
  align-items: center;
  grid-template-columns: none;
  gap: 9px;
  min-height: 34px;
  padding: 7px 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--soft);
  font-size: 0.86rem;
  font-weight: 800;
}

.checkbox-row:last-child {
  border-bottom: 0;
}

.checkbox-row:hover {
  background: rgba(34, 192, 129, 0.09);
}

.checkbox-row input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--accent-2);
}

.filter-menu-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 9px;
}

textarea {
  min-height: 88px;
  padding: 11px 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(33, 166, 122, 0.16);
}

.locked-input {
  border-color: rgba(245, 197, 66, 0.46);
  background:
    linear-gradient(90deg, rgba(245, 197, 66, 0.08), transparent 52%),
    rgba(8, 11, 13, 0.86);
}

.field-help {
  margin: -8px 0 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.primary-button,
.ghost-button,
.plain-button,
.mini-button,
.icon-button,
.tab-button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  color: var(--text);
  font-weight: 800;
}

.primary-button {
  padding: 0 16px;
  background: linear-gradient(135deg, var(--accent), #c82820);
  box-shadow: 0 8px 18px rgba(255, 61, 46, 0.22);
}

.ghost-button,
.plain-button,
.mini-button,
.tab-button {
  padding: 0 13px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)), var(--panel-strong);
}

.plain-button {
  color: var(--muted);
}

.mini-button {
  min-height: 32px;
  font-size: 0.78rem;
}

.tab-button {
  color: var(--muted);
}

.tab-button.active {
  border-color: rgba(245, 197, 66, 0.55);
  background:
    linear-gradient(180deg, rgba(245, 197, 66, 0.18), rgba(245, 197, 66, 0.06)),
    var(--panel-strong);
  color: var(--text);
}

.mini-button.danger {
  border-color: rgba(215, 77, 87, 0.42);
  color: #ffbdc3;
}

.icon-button {
  width: 38px;
  padding: 0;
  background: var(--panel-strong);
  font-size: 1.5rem;
  line-height: 1;
}

.table-wrap {
  max-height: calc(100vh - 330px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(6, 8, 10, 0.26);
}

table {
  width: 100%;
  min-width: 1460px;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  padding: 10px 9px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  position: sticky;
  top: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(27, 31, 37, 0.98), rgba(16, 20, 24, 0.98)),
    #15191f;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

td {
  color: var(--soft);
  font-size: 0.92rem;
}

tbody tr {
  background: linear-gradient(90deg, rgba(255, 61, 46, 0.045), transparent 24%);
}

tbody tr:nth-child(even) {
  background: linear-gradient(90deg, rgba(34, 192, 129, 0.045), transparent 24%);
}

tbody tr.own-record {
  background:
    linear-gradient(90deg, rgba(245, 197, 66, 0.13), transparent 32%),
    rgba(245, 197, 66, 0.02);
}

tbody tr:hover {
  background:
    linear-gradient(90deg, rgba(34, 192, 129, 0.11), transparent 34%),
    rgba(255, 255, 255, 0.025);
}

tbody tr:last-child td {
  border-bottom: 0;
}

.rank-cell {
  color: var(--muted);
  font-weight: 800;
}

.driver-cell,
.car-cell,
.course-cell,
.stage-cell {
  overflow-wrap: anywhere;
  font-weight: 800;
}

.rank-cell,
.capture-cell,
.notes-cell,
.duel-cell {
  text-align: center;
}

.time-cell {
  color: var(--text);
  font-family: "Segoe UI Mono", Consolas, monospace;
  font-size: 1rem;
  font-weight: 800;
}

.date-cell {
  color: var(--muted);
  font-size: 0.84rem;
}

.world-rank-cell {
  color: var(--soft);
  font-weight: 800;
}

.duel-button {
  border-color: rgba(245, 197, 66, 0.45);
  color: #ffe7a5;
}

.sort-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
}

.sort-button::after {
  color: transparent;
  content: "^";
}

.sort-button.active {
  color: var(--text);
}

.sort-button.active::after {
  color: var(--accent-3);
  content: "^";
}

.sort-button.active[data-direction="desc"]::after {
  content: "v";
}

th:nth-child(1) {
  width: 46px;
}

th:nth-child(2) {
  width: 120px;
}

th:nth-child(3) {
  width: 190px;
}

th:nth-child(4) {
  width: 84px;
}

th:nth-child(5) {
  width: 108px;
}

th:nth-child(6) {
  width: 112px;
}

th:nth-child(7) {
  width: 170px;
}

th:nth-child(8) {
  width: 210px;
}

th:nth-child(9) {
  width: 116px;
}

th:nth-child(10) {
  width: 82px;
}

th:nth-child(11),
th:nth-child(12),
th:nth-child(15) {
  width: 78px;
}

th:nth-child(13) {
  width: 94px;
}

th:nth-child(14) {
  width: 160px;
}

.capture-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 42px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #0c0f12;
}

.capture-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.no-capture {
  color: var(--muted);
  font-size: 0.82rem;
}

.row-actions .mini-button {
  padding: 0 10px;
}

.row-actions .danger {
  padding: 0 9px;
}

.muted-cell {
  color: var(--muted);
}

.empty-state {
  display: none;
  padding: 42px 18px 28px;
  color: var(--muted);
  text-align: center;
}

.empty-state.visible {
  display: block;
}

.analytics-view {
  display: none;
}

.analytics-view.active {
  display: block;
}

.analytics-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.analytics-controls.single-control {
  grid-template-columns: minmax(180px, 280px);
}

.my-profile-grid {
  display: grid;
  grid-template-columns: minmax(340px, 460px) minmax(420px, 1fr);
  gap: 22px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 18px;
}

.profile-card,
.progress-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 61, 46, 0.08), transparent 38%),
    rgba(7, 10, 12, 0.46);
}

.profile-card {
  padding: 16px;
}

.profile-card.current-profile {
  border-color: rgba(245, 197, 66, 0.55);
  background:
    linear-gradient(135deg, rgba(245, 197, 66, 0.14), transparent 44%),
    rgba(7, 10, 12, 0.5);
}

.empty-profile-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.profile-head h3,
.progress-item h3 {
  margin-bottom: 4px;
}

.profile-head p,
.progress-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.profile-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border: 2px solid rgba(245, 197, 66, 0.7);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 61, 46, 0.95), rgba(118, 91, 63, 0.95));
  color: #fff;
  font-weight: 900;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.profile-stats div {
  min-width: 0;
  padding: 10px;
  border-left: 3px solid rgba(34, 192, 129, 0.75);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
}

.profile-stats dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-stats dd {
  overflow-wrap: anywhere;
  margin: 4px 0 0;
  color: var(--text);
  font-weight: 800;
}

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

.progress-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 13px;
}

.progress-marker {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-2);
  color: #06100c;
  font-weight: 900;
}

.progress-gain {
  margin-top: 8px;
  color: var(--accent-2) !important;
  font-weight: 900;
}

.progress-gain.neutral {
  color: var(--accent-3) !important;
}

.duel-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.duel-summary:empty {
  display: none;
}

.duel-summary div {
  min-height: 70px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(245, 197, 66, 0.11), transparent 58%),
    rgba(255, 255, 255, 0.045);
}

.duel-summary strong,
.duel-summary span {
  display: block;
}

.duel-summary strong {
  font-size: 1.45rem;
}

.duel-summary span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.compact-table table {
  min-width: 980px;
}

.admin-table table {
  min-width: 720px;
}

#duelView .table-wrap {
  margin-top: 6px;
}

#duelView th,
#duelView td {
  padding: 16px 14px;
}

.duel-stage-cell,
.duel-run-cell {
  white-space: pre-line;
  line-height: 1.45;
}

.duel-stage-cell {
  min-width: 260px;
}

.duel-run-cell {
  min-width: 210px;
  color: var(--text);
  font-family: "Segoe UI Mono", Consolas, monospace;
  font-weight: 800;
}

.analytics-empty {
  padding-top: 28px;
}

.capture-dialog,
.driver-dialog {
  width: min(920px, calc(100vw - 24px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
}

.driver-dialog {
  width: min(480px, calc(100vw - 24px));
}

.capture-dialog::backdrop,
.driver-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.dialog-actions {
  margin-top: 16px;
}

.dialog-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.capture-dialog img {
  display: block;
  width: 100%;
  max-height: 72vh;
  border-radius: 6px;
  object-fit: contain;
  background: #080a0c;
}

.dialog-meta {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0f1316;
  color: var(--text);
  box-shadow: var(--shadow);
}

.app-footer {
  padding: 18px clamp(16px, 4vw, 48px) 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }

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

  .search-field {
    grid-column: 1 / -1;
  }

  .filter-actions {
    justify-content: flex-start;
  }

  .my-profile-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-actions {
    width: 100%;
  }

  .app-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .driver-session {
    width: 100%;
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .entry-panel,
  .board-panel,
  .analytics-panel {
    padding: 16px;
  }

  .board-heading,
  .analytics-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .count {
    width: fit-content;
  }

  .analytics-controls,
  .duel-summary,
  .profile-stats,
  .my-profile-grid {
    grid-template-columns: 1fr;
  }
}
