* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: 16px;
  background: #f5f7fa;
  color: #222;
}

.container {
  max-width: 960px;
  min-width: 540px;
  margin: 0 auto;
  padding: 0;
}

h1 {
  margin-bottom: 6px;
}

.subtitle {
  margin-top: 0;
  color: #666;
}

.upload-box {
  margin: 24px 0;
}

.upload-label {
  display: inline-block;
  padding: 12px 20px;
  background: #111;
  color: white;
  border-radius: 8px;
  cursor: pointer;
}

input[type="file"] {
  display: none;
}

.reset-button {
  display: inline-block;
  padding: 12px 20px;
  background: #ddd;
  border-radius: 8px;
  cursor: pointer;
}

.tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 20px;
}

.tab-btn {
  padding: 10px 16px;
  border: none;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  background: #ddd;
}

.tab-btn.active {
  background: #111;
  color: white;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.flex-row {
  display: flex;
  flex-direction: row;
  flex-wrap: auto;
  gap: 2rem;
}

.card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  width: 100%;
}

.section-title {
  font-family: monospace;
  font-size: 1rem;
  color: green;
}
.section-title:first-child {
  margin: 0 0 1.5rem;
  color: #999;
}
.section-title:last-child {
  margin: 1rem 0 0;
}

.info-row {
  margin: 8px 0;
}

.more-btn,
.map-btn {
  margin-top: 14px;
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.more-btn {
  background: #222;
  color: white;
}

.map-btn {
  background: #eaeaea;
}

.hidden {
  display: none;
}
.preview-image {
  margin: 0 0 1rem;
}
.preview-image > img {
  max-width: 220px;
  max-height: 220px;
  display: block;
  margin-bottom: 1rem;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid #ddd;
}

.raw-box {
  margin-bottom: 20px;
  width: 100%;
}

.raw-title {
  font-family: monospace;
  font-size: 1rem;
  margin: 1rem 0;
}

textarea {
  width: 100%;
  height: 500px;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid #ccc;
  resize: vertical;
  font-family: monospace;
}

/* page drop file */

.pageDropOverlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(242, 239, 233, 0.68);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease;
  z-index: 1000;
}

body.fileDropActive .pageDropOverlay {
  opacity: 1;
  pointer-events: auto;
}

.pageDropCard {
  max-width: 25rem;
  width: min(100%, 420px);
  border-radius: 1rem;
  border: 1px solid rgb(255, 255, 255);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  padding: 22px 20px;
  text-align: center;
  visibility: visible;
}

.pageDropCard strong {
  display: block;
  font-size: 20px;
  letter-spacing: -.02em;
}

.pageDropCard span {
  display: block;
  margin-top: 8px;
  color: var(--inkDim);
  line-height: 1.45;
  font-size: 14px;
}