.notice-bell {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: #193340;
  color: #e9d1a5;
  border: 1px solid #48606d;
  border-radius: 10px;
  cursor: pointer;
}
#notice-unread {
  position: absolute;
  width: 8px;
  height: 8px;
  right: 6px;
  top: 5px;
  border-radius: 50%;
  background: #f4b56a;
  border: 2px solid #193340;
}
.community-dialog {
  width: min(570px, calc(100% - 32px));
  max-height: 85vh;
  overflow: auto;
  padding: 26px;
  border: 1px solid #4e6979;
  border-radius: 18px;
  background: #112735;
  color: #ecf3f7;
  box-shadow: 0 24px 90px #0008;
  font:
    14px/1.65 Arial,
    sans-serif;
}
.community-dialog::backdrop {
  background: #031019aa;
  backdrop-filter: blur(5px);
}
.community-dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  color: #c1d3dd;
}
.community-dialog-heading h2 {
  font:
    700 20px/1.5 Arial,
    sans-serif;
  margin: 0;
}
.dialog-close {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border: 1px solid #3f5b6a;
  background: #1d3847;
  color: #d8e7ed;
  border-radius: 8px;
  font-size: 24px;
}
.notice-card {
  padding: 26px 22px;
  background: linear-gradient(140deg, #1c3b4c, #142e3d);
  border: 1px solid #587b92;
  border-radius: 14px;
  border-top: 4px solid #81c1e4;
}
.notice-card[data-tone="success"] {
  border-color: #477e6d;
  border-top-color: #9adbbd;
  background: linear-gradient(140deg, #20433d, #142f33);
}
.notice-card[data-tone="warning"] {
  border-color: #947c54;
  border-top-color: #edc182;
  background: linear-gradient(140deg, #3d382b, #22303a);
}
.notice-kind {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #e7c78d;
}
.notice-card h2 {
  font:
    700 24px/1.45 Arial,
    sans-serif;
  letter-spacing: 0;
  margin: 12px 0 18px;
  overflow-wrap: anywhere;
}
.notice-card .button {
  display: flex;
  margin-top: 24px;
  justify-content: center;
  text-decoration: none;
}
.community-prose {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.8;
  text-transform: none;
  color: #c6d9e3;
}
.community-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.community-message {
  background: #223b4a;
  border: 1px solid #4a6e84;
  padding: 13px 16px;
  border-radius: 9px;
  color: #d6e9f5;
  font:
    13px/1.7 Arial,
    sans-serif;
  text-transform: none;
  overflow-wrap: anywhere;
}
.community-card {
  padding: 26px;
  margin-bottom: 26px;
  min-width: 0;
}
.community-card h3 {
  font-size: 18px;
  line-height: 1.5;
  margin: 0 0 12px;
}
.community-card h4 {
  font-size: 15px;
  line-height: 1.5;
  margin: 7px 0;
}
.community-card .panel-heading {
  padding: 0;
  margin-bottom: 18px;
}
.community-card input,
.community-card textarea,
.community-card select,
.community-dialog input,
.community-dialog textarea {
  width: 100%;
  font:
    14px/1.5 Arial,
    sans-serif;
  border: 1px solid #476170;
  border-radius: 8px;
  color: #edf5f8;
  background: #0e2431;
  padding: 11px 12px;
  min-width: 0;
}
.community-card textarea,
.community-dialog textarea {
  resize: vertical;
  min-height: 80px;
}
.community-card label,
.community-dialog label {
  font-size: 13px;
  line-height: 1.6;
}
.community-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
}
.community-checkbox input {
  width: 17px !important;
  height: 17px;
  min-height: 17px;
  flex-shrink: 0;
  accent-color: #d7bd8d;
}
.community-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: end;
}
.community-hint {
  font-size: 13px;
  line-height: 1.75;
  color: #abc1cd;
  text-transform: none;
}
.community-details {
  padding: 20px 0;
  border-top: 1px solid #345061;
}
.community-details > summary {
  font-size: 15px;
  font-weight: 700;
  color: #d8e5ec;
  cursor: pointer;
  margin-bottom: 12px;
}
.community-empty {
  padding: 27px;
  border: 1px dashed #3f5b6d;
  background: #102431;
  border-radius: 12px;
  color: #a9c1cf;
  text-align: center;
  line-height: 1.8;
  text-transform: none;
}
.earn-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  margin-bottom: 25px;
}
.earn-intro h2 {
  font-size: 26px;
  margin: 10px 0;
  line-height: 1.4;
}
.earn-intro p {
  color: #b7cdd8;
  line-height: 1.7;
  text-transform: none;
  white-space: pre-wrap;
}
.earn-tabs {
  display: flex;
  gap: 8px;
  padding: 5px;
  border: 1px solid #395668;
  background: #102633;
  border-radius: 12px;
  width: max-content;
  margin-bottom: 28px;
}
.earn-tabs button {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #b5cbd6;
  padding: 12px 25px;
  font-weight: 700;
  font-size: 14px;
}
.earn-tabs .selected {
  background: #365251;
  color: #f1d7a9;
}
.community-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin: 22px 0 16px;
}
.community-section-heading h3 {
  font-size: 18px;
  margin: 0;
}
.community-section-heading > span {
  color: #a8bfca;
  font-size: 12px;
}
.earn-task-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.earn-task {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 0;
}
.earn-task .community-prose {
  max-height: 180px;
  overflow: auto;
  padding-right: 6px;
  font-size: 14px;
}
.earn-task .button {
  margin-top: auto;
  align-self: flex-start;
}
.earn-task details {
  font-size: 13px;
  color: #c2d5df;
}
.earn-task summary {
  cursor: pointer;
}
.earn-task-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.earn-task-top strong {
  font-size: 24px;
  color: #f0ce95;
}
.earn-task-icon {
  display: grid;
  place-items: center;
  border-radius: 12px;
  width: 40px;
  height: 40px;
  background: #294c47;
  color: #b8e7ce;
  font-size: 22px;
}
.community-list {
  display: grid;
  gap: 14px;
}
.community-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  background: #122b39;
  border: 1px solid #395869;
  padding: 18px;
  border-radius: 12px;
  min-width: 0;
}
.community-row p,
.community-review p {
  font-size: 13px;
  color: #b4cbd7;
  line-height: 1.7;
  overflow-wrap: anywhere;
  margin: 6px 0;
}
.community-row h4 {
  font-size: 15px;
  margin: 8px 0;
}
.community-row .button {
  flex-shrink: 0;
}
.community-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  background: #2a4352;
  color: #c3dce9;
  font-size: 11px;
  font-weight: 700;
}
.community-status[data-status="pending"] {
  color: #f2d29b;
  background: #423c2c;
}
.community-status[data-status="approved"],
.community-status[data-status="paid"] {
  color: #b8e8cc;
  background: #244c40;
}
.community-status[data-status="rejected"] {
  color: #ffd1bd;
  background: #563f38;
}
.earn-cooldown {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  margin-bottom: 22px;
  border: 1px solid #537266;
  border-radius: 14px;
  background: linear-gradient(110deg, #203d3f, #152d3b);
}
.earn-cooldown strong {
  color: #e9d1a9;
  font-size: 15px;
}
.earn-cooldown p {
  color: #b3cbd5;
  font-size: 13px;
  line-height: 1.7;
  margin: 7px 0 0;
  text-transform: none;
}
#earn-countdown {
  font:
    700 30px/1.3 Arial,
    sans-serif;
  font-variant-numeric: tabular-nums;
  color: #efd3a1;
  white-space: nowrap;
}
.task-cooldown {
  color: #efcd91;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  margin: 0;
}
#earn-payment-fields {
  margin-top: 22px;
}
#earn-payment-editor > label {
  display: block;
  margin-bottom: 9px;
  color: #bbced8;
}
#earn-payment-editor {
  scroll-margin-top: 100px;
}
.earn-balances {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.earn-balances article {
  padding: 22px;
  background: #193644;
  border: 1px solid #476572;
  border-radius: 12px;
}
.earn-balances span {
  display: block;
  font-size: 12px;
  color: #b3cbd6;
  margin-bottom: 12px;
}
.earn-balances strong {
  font-size: 27px;
  font-variant-numeric: tabular-nums;
  color: #f0d3a3;
  overflow-wrap: anywhere;
}
.earn-payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.evidence-item {
  min-width: 0;
}
.evidence-item img {
  display: block;
  width: 100%;
  height: 145px;
  object-fit: contain;
  background: #0a1c28;
  border: 1px solid #476170;
  border-radius: 8px;
}
.evidence-item .text-button {
  padding: 8px 0;
  font-size: 12px;
}
.community-review {
  padding: 20px;
  border: 1px solid #456271;
  background: #102733;
  border-radius: 12px;
}
.community-review .community-section-heading {
  margin-top: 0;
}
.community-review h4 {
  font-size: 16px;
  margin: 0;
}
.community-review details {
  font-size: 13px;
  line-height: 1.7;
  color: #b9ccd6;
}
.payout-recipient {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding: 15px;
  border-radius: 8px;
  background: #203b46;
  color: #f1dcba;
  margin: 14px 0;
}
.community-dialog form > .primary {
  margin-top: 18px;
}
#earn-admin-task-select {
  flex: 1;
  min-width: 180px;
}
#earn-submit-files {
  font-size: 12px;
}
@media (max-width: 1100px) {
  .earn-task-grid,
  .earn-payment-grid {
    grid-template-columns: 1fr;
  }
  .earn-balances {
    gap: 10px;
  }
  .earn-balances article {
    padding: 16px;
  }
  .earn-balances strong {
    font-size: 23px;
  }
}
@media (max-width: 650px) {
  .earn-cooldown {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
  }
  .earn-intro,
  .community-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .earn-intro h2 {
    font-size: 23px;
  }
  .community-card {
    padding: 20px;
  }
  .community-form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .community-dialog {
    padding: 18px;
  }
  .notice-card {
    padding: 20px 17px;
  }
  .notice-card h2 {
    font-size: 22px;
  }
  .community-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .earn-balances {
    grid-template-columns: 1fr;
  }
  .earn-balances article {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .earn-balances span {
    margin: 0;
  }
  .community-review {
    padding: 16px;
  }
  .evidence-grid {
    gap: 7px;
  }
  .evidence-item img {
    height: 100px;
  }
  .topbar-right {
    gap: 6px;
  }
  .notice-bell {
    width: 30px;
    height: 32px;
  }
  .community-actions .button {
    font-size: 12px;
  }
}

#task-wallet-panel {
  margin-bottom: 24px;
}
#task-wallet-balance,
#task-wallet-held {
  display: inline-block;
  margin-top: 8px;
  font-size: clamp(24px, 4vw, 34px);
  color: var(--gold, #f2d28b);
}
#task-withdraw-form,
[data-task-withdraw-review] {
  display: grid;
  gap: 12px;
}
[data-task-withdraw-review] label {
  display: grid;
  gap: 8px;
}
[data-task-withdraw-review] textarea {
  width: 100%;
  min-height: 80px;
  border-radius: 12px;
  padding: 12px;
  font: inherit;
}
#task-withdraw-history p,
#task-withdraw-admin-list p {
  overflow-wrap: anywhere;
}
#task-withdraw-history .community-row > div {min-width:0;width:100%;overflow-wrap:anywhere;}
#task-withdraw-history img,#task-withdraw-admin-list img,#task-pay-qr-preview img {display:block;max-width:100%!important;width:auto;max-height:220px!important;object-fit:contain;}
#task-withdraw-form label {min-width:0;}
#payment-contact-dialog {width:min(520px,94vw);max-width:94vw;overflow-wrap:anywhere;font-family:Arial,sans-serif;}
#payment-contact-dialog .button {white-space:normal;}
