.card-image {
  width: calc(100% + 50px);
  max-height: 310px;
  object-fit: cover;
  margin: -25px -25px 18px;
  border-radius: 20px 20px 0 0;
}

.poll-image {
  max-height: 360px;
}

.option-check {
  grid-template-columns: auto 1fr;
  align-items: start;
  background: #f6f1f7;
  border-radius: 12px;
  padding: 12px;
}

.option-check input {
  width: 18px;
  height: 18px;
}

.payment-condition {
  color: #84540c;
  background: #fff1cf;
  border-radius: 99px;
  padding: 4px 9px;
  font-weight: 750;
}

.budget-help {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 22px;
  background: linear-gradient(135deg, #fff, #f6f0f8);
}

.budget-help > div:not(:last-child) {
  border-right: 1px solid var(--line);
  padding-right: 20px;
}

.budget-help p,
.closure-help p,
.info-box p {
  color: var(--muted);
  margin: 6px 0 0;
  font-size: 13px;
}

.closure-help,
.info-box {
  margin-top: 18px;
  padding: 14px;
  border-radius: 12px;
  background: #f6f2f5;
}

.expense-detailed {
  display: block;
}

.expense-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.expense-head .amount .button {
  margin-top: 10px;
}

.expense-edit {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.attendance-expense-summary {
  padding: 13px 15px;
  border-radius: 12px;
  background: #f6f2f5;
}

.attendance-expense-summary > b {
  display: block;
  margin-bottom: 6px;
}

.attendance-expense-summary p {
  margin: 2px 0;
  font-size: 12px;
  color: var(--muted);
}

.funding-status {
  display: grid;
  grid-template-columns: 1fr minmax(140px, 250px);
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  padding: 13px;
  border-radius: 12px;
  background: #fff0d5;
  color: #754a0a;
}

.funding-status.funded {
  background: #dff2e9;
  color: #245f49;
}

.funding-status b,
.funding-status small {
  display: block;
}

.funding-status progress {
  width: 100%;
  accent-color: var(--success);
}

.payment-details {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 13px;
}

.payment-details summary {
  cursor: pointer;
  font-weight: 750;
  color: var(--plum);
}

.payment-transfer {
  margin-top: 18px;
  padding: 17px;
  border: 1px solid #c9e4d8;
  border-radius: 14px;
  background: #f0f9f5;
}

.payment-transfer .section-title { margin-bottom: 12px; }
.payment-transfer p { margin-bottom: 8px; }
.payment-details-missing { margin-top: 14px !important; }
.payment-instruction { margin: 12px 0; padding: 11px; border-radius: 10px; background: #fff; }
.payment-instruction p { margin: 3px 0 0; }
.copy-field { display: flex; gap: 7px; }
.copy-field input { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.copy-field .button { width: auto; flex: 0 0 auto; }

.discussion-composer { max-width: 900px; margin-bottom: 24px; }
.discussion-compose-actions { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.discussion-thread { display: grid; gap: 13px; max-width: 900px; }
.discussion-message { display: grid; grid-template-columns: 40px minmax(0,1fr); gap: 11px; align-items: start; }
.discussion-message.mine { grid-template-columns: minmax(0,1fr) 40px; }
.discussion-message.mine .avatar { grid-column: 2; }
.discussion-message.mine .discussion-bubble { grid-column: 1; grid-row: 1; background: #eee5f3; }
.discussion-bubble { background: #fff; border: 1px solid var(--line); border-radius: 4px 16px 16px; padding: 13px 15px; }
.discussion-message.mine .discussion-bubble { border-radius: 16px 4px 16px 16px; }
.discussion-bubble header { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.discussion-bubble time { color: var(--muted); font-size: 11px; }
.discussion-bubble p { margin: 0; overflow-wrap: anywhere; }
.discussion-bubble form { margin-top: 8px; text-align: right; }

.share-list {
  margin-top: 10px;
}

.share-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 100px 90px auto;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 10px 0;
}

.share-row b,
.share-row small {
  display: block;
}

.payment-state {
  width: max-content;
  border-radius: 99px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.payment-state.paid { background: #dff2e9; color: #245f49; }
.payment-state.waiting { background: #fff0d5; color: #754a0a; }

.health-list p {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 2px 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.health-list small { grid-column: 2; }
.dot-warning { background: #d69a2d; }

.danger-zone {
  border-color: #e4a9b3;
  background: #fff7f8;
}

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

@media (max-width: 760px) {
  .mobile-nav { grid-template-columns: repeat(6, 1fr); }
  .card-image {
    width: calc(100% + 36px);
    margin: -18px -18px 15px;
    border-radius: 16px 16px 0 0;
  }
  .budget-help { grid-template-columns: 1fr; }
  .budget-help > div:not(:last-child) { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 14px; }
  .funding-status { grid-template-columns: 1fr; }
  .expense-head { display: grid; }
  .share-row { grid-template-columns: 1fr auto; }
  .share-row .payment-state { grid-column: 1; }
  .discussion-compose-actions { align-items: stretch; flex-direction: column; }
  .discussion-compose-actions .button { width: 100%; }
}
.mail-settings-card,.owner-payment-card{margin-bottom:25px}
