.dwta-start-card,
.dwta-toast,
.dwta-admin,
.dwta-admin * {
  box-sizing: border-box;
}

.dwta-start-card {
  width: min(720px, calc(100% - 32px));
  margin: 48px auto;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(57,208,138, 0.28);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 8%, rgba(47,199,128, 0.15), transparent 28%),
    linear-gradient(145deg, #0d3020, #091710 72%);
  box-shadow: 0 28px 80px rgba(8,20,14, 0.38);
  color: #fafcfb;
}

.dwta-start-card h2 {
  margin: 8px 0 16px;
  color: #fff;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}

.dwta-eyebrow {
  color: #39d08a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dwta-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.dwta-summary > div {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.dwta-summary span,
.dwta-summary strong {
  display: block;
}

.dwta-summary span {
  margin-bottom: 7px;
  color: rgba(242,248,245, 0.68);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dwta-summary strong {
  overflow-wrap: anywhere;
  color: #fff;
  font-size: 18px;
}

.dwta-copy,
.dwta-start-card p {
  color: rgba(244,249,247, 0.78);
  line-height: 1.7;
}

.dwta-confirm-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.dwta-button,
.dwta-secondary {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 0;
  border-radius: 14px;
  font-weight: 900;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.dwta-button {
  color: #0a1c13 !important;
  background: linear-gradient(135deg, #39d08a, #2dc07b);
  box-shadow: 0 12px 30px rgba(45,192,123, 0.25);
}

.dwta-button:hover,
.dwta-button:focus-visible {
  color: #0a1c13 !important;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(45,192,123, 0.34);
}

.dwta-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.dwta-secondary {
  color: #f1f8f5 !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

.dwta-secondary:hover,
.dwta-secondary:focus-visible {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1);
}

.dwta-alert,
.dwta-minimum {
  padding: 12px 14px;
  border: 1px solid rgba(57,208,138, 0.32);
  border-radius: 13px;
  background: rgba(55,208,137, 0.1);
  color: #e8f3ee !important;
  font-weight: 700;
}

.dwta-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 99999;
  display: grid;
  gap: 4px;
  width: min(390px, calc(100vw - 32px));
  padding: 16px 18px;
  border: 1px solid rgba(51,207,134, 0.34);
  border-radius: 16px;
  background: rgba(12,34,24, 0.96);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  color: #fff;
  animation: dwta-in 0.35s ease both;
}

.dwta-toast span {
  color: rgba(242,248,245, 0.72);
  font-size: 13px;
}

@keyframes dwta-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.dwta-admin {
  max-width: 1440px;
  color: #0e3322;
}

.dwta-admin-head,
.dwta-user-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.dwta-admin-head {
  margin: 18px 0;
  padding: 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0f291d, #144930);
  box-shadow: 0 18px 40px rgba(15,40,28, 0.18);
  color: #fff;
}

.dwta-admin-head h1,
.dwta-admin-head p,
.dwta-user-head h2,
.dwta-user-head p {
  margin: 0;
}

.dwta-admin-head h1 {
  margin-top: 6px;
  color: #fff;
}

.dwta-admin-head p {
  margin-top: 6px;
  color: rgba(242,248,245, 0.72);
}

.dwta-admin-badge,
.dwta-status {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.dwta-admin-badge {
  border: 1px solid rgba(57,208,138, 0.28);
  background: rgba(57,208,138, 0.1);
  color: #bddcce;
}

.dwta-search {
  display: flex;
  gap: 10px;
  margin: 18px 0;
}

.dwta-search input {
  width: min(560px, 100%);
  min-height: 42px;
}

.dwta-empty,
.dwta-user-panel,
.dwta-audit-panel,
.dwta-account-directory {
  margin: 18px 0;
  padding: 22px;
  border: 1px solid #e2ede8;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(14,51,34, 0.07);
}

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

.dwta-directory-head h2,
.dwta-directory-head p {
  margin: 0;
}

.dwta-directory-head p {
  margin-top: 5px;
  color: #379c6d;
}

.dwta-directory-head > span {
  padding: 7px 11px;
  border-radius: 999px;
  background: #f3f9f6;
  color: #1d6644;
  font-size: 12px;
  font-weight: 800;
}

.dwta-account-directory table {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
}

.dwta-account-directory th,
.dwta-account-directory td {
  padding: 12px 10px;
  border-bottom: 1px solid #ebf1ee;
  text-align: left;
  vertical-align: middle;
}

.dwta-account-directory th {
  color: #359769;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dwta-account-directory td strong,
.dwta-account-directory td small {
  display: block;
}

.dwta-account-directory td small {
  margin-top: 4px;
  color: #3cab77;
}

.dwta-account-directory tr.is-selected td {
  background: #f4f9f7;
}

.dwta-user-head p {
  margin-top: 5px;
  color: #379c6d;
}

.dwta-status {
  background: #f0f5f3;
  color: #379c6d;
}

.dwta-status.active {
  background: #dcfce7;
  color: #14733b;
}

.dwta-money-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.dwta-money-grid > div {
  min-width: 0;
  padding: 15px;
  border: 1px solid #e5eeea;
  border-radius: 15px;
  background: linear-gradient(180deg, #fcfefd, #f7faf9);
}

.dwta-money-grid span,
.dwta-money-grid strong {
  display: block;
}

.dwta-money-grid span {
  color: #379c6d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dwta-money-grid strong {
  margin-top: 8px;
  overflow-wrap: anywhere;
  color: #0e3322;
  font-size: 20px;
}

.dwta-next {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f3f9f6;
  color: #175337;
}

.dwta-adjust-form {
  display: grid;
  grid-template-columns: 1.25fr 0.8fr 0.8fr 1.5fr auto;
  gap: 10px;
  align-items: end;
  margin-top: 18px;
}

.dwta-adjust-form label span {
  display: block;
  margin-bottom: 6px;
  color: #30875e;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.dwta-adjust-form input,
.dwta-adjust-form select {
  width: 100%;
  min-height: 42px;
}

.dwta-adjust-form .button {
  min-height: 42px;
}

.dwta-table-wrap {
  overflow-x: auto;
}

.dwta-audit-panel table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.dwta-audit-panel th,
.dwta-audit-panel td {
  padding: 11px 10px;
  border-bottom: 1px solid #ebf1ee;
  text-align: left;
  vertical-align: top;
}

.dwta-audit-panel th {
  color: #359769;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .dwta-money-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dwta-adjust-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dwta-adjust-form .dwta-note-field { grid-column: span 2; }
}

@media (max-width: 680px) {
  .dwta-summary,
  .dwta-money-grid,
  .dwta-adjust-form { grid-template-columns: 1fr; }
  .dwta-adjust-form .dwta-note-field { grid-column: auto; }
  .dwta-admin-head,
  .dwta-user-head { align-items: flex-start; flex-direction: column; }
  .dwta-search { flex-direction: column; }
  .dwta-directory-head { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .dwta-button,
  .dwta-secondary,
  .dwta-toast { animation: none; transition: none; }
}
