@font-face {
  font-family: "Necromunda Body";
  src: url("../fonts/Necromunda_Body.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Necromunda Subtitle";
  src: url("../fonts/Necromunda_SubTitle.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Necromunda Title";
  src: url("../fonts/Necromunda_Title.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #161815;
  --panel: #242820;
  --panel-2: #303529;
  --line: #4b5142;
  --text: #f2eee2;
  --muted: #bbb49f;
  --accent: #d6ad46;
  --accent-2: #7fb089;
  --danger: #c95d4f;
  --cyan: #72aebf;
  --purple: #a276b3;
  --shadow: rgba(0, 0, 0, 0.34);
  --hex-size: 112px;
  --site-font: "Necromunda Body", Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 8%, rgba(214, 173, 70, 0.14), transparent 24rem),
    linear-gradient(135deg, #141611 0%, #202319 48%, #171a1c 100%);
  color: var(--text);
  font-family: var(--site-font);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

.role-hidden {
  display: none !important;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(420px, 100%);
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  background: rgba(36, 40, 32, 0.94);
  box-shadow: 0 18px 45px var(--shadow);
  padding: 22px;
}

.login-card h1 {
  margin-top: 8px;
  font-size: 2rem;
}

.login-error {
  min-height: 1.3rem;
  color: #f2a39b;
  font-size: 0.92rem;
}

.front-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
}

.campaign-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.campaign-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.campaign-filter-bar select {
  min-width: 180px;
}

.primary-button.campaign-create-button {
  font-family: "Necromunda Subtitle", var(--site-font);
  min-height: 30px;
  white-space: nowrap;
}

.campaign-header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.advanced-search {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 16px;
}

.campaign-card {
  display: grid;
  gap: 16px;
  min-height: 240px;
  align-content: space-between;
  border: 1px solid var(--line);
  background: rgba(22, 24, 21, 0.62);
  padding: 16px;
}

.campaign-card h3 {
  margin-top: 0;
  font-size: 1.35rem;
  font-family: "Necromunda Subtitle", var(--site-font);
}

.campaign-card-stage {
  font-family: var(--site-font);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
}

.campaign-card [data-open-campaign],
.gang-card [data-open-gang] {
  font-family: "Necromunda Subtitle", var(--site-font);
}

.campaign-card [data-open-campaign] {
  min-height: 30px;
}

.gang-card [data-open-gang] {
  min-height: 30px;
}

.campaign-card p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.sidebar {
  padding: 24px;
  background: rgba(22, 24, 21, 0.94);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.brand {
  display: grid;
  grid-template-columns: 75px 1fr;
  gap: 14px;
  align-items: center;
}

.brand-mark {
  width: 75px;
  height: 75px;
  display: grid;
  place-items: center;
  background: transparent;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand h1 {
  font-family: "Necromunda Title", var(--site-font);
  font-size: 2.625rem;
  text-align: center;
}

.brand p {
  font-family: "Necromunda Subtitle", var(--site-font);
  text-align: center;
}

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

h1 {
  font-size: 1rem;
  line-height: 1.2;
}

.brand p,
.eyebrow,
.metric span,
.login-panel label,
.login-label {
  color: var(--muted);
}

.login-label {
  font-size: 10px;
}

#signOutBtn,
#frontSignOutBtn {
  font-family: "Necromunda Subtitle", var(--site-font);
  justify-self: end;
  width: 45%;
  min-height: 23px;
  min-width: 86px;
  background: var(--accent);
  border-color: var(--accent);
  color: #16150f;
}

.signed-in-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}

.signed-in-name {
  line-height: 1.25;
  min-width: 0;
}

.view-as-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  flex-wrap: nowrap;
}

.view-as-control select {
  flex: 0 0 148px;
  width: 148px;
  min-height: 36px;
  font-size: 0.9rem;
}

.login-panel,
.panel,
.metric,
.inspector {
  border: 1px solid var(--line);
  background: rgba(36, 40, 32, 0.92);
  box-shadow: 0 18px 45px var(--shadow);
}

.login-panel {
  padding: 14px;
  display: grid;
  gap: 10px;
}

select,
input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  background: #171a15;
  color: var(--text);
  padding: 0 11px;
}

.role-pill,
.status-chip {
  width: fit-content;
  border: 1px solid rgba(214, 173, 70, 0.55);
  color: var(--accent);
  background: rgba(214, 173, 70, 0.11);
  padding: 5px 9px;
  font-size: 0.82rem;
}

.nav-tabs {
  display: grid;
  gap: 8px;
  font-family: "Necromunda Subtitle", var(--site-font);
}

.nav-group {
  display: grid;
  gap: 6px;
}

.nav-group + .nav-group {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 12px;
}

.nav-group-title {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-tab,
.text-button,
.primary-button,
.icon-button {
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--panel-2);
}

.nav-tab {
  text-align: left;
  padding: 12px 14px;
}

.nav-child {
  margin-left: 10px;
  padding-left: 18px;
}

.nav-tab.active {
  border-color: var(--accent);
  background: rgba(214, 173, 70, 0.16);
}

.main {
  min-width: 0;
  padding: 24px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.topbar h2 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

#commandViewTitle {
  font-family: "Necromunda Title", var(--site-font);
}

.command-title-subtitle {
  font-family: "Necromunda Subtitle", var(--site-font);
  font-size: 0.7em;
}

.gang-profile-panel {
  margin-bottom: 18px;
}

.gang-profile-panel h3 {
  font-family: "Necromunda Subtitle", var(--site-font);
  font-size: 1.35rem;
  margin: 0 0 8px;
}

.gang-profile-panel p {
  color: var(--muted);
  line-height: 1.45;
}

.gang-profile-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.gang-profile-button {
  min-height: 30px;
  font-family: "Necromunda Subtitle", var(--site-font);
}

.gang-profile-editor {
  display: grid;
  gap: 8px;
}

.gang-profile-editor textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  border: 1px solid var(--line);
  background: #171a15;
  color: var(--text);
  padding: 10px 11px;
  font: inherit;
}

.gang-profile-edit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.gang-profile-count {
  color: var(--muted);
  font-size: 0.9rem;
}

.workspace-title {
  margin-top: 4px;
  font-size: 1.15rem;
}

.top-actions {
  display: flex;
  gap: 10px;
}

.primary-button,
.text-button {
  min-height: 30px;
  padding: 0 14px;
}

.icon-button {
  min-height: 42px;
  padding: 0 14px;
}

.primary-button {
  background: var(--accent);
  border-color: var(--accent);
  color: #16150f;
  font-weight: 800;
}

.primary-button:disabled,
.text-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.text-button {
  color: var(--accent);
  background: transparent;
}

.icon-button {
  width: 42px;
  padding: 0;
  font-size: 1.5rem;
}

.wide {
  width: 100%;
}

.view {
  display: none;
}

.view.active,
.command-view.active {
  display: block;
}

.command-view {
  display: none;
}

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

.metric {
  padding: 18px;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
}

.content-grid,
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
  gap: 18px;
}

.panel,
.inspector {
  padding: 18px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-heading h3 {
  font-family: "Necromunda Subtitle", var(--site-font);
}

.stack {
  display: grid;
  gap: 12px;
}

.item {
  border: 1px solid rgba(75, 81, 66, 0.8);
  background: rgba(22, 24, 21, 0.6);
  padding: 13px;
}

.item strong {
  display: block;
  margin-bottom: 5px;
}

.item p,
.inspector p,
.timeline p {
  color: var(--muted);
  line-height: 1.45;
}

.sector-terrain-image {
  margin: 0 0 12px;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background: rgba(22, 24, 21, 0.72);
  overflow: hidden;
}

.sector-terrain-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}

.map-column {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.map-stage {
  min-height: 690px;
  overflow: auto;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    #151813;
  background-size: 28px 28px;
  padding: 18px;
}

.map-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(21, 24, 19, 0.92);
  padding-bottom: 12px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
}

.swatch {
  width: 14px;
  height: 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.hex-map {
  position: relative;
  min-width: 980px;
  min-height: 720px;
  margin-top: 16px;
}

.terrain-map-key {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.terrain-key-panel {
  overflow: hidden;
}

.terrain-key-item {
  display: grid;
  justify-items: center;
  gap: 5px;
  width: 96px;
  color: var(--muted);
  text-align: center;
  font-size: 0.78rem;
}

.terrain-key-image,
.terrain-key-image-button {
  width: 92px;
  height: 80px;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.24)),
    #31362c;
  background-position: center;
  background-size: cover;
}

.terrain-key-image-button {
  cursor: pointer;
}

.terrain-key-image-button:hover,
.terrain-key-image-button:focus-visible {
  filter: brightness(1.18);
}

.terrain-key-placeholder {
  border: 1px solid var(--line);
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
}

.image-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.72);
}

.image-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1100px, 94vw);
  max-height: 92vh;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 18px 45px var(--shadow);
  padding: 16px;
}

.image-modal-panel img {
  display: block;
  width: 100%;
  max-height: calc(92vh - 92px);
  object-fit: contain;
  background: #111;
}

.hex {
  position: absolute;
  width: calc(var(--hex-size) * 1.1547);
  height: var(--hex-size);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  border: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 12px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.1;
  background: var(--owner-color);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.28);
  transition: transform 120ms ease, filter 120ms ease;
}

.hex-fill {
  position: absolute;
  inset: 8px;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.24)),
    #31362c;
}

.hex.has-terrain-image .hex-fill {
  background-position: center;
  background-size: 145%;
}

.hex:hover,
.hex.selected {
  transform: scale(1.08);
  filter: brightness(1.18);
  z-index: 4;
}

.hex.hidden {
  opacity: 0.22;
}

.hex .hex-code {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
}

.hex-code {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  background: transparent;
  padding: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 16px;
}

.form-grid.single {
  grid-template-columns: 1fr;
}

.rule-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  border: 1px solid var(--line);
  padding: 12px;
}

.rule-picker legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 0.86rem;
}

.rule-picker label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  color: var(--text);
}

.rule-picker input[type="checkbox"] {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  min-height: 14px;
  margin: 0;
  padding: 0;
}

.terrain-picker {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  padding: 12px;
}

.terrain-picker legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 0.86rem;
}

.terrain-limit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}

.terrain-picker-help {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.45;
}

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

.terrain-bonus-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(180px, 1.1fr);
  align-items: start;
  gap: 10px;
}

.terrain-bonus-row select,
.terrain-type-item select {
  min-height: 92px;
}

.terrain-limit-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 10px;
}

.terrain-limit-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.terrain-limit-row input[type="number"] {
  min-height: 34px;
  text-align: right;
}

.terrain-limit-row input[type="number"]:disabled {
  color: var(--accent);
  opacity: 1;
}

.terrain-total {
  border-top: 1px solid var(--line);
  color: var(--accent);
  font-weight: 700;
  padding-top: 10px;
}

.draft-hex-grid {
  position: relative;
  max-height: 420px;
  min-height: 220px;
  overflow: auto;
  border: 1px solid var(--line);
  background: rgba(12, 14, 12, 0.35);
}

.draft-terrain-cell {
  position: absolute;
  width: 110px;
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  background: rgba(22, 24, 21, 0.58);
  padding: 7px;
  color: var(--muted);
  font-size: 0.82rem;
}

.draft-terrain-cell span {
  color: var(--accent);
  font-weight: 800;
}

.draft-terrain-cell select {
  min-height: 34px;
  width: 100%;
  padding: 0 4px;
  font-size: 0.78rem;
}

.draft-hex-preview-map {
  position: relative;
  max-height: 520px;
  min-height: 220px;
  overflow: auto;
  border: 1px solid var(--line);
  background: rgba(12, 14, 12, 0.55);
}

.draft-hex-preview {
  position: absolute;
  width: 106px;
  aspect-ratio: 1.1547 / 1;
  display: grid;
  place-items: end center;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  background-position: center;
  background-size: 145%;
  box-shadow: inset 0 0 0 999px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.draft-hex-border {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.draft-hex-border polygon {
  fill: none;
  stroke: rgba(190, 197, 184, 0.82);
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
}

.draft-hex-preview span {
  position: relative;
  z-index: 2;
  margin-bottom: 10%;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
  font-weight: 800;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.terrain-type-item {
  display: grid;
  grid-template-columns: 132px repeat(3, minmax(180px, 1fr));
  align-items: end;
  gap: 12px;
}

.terrain-type-image {
  grid-row: 1 / span 3;
  align-self: stretch;
  display: grid;
  place-items: center;
  min-height: 118px;
  border: 1px solid var(--line);
  background: rgba(22, 24, 21, 0.72);
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
  overflow: hidden;
}

.terrain-type-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.terrain-catalogue {
  margin-bottom: 16px;
}

.terrain-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
}

.terrain-checkbox-row input[type="checkbox"] {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  min-height: 14px;
  margin: 0;
}

.campaign-arbitrators,
.campaign-roster {
  margin-top: 16px;
}

#playerTerritorySelect {
  min-height: 130px;
}

.size-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
}

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

.gang-detail-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.gang-detail-layout > .panel {
  display: grid;
  grid-template-rows: auto 1fr;
}

#commandGangDetailCards {
  grid-template-columns: minmax(0, 1fr);
}

.gang-card {
  display: grid;
  gap: 16px;
  min-height: 240px;
  align-content: start;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(22, 24, 21, 0.62);
}

.gang-card h4 {
  margin: 0 0 10px;
  font-family: "Necromunda Subtitle", var(--site-font);
  font-size: 1.35rem;
}

.gang-card-campaign {
  font-family: var(--site-font);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
}

.gang-card p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.mini-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
  border-top: 1px solid rgba(75, 81, 66, 0.72);
}

.gang-card .mini-row:first-child {
  border-top: 0;
}

.detail-row {
  display: grid;
  grid-template-columns: minmax(82px, 0.7fr) minmax(0, 1.25fr) minmax(0, 1.25fr);
  justify-content: stretch;
  align-items: start;
}

.detail-row span,
.detail-row strong {
  min-width: 0;
  line-height: 1.45;
  text-align: left;
}

.detail-row span:first-child {
  white-space: nowrap;
}

.detail-row strong {
  font-weight: 700;
}

.detail-row-header span {
  color: var(--muted);
  font-weight: 800;
}

.assignment-card {
  height: 100%;
  min-height: 0;
}

.current-campaign-row {
  align-items: center;
}

.current-campaign-row span,
.current-campaign-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gang-members-panel {
  margin-top: 18px;
}

.gang-members-card {
  min-height: 0;
}

.stepper {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(22, 24, 21, 0.62);
}

.step input {
  width: 22px;
  min-height: 22px;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-entry {
  border-left: 3px solid var(--accent);
  padding-left: 12px;
}

@media (max-width: 1080px) {
  .app-shell,
  .front-page,
  .content-grid,
  .split-grid,
  .map-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

@media (max-width: 640px) {
  .main,
  .sidebar,
  .front-page {
    padding: 16px;
  }

  .topbar,
  .map-toolbar,
  .panel-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .campaign-filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .top-actions,
  .advanced-search,
  .form-grid,
  .rule-picker,
  .terrain-limit-grid,
  .terrain-bonus-grid,
  .terrain-bonus-row,
  .terrain-type-item,
  .size-row,
  .gang-grid,
  .summary-grid,
  .nav-tabs {
    grid-template-columns: 1fr;
    display: grid;
  }

  .primary-button,
  .text-button,
  .icon-button {
    width: 100%;
  }
}
