:root {
  --bg: #f7efe7;
  --card: rgba(255, 255, 255, 0.88);
  --text: #111111;
  --muted: #806f68;
  --red: #e30613;
  --border: rgba(227, 6, 19, 0.12);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  color: var(--text);

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "Segoe UI",
    sans-serif;

  background:
    radial-gradient(
      circle at top right,
      rgba(227, 6, 19, 0.14),
      transparent 30%
    ),
    linear-gradient(
      180deg,
      #f3e7dc 0%,
      #f7efe7 46%,
      #fbf8f3 100%
    );
}

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

button {
  appearance: none;
  border: 0;
}

.dashboard {
  width: 100%;
  max-width: 980px;
  min-height: 100vh;

  margin: 0 auto;

  padding:
    calc(28px + env(safe-area-inset-top))
    22px
    calc(48px + env(safe-area-inset-bottom)); }

.dashboard-header {
  max-width: 720px;
  margin-bottom: 34px;
}

.eyebrow {
  margin: 0 0 8px 0;

  color: #b32025;

  font-size: 15px;
  font-weight: 900;

  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dashboard-header h1 {
  margin: 0;

  font-size: clamp(48px, 8vw, 76px);
  line-height: 0.92;

  letter-spacing: -4px;
  font-weight: 900;
}

.intro {
  max-width: 620px;

  margin: 20px 0 0 0;

  color: var(--muted);

  font-size: 20px;
  line-height: 1.45;
  font-weight: 600;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.panel-card,
.status-card {
  background: var(--card);

  border: 1px solid var(--border);
  border-radius: var(--radius);

  box-shadow: var(--shadow);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.panel-card {
  min-height: 290px;

  padding: 26px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.panel-icon {
  width: 52px;
  height: 52px;

  display: grid;
  place-items: center;

  margin-bottom: 28px;

  border-radius: 17px;

  background: rgba(227, 6, 19, 0.10);
  color: var(--red);

  font-size: 28px;
  font-weight: 900;
}

.panel-card h2 {
  margin: 0 0 12px 0;

  font-size: 30px;
  line-height: 1;

  font-weight: 900;
  letter-spacing: -1px;
}

.panel-card p {
  margin: 0 0 24px 0;

  color: var(--muted);

  font-size: 17px;
  line-height: 1.5;
  font-weight: 600;
}

.panel-card button {
  margin-top: auto;

  padding: 13px 20px;

  border-radius: 999px;

  background: rgba(17, 17, 17, 0.08);
  color: var(--muted);

  font-size: 16px;
  font-weight: 850;

  cursor: not-allowed;
}

.status-card {
  margin-top: 20px;
  padding: 24px 26px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
}

.status-label {
  margin: 0 0 5px 0;

  color: var(--muted);

  font-size: 13px;
  font-weight: 900;

  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-card h2 {
  margin: 0 0 7px 0;

  font-size: 24px;
  line-height: 1.05;

  font-weight: 900;
}

.status-card p:not(.status-label) {
  margin: 0;

  color: var(--muted);

  font-size: 16px;
  line-height: 1.45;
  font-weight: 600;
}

.status-dot {
  width: 15px;
  height: 15px;

  flex: 0 0 auto;

  border-radius: 999px;

  background: #34c759;

  box-shadow: 0 0 0 7px rgba(52, 199, 89, 0.13); }

@media (max-width: 700px) {
  .dashboard {
    padding-left: 18px;
    padding-right: 18px;
  }

  .dashboard-header {
    margin-bottom: 28px;
  }

  .dashboard-header h1 {
    font-size: 56px;
    letter-spacing: -3px;
  }

  .intro {
    font-size: 18px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .panel-card {
    min-height: 250px;
    padding: 22px;
  }

  .status-card {
    align-items: flex-start;
    padding: 22px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111111;
    --card: rgba(28, 28, 30, 0.92);
    --text: #f5f5f7;
    --muted: #a2a2a7;
    --border: rgba(255, 255, 255, 0.07);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.36);
  }

  body {
    background:
      radial-gradient(
        circle at top right,
        rgba(227, 6, 19, 0.18),
        transparent 30%
      ),
      linear-gradient(
        180deg,
        #111111 0%,
        #151515 46%,
        #1b1b1b 100%
      );
  }

  .panel-icon {
    background: rgba(227, 6, 19, 0.17);
  }

  .panel-card button {
    background: rgba(255, 255, 255, 0.08);
  }
}
