:root {
  --red: #ea3a3a;
  --red-dark: #d82f2f;
  --bg: #f5f6f8;
  --text: #20242a;
  --muted: #6f7782;
  --line: #e4e7eb;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 14px;
}

button,
input,
select {
  font: inherit;
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

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

.login-card,
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.report-page .panel {
  margin-bottom: 14px;
}

.login-card {
  width: min(440px, 100%);
}

.env-label {
  margin: 0 0 6px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
}

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

h1 {
  font-size: 24px;
  font-weight: 650;
}

h2 {
  font-size: 18px;
  font-weight: 650;
}

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

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

input,
select {
  -webkit-appearance: menulist;
  appearance: auto;
  width: 100%;
  height: 42px;
  min-height: 42px;
  border: 1px solid #d8dde4;
  border-radius: 6px;
  padding: 0 10px;
  color: var(--text);
  background: var(--white);
  line-height: normal;
}

button {
  min-height: 40px;
  border: 1px solid var(--red);
  border-radius: 6px;
  background: var(--red);
  color: var(--white);
  padding: 0 14px;
  cursor: pointer;
  font-weight: 700;
}

.button.secondary,
button.secondary {
  background: var(--white);
  color: var(--text);
  border-color: #d7dce3;
}

button:hover {
  background: var(--red-dark);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.message {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--red);
}

.app-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.auth-box {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

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

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-head h2 {
  margin-bottom: 0;
}

.section-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.target-panel {
  width: min(760px, 100%);
  max-width: 100%;
  padding: 18px;
}

.target-tools,
.controls-row {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
}

.target-tools {
  margin-bottom: 12px;
}

.search-field {
  flex: 1 1 200px;
  max-width: 320px;
  min-width: 0;
}

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

.tag-filter-field {
  display: grid;
  gap: 6px;
  flex: 0 1 220px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
}

.tag-filter {
  position: relative;
  min-width: 0;
}

.tag-filter summary {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #d8dde4;
  border-radius: 6px;
  background: var(--white);
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
}

.tag-filter-summary {
  display: inline-block;
  max-width: calc(100% - 20px);
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.tag-filter-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 20;
  width: min(320px, calc(100vw - 88px));
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 6px 18px #20242a1f;
}

.tag-filter-panel .tag-search {
  height: 36px;
  min-height: 36px;
  margin-bottom: 8px;
}

.tag-match-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
}

.tag-match-options legend {
  margin-bottom: 4px;
}

.tag-match-options label,
.tag-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 7px 4px;
  color: var(--text);
  cursor: pointer;
}

.tag-filter-panel input[type="checkbox"],
.tag-filter-panel input[type="radio"] {
  appearance: auto;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: var(--red);
}

.tag-options {
  max-height: 240px;
  overflow-y: auto;
}

.tag-option span {
  overflow-wrap: anywhere;
}

.tag-option:hover {
  background: #fff7f7;
}

.tag-filter-panel .empty-text {
  margin: 8px 0;
}

.tag-filter-clear {
  min-height: 32px;
  margin-top: 8px;
  padding: 0 10px;
  font-size: 12px;
}

.tag-filter-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.customer-table .customer-tags {
  min-width: 80px;
  max-width: 280px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.customer-tag {
  display: inline-block;
  margin: 0 4px 2px 0;
  padding: 2px 6px;
  border-radius: 3px;
  background: #eef1f5;
  color: #414956;
  font-size: 12px;
}

.customer-no-tags {
  color: var(--muted);
}

.customer-filter-empty {
  margin: 0;
  padding: 12px;
}

.customer-table,
.result-table {
  width: 100%;
  border-collapse: collapse;
}

.customer-table th,
.customer-table td,
.result-table th,
.result-table td {
  border-bottom: 1px solid var(--line);
  padding: 6px 10px;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.customer-table th,
.result-table th {
  background: #fafbfc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.customer-row {
  cursor: pointer;
}

.customer-row:hover {
  background: #fff7f7;
}

.check-col {
  width: 34px;
}

.customer-list {
  max-height: 420px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.customer-table th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.customer-table td {
  height: 32px;
}

.customer-table input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 0;
}

.hidden {
  display: none !important;
}

.primary-tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  margin: 12px 0 16px;
}

.primary-tab {
  min-height: 48px;
  border: 0;
  border-bottom: 4px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  padding: 0 2px;
  font-size: 17px;
}

.primary-tab:hover {
  background: transparent;
}

.primary-tab.active {
  color: var(--red);
  border-bottom-color: var(--red);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  margin: 14px 0;
}

.sub-tabs {
  margin-top: 0;
}

.tab {
  min-height: 42px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  padding: 0 14px;
}

.tab:hover {
  background: transparent;
}

.tab.active {
  color: var(--red);
  border-bottom-color: var(--red);
}

.message-panel {
  width: max-content;
  max-width: 100%;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--muted);
  padding: 8px 12px;
}

.message-panel.error {
  color: var(--red);
}

.results {
  display: grid;
  gap: 8px;
}

.result-card {
  width: max-content;
  max-width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.result-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.result-head h2 {
  margin-bottom: 0;
  font-size: 18px;
}

.result-head span,
.empty-text {
  color: var(--muted);
}

.result-head span {
  font-size: 13px;
}

.empty-result-table-wrap {
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.empty-result-table {
  width: max-content;
  min-width: 520px;
  border-collapse: collapse;
}

.empty-result-table th,
.empty-result-table td {
  border-bottom: 1px solid var(--line);
  padding: 8px 12px;
  text-align: left;
  white-space: nowrap;
}

.empty-result-table th {
  background: #fafbfc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.empty-result-table tr:last-child td {
  border-bottom: 0;
}

.empty-result-table strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.empty-result-table td:nth-child(2),
.empty-result-table td:nth-child(3) {
  color: var(--muted);
  font-size: 13px;
}

.event-group {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.event-group:last-child {
  border-bottom: 0;
}

.event-group h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 650;
}

.event-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--red);
}

.visit-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fee2e2;
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
}

.month-card {
  width: 100%;
}

.month-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.month-table {
  width: max-content;
  min-width: 100%;
}

.month-table th,
.month-table td {
  min-width: 74px;
  text-align: right;
}

.month-table .sticky-col {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 130px;
  text-align: left;
  background: var(--white);
}

.month-table thead .sticky-col {
  z-index: 2;
  background: #fafbfc;
}

.big3-results {
  display: grid;
  gap: 10px;
}

.big3-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  width: max-content;
  max-width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

.big3-summary div {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.big3-summary span,
.big3-summary p {
  color: var(--muted);
  font-size: 12px;
}

.big3-summary strong {
  font-size: 16px;
}

.big3-summary p {
  flex-basis: 100%;
  margin: 0;
}

.big3-table-wrap {
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.big3-table {
  width: max-content;
  min-width: 1120px;
  border-collapse: separate;
  border-spacing: 0;
}

.big3-table th,
.big3-table td {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.big3-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #fafbfc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.big3-sort-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 280px;
}

.big3-sort-head span {
  color: var(--muted);
  font-weight: 800;
}

.big3-sort-head small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.big3-sort-button {
  min-height: 28px;
  padding: 0 9px;
  font-size: 11px;
}

.big3-sort-button.active {
  border-color: var(--red);
  color: var(--red);
}

.big3-table tr:last-child th,
.big3-table tr:last-child td {
  border-bottom: 0;
}

.big3-table th:last-child,
.big3-table td:last-child {
  border-right: 0;
}

.big3-name-col {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 170px;
  min-width: 170px;
  max-width: 170px;
  background: var(--white);
}

.big3-table thead .big3-name-col {
  z-index: 4;
  background: #fafbfc;
}

.big3-name-col strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.big3-name-col span {
  display: inline-block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.big3-setting-button {
  display: block;
  width: max-content;
  min-height: 28px;
  margin-top: 8px;
  padding: 0 10px;
  font-size: 12px;
}

.big3-metric {
  width: 300px;
  display: grid;
  gap: 7px;
}

.big3-metric.empty {
  min-height: 86px;
  align-content: start;
}

.big3-metric.empty p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.big3-rank {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

.big3-rank strong {
  font-size: 16px;
}

.big3-rank span,
.big3-rank small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.big3-rank small {
  overflow: hidden;
  max-width: 140px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.big3-stats {
  display: flex;
  gap: 12px;
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
}

.big3-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.big3-stats em {
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}

.big3-bar-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.big3-center-bar {
  position: relative;
  height: 14px;
  overflow: hidden;
  border: 1px solid #d8dde4;
  border-radius: 999px;
  background: var(--white);
}

.big3-center-bar i {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 2px;
  height: 22px;
  background: rgba(32, 36, 42, 0.5);
}

.big3-center-bar b {
  position: absolute;
  top: 2px;
  height: calc(100% - 4px);
  border-radius: 999px;
}

.big3-center-bar b.right {
  left: 50%;
  background: linear-gradient(to right, rgba(234, 58, 58, 0.14), var(--red));
}

.big3-center-bar b.left {
  right: 50%;
  background: linear-gradient(to left, rgba(234, 58, 58, 0.14), var(--red));
}

.big3-chart-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffafa;
  padding: 7px 8px;
}

.big3-chart-box div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.big3-chart {
  display: block;
  width: 100%;
  height: 88px;
}

.big3-chart-tooltip {
  position: fixed;
  z-index: 120;
  display: none;
  pointer-events: none;
  border-radius: 6px;
  background: #20242a;
  color: var(--white);
  padding: 7px 9px;
  box-shadow: 0 10px 24px rgba(32, 36, 42, 0.22);
  font-size: 12px;
  line-height: 1.35;
}

.big3-chart-tooltip.visible {
  display: block;
}

.big3-chart-tooltip strong,
.big3-chart-tooltip span {
  display: block;
  white-space: nowrap;
}

.big3-chart-tooltip span {
  color: #f3f4f6;
}

.personal-results {
  display: grid;
  gap: 12px;
}

.personal-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
}

.personal-kpis div,
.personal-card,
.personal-lift-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.personal-kpis div {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.personal-kpis span,
.personal-kpis small,
.personal-card-head span,
.personal-lift-card span,
.personal-lift-card p {
  color: var(--muted);
  font-size: 12px;
}

.personal-kpis strong {
  font-size: 19px;
}

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

.personal-card {
  padding: 12px;
}

.personal-card.wide {
  grid-column: 1 / -1;
}

.personal-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.personal-card-head h2 {
  margin: 0;
  font-size: 16px;
}

.personal-lift-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 10px;
}

.personal-lift-card {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.personal-lift-card div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.personal-lift-card p {
  margin: 0;
  font-weight: 700;
}

.personal-chart-area {
  width: 100%;
}

.personal-x-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 3px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.personal-line {
  display: block;
  width: 100%;
  height: 128px;
  pointer-events: all;
}

.personal-multi-line {
  display: block;
  width: 100%;
  height: 220px;
  pointer-events: all;
}

.personal-line .chart-x-axis,
.personal-multi-line .chart-x-axis {
  stroke: #cfd6df;
  stroke-width: 1.4;
  shape-rendering: crispEdges;
}

.personal-line polyline {
  fill: none;
  stroke: var(--red);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.personal-multi-line polyline {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.personal-line.volume polyline {
  stroke: #2563eb;
}

.personal-line circle {
  fill: var(--white);
  stroke: var(--red);
  stroke-width: 1.8;
}

.personal-multi-line circle {
  fill: var(--white);
  stroke-width: 1.8;
}

.personal-multi-line [data-lift].hidden {
  display: none;
}

.personal-line.volume circle {
  stroke: #2563eb;
}

.personal-big3-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: -2px 0 8px;
}

.personal-big3-controls label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 136px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.personal-big3-controls input {
  -webkit-appearance: checkbox;
  appearance: auto;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: var(--lift-color);
}

.personal-big3-controls span {
  white-space: nowrap;
}

.personal-big3-controls span::before,
.personal-big3-stats b::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 999px;
  background: var(--lift-color);
  content: "";
}

.personal-big3-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.personal-big3-stats span {
  white-space: nowrap;
}

.personal-big3-stats b {
  color: var(--text);
}

.personal-chart-empty {
  display: grid;
  min-height: 128px;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.personal-bars {
  display: grid;
  gap: 8px;
}

.personal-bar-row {
  display: grid;
  grid-template-columns: minmax(84px, 140px) minmax(120px, 1fr) minmax(78px, auto);
  align-items: center;
  gap: 8px;
}

.personal-bar-row span,
.personal-bar-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.personal-bar-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.personal-bar-row b {
  display: block;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef1f5;
}

.personal-bar-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--red);
}

.personal-bar-row strong {
  font-size: 12px;
  text-align: right;
}

.personal-part-table-wrap {
  margin-top: 2px;
}

.personal-part-table th,
.personal-part-table td {
  padding: 8px 10px;
}

.volume-total-cell {
  position: relative;
  min-width: 184px;
  overflow: hidden;
}

.volume-total-cell span {
  position: absolute;
  inset: 5px auto 5px 6px;
  z-index: 0;
  display: block;
  border-radius: 4px;
  background: rgba(234, 58, 58, 0.22);
}

.volume-total-cell strong {
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: 800;
}

.settings-shell {
  display: grid;
  gap: 10px;
}

.classification-table-wrap {
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.classification-table {
  width: max-content;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
}

.classification-table th,
.classification-table td {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.classification-table th {
  background: #fafbfc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.classification-table tr:last-child td {
  border-bottom: 0;
}

.classification-table th:last-child,
.classification-table td:last-child {
  border-right: 0;
}

.classification-event-name {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.classification-table td:nth-child(2) {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.classification-table .classification-empty {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.classification-table select {
  min-width: 190px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(32, 36, 42, 0.3);
  padding: 24px;
}

.modal-card {
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(32, 36, 42, 0.24);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
}

.modal-head h2 {
  margin-bottom: 4px;
}

.modal-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.modal-body {
  padding: 16px;
}

.big3-modal-grid {
  display: grid;
  gap: 12px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

@media (max-width: 760px) {
  .app-header,
  .section-head,
  .result-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .personal-kpis,
  .personal-grid,
  .personal-lift-grid {
    grid-template-columns: 1fr;
  }

  .primary-tabs {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}
