:root {
  --bg: #eef2f7;
  --card: #ffffff;
  --text: #0f1833;
  --muted: #7f90ad;
  --line: #dbe3ef;
  --primary: #2ca9e1;
  --primary-dark: #1796ce;
  --danger: #f24848;
  --ok: #27a745;
  --warn: #ff8b2a;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
  line-height: 1;
  font-size: 22px;
  vertical-align: middle;
}

body {
  margin: 0;
  font-family: "Segoe UI", "SF Pro Text", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

body.dark {
  --bg: #111826;
  --card: #1a2538;
  --text: #edf3ff;
  --muted: #9eb2d1;
  --line: #29364f;
}

#app {
  max-width: 760px;
  margin: 0 auto;
  min-height: calc(100vh - 84px);
  padding: 20px 20px 100px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.page-header h1 {
  margin: 0 0 16px;
  font-size: 2rem;
}

.detail-header {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.back-btn {
  margin-top: 2px;
}

.overview-header {
  align-items: flex-start;
}

.overview-head-main {
  flex: 1;
  min-width: 180px;
}

.overview-edit-btn {
  width: auto;
  padding: 10px 14px;
  font-size: 0.95rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

.card {
  background: var(--card);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(25, 33, 52, 0.06);
}

.auth-card {
  display: grid;
  gap: 12px;
}

.auth-card h3 {
  margin: 0;
  font-size: 1.35rem;
}

.auth-card p {
  margin: 0;
}

.auth-widget-container {
  min-height: 48px;
}

.settings-logout {
  margin-top: 14px;
}

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

#events-list.stack {
  gap: 16px;
}

.section-label {
  font-size: 0.95rem;
  margin: 14px 4px 8px;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.search-row {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 6px 8px;
}

.search-icon {
  position: absolute;
  left: 18px;
  color: #a0afc5;
  font-size: 24px;
}

.search-row input {
  width: 100%;
  border: 0;
  outline: none;
  font-size: 1.1rem;
  color: var(--text);
  background: transparent;
  padding: 10px 82px 10px 44px;
}

#events-calendar-btn {
  position: absolute;
  right: 10px;
}

#search-clear {
  position: absolute;
  right: 10px;
}

#events-calendar-btn,
#search-clear {
  background: transparent;
  color: #9aaac1;
}

.icon-btn {
  border: 0;
  border-radius: 999px;
  width: 44px;
  height: 44px;
  background: #f0f4fa;
  color: #6e809d;
  cursor: pointer;
  font-size: 1.4rem;
}

.icon-btn .material-symbols-outlined {
  font-size: 22px;
}

.icon-btn.small {
  width: 34px;
  height: 34px;
  font-size: 1rem;
}

.icon-btn.small .material-symbols-outlined {
  font-size: 18px;
}

.link-btn {
  border: 0;
  background: transparent;
  color: var(--primary-dark);
  font-weight: 700;
  cursor: pointer;
}

.quota-card {
  margin-bottom: 16px;
  border: 1px solid #e8eef7;
  box-shadow: none;
}

.quota-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.quota-title {
  margin: 10px 0;
  font-size: 1.05rem;
  color: #546b8c;
}

.quota-title b {
  font-size: 2rem;
  color: var(--text);
  margin-left: 4px;
}

.quota-foot {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #667d9e;
  font-size: 0.98rem;
}

.quota-foot .material-symbols-outlined {
  font-size: 20px;
  color: #8ea0bb;
}

.progress {
  width: 100%;
  background: #e6edf7;
  border-radius: 999px;
  height: 10px;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.event-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  border-radius: 28px;
  padding: 16px;
  border: 1px solid #e8eef7;
  box-shadow: none;
}

.event-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.event-main-text {
  min-width: 0;
}

.event-side {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.event-card-actions {
  display: flex;
  gap: 2px;
}

.event-card-actions .icon-btn {
  background: transparent;
  width: 30px;
  height: 30px;
  color: #b1c0d5;
}

.event-card-actions .icon-btn .material-symbols-outlined {
  font-size: 18px;
}

.event-side-top {
  display: grid;
  gap: 0;
  justify-items: end;
}

.event-card h3 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  line-height: 1.05;
}

.event-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.event-cat {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #eaf3ff;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  flex: 0 0 auto;
}

.event-cat .material-symbols-outlined {
  font-size: 26px;
  color: var(--primary-dark);
}

.event-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.event-total {
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 1.8rem;
  text-align: right;
}

.event-total-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.64rem !important;
  color: #a1b1c8 !important;
  font-weight: 700;
}

.fab {
  position: fixed;
  right: 24px;
  bottom: 96px;
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(44, 169, 225, 0.36);
  font-size: 2.4rem;
  cursor: pointer;
}

.fab .material-symbols-outlined {
  font-size: 40px;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 40;
}

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--card);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
}

.tab {
  border: 0;
  background: transparent;
  color: #99a8bf;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 8px 6px;
  display: grid;
  gap: 4px;
  justify-items: center;
  cursor: pointer;
}

.tab.active {
  color: var(--primary-dark);
}

.tab.active .material-symbols-outlined {
  font-variation-settings: "FILL" 1, "wght" 600, "GRAD" 0, "opsz" 24;
}

.tab-ico {
  font-size: 1.2rem;
  line-height: 1;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.overview-top-grid,
.split-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 12px;
  margin-bottom: 12px;
}

.checks-mini-card {
  display: grid;
  gap: 10px;
}

.checks-mini-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checks-mini {
  border: 1px solid var(--line);
  background: #f4f8ff;
  border-radius: 12px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  cursor: pointer;
}

.checks-mini .material-symbols-outlined {
  font-size: 20px;
  color: #7f93b4;
}

.checks-mini.muted {
  width: auto;
  min-width: 40px;
  padding: 0 8px;
}

.totals-card {
  display: grid;
  gap: 8px;
}

.totals-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.totals-row b {
  font-size: 1.5rem;
}

.summary-block {
  display: grid;
  gap: 6px;
  text-align: center;
}

.summary-block b {
  font-size: 1.2rem;
}

.ok {
  color: var(--ok);
}

.warn {
  color: var(--warn);
}

.receipts-card {
  margin-bottom: 12px;
}

.receipts-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.upload-inline {
  color: var(--primary-dark);
  font-weight: 700;
  cursor: pointer;
}

.upload-inline input {
  display: none;
}

.receipts-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.receipt-item {
  position: relative;
  min-width: 92px;
  width: 92px;
  height: 120px;
  border-radius: 14px;
  border: 1px dashed var(--line);
  background: #f6f9ff;
  overflow: hidden;
  cursor: pointer;
}

.receipt-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.receipt-type {
  display: grid;
  place-items: center;
  height: 100%;
  font-weight: 800;
  color: #5e7294;
}

.receipt-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  border: 0;
  border-radius: 999px;
  background: #ff5e5e;
  color: #fff;
  width: 24px;
  height: 24px;
  font-size: 0.95rem;
  cursor: pointer;
}

.receipt-remove .material-symbols-outlined {
  font-size: 16px;
}

.fee-editor {
  margin-bottom: 12px;
}

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

.fee-grid label {
  display: grid;
  gap: 6px;
  color: #60789a;
  font-weight: 700;
}

.fee-grid input {
  border: 1px solid var(--line);
  background: #f7faff;
  border-radius: 12px;
  padding: 12px;
  color: var(--text);
}

.fee-grid input[readonly] {
  cursor: pointer;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 12px;
  background: #dfe7f2;
  padding: 6px;
  border-radius: 18px;
}

.segmented button {
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #647a9c;
  font-weight: 800;
  padding: 12px 10px;
  cursor: pointer;
}

.segmented button.active {
  background: #fff;
  color: var(--primary-dark);
}

.participant-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #e8eef7;
  box-shadow: none;
}

.participant-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.participant-name-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.participant-name-wrap h4 {
  margin: 0;
  font-size: 1.25rem;
}

.participant-side {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.participant-amount {
  font-size: 1.2rem;
}

.participant-main .muted {
  font-size: 0.95rem;
}

.status-dot {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: #c6d2e4;
  font-size: 1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.status-dot.paid {
  color: #43b257;
}

.status-dot .material-symbols-outlined {
  font-size: 24px;
}

.compact-summary {
  padding-top: 12px;
  padding-bottom: 12px;
}

.compact-summary p {
  margin: 0;
}

.mini-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.mini-btn {
  width: auto;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.9rem;
}

.chip {
  background: #f0f4fa;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.9rem;
  color: var(--muted);
}

.btn {
  width: 100%;
  border-radius: 18px;
  border: 0;
  padding: 14px 16px;
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.btn.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(44, 169, 225, 0.3);
}

.btn.secondary {
  background: #e9f4fb;
  color: var(--primary-dark);
}

.btn.ghost {
  background: #f3f6fb;
  color: #445777;
}

.btn.danger {
  background: var(--danger);
  color: #fff;
}

.actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.split-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.promo {
  background: #fe2c7f;
  color: #fff;
}

.bot-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ff2f83;
  color: #fff;
}

.bot-hero h3,
.bot-hero p {
  margin: 0;
}

.bot-hero .avatar .material-symbols-outlined {
  font-size: 22px;
}

.bot-how {
  margin-top: 12px;
}

.bot-how h3 {
  margin: 0 0 10px;
}

.bot-how-list {
  margin: 0;
  padding: 0 0 0 18px;
  display: grid;
  gap: 10px;
  color: #42587b;
}

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

.profile-main {
  flex: 1;
  min-width: 0;
}

.profile-main h3,
.profile-main p {
  margin: 0;
}

.avatar-photo {
  border-radius: 16px;
  background: linear-gradient(140deg, #80c3ff, #3f90db);
  color: #fff;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #d9e4f5;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.setting-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.setting-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #eef4ff;
  display: grid;
  place-items: center;
  font-size: 1rem;
}

.setting-ico .material-symbols-outlined {
  font-size: 18px;
  color: #88a1c5;
}

.settings-links {
  padding: 0;
  overflow: hidden;
}

.settings-link-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
}

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

.settings-link-row .muted .material-symbols-outlined {
  font-size: 18px;
}

.switch {
  width: 54px;
  height: 32px;
  border-radius: 999px;
  background: #dfe7f2;
  display: inline-grid;
  align-items: center;
  padding: 3px;
}

.switch input {
  display: none;
}

.switch span {
  width: 26px;
  height: 26px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.switch input:checked + span {
  transform: translateX(22px);
}

.hidden {
  display: none !important;
}

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 22, 38, 0.4);
  z-index: 60;
}

.modal {
  border: 0;
  border-radius: 26px;
  width: min(680px, calc(100% - 30px));
  padding: 24px;
  background: #fff;
  box-shadow: 0 25px 40px rgba(15, 24, 51, 0.22);
  z-index: 70;
  position: relative;
}

.modal::backdrop {
  background: transparent;
}

.modal h2 {
  margin: 0 0 12px;
  text-align: center;
}

.modal > p.muted {
  text-align: center;
}

.modal label {
  display: grid;
  gap: 6px;
  margin: 10px 0;
  font-weight: 700;
  color: #60789a;
}

.modal input,
.modal select,
.modal textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #f7faff;
  border-radius: 14px;
  padding: 12px;
  color: var(--text);
  font-size: 1rem;
}

.modal-actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.modal-icon {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  margin: 2px auto 14px;
  display: grid;
  place-items: center;
}

.modal-icon .material-symbols-outlined {
  font-size: 34px;
}

.modal-icon.warn {
  background: #fff5dc;
  color: #e8a423;
}

.modal-icon.info {
  background: #ebf3ff;
  color: #2a9fe1;
}

.modal-icon.danger {
  background: #ffe9e9;
  color: #f24848;
}

.danger-modal #confirm-message {
  text-align: center;
  font-size: 1.45rem;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.modal-close .material-symbols-outlined {
  font-size: 20px;
}

.position-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.qty-stepper {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  gap: 8px;
  align-items: center;
}

.qty-stepper .icon-btn {
  width: 38px;
  height: 38px;
  font-size: 1.4rem;
}

.qty-stepper .icon-btn .material-symbols-outlined {
  font-size: 20px;
}

.qty-stepper input {
  text-align: center;
  font-weight: 800;
  background: #f7faff;
}

.receipt-preview-body {
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  background-image: radial-gradient(#dde6f3 1px, transparent 0);
  background-size: 20px 20px;
  padding: 8px;
  display: grid;
  place-items: center;
}

.receipt-preview-body img {
  width: 100%;
  max-height: 450px;
  object-fit: contain;
  border-radius: 10px;
}

.receipt-paper-bg {
  background: #fff;
}

.receipt-preview-wrap {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
}

.receipt-nav {
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  background: #ffffffee;
  border: 1px solid #e7edf7;
  box-shadow: 0 2px 8px rgba(17, 35, 71, 0.08);
}

.receipt-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #d1dceb;
}

.dot.active {
  background: var(--primary);
}

.fee-input-modal {
  width: min(420px, calc(100% - 30px));
}

.fee-input-field {
  font-size: 16px !important;
}

.package-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  position: relative;
  cursor: pointer;
}

.package-main {
  display: grid;
  gap: 3px;
}

.package-side {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.package-side .icon-btn {
  width: 36px;
  height: 36px;
  background: #e9f2ff;
  color: #2171d8;
}

.package-side .icon-btn .material-symbols-outlined {
  font-size: 20px;
}

.package-price {
  font-size: 2rem;
  color: #2171d8;
}

.package-best {
  border: 2px solid #acd0ff;
}

.package-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #2171d8;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 0 24px 0 12px;
  text-transform: uppercase;
}

.bot-list-card {
  display: grid;
  gap: 12px;
}

.bot-list-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.settings-version {
  text-align: center;
  margin: 18px 0 0;
}

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

.category-btn {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f4f8ff;
  min-height: 56px;
  font-size: 1.35rem;
  cursor: pointer;
}

.category-btn .material-symbols-outlined {
  font-size: 24px;
  color: #92a2bd;
}

.category-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.category-btn.active .material-symbols-outlined {
  color: #fff;
  font-variation-settings: "FILL" 1, "wght" 600, "GRAD" 0, "opsz" 24;
}

.receipt-dropzone {
  margin-top: 8px;
  border: 2px dashed var(--line);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  color: var(--muted);
}

.receipt-dropzone input {
  display: none;
}

.dropzone-icons {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 1.6rem;
}

.chip-ok {
  background: #e8f8ea;
  color: #2f9d45;
}

.position-breakdown {
  display: grid;
  gap: 8px;
}

.position-breakdown-rich {
  border: 1px solid #e8eef7;
  box-shadow: none;
}

.position-breakdown-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.position-breakdown-index {
  font-size: 1.45rem;
  font-weight: 700;
  color: #8ca0bc;
  line-height: 1.2;
  min-width: 26px;
}

.position-breakdown-main {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 8px;
}

.position-breakdown-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.position-breakdown-head h4 {
  margin: 0;
  font-size: 1.45rem;
}

.position-breakdown-head b {
  font-size: 1.45rem;
}

.position-breakdown-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: #8ca0bc;
  font-size: 0.95rem;
}

.position-breakdown-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.position-breakdown-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
}

.position-breakdown-list b {
  font-size: 1.05rem;
  color: #4f6382;
}

.breakdown-person {
  min-width: 0;
  font-size: 1.05rem;
}

.breakdown-none {
  font-style: italic;
  color: #8f9fb6;
}

.breakdown-coeff {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 30px;
  border-radius: 10px;
  background: #f2f6fc;
  color: #7e90aa;
  font-size: 0.9rem;
  font-weight: 700;
}

#overview-participants-pane,
#overview-positions-pane,
#split-positions-pane {
  margin-top: 8px;
}

.split-pay-card {
  display: grid;
  gap: 8px;
  align-content: center;
  text-align: right;
}

.split-pay-card b {
  font-size: 2rem;
  color: var(--primary-dark);
}

.split-position-card {
  display: grid;
  gap: 8px;
  border: 1px solid #e8eef7;
  box-shadow: none;
}

.split-position-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.split-position-index {
  min-width: 22px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #8ca0bc;
  line-height: 1.15;
}

.split-position-main {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 4px;
}

.split-position-main h4 {
  margin: 0;
  font-size: 1.3rem;
}

.split-position-main .muted {
  font-size: 0.94rem;
}

.split-right {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.split-coeff {
  min-width: 64px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px 10px;
  background: #f7faff;
  font-weight: 700;
  color: #5d7192;
  appearance: textfield;
}

.split-position-amount {
  font-size: 1.45rem;
  color: var(--primary-dark);
}

.split-extra-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #e8eef7;
  box-shadow: none;
}

.split-extra-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}

.split-extra-ico .material-symbols-outlined {
  font-size: 22px;
  color: var(--primary-dark);
}

.tip-card {
  border-color: #bedeff;
}

.tip-card .split-extra-ico {
  background: #eaf4ff;
}

.delivery-card {
  background: #f7fbff;
}

.delivery-card .split-extra-ico {
  background: #e9f3ff;
}

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

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

  .overview-top-grid,
  .split-top-grid {
    grid-template-columns: 1fr;
  }

  .position-modal-grid {
    grid-template-columns: 1fr;
  }

  .event-card h3 {
    font-size: 1.35rem;
  }

  .event-total {
    font-size: 1.35rem;
  }
}
