.admin-body {
  background: #f7f6f4;
  color: #39352f;
  font-family: system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  border-bottom: 1px solid #ded7d0;
  padding: 22px 40px;
}
.admin-header strong {
  font:
    24px "Gowun Batang", "Nanum Myeongjo", "Noto Serif KR",
    serif;
}
.admin-header span {
  margin-left: 20px;
  color: #968575;
}
.admin-header a {
  font-size: 14px;
  text-decoration: none;
}
.login-card {
  max-width: 400px;
  margin: 10vh auto;
  background: white;
  padding: 30px;
  border: 1px solid #e6ded7;
  border-radius: 14px;
}
.login-card h1 {
  font:
    28px "Gowun Batang", "Nanum Myeongjo", "Noto Serif KR",
    serif;
  text-align: center;
}
.login-card > p {
  text-align: center;
  color: #887868;
}
.admin-nav {
  display: flex;
  gap: 8px;
  padding: 22px 40px;
  align-items: center;
  flex-wrap: wrap;
}
.admin-nav button {
  background: white;
  color: #6e6055;
  border: 1px solid #ddd2c9;
  border-radius: 6px;
  font-size: 14px;
  min-height: 40px;
  padding: 8px 16px;
}
.admin-nav button.active {
  background: #75624f;
  color: white;
}
.admin-nav .logout {
  margin-left: auto;
}
.admin-panel {
  margin: 0 40px 40px;
}
.edit-layout {
  display: grid;
  grid-template-columns: minmax(340px, 620px) 1fr;
  gap: 45px;
  align-items: start;
}
.editor-fields {
  background: white;
  border: 1px solid #e3dcd5;
  border-radius: 12px;
  padding: 28px;
}
.editor-fields details {
  border-bottom: 1px solid #e5ddd7;
  padding: 18px 0;
}
.editor-fields summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
}
.editor-fields label {
  display: block;
  margin: 18px 0;
}
.editor-fields label > span {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  color: #75624f;
}
.editor-fields input[type="range"] {
  padding: 0;
  accent-color: #987b62;
}
.editor-fields input[type="color"] {
  height: 46px;
  padding: 5px;
}
.editor-fields textarea {
  min-height: 130px;
  font-family: "Gowun Batang", "Nanum Myeongjo", "Noto Serif KR", serif;
  line-height: 1.8;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.save-bar {
  position: sticky;
  bottom: 14px;
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
  background: #fffefb;
  padding: 15px;
  border: 1px solid #d9cbbb;
  border-radius: 8px;
  box-shadow: 0 4px 20px #44351a15;
  z-index: 2;
}
.save-bar span {
  color: #7e6b58;
  font-size: 14px;
}
.preview-wrap {
  position: sticky;
  top: 18px;
  text-align: center;
}
.preview-label {
  font:
    14px system-ui,
    sans-serif;
  color: #7d6c5e;
  margin-bottom: 10px;
}
.preview-wrap iframe {
  width: 400px;
  max-width: 100%;
  height: 80vh;
  border: 1px solid #d7cdc4;
  border-radius: 18px;
  background: white;
}
.stats {
  display: flex;
  gap: 18px;
  margin: 20px 0;
  flex-wrap: wrap;
}
.stat {
  background: white;
  min-width: 155px;
  padding: 20px 26px;
  border: 1px solid #e2d8d0;
  border-radius: 10px;
}
.stat strong {
  font:
    36px "Cormorant Garamond", "Gowun Batang",
    serif;
  display: block;
}
.stat span {
  color: #877466;
  font-size: 14px;
}
.response-tools {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 20px 0;
}
.response-tools input {
  max-width: 280px;
}
.response-tools select {
  width: auto;
}
.table-wrap {
  overflow: auto;
  background: white;
  border: 1px solid #e3d9d0;
  border-radius: 10px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  white-space: nowrap;
}
th,
td {
  text-align: left;
  padding: 13px 15px;
  border-bottom: 1px solid #eee7e0;
}
th {
  font-weight: 500;
  color: #897360;
  background: #fbfaf8;
}
td button {
  min-height: 28px;
  padding: 3px 9px;
  font-size: 13px;
  margin-right: 5px;
}
.empty {
  text-align: center;
  padding: 65px;
  color: #837163;
}
.integration-card {
  max-width: 650px;
  background: white;
  padding: 30px;
  border: 1px solid #e0d6cd;
  border-radius: 12px;
}
.integration-card h2 {
  font-family: "Gowun Batang", "Nanum Myeongjo", "Noto Serif KR", serif;
  margin-bottom: 20px;
}
.integration-card label {
  display: block;
  margin: 20px 0;
}
.integration-card label span {
  display: block;
  margin-bottom: 8px;
}
.integration-card code {
  font-size: 13px;
  overflow-wrap: anywhere;
  background: #f1ede8;
  padding: 3px 6px;
}
.integration-card ol {
  padding-left: 20px;
}
.integration-card li {
  margin: 12px 0;
}
.notice {
  padding: 14px 18px;
  background: #efe9e2;
  border-radius: 8px;
  margin: 15px 0;
}
.media-admin {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}
.media-card {
  background: white;
  padding: 15px;
  border: 1px solid #ddd1c6;
  border-radius: 10px;
}
.media-card img,
.media-card video {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.media-card button {
  width: 100%;
  margin-top: 12px;
}
.small-help {
  font-size: 13px;
  color: #8b7563;
  margin: 8px 0;
}
.asset-upload {
  background: #f6f1ec;
  padding: 12px;
  border-radius: 6px;
}
.asset-upload button {
  margin-top: 10px;
  font-size: 14px;
  min-height: 36px;
}
.checkbox-line input {
  width: auto;
  margin-right: 10px;
}
@media (max-width: 900px) {
  .edit-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .preview-wrap {
    position: static;
    grid-row: 1;
  }
  .preview-wrap iframe {
    height: 500px;
  }
  .admin-header {
    padding: 18px;
  }
  .admin-header span {
    display: none;
  }
  .admin-nav {
    padding: 18px;
  }
  .admin-panel {
    margin: 0 18px 30px;
  }
  .editor-fields {
    padding: 20px;
  }
  .login-card {
    margin: 50px 20px;
  }
  .response-tools {
    flex-wrap: wrap;
  }
  .save-bar {
    bottom: 4px;
  }
}
