:root {
  --panel: rgba(7, 42, 35, 0.82);
  --panel-border: rgba(229, 197, 97, 0.18);
  --text: #f8f1d8;
  --muted: #d8c68d;
  --accent: #dfc15f;
  --accent-soft: rgba(223, 193, 95, 0.14);
  --shadow: 0 20px 48px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(223, 193, 95, 0.16), transparent 28%),
    radial-gradient(circle at bottom right, rgba(14, 79, 67, 0.58), transparent 32%),
    linear-gradient(160deg, #020d0a 0%, #06231d 42%, #0d4a3f 100%);
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 56px;
}

.hero,
.panel,
.profile-card {
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero {
  padding: 28px;
  margin-bottom: 24px;
  background:
    radial-gradient(circle at top right, rgba(223, 193, 95, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(3, 26, 20, 0.96), rgba(14, 79, 67, 0.92));
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand-logo-shell {
  width: min(270px, 46vw);
  padding: 14px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(14, 79, 67, 0.96), rgba(4, 31, 25, 0.96));
  box-shadow: inset 0 0 0 1px rgba(223, 193, 95, 0.14);
}

.brand-logo {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: screen;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: var(--accent);
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: "Henny Penny", cursive;
  font-weight: 400;
  color: var(--accent);
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(2.9rem, 5vw, 5rem);
  line-height: 0.95;
}

.tagline,
.hero-copy,
.panel-heading p,
.summary-label,
.empty-state,
.field-help,
.install-help,
.entry-meta,
.entry-detail-label {
  color: var(--muted);
}

.tagline {
  font-size: 1.05rem;
  margin-bottom: 0;
}

.hero-copy {
  max-width: 760px;
  margin: 18px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}

.dashboard {
  display: grid;
  grid-template-columns: 1.05fr 1.4fr;
  gap: 24px;
}

.panel {
  padding: 24px;
}

.panel-wide {
  grid-column: 1 / -1;
}

.panel-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}

.entry-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
}

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

input,
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(223, 193, 95, 0.18);
  border-radius: 14px;
  background: rgba(249, 244, 224, 0.96);
  color: #10231e;
}

input::placeholder,
textarea::placeholder {
  color: #5f675d;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    opacity 160ms ease;
}

button:hover {
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

button[type="submit"],
#confirm-delete-button {
  background: linear-gradient(135deg, #a88425, #f0d873 50%, #bf9633);
  color: #12231d;
}

.secondary-button,
.install-button,
.entry-action {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(223, 193, 95, 0.18);
}

.summary-grid,
.profile-details,
.install-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.summary-grid {
  margin: 22px 0 26px;
}

.summary-card,
.profile-card,
.entry-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(3, 26, 20, 0.58);
  border: 1px solid rgba(223, 193, 95, 0.18);
}

.summary-card strong,
.profile-details strong {
  display: block;
  margin-top: 6px;
  font-size: 1.2rem;
  color: var(--text);
}

.profile-card {
  margin-bottom: 24px;
}

.install-guide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.install-details {
  margin-top: 10px;
}

.install-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(223, 193, 95, 0.08);
  border: 1px solid rgba(223, 193, 95, 0.18);
  color: var(--accent);
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.install-summary::-webkit-details-marker {
  display: none;
}

.install-summary::after {
  content: "+";
  font-size: 1.3rem;
  line-height: 1;
}

.install-details[open] .install-summary::after {
  content: "-";
}

.install-details[open] .install-guide {
  margin-top: 14px;
}

.install-card {
  position: relative;
  padding: 18px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(223, 193, 95, 0.12), transparent 30%),
    rgba(3, 26, 20, 0.58);
  border: 1px solid rgba(223, 193, 95, 0.18);
}

.install-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.install-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(223, 193, 95, 0.14);
  border: 1px solid rgba(223, 193, 95, 0.18);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.install-card h3 {
  margin-bottom: 0;
}

.install-steps {
  display: grid;
  gap: 10px;
}

.install-card p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.step-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  flex: 0 0 auto;
  background: linear-gradient(135deg, #a88425, #f0d873 50%, #bf9633);
  color: #12231d;
  font-size: 0.85rem;
  font-weight: 800;
}

.entry-list {
  display: grid;
  gap: 14px;
}

.entry-card-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.entry-card h4 {
  margin: 0;
  font-size: 1.4rem;
}

.entry-detail {
  margin-top: 12px;
}

.entry-detail-label {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.entry-notes {
  margin: 6px 0 0;
  white-space: pre-wrap;
}

.entry-photo-wrap {
  margin-top: 14px;
}

.entry-photo {
  display: block;
  width: min(100%, 280px);
  margin-top: 8px;
  border-radius: 16px;
  border: 1px solid rgba(223, 193, 95, 0.18);
}

.entry-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.delete-action {
  color: #f4cf73;
}

.confirm-dialog {
  border: 0;
  padding: 0;
  background: transparent;
}

.confirm-dialog::backdrop {
  background: rgba(47, 36, 31, 0.32);
}

.confirm-dialog-card {
  min-width: min(92vw, 420px);
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--panel-border);
  background: linear-gradient(180deg, #08241d, #0d3b32);
  box-shadow: var(--shadow);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

@media (max-width: 900px) {
  .dashboard,
  .summary-grid,
  .profile-details,
  .install-guide {
    grid-template-columns: 1fr;
  }

  .hero-brand,
  .panel-heading-row,
  .entry-card-header {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1000px);
    padding-top: 20px;
  }

  .brand-logo-shell {
    width: min(250px, 74vw);
  }
}
