:root {
  color-scheme: light;
  --bg: #f6efe5;
  --surface: rgba(255, 250, 245, 0.88);
  --surface-strong: #fffaf4;
  --line: rgba(104, 79, 53, 0.16);
  --text: #2e241d;
  --muted: #756556;
  --accent: #b9552f;
  --accent-strong: #913f1f;
  --accent-soft: #f3d3bf;
  --ok: #265f46;
  --warn: #8d5b12;
  --danger: #923632;
  --shadow: 0 20px 60px rgba(88, 55, 26, 0.14);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(244, 200, 168, 0.7), transparent 26%),
    radial-gradient(circle at top right, rgba(251, 229, 190, 0.7), transparent 24%),
    linear-gradient(180deg, #fcf4eb 0%, var(--bg) 100%);
  color: var(--text);
  font-family: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  padding: 24px 16px 48px;
}

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

button {
  border: 0;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.app-shell {
  max-width: 1100px;
  margin: 0 auto;
}

.hero,
.panel,
.proof-sheet {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(255, 249, 242, 0.95), rgba(255, 240, 226, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.eyebrow,
.section-kicker,
.record-label {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1,
.section-heading h2,
.record-title,
#proof-title {
  margin: 0;
  font-family: "SUIT", "Pretendard", "Noto Sans KR", sans-serif;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 0.96;
}

.hero-copy,
.section-note,
.empty-state,
.proof-copy,
.record-notes,
.proof-meta,
.profile-meta {
  color: var(--muted);
}

.hero-copy {
  max-width: 660px;
  margin: 16px 0 0;
  line-height: 1.6;
  font-size: 1rem;
}

.hero-actions,
.record-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 22px;
}

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

.panel {
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.stack {
  display: grid;
  gap: 16px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.section-heading h2 {
  font-size: 1.4rem;
}

.section-note {
  margin: 0;
  font-size: 0.92rem;
  text-align: right;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 0.92rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  color: var(--text);
}

.field textarea {
  resize: vertical;
  min-height: 98px;
}

.file-field input {
  padding: 12px;
}

.primary,
.secondary,
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 160ms ease, background-color 160ms ease, opacity 160ms ease;
}

.primary:hover,
.secondary:hover,
.ghost:hover,
.proof-close:hover {
  transform: translateY(-1px);
}

.primary {
  background: var(--accent);
  color: #fffaf7;
}

.primary:active {
  background: var(--accent-strong);
}

.secondary {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.ghost {
  background: rgba(118, 98, 78, 0.08);
  color: var(--text);
}

.import-label {
  cursor: pointer;
}

.profile-card,
.record-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  border: 1px solid rgba(121, 93, 68, 0.12);
}

.profile-card h3 {
  margin: 0 0 8px;
}

.profile-meta {
  margin: 0;
  line-height: 1.65;
}

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

.record-title {
  font-size: 1.2rem;
}

.record-badge {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.status-ok {
  background: rgba(38, 95, 70, 0.12);
  color: var(--ok);
}

.status-warn {
  background: rgba(141, 91, 18, 0.12);
  color: var(--warn);
}

.status-danger {
  background: rgba(146, 54, 50, 0.12);
  color: var(--danger);
}

.record-meta,
.proof-meta {
  display: grid;
  gap: 6px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.record-notes {
  margin: 0;
  line-height: 1.6;
}

.record-image,
.proof-image {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(104, 79, 53, 0.14);
  background: #f7efe8;
  object-fit: cover;
}

.record-image {
  max-height: 240px;
}

.proof-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.proof-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(32, 22, 14, 0.56);
}

.proof-sheet {
  position: relative;
  width: min(640px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  margin: 12px auto;
  overflow: auto;
  padding: 24px;
  border-radius: 30px;
  background: rgba(255, 250, 244, 0.98);
  box-shadow: 0 24px 70px rgba(18, 9, 2, 0.28);
}

.proof-close {
  position: sticky;
  top: 0;
  float: right;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(80, 60, 44, 0.08);
  color: var(--text);
  font-size: 1.5rem;
}

.proof-card {
  display: grid;
  gap: 16px;
}

.proof-card h2 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1;
}

.proof-header {
  display: grid;
  gap: 8px;
}

.proof-copy {
  margin: 0;
  line-height: 1.6;
}

.proof-pet {
  padding: 16px;
  border-radius: 20px;
  background: rgba(185, 85, 47, 0.08);
}

.proof-footer {
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    padding: 12px 12px 36px;
  }

  .hero,
  .panel,
  .proof-sheet {
    padding: 20px;
    border-radius: 24px;
  }

  .field-grid,
  .section-heading {
    grid-template-columns: 1fr;
    display: grid;
  }

  .section-note {
    text-align: left;
  }

  .hero-actions,
  .record-actions {
    flex-direction: column;
  }

  .primary,
  .secondary,
  .ghost {
    width: 100%;
  }
}
