:root {
  color-scheme: dark;
  --bg: #07110d;
  --panel: #0d1b15;
  --panel-2: #10251b;
  --text: #ecfdf5;
  --muted: #9ab5a7;
  --line: rgba(187, 247, 208, 0.14);
  --accent: #34d399;
  --accent-2: #a7f3d0;
  --danger: #f87171;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(52, 211, 153, 0.18), transparent 34rem),
    linear-gradient(135deg, #07110d 0%, #0b1712 52%, #05100b 100%);
  color: var(--text);
}

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

.app-shell {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.hero {
  padding: 22px 0 16px;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  color: var(--accent-2);
  font-weight: 800;
}

h1, h2 {
  margin: 0;
  line-height: 1.08;
}

h1 { font-size: clamp(2rem, 7vw, 4.4rem); }
h2 { font-size: clamp(1.25rem, 3vw, 1.8rem); }

.hero-text {
  margin: 12px 0 0;
  color: var(--muted);
  max-width: 680px;
  line-height: 1.55;
}

.card {
  background: linear-gradient(180deg, rgba(16, 37, 27, 0.95), rgba(13, 27, 21, 0.95));
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 22px;
  margin: 18px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.badge {
  border: 1px solid rgba(52, 211, 153, 0.32);
  color: var(--accent-2);
  background: rgba(52, 211, 153, 0.1);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
}

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

.manual-grid {
  margin: 18px 0 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

input {
  width: 100%;
  border: 1px solid rgba(187, 247, 208, 0.18);
  background: rgba(3, 10, 7, 0.54);
  color: var(--text);
  border-radius: 16px;
  padding: 13px 14px;
  outline: none;
}

input:focus {
  border-color: rgba(52, 211, 153, 0.8);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.12);
}

.quick-actions, .button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0;
}

button, .file-button {
  border: 0;
  background: linear-gradient(135deg, #10b981, #34d399);
  color: #03130c;
  border-radius: 16px;
  padding: 13px 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.18);
}

button.secondary, .file-button {
  background: rgba(52, 211, 153, 0.11);
  color: var(--accent-2);
  border: 1px solid rgba(52, 211, 153, 0.24);
  box-shadow: none;
}

button.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(187, 247, 208, 0.14);
  box-shadow: none;
}

button.delete {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.28);
  background: rgba(248, 113, 113, 0.1);
  padding: 8px 10px;
}

.file-button input { display: none; }

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

.summary-strip div {
  border: 1px solid rgba(187, 247, 208, 0.12);
  background: rgba(3, 10, 7, 0.32);
  border-radius: 18px;
  padding: 14px;
}

.summary-strip span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 5px;
}

.summary-strip strong {
  font-size: 1.35rem;
}

.status, .hint {
  color: var(--muted);
  min-height: 1.4em;
  line-height: 1.5;
}

summary {
  cursor: pointer;
  font-weight: 900;
  font-size: 1.1rem;
}

.month-picker {
  max-width: 180px;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid rgba(187, 247, 208, 0.12);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

th, td {
  text-align: left;
  border-bottom: 1px solid rgba(187, 247, 208, 0.1);
  padding: 12px;
  vertical-align: top;
}

th {
  color: var(--accent-2);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

td { color: var(--text); }

@media (max-width: 720px) {
  .app-shell { width: min(100% - 18px, 1120px); padding-top: 16px; }
  .card { padding: 18px; border-radius: 20px; }
  .section-header { align-items: flex-start; flex-direction: column; }
  .grid, .manual-grid, .summary-strip { grid-template-columns: 1fr; }
  .quick-actions button, .button-row button, .file-button { width: 100%; text-align: center; }
  .month-picker { max-width: none; }
}
