.tasks-root {
  color: #f8f2df;
  max-width: 1100px;
  margin: auto;
}
.task-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.task-heading h2 {
  font-size: clamp(26px, 4vw, 40px);
  margin: 5px 0;
}
.task-heading p {
  color: #b5cbc9;
}
.task-kicker {
  letter-spacing: 0.18em;
  font-size: 11px;
  color: #edc66e !important;
}
.tasks-root button,
.tasks-dialog button {
  cursor: pointer;
  border: 1px solid #70918f66;
  border-radius: 12px;
  background: #153e47;
  color: #f6f1e0;
  padding: 12px 16px;
  font: inherit;
  min-height: 44px;
}
.tasks-root .task-primary,
.tasks-dialog .task-primary {
  background: #edc66e;
  color: #172b32;
  font-weight: 750;
  border: 0;
}
.tasks-root button:focus-visible,
.tasks-dialog button:focus-visible {
  outline: 3px solid #edc66e;
  outline-offset: 3px;
}
.tasks-dialog button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.task-toolbar,
.task-wallet,
.task-rewards,
.task-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.task-wallet {
  padding: 18px;
  background: #133944;
  border-radius: 15px;
  margin: 20px 0;
  color: #edc66e;
}
.task-toolbar {
  margin: 24px 0;
}
.task-toolbar label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: #b5cbc9;
}
.task-toolbar button {
  margin-top: 20px;
}
.tasks-root select,
.tasks-dialog select,
.tasks-dialog input,
.tasks-dialog textarea {
  box-sizing: border-box;
  width: 100%;
  background: #102d37;
  color: #fff6df;
  border: 1px solid #678484;
  border-radius: 9px;
  padding: 12px;
  font: inherit;
  min-height: 44px;
}
.task-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}
.tasks-root .task-card {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 23px;
  background: linear-gradient(140deg, #184550, #102c38);
  min-width: 0;
}
.task-card h3 {
  margin: 0;
  font-size: 21px;
  overflow-wrap: anywhere;
}
.task-card p {
  margin: 0;
  color: #b5cbc9;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.task-card small {
  color: #b5cbc9;
}
.task-reward {
  background: #264b53;
  color: #caf1e4;
  border-radius: 9px;
  padding: 7px 10px;
  font-size: 13px;
}
.task-reward.coins {
  color: #f4d98f;
  background: #5b50352f;
}
.task-open {
  margin-top: auto;
  padding-top: 8px;
  color: #edc66e;
  font-size: 13px;
}
.task-status {
  display: inline-block;
  font-size: 12px;
  padding: 6px 10px;
  background: #315864;
  border-radius: 8px;
}
.status-IN_REVIEW {
  color: #ffe096;
  background: #625235;
}
.status-REVISION {
  color: #ffd0b1;
  background: #623f38;
}
.status-APPROVED {
  color: #b8f5d1;
  background: #245844;
}
.status-CANCELLED {
  color: #b4c4c6;
  background: #35434b;
}
.task-empty {
  text-align: center;
  padding: 50px 20px;
  border: 1px dashed #52777d;
  border-radius: 18px;
  grid-column: 1/-1;
  color: #b5cbc9;
}
.task-empty > span {
  font-size: 42px;
}
.task-empty h3 {
  color: #f9ebc9;
}
.tasks-dialog {
  box-sizing: border-box;
  width: min(680px, calc(100vw - 24px));
  max-height: 90dvh;
  border: 1px solid #5b7d7e;
  border-radius: 20px;
  background: #102e39;
  color: #fff3d8;
  padding: 24px;
  overflow: auto;
}
.tasks-dialog::backdrop {
  background: #031923d9;
  backdrop-filter: blur(5px);
}
.tasks-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.tasks-dialog h2 {
  margin: 0;
  font-size: 24px;
  overflow-wrap: anywhere;
}
.tasks-dialog header button {
  font-size: 24px;
  flex-shrink: 0;
}
.task-form {
  display: grid;
  gap: 16px;
}
.task-form label {
  display: grid;
  gap: 7px;
  font-size: 14px;
}
.task-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.task-description {
  white-space: pre-wrap;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.task-hint {
  color: #b5cbc9;
  font-size: 13px;
  line-height: 1.5;
}
.task-attempt {
  padding: 18px 0;
  border-top: 1px solid #52777d66;
  margin: 20px 0;
}
.task-attempt h3 {
  font-size: 17px;
}
.task-attempt small {
  color: #aac2c4;
}
.task-attempt blockquote {
  margin: 14px 0;
  padding: 14px;
  background: #314b4b;
  border-left: 3px solid #edc66e;
  border-radius: 5px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.task-media,
.task-previews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 10px;
}
.task-media img,
.task-media video,
.task-previews img,
.task-previews video {
  width: 100%;
  max-height: 330px;
  object-fit: contain;
  background: #071a23;
  border-radius: 10px;
}
.task-previews > div {
  position: relative;
}
.task-previews button {
  position: absolute;
  right: 4px;
  top: 4px;
}
.task-error,
.task-overdue {
  color: #ffb4a4 !important;
  white-space: pre-wrap;
}
.task-success {
  color: #b8f5d1;
}
.task-form progress {
  width: 100%;
  accent-color: #edc66e;
}
.task-file {
  border: 1px dashed #739b9c;
  padding: 15px;
  border-radius: 12px;
}
.task-file input {
  font-size: 12px;
}
.task-review {
  padding: 15px;
  background: #21434a;
  border-radius: 12px;
  margin: 20px 0;
}
@media (max-width: 600px) {
  .task-heading {
    align-items: stretch;
    flex-direction: column;
  }
  .tasks-dialog {
    padding: 18px;
  }
  .task-toolbar > * {
    flex: 1;
    min-width: 120px;
  }
  .task-heading h2 {
    font-size: 28px;
  }
}
.card.card-quests-section,
.card.card-parent-section {
  background: linear-gradient(155deg, #153f49, #0b2633);
  border-color: #66878a88;
}
.card-quests-section::before,
.card-quests-section::after,
.card-parent-section::before,
.card-parent-section::after {
  display: none;
}
.tasks-root h2 {
  color: #fff0ca;
}
.tasks-root {
  position: relative;
  z-index: 1;
}

.task-schedules {
  border: 1px solid #66878a88;
  border-radius: 12px;
  padding: 15px;
  margin: 20px 0;
}
.task-schedules summary {
  cursor: pointer;
  padding: 6px;
  color: #f4d98f;
}
.task-schedule {
  padding: 16px 0;
  border-bottom: 1px solid #66878a55;
}
.task-schedule .task-actions {
  margin-top: 12px;
}
.task-weekdays {
  border: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.task-weekdays[hidden],
.task-repeat-dates[hidden],
[data-once-date][hidden] {
  display: none;
}
.task-weekdays label {
  position: relative;
}
.task-weekdays input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.task-weekdays span {
  padding: 12px;
  display: block;
  border: 1px solid #66878a;
  border-radius: 10px;
}
.task-weekdays input:checked + span {
  background: #edc66e;
  color: #172b32;
}
.task-weekdays input:focus-visible + span {
  outline: 3px solid #fff;
}
.task-repeat-dates {
  display: grid;
  gap: 12px;
}

.task-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}
.task-weekdays label {
  min-width: 0;
}
.task-weekdays span {
  padding: 12px 0;
  text-align: center;
}

.characteristics{margin:18px 0;padding:18px;background:linear-gradient(125deg,#102e36,#193c46);border:1px solid #cbaf6f66;border-radius:18px}.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:10px}.stat-grid>div{display:flex;flex-direction:column;gap:8px;padding:12px;background:#ffffff08;border-radius:10px}.stat-grid strong{font-size:26px;color:#ffe6a1}.task-requirements{display:flex;flex-direction:column;gap:5px;margin:12px 0;font-size:13px}.stat-missing{color:#ffc18b}.task-stat-fields{padding:12px;border:1px solid #ffffff26;border-radius:10px}.task-stat-fields summary{cursor:pointer}.task-stat-fields .task-fields{flex-wrap:wrap}.task-stat-fields .task-fields>label{min-width:110px}.stats-form input{font-variant-numeric:tabular-nums}

.task-stat-rewards{padding:12px;border:1px solid #ffffff26;border-radius:10px}.task-stat-rewards summary{cursor:pointer}.task-stat-rewards .task-fields{flex-wrap:wrap}.task-stat-rewards .task-fields>label{min-width:110px}
