:root {
  --ink: #17211c;
  --muted: #66726b;
  --line: #dce3de;
  --canvas: #f4f6f2;
  --surface: #ffffff;
  --green: #176044;
  --green-dark: #0f3e2d;
  --green-soft: #e6f2eb;
  --lime: #dbf267;
  --amber: #b86911;
  --amber-soft: #fff2dc;
  --blue: #315caa;
  --blue-soft: #eaf0ff;
  --red: #b8433e;
  --shadow: 0 16px 45px rgba(15, 62, 45, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  align-items: center;
  background: var(--green-dark);
  color: white;
  display: flex;
  gap: 30px;
  justify-content: space-between;
  padding: 18px max(24px, calc((100vw - 1180px) / 2));
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  color: white;
  display: flex;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--lime);
  border-radius: 12px;
  color: var(--green-dark);
  display: flex;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: #b9cec3;
  font-size: 12px;
  margin-top: 2px;
}

nav {
  display: flex;
  gap: 24px;
}

nav a {
  color: #c9d9d1;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

nav a:hover {
  color: white;
}

main {
  margin: 0 auto;
  max-width: 1180px;
  padding: 34px 24px 70px;
}

.welcome {
  align-items: center;
  background:
    radial-gradient(circle at 84% 18%, rgba(219, 242, 103, 0.22), transparent 25%),
    linear-gradient(135deg, var(--green-dark), #1d684d);
  border-radius: 22px;
  color: white;
  display: flex;
  justify-content: space-between;
  padding: 38px 42px;
}

h1,
h2,
h3 {
  font-family: "Manrope", sans-serif;
}

h1 {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.08;
  margin: 9px 0 12px;
}

h2 {
  font-size: clamp(22px, 3vw, 29px);
  margin: 5px 0 0;
}

h3 {
  margin: 0;
}

.welcome-copy {
  color: #d1dfd8;
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
  max-width: 670px;
}

.eyebrow {
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin: 0;
}

.welcome .eyebrow {
  color: var(--lime);
}

.date-card {
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  display: grid;
  min-width: 210px;
  padding-left: 32px;
}

.date-card span,
.date-card small {
  color: #c1d4ca;
}

.date-card strong {
  font-family: "Manrope", sans-serif;
  font-size: 28px;
  margin: 8px 0 2px;
}

.section {
  margin-top: 42px;
  scroll-margin-top: 100px;
}

.section-heading {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-heading > p {
  color: var(--muted);
  margin: 0;
  max-width: 450px;
  text-align: right;
}

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

.task-row {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-left: 6px solid var(--green);
  border-radius: 14px;
  display: grid;
  gap: 16px;
  grid-template-columns: 44px 1fr auto;
  padding: 18px 20px;
}

.task-row.high {
  border-left-color: var(--red);
}

.task-row.waiting {
  border-left-color: var(--blue);
}

.task-number {
  align-items: center;
  background: var(--green-soft);
  border-radius: 50%;
  color: var(--green);
  display: flex;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.task-main strong,
.task-main span {
  display: block;
}

.task-main strong {
  font-size: 17px;
}

.task-main span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.task-actions {
  align-items: center;
  display: flex;
  gap: 12px;
}

.due {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.business-list {
  display: grid;
  gap: 18px;
}

.business-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.business-card-top {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: 60px 1fr auto;
  padding: 24px;
}

.business-logo {
  align-items: center;
  background: var(--green-dark);
  border-radius: 15px;
  color: white;
  display: flex;
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  font-weight: 800;
  height: 56px;
  justify-content: center;
  width: 56px;
}

.business-card:nth-child(2) .business-logo {
  background: #20242a;
}

.business-card:nth-child(3) .business-logo {
  background: #37589b;
}

.business-title-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.business-summary {
  color: var(--muted);
  line-height: 1.55;
  margin: 7px 0 0;
}

.status {
  border-radius: 20px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 9px;
}

.status.waiting {
  background: var(--blue-soft);
  color: var(--blue);
}

.status.action {
  background: var(--amber-soft);
  color: var(--amber);
}

.status.active {
  background: var(--green-soft);
  color: var(--green);
}

.business-facts {
  background: #f9faf8;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, 1fr);
}

.fact {
  border-right: 1px solid var(--line);
  padding: 15px 20px;
}

.fact:last-child {
  border-right: 0;
}

.fact span,
.fact strong {
  display: block;
}

.fact span {
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.fact strong {
  font-size: 14px;
}

.button {
  align-items: center;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  padding: 10px 15px;
  text-decoration: none;
}

.button.primary {
  background: var(--green);
  color: white;
}

.button.primary:hover {
  background: var(--green-dark);
}

.button.light {
  background: var(--lime);
  color: var(--green-dark);
}

.button.outline {
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
}

.button.small {
  font-size: 13px;
  padding: 9px 12px;
}

.button-stack {
  display: grid;
  gap: 8px;
  min-width: 170px;
}

.support-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.4fr 1fr;
}

.help-card,
.security-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
}

.help-card {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: 54px 1fr;
}

.help-icon {
  align-items: center;
  background: var(--lime);
  border-radius: 14px;
  color: var(--green-dark);
  display: flex;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  height: 52px;
  justify-content: center;
  width: 52px;
}

.help-card p:not(.eyebrow),
.security-card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
}

.history-list {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.history-row {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: 105px 155px 1fr;
  padding: 17px 20px;
}

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

.history-date {
  color: var(--muted);
  font-size: 13px;
}

.history-business {
  font-weight: 700;
}

.history-note {
  line-height: 1.5;
}

.modal {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.22);
  max-height: 90vh;
  max-width: 690px;
  padding: 0;
  width: calc(100% - 32px);
}

.modal::backdrop {
  background: rgba(10, 27, 20, 0.62);
}

.modal-content {
  margin: 0;
  padding: 28px;
}

.modal-header {
  align-items: start;
  display: flex;
  justify-content: space-between;
  margin-bottom: 22px;
}

.modal-header h2 {
  margin-top: 5px;
}

.icon-button {
  background: #eef1ee;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  height: 38px;
  width: 38px;
}

.progress-section {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 20px;
}

.progress-section h3 {
  margin-bottom: 12px;
}

.check-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-list li {
  align-items: start;
  display: flex;
  gap: 10px;
  line-height: 1.45;
}

.check-list li::before {
  align-items: center;
  border-radius: 50%;
  display: flex;
  flex: 0 0 22px;
  font-size: 12px;
  font-weight: 800;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.check-list .done::before {
  background: var(--green-soft);
  color: var(--green);
  content: "✓";
}

.check-list .open::before {
  background: var(--amber-soft);
  color: var(--amber);
  content: "!";
}

.account-box,
.next-box {
  background: #f7f9f6;
  border-radius: 12px;
  margin-top: 18px;
  padding: 16px;
}

.account-box span,
.next-box span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}

.dialog-buttons {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

label span {
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  background: white;
  border: 1px solid #cfd8d2;
  border-radius: 9px;
  color: var(--ink);
  padding: 11px 12px;
  width: 100%;
}

textarea {
  resize: vertical;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.empty {
  color: var(--muted);
  padding: 24px;
  text-align: center;
}

.toast {
  background: var(--green-dark);
  border-radius: 10px;
  bottom: 22px;
  color: white;
  opacity: 0;
  padding: 12px 18px;
  pointer-events: none;
  position: fixed;
  right: 22px;
  transform: translateY(10px);
  transition: 0.2s ease;
  z-index: 50;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 850px) {
  .site-header nav {
    display: none;
  }

  .welcome,
  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .date-card {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    margin-top: 26px;
    padding-left: 0;
    padding-top: 20px;
  }

  .section-heading > p {
    margin-top: 8px;
    text-align: left;
  }

  .business-card-top {
    grid-template-columns: 52px 1fr;
  }

  .button-stack {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }

  .business-facts {
    grid-template-columns: 1fr 1fr;
  }

  .fact:nth-child(2) {
    border-right: 0;
  }

  .fact:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

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

@media (max-width: 570px) {
  .site-header {
    padding: 14px 18px;
  }

  .site-header > .button {
    display: none;
  }

  main {
    padding: 20px 15px 55px;
  }

  .welcome {
    padding: 28px 24px;
  }

  .task-row {
    grid-template-columns: 36px 1fr;
  }

  .task-actions {
    grid-column: 1 / -1;
    justify-content: space-between;
  }

  .business-card-top {
    padding: 20px;
  }

  .business-facts {
    grid-template-columns: 1fr;
  }

  .fact,
  .fact:nth-child(2) {
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }

  .fact:last-child {
    border-bottom: 0;
  }

  .button-stack {
    grid-template-columns: 1fr;
  }

  .history-row {
    gap: 5px;
    grid-template-columns: 1fr;
  }

  .help-card {
    grid-template-columns: 1fr;
  }
}
