:root {
  color-scheme: light;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #24282d;
  background: #eef0f2;
  --module-accent: #555b62;
  --module-accent-dark: #30343a;
  --module-accent-soft: #eef0f2;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
}

.container {
  width: calc(100% - 40px);
  max-width: none;
  margin-inline: auto;
}

.container-wide {
  width: calc(100% - 40px);
  max-width: none;
}

.app-header {
  padding: 14px 0;
  color: white;
  background: var(--module-accent-dark);
  border-bottom: 3px solid var(--module-accent);
}

.app-header h1 { font-size: 1.25rem; }

.app-header h1,
.app-header p {
  margin: 0;
}

.app-header .module-version {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 6px;
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 999px;
  color: white;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.1;
  vertical-align: middle;
}

.header-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.header-row a {
  color: white;
}

.account-nav {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.account-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 5px;
  color: white;
  background: rgb(255 255 255 / 7%);
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}

.account-nav a:hover,
.account-nav a:focus-visible {
  color: var(--module-accent-dark);
  border-color: white;
  background: white;
  outline: none;
  transform: translateY(-1px);
}

.account-nav a:last-child:hover,
.account-nav a:last-child:focus-visible {
  color: #842029;
  border-color: #f1aeb5;
  background: #f8d7da;
}

.app-header p {
  margin-top: 4px;
  color: #c9d2e3;
}

main {
  padding-block: 20px;
}

.dashboard { display: grid; gap: 18px; }
.dashboard-heading, .section-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; }
.dashboard-heading h2 { margin: 2px 0 4px; font-size: 1.55rem; }
.dashboard-heading p, .section-heading p, .competitions-toolbar p { margin: 0; color: #69758a; }
.eyebrow { color: #686f77 !important; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.primary-link-large { padding: 11px 16px; font-weight: 700; white-space: nowrap; }
.secondary-link { color: #4c535b; font-weight: 700; text-decoration: none; }
.count-badge { padding: 3px 9px; border-radius: 999px; color: #30343a; background: #e2e5e8; font-size: .8rem; font-weight: 800; }

.dashboard-workspace { display: grid; grid-template-columns: minmax(250px, 320px) minmax(0, 1fr); gap: 16px; align-items: start; }
.module-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 12px; border: 1px solid #d4d7da; border-radius: 5px; background: #fff; }
.module-toolbar > span { margin-right: 3px; color: #676d74; font-size: .82rem; font-weight: 700; }
.module-toolbar a { display: inline-flex; gap: 7px; align-items: center; padding: 7px 10px; border: 1px solid #bfc4c9; border-radius: 6px; color: #30343a; background: #f4f5f6; font-size: .88rem; font-weight: 700; text-decoration: none; transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s; }
.module-toolbar a:hover, .module-toolbar a:focus-visible { color: white; border-color: var(--button-accent, #555b62); background: var(--button-accent, #555b62); box-shadow: 0 3px 8px rgb(35 39 43 / 16%); outline: none; transform: translateY(-1px); }
.module-toolbar-button--chess-swiss { --button-accent: #202020; }
.module-toolbar-button--marias { --button-accent: #6f1d2b; }
.module-toolbar-button--bracket { --button-accent: #a67c00; }
.module-toolbar-button--air-rifle { --button-accent: #174d82; }
.module-toolbar-button--tenis { --button-accent: #0d6b5b; }
.module-toolbar small { display: inline-grid; min-width: 19px; height: 19px; place-items: center; padding-inline: 4px; border-radius: 10px; color: #555b62; background: #dfe2e5; font-size: .7rem; }
.module-toolbar a:hover small { color: #30343a; background: white; }
.quick-create { display: grid; gap: 0; padding-bottom: 14px !important; }
.block-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin: -20px -20px 0; padding: 11px 16px; color: white; background: var(--module-accent); border-bottom: 3px solid var(--module-accent-dark); }
.block-heading h2 { margin: 0; font-size: 1rem; }
.block-heading .count-badge { color: white; background: #747b83; }
.block-intro { margin: 14px 0 10px; color: #697077; font-size: .85rem; }
.quick-create-grid { display: grid; grid-template-columns: 1fr; gap: 7px; }
.quick-create-grid a { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 12px; border: 1px solid #d3d7db; border-radius: 5px; color: #24282d; background: #fafafa; text-decoration: none; }
.quick-create-grid a:hover { border-color: #858c94; background: #f0f1f2; }
.quick-create-grid a > span { font-size: 1.35rem; }
.quick-create-grid small { color: #5d646c; font-weight: 700; }

.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.summary-card { display: flex; gap: 12px; align-items: baseline; padding: 16px 18px; border: 1px solid #dfe4ec; border-left: 4px solid #8a94a6; border-radius: 10px; background: white; }
.summary-card strong { font-size: 1.8rem; }
.summary-card span { color: #69758a; }
.summary-active { border-left-color: #198754; }
.summary-setup { border-left-color: #8a94a6; }
.summary-finished { border-left-color: #394154; }

.panel {
  padding: 20px;
  border: 1px solid #dfe4ec;
  border-radius: 5px;
  background: white;
  box-shadow: 0 2px 8px rgb(35 39 43 / 5%);
}

.panel h2 {
  margin: 0 0 18px;
  font-size: 1.1rem;
}

.panel .block-heading h2 { margin: 0; font-size: 1rem; }

.panel-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.primary-link {
  padding: 8px 12px;
  border-radius: 6px;
  color: white;
  background: var(--module-accent);
  text-decoration: none;
}

.primary-link:hover,
.primary-link:focus-visible {
  background: var(--module-accent-dark);
}

.competition-filters {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  gap: 8px;
  min-width: min(100%, 570px);
}

.search-field input { width: 100%; }

.competition-filters input,
.competition-filters select {
  padding: 9px 10px;
  border: 1px solid #bbc4d2;
  border-radius: 6px;
  background: white;
  font: inherit;
}

.alert {
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 1px solid #f0b8b8;
  border-radius: 8px;
  color: #842029;
  background: #f8d7da;
}

.notice {
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 1px solid #9ed0b6;
  border-radius: 8px;
  color: #0b5132;
  background: #d8f1e4;
}

.generated-password {
  margin-top: 8px;
}

.generated-password code {
  display: inline-block;
  padding: 4px 7px;
  border-radius: 4px;
  color: #172033;
  background: white;
  font-size: .95rem;
}

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

.module-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #dfe4ec;
  border-radius: 5px;
  background: white;
}

.module-card:hover { border-color: #8eaddb; box-shadow: 0 4px 16px rgb(23 32 51 / 6%); }
.module-main { display: flex; gap: 12px; align-items: center; min-width: 0; color: inherit; text-decoration: none; }
.module-main > span:last-child { display: grid; gap: 3px; }
.module-main small { color: #69758a; }
.module-create-link { color: #2256b3; font-size: .9rem; font-weight: 700; text-decoration: none; }

.module-icon {
  font-size: 1.5rem;
}

.module-card small,
.empty-state {
  color: #69758a;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(760px, 3fr) minmax(300px, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.competition-list {
  margin: 0;
}
.active-list { margin: 0 -20px; border-top: 1px solid #e5e9f0; }

.competitions-panel { padding-bottom: 0; overflow: hidden; }
.competitions-panel > .block-heading { margin-bottom: 0; }
.archive-filters { margin: 16px 0; }
.competitions-toolbar { align-items: end; margin-bottom: 20px; }
.competitions-toolbar h2 { margin-bottom: 5px; }
.competition-group { margin-inline: -20px; }
.competition-group + .competition-group { margin-top: 8px; }
.competition-group-heading { display: flex; gap: 9px; align-items: center; padding: 12px 20px; border-top: 1px solid #e5e9f0; background: #f7f9fc; }
.competition-group-heading h3 { margin: 0; font-size: .95rem; }
.competition-group-heading span { padding: 2px 7px; border-radius: 999px; color: #566176; background: #e6e9ee; font-size: .75rem; font-weight: 700; }
.competition-group-finished { opacity: .88; }
.filters-empty { padding: 18px 0; margin: 0; color: #69758a; border-top: 1px solid #e5e9f0; }
.empty-state { display: grid; gap: 5px; padding: 32px 0; text-align: center; }
.modules-section { display: grid; gap: 14px; padding-bottom: 12px; }
.section-heading h2 { margin: 2px 0 0; font-size: 1.25rem; }
.section-heading > span { color: #69758a; font-size: .9rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.competition-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid #e5e9f0;
}

.competition-main {
  color: inherit;
  text-decoration: none;
}

.competition-links {
  display: flex;
  gap: 7px;
}

.competition-links a {
  padding: 6px 8px;
  border: 1px solid #bbc4d2;
  border-radius: 5px;
  color: #273248;
  text-decoration: none;
  white-space: nowrap;
}

.quick-entry-trigger { padding: 6px 8px; border: 1px solid #b68b2c; border-radius: 5px; color: #765b12; background: #fff8e5; font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.quick-entry-trigger:hover { color: white; background: #a67c00; }
.quick-entry-modal { width: min(760px, calc(100% - 24px)); padding: 0; border: 0; border-radius: 10px; box-shadow: 0 20px 60px rgb(23 32 51 / 25%); }
.quick-entry-modal::backdrop { background: rgb(23 32 51 / 45%); }
.quick-entry-dialog { margin: 0; }
.quick-entry-header { display: flex; justify-content: space-between; align-items: start; gap: 16px; padding: 20px 24px 14px; border-bottom: 1px solid #e1e4e7; }
.quick-entry-header h2 { margin: 2px 0 0; }
.quick-entry-close { width: 32px; height: 32px; padding: 0; border: 1px solid #bbc4d2; border-radius: 50%; color: #4c535b; background: white; font-size: 1.3rem; cursor: pointer; }
.quick-entry-body { display: grid; gap: 12px; padding: 18px 24px; }
.quick-entry-body > label { display: grid; gap: 6px; font-weight: 700; }
.quick-entry-body select, .quick-entry-body input { min-height: 38px; padding: 8px 10px; border: 1px solid #bbc4d2; border-radius: 6px; background: white; font: inherit; }
.quick-entry-results { display: grid; gap: 6px; max-height: 190px; overflow: auto; }
.quick-entry-result { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 9px 11px; border: 1px solid #dfe4ec; border-radius: 6px; color: #24282d; background: #fafafa; text-align: left; cursor: pointer; }
.quick-entry-result:hover { border-color: #a67c00; background: #fff8e5; }
.quick-entry-result span { color: #69758a; font-size: .85rem; }
.quick-entry-empty { margin: 0; color: #69758a; }
.quick-entry-selected { display: grid; gap: 14px; padding: 14px; border: 2px solid #a67c00; border-radius: 8px; background: #fffaf0; }
.quick-entry-identity { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.quick-entry-identity strong { font-size: 1.2rem; }
.quick-entry-identity span { color: #69758a; font-weight: 700; }
.quick-entry-identity label { display: inline-flex; gap: 6px; align-items: center; margin-left: auto; font-size: .85rem; font-weight: 700; }
.quick-entry-identity input { width: 100px; }
.quick-entry-existing { margin: 0; padding: 8px 10px; border-radius: 5px; color: #7a5510; background: #ffedb5; font-size: .88rem; font-weight: 700; }
.quick-entry-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.quick-entry-shots h3 { margin: 0 0 7px; font-size: .95rem; }
.quick-entry-shot-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.quick-entry-shot-grid label { display: grid; gap: 4px; color: #69758a; font-size: .75rem; font-weight: 700; text-align: center; }
.quick-entry-shot-grid input { width: 100%; min-width: 0; padding-inline: 4px; text-align: center; }
.quick-entry-message { min-height: 20px; margin: 0; }
.quick-entry-footer { display: flex; justify-content: flex-end; gap: 12px; padding: 14px 24px 20px; border-top: 1px solid #e1e4e7; }
.quick-entry-save { padding: 10px 14px; border: 0; border-radius: 6px; color: white; background: #a67c00; font: inherit; font-weight: 700; cursor: pointer; }
.quick-entry-save:disabled { opacity: .6; cursor: wait; }

.competition-row:hover {
  background: #f7f9fc;
}

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

.competition-symbol {
  font-size: 1.4rem;
}

.competition-main,
.competition-stats {
  display: grid;
  gap: 3px;
}

.competition-main small,
.competition-stats small {
  color: #69758a;
}

.competition-stats {
  justify-items: end;
  text-align: right;
}

.status {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
}

.status-setup {
  color: #465266;
  background: #e6e9ee;
}

.status-active {
  color: #0b5132;
  background: #ccebdc;
}

.status-finished {
  color: white;
  background: #394154;
}

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

.login-card {
  width: min(420px, 100%);
  padding: 28px;
  border: 1px solid #dfe4ec;
  border-radius: 14px;
  background: white;
  box-shadow: 0 12px 40px rgb(23 32 51 / 12%);
}

.login-card h1 {
  margin: 0;
}

.login-card p {
  margin: 6px 0 24px;
  color: #69758a;
}

.login-card form {
  display: grid;
  gap: 9px;
}

.login-card input {
  margin-bottom: 10px;
  padding: 11px 12px;
  border: 1px solid #bbc4d2;
  border-radius: 7px;
  font: inherit;
}

.login-card button {
  padding: 11px 14px;
  border: 0;
  border-radius: 7px;
  color: white;
  background: #2256b3;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.users-layout {
  grid-template-columns: minmax(820px, 3fr) minmax(320px, 1fr);
  align-items: start;
  margin-top: 0;
}

.users-layout > .panel { overflow: hidden; }
.users-layout .users-table-wrap { margin: 0 -20px -20px; }
.users-layout .stacked-form { padding-top: 16px; }
.users-table thead { background: #f1f2f3; }
.users-table th:first-child, .users-table td:first-child { padding-left: 20px; }
.users-table th:last-child, .users-table td:last-child { padding-right: 20px; }

.users-table-wrap {
  overflow-x: auto;
}

.users-table {
  width: 100%;
  border-collapse: collapse;
}

.users-table th,
.users-table td {
  padding: 12px 8px;
  text-align: left;
  border-bottom: 1px solid #e5e9f0;
  vertical-align: middle;
}

.users-table th {
  color: #69758a;
  font-size: .8rem;
  text-transform: uppercase;
}

.users-table td > small {
  display: block;
  color: #69758a;
}

.user-module-badges { display: flex; gap: 4px; flex-wrap: wrap; max-width: 190px; }
.user-module-badges span { padding: 3px 6px; border-radius: 3px; color: #4f565d; background: #e8eaec; font-size: .7rem; white-space: nowrap; }

.inactive-row {
  opacity: .65;
}

.inline-form,
.user-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.user-actions {
  flex-wrap: nowrap;
  min-width: 292px;
}

.user-actions form {
  display: flex;
  margin: 0;
}

.user-actions a {
  text-decoration: none;
}

.users-table select,
.stacked-form input,
.stacked-form select {
  padding: 8px 9px;
  border: 1px solid #bbc4d2;
  border-radius: 6px;
  background: white;
  font: inherit;
}

.btn-action,
.stacked-form button {
  padding: 8px 12px;
  border: 1px solid #9ba6b7;
  border-radius: 6px;
  background: white;
  font: inherit;
  cursor: pointer;
}

.btn-action {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #273248;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}

.btn-action:hover {
  border-color: #69758a;
  background: #f2f4f7;
}

.btn-action-edit {
  color: #174a9c;
  border-color: #8eaddb;
}

.btn-action-edit:hover {
  color: white;
  border-color: #2256b3;
  background: #2256b3;
}

.btn-action-danger {
  color: #a32934;
  border-color: #d9a3a8;
}

.btn-action-danger:hover {
  color: white;
  border-color: #b52b38;
  background: #b52b38;
}

.btn-action-success {
  color: #0b6b40;
  border-color: #8cc8aa;
}

.btn-action-success:hover {
  color: white;
  border-color: #198754;
  background: #198754;
}

.stacked-form {
  display: grid;
  gap: 9px;
}

.stacked-form button {
  margin-top: 6px;
  color: white;
  border-color: #2256b3;
  background: #2256b3;
  font-weight: 700;
}

.stacked-form small {
  color: #69758a;
}

.profile-container {
  max-width: 900px;
}

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

.account-summary {
  margin: 24px 0 0;
  border-top: 1px solid #e5e9f0;
}

.account-summary div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 0;
  border-bottom: 1px solid #e5e9f0;
}

.account-summary dt {
  color: #69758a;
}

.account-summary dd {
  margin: 0;
  text-align: right;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.settings-page { max-width: 1100px; }
.settings-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.settings-tabs a { display: inline-flex; align-items: center; min-height: 36px; padding: 7px 12px; border: 1px solid #c7cdd3; border-radius: 5px; color: #30343a; background: #f8f9fa; font-weight: 700; text-decoration: none; }
.settings-tabs a:hover, .settings-tabs a:focus-visible, .settings-tabs a[aria-current="page"] { color: white; border-color: #555b62; background: #555b62; outline: none; }
.settings-panel { overflow: hidden; }
.module-settings-list { margin: 0 -20px; }
.module-setting-row { display: grid; grid-template-columns: minmax(220px, 1fr) 150px 170px; gap: 16px; align-items: center; min-height: 70px; padding: 12px 20px; border-bottom: 1px solid #e1e4e7; }
.module-setting-name { display: flex; gap: 12px; align-items: center; }
.module-setting-name > span:first-child { font-size: 1.45rem; }
.module-setting-name > span:last-child { display: grid; gap: 3px; }
.module-setting-name small { color: #777e85; }
.switch-field { display: flex; gap: 9px; align-items: center; cursor: pointer; }
.switch-field input { width: 18px; height: 18px; accent-color: #555b62; }
.switch-field input:disabled + span { color: #a0a5aa; }
.settings-help { margin: 16px 0; padding: 11px 13px; border-left: 3px solid #9299a1; color: #5d636a; background: #f2f3f4; font-size: .88rem; }
.form-actions { display: flex; justify-content: flex-end; }
.form-actions button { padding: 9px 16px; border: 0; border-radius: 4px; color: white; background: #555b62; font: inherit; font-weight: 700; cursor: pointer; }

.access-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.access-tabs a { display: inline-flex; align-items: center; min-height: 36px; padding: 7px 12px; border: 1px solid #c7cdd3; border-radius: 5px; color: #30343a; background: #f8f9fa; font-weight: 700; text-decoration: none; }
.access-tabs a:hover, .access-tabs a:focus-visible, .access-tabs a[aria-current="page"] { color: white; border-color: #555b62; background: #555b62; outline: none; }
.access-form { display: grid; gap: 16px; max-width: 720px; }
.access-form label { display: grid; gap: 6px; }
.access-form select { max-width: 100%; padding: 10px; border: 1px solid #bbc4d2; border-radius: 6px; background: white; font: inherit; }
.access-form fieldset { border: 1px solid #ddd; border-radius: 8px; }
.access-form fieldset label { display: flex; align-items: center; gap: 10px; padding: 5px; }
.access-form input[type="checkbox"] { width: auto; }
.access-table { width: 100%; border-collapse: collapse; }
.access-table td, .access-table th { padding: 12px; text-align: left; border-bottom: 1px solid #ddd; }

.module-create-list {
  display: grid;
  gap: 8px;
}

.module-create-list a {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}

.module-create-list a:hover {
  border-color: #8eaddb;
  background: #f5f8fd;
}

.form-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-two-columns > div,
.stacked-form [data-types] {
  display: grid;
  gap: 9px;
}

textarea {
  padding: 9px;
  border: 1px solid #bbc4d2;
  border-radius: 6px;
  font: inherit;
}

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

  .competition-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .competition-stats {
    grid-column: 2;
    justify-items: start;
    text-align: left;
  }

  .user-actions {
    min-width: 0;
    flex-wrap: wrap;
  }

  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-workspace { grid-template-columns: minmax(230px, 280px) minmax(0, 1fr); }
  .competitions-toolbar { align-items: stretch; flex-direction: column; }
}

@media (max-width: 720px) {
  .container { width: calc(100% - 24px); }
  .app-header { padding: 18px 0; }
  .header-row, .dashboard-heading, .section-heading { align-items: stretch; flex-direction: column; }
  .account-nav { gap: 12px; flex-wrap: wrap; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-workspace, .competition-filters, .module-grid, .quick-create-grid { grid-template-columns: 1fr; min-width: 0; }
  .competition-row { grid-template-columns: auto minmax(0, 1fr); padding: 14px 16px; }
  .competition-stats, .competition-links { grid-column: 2; justify-items: start; text-align: left; }
  .competition-links { flex-wrap: wrap; }
  .module-card { padding: 13px 14px; }
  .module-toolbar { align-items: stretch; }
  .module-toolbar > span { width: 100%; }
  .module-toolbar a { flex: 1 1 calc(50% - 8px); justify-content: center; }
  .module-setting-row { grid-template-columns: 1fr 1fr; }
  .module-setting-name { grid-column: 1 / -1; }
  .quick-entry-shots { grid-template-columns: 1fr; }
  .quick-entry-identity label { margin-left: 0; }
}

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

  .users-layout > .panel:last-child {
    width: min(100%, 520px);
  }
}
