* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Georgia', serif;
  background: #f3ecec;
}

.app-title, .section-title, .howto-title, .result-title, .accordion-btn {
  font-family: 'Judson', serif;
}

.app-bg {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.card {
  background: #f3ecec;
  border: 1.5px solid #9c6e79;
  border-radius: 16px;
  width: 100%;
  max-width: 680px;
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-bottom: 1px solid #9c6e79;
}

.star-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: #c0627a;
  padding: 0;
  line-height: 1;
  transition: transform 0.2s;
}

.star-btn:hover {
  transform: scale(1.2);
}

.app-title {
  font-style: italic;
  font-size: 13px;
  font-weight: 600;
  color: #6b3a4a;
  text-align: center;
  flex: 1;
  letter-spacing: 0.02em;
}

.card-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.left-panel {
  padding: 20px;
  border-right: 1px solid #9c6e79;
}

.right-panel {
  padding: 20px;
}

.section-title {
  font-weight: 700;
  font-size: 15px;
  color: #6b3a4a;
  margin-bottom: 16px;
  text-align: center;
}

.action-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 14px;
}

.btn {
  background: #f8f4ec;
  border: 1.5px solid #deb1bc;
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #6b3a4a;
  cursor: pointer;
  font-family: inherit;
  font-style: bold;
  transition: background 0.15s;
  white-space: nowrap;
}

.btn:hover {
  background: #f0d8e4;
}

.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 10px;
}

.field-label-wrap {
  flex: 1;
}

.field-label {
  font-size: 12px;
  color: #4a3f35;
  font-weight: 600;
  display: block;
}


.field-sublabel {
  font-size: 11px;
  font-style: italic;
  color: #725f4a;
  display: block;
  margin-top: 1px;
}

.input-wrap {
  display: flex;
  align-items: center;
  background: #f8f4ec;
  border: 1.5px solid #e8c8d0;
  border-radius: 20px;
  padding: 4px 10px;
  gap: 4px;
  min-width: 80px;
}

.input-wrap input {
  border: none;
  background: none;
  width: 48px;
  font-size: 13px;
  color: #4a3f35;
  font-family: inherit;
  outline: none;
  text-align: right;
}

.input-wrap span {
  font-size: 12px;
  color: #9a8a7a;
}


.howto-title {
  font-weight: 700;
  font-size: 14px;
  color: #4a3f35;
  margin-bottom: 6px;
}

.howto-text {
  font-size: 12px;
  color: #725f4a;
  line-height: 1.7;
}

.howto-text em {
  font-style: italic;
  color: #c0627a;
}

.howto-text strong {
  font-weight: 700;
  color: #c0627a;
}

.empty-state {
  text-align: center;
  color: #a0907e;
  font-size: 13px;
  font-style: italic;
  padding: 40px 0;
}

.result-title {
  font-size: 13px;
  font-weight: 700;
  color: #4a3f35;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #c8c2b0;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 0.5px solid #d8d2c0;
  font-size: 13px;
}

.result-key {
  color: #6b5e4e;
}

.result-val {
  font-weight: 700;
  color: #c0627a;
  background: #f8eef2;
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 13px;
}

@media (max-width: 600px) {
  .card-body {
    grid-template-columns: 1fr;
  }

  .left-panel {
    border-right: none;
    border-bottom: 1px solid #c8c2b0;
  }

  .app-bg {
    padding: 1rem;
  }

  .card {
    width: 100%;
  }
}

.accordion {
  border: 1.5px solid #e8c8d0;
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
}

.accordion-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #f8f4ec;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #6b3a4a;
  text-align: left;
}

.accordion-btn:hover {
  background: #f0d8e4;
}

.accordion-content {
  display: none;
  padding: 12px 14px;
  background: #fdf8f0;
  border-top: 1px solid #e8c8d0;
}

.accordion.open .accordion-content {
  display: block;
}

.accordion-detail {
  font-size: 12px;
  color: #6b5e4e;
  line-height: 1.8;
}

.accordion-detail strong {
  font-weight: 700;
  color: #c0627a;
}

.accordion-detail em {
  font-style: italic;
  color: #c0627a;
}

.accordion-detail a {
  color: #c0627a;
  font-weight: 700;
  text-decoration: none;
}

.accordion-detail a:hover {
  text-decoration: underline;
}

.result-row.highlight {
  background: #f8eef2;
  border-radius: 8px;
  transform: scale(1.02);
  transition: all 0.3s ease;
  border: 1.5px solid #e8c8d0;
  padding: 8px 8px;
}