:root {
  --bg: #f8efe5;
  --bg-soft: #fffaf4;
  --sheet: rgba(255, 251, 246, 0.92);
  --sheet-strong: #ffffff;
  --ink: #231a15;
  --muted: #6d594d;
  --line: rgba(69, 46, 31, 0.1);
  --accent: #f47b42;
  --accent-2: #f8c45f;
  --accent-3: #79c9d7;
  --accent-4: #f08fb5;
  --success: #2f8b57;
  --warn: #b16d1d;
  --danger: #b64545;
  --shadow: 0 18px 44px rgba(93, 55, 29, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

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

body {
  background:
    radial-gradient(circle at top left, rgba(248, 196, 95, 0.34), transparent 26%),
    radial-gradient(circle at 82% 12%, rgba(121, 201, 215, 0.28), transparent 20%),
    linear-gradient(180deg, #fef6ed 0%, #fffdf9 58%, #fff6ef 100%);
  color: var(--ink);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  line-height: 1.45;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.24;
}

.app {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0 auto;
  padding: 18px 16px 100px;
}

.hero,
.panel,
.top-card,
.banner {
  background: var(--sheet);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 22px 20px 20px;
  background:
    radial-gradient(circle at 15% 18%, rgba(248, 196, 95, 0.56), transparent 20%),
    radial-gradient(circle at 82% 12%, rgba(121, 201, 215, 0.4), transparent 18%),
    linear-gradient(145deg, rgba(255, 248, 236, 0.96), rgba(255, 254, 250, 0.96));
}

.hero__row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero__logo {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  box-shadow: 0 12px 24px rgba(84, 46, 20, 0.16);
  object-fit: cover;
}

.eyebrow {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: #8a542f;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.hero h1,
.section-title,
.card-title,
.panel h3 {
  margin: 0;
  font-family: Georgia, "Palatino Linotype", serif;
}

.hero h1 {
  font-size: 1.8rem;
}

.hero p {
  margin: 10px 0 0;
  color: var(--muted);
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.hero__pill {
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(69, 46, 31, 0.06);
}

.hero__pill strong {
  display: block;
  font-size: 0.95rem;
}

.hero__pill span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
}

.stack {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-title {
  font-size: 1.35rem;
}

.section-subtitle {
  color: var(--muted);
  font-size: 0.92rem;
}

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

.action {
  border: 0;
  text-align: left;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fffdf9, #fff2e5);
  border: 1px solid rgba(69, 46, 31, 0.08);
  box-shadow: var(--shadow);
  color: inherit;
  cursor: pointer;
}

.action strong {
  display: block;
  margin-bottom: 6px;
}

.action span {
  color: var(--muted);
  font-size: 0.9rem;
}

.action--accent {
  background: linear-gradient(135deg, rgba(244, 123, 66, 0.18), rgba(248, 196, 95, 0.24));
}

.cards {
  display: grid;
  gap: 12px;
}

.panel,
.top-card,
.banner {
  border-radius: var(--radius-lg);
  padding: 16px;
}

.top-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 243, 232, 0.92));
}

.banner {
  background: linear-gradient(135deg, rgba(121, 201, 215, 0.18), rgba(240, 143, 181, 0.12));
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-title {
  font-size: 1.1rem;
}

.meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag,
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
}

.tag {
  background: rgba(121, 201, 215, 0.14);
  color: #2b6b77;
}

.status--ok {
  background: rgba(47, 139, 87, 0.14);
  color: var(--success);
}

.status--warn {
  background: rgba(177, 109, 29, 0.14);
  color: var(--warn);
}

.status--danger {
  background: rgba(182, 69, 69, 0.14);
  color: var(--danger);
}

.split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.money {
  font-size: 1.7rem;
  font-family: Georgia, "Palatino Linotype", serif;
}

.muted {
  color: var(--muted);
}

.list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.list li {
  margin: 8px 0;
}

.tabs {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: min(calc(100% - 24px), 620px);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border-radius: 22px;
  background: rgba(255, 250, 245, 0.92);
  border: 1px solid var(--line);
  box-shadow: 0 20px 44px rgba(84, 50, 28, 0.14);
  backdrop-filter: blur(16px);
  z-index: 30;
}

.tab {
  border: 0;
  padding: 10px 8px;
  border-radius: 16px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
}

.tab.is-active {
  background: linear-gradient(135deg, rgba(244, 123, 66, 0.18), rgba(248, 196, 95, 0.22));
  color: var(--ink);
}

.screen {
  display: none;
}

.screen.is-active {
  display: block;
}

@media (max-width: 520px) {
  .hero__meta,
  .quick-actions {
    grid-template-columns: 1fr;
  }

  .tabs {
    grid-template-columns: repeat(5, 1fr);
  }

  .tab {
    font-size: 0.76rem;
    padding-left: 4px;
    padding-right: 4px;
  }
}
