:root {
  --ink: #0d1330;
  --muted: #6c6d7d;
  --paper: #f7f7fb;
  --card: #ffffff;
  --line: #e7e7ef;
  --primary: #5627fb;
  --primary-dark: #3d17c9;
  --lime: #c8f33a;
  --orange: #ff8d53;
  --cyan: #62dbe7;
  --shadow: 0 18px 48px rgba(28, 26, 62, .09);
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.shell { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(247,247,251,.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(231,231,239,.85);
}
.topbar { min-height: 74px; display: flex; align-items: center; gap: 30px; }
.logo { display: flex; align-items: center; gap: 11px; font-weight: 900; font-size: 22px; letter-spacing: -.06em; }
.logo-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: var(--primary); color: white; box-shadow: 0 8px 20px rgba(86,39,251,.28); font-size: 19px; }
.desktop-nav { display: flex; align-items: center; gap: 6px; }
.nav-btn { border: 0; background: transparent; padding: 10px 13px; border-radius: 12px; color: var(--muted); font-weight: 700; }
.nav-btn:hover, .nav-btn.active { color: var(--ink); background: white; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 13px; background: white; font-size: 18px; }
.btn { border: 0; border-radius: 13px; padding: 12px 17px; font-weight: 800; transition: .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: white; }
.btn-accent { background: var(--primary); color: white; }
.btn-soft { background: #eeecff; color: var(--primary-dark); }
.mobile-nav { display: none; }

main { padding: 36px 0 80px; }
.view { display: none; animation: fade .24s ease; }
.view.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }
.eyebrow { margin: 0 0 8px; color: var(--primary); font-size: 14px; font-weight: 900; letter-spacing: .02em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 9px; font-size: clamp(28px, 4vw, 45px); line-height: 1.12; letter-spacing: -.055em; }
h2 { font-size: 25px; letter-spacing: -.04em; }
.intro { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; margin-bottom: 28px; }
.intro-main { position: relative; overflow: hidden; min-height: 240px; padding: 38px; border-radius: 30px; background: var(--ink); color: white; }
.intro-main::after { content: "써"; position: absolute; right: -8px; bottom: -58px; font-size: 220px; line-height: 1; font-weight: 950; color: rgba(255,255,255,.055); transform: rotate(-7deg); }
.intro-main p { max-width: 570px; color: #c7c7d3; font-size: 17px; }
.intro-actions { display: flex; gap: 10px; position: relative; z-index: 1; }
.intro-actions .btn-accent { background: var(--lime); color: var(--ink); }
.weekly { padding: 26px; border-radius: 30px; background: var(--lime); display: flex; flex-direction: column; justify-content: space-between; }
.weekly-top { display: flex; align-items: center; justify-content: space-between; }
.weekly-number { font-size: 58px; font-weight: 950; line-height: 1; letter-spacing: -.07em; }
.weekly small { font-weight: 800; }
.weekly a { font-weight: 900; text-decoration: underline; text-underline-offset: 4px; }

.toolbar { display: flex; gap: 12px; align-items: center; margin: 26px 0 20px; }
.search { flex: 1; min-width: 0; position: relative; }
.search input { width: 100%; height: 50px; border: 1px solid var(--line); border-radius: 15px; background: white; padding: 0 18px 0 46px; outline: none; }
.search input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(86,39,251,.1); }
.search span { position: absolute; left: 17px; top: 13px; color: var(--muted); }
select { height: 50px; border: 1px solid var(--line); background: white; border-radius: 15px; padding: 0 36px 0 15px; color: var(--ink); font-weight: 700; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 5px; scrollbar-width: none; }
.chip { border: 1px solid var(--line); background: white; color: var(--muted); border-radius: 999px; padding: 9px 14px; white-space: nowrap; font-weight: 750; }
.chip.active { border-color: var(--ink); background: var(--ink); color: white; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin: 34px 0 16px; }
.section-head h2 { margin: 0; }
.section-head a { color: var(--muted); font-weight: 800; font-size: 14px; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.product-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; transition: .2s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card-visual { height: 172px; padding: 20px; position: relative; overflow: hidden; display: flex; align-items: end; }
.visual-purple { background: linear-gradient(140deg, #e8e4ff, #bcb3ff); }
.visual-sky { background: linear-gradient(140deg, #dff8ff, #8fe2ef); }
.visual-orange { background: linear-gradient(140deg, #fff0d9, #ffc69f); }
.visual-dark { background: linear-gradient(140deg, #353548, #14141f); }
.visual-pink { background: linear-gradient(140deg, #ffe6ef, #ffabc7); }
.visual-green { background: linear-gradient(140deg, #edffd5, #bfe969); }
.app-icon { width: 72px; height: 72px; position: relative; z-index: 1; display: grid; place-items: center; border-radius: 22px; background: white; color: var(--ink); font-size: 24px; font-weight: 950; box-shadow: 0 16px 30px rgba(23,24,34,.15); letter-spacing: -.08em; }
.mock-lines { position: absolute; width: 160px; height: 118px; right: 18px; top: 22px; background: rgba(255,255,255,.75); border-radius: 18px; transform: rotate(4deg); box-shadow: 0 14px 26px rgba(23,24,34,.08); }
.mock-lines::before, .mock-lines::after { content: ""; position: absolute; left: 18px; right: 18px; height: 12px; border-radius: 6px; background: rgba(82,67,232,.18); }
.mock-lines::before { top: 24px; box-shadow: 0 24px 0 rgba(23,24,34,.08), 0 48px 0 rgba(23,24,34,.08); }
.mock-lines::after { bottom: 14px; right: 75px; background: var(--primary); }
.rank-badge { position: absolute; top: 14px; left: 14px; z-index: 2; min-width: 34px; height: 34px; padding: 0 10px; display: grid; place-items: center; border-radius: 11px; background: rgba(23,24,34,.9); color: white; font-weight: 900; font-size: 13px; }
.card-body { padding: 19px; }
.card-title-row { display: flex; align-items: start; gap: 8px; }
.card-title-row h3 { margin: 0; font-size: 19px; letter-spacing: -.035em; }
.verified { color: var(--primary); font-size: 13px; }
.card-body p { min-height: 48px; margin: 8px 0 16px; color: var(--muted); font-size: 15px; }
.meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tag { padding: 6px 9px; border-radius: 8px; background: #f1f1f6; color: #606170; font-size: 12px; font-weight: 800; }
.stats { color: var(--muted); font-size: 13px; font-weight: 750; }
.empty { display: none; padding: 70px 20px; text-align: center; border: 1px dashed #cfcfdb; border-radius: var(--radius); color: var(--muted); }

.feature-row { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; margin-top: 36px; }
.feature-box { min-height: 210px; border-radius: 28px; padding: 28px; background: white; border: 1px solid var(--line); }
.feature-box.dark { background: var(--primary); color: white; border: 0; }
.feature-box.dark p { color: #d8d4ff; }
.mini-list { display: grid; gap: 9px; }
.mini-item { display: flex; align-items: center; gap: 12px; padding: 11px; border-radius: 14px; background: #f6f6fa; }
.mini-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--ink); color: white; font-size: 12px; font-weight: 900; }

.page-title { margin-bottom: 24px; }
.page-title p { color: var(--muted); }
.saved-wrap, .profile-wrap { min-height: 460px; background: white; border: 1px solid var(--line); border-radius: 28px; padding: 30px; }
.saved-empty { height: 370px; display: grid; place-items: center; text-align: center; }
.empty-art { width: 80px; height: 80px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 26px; background: #eeecff; color: var(--primary); font-size: 30px; }
.profile-head { display: flex; align-items: center; gap: 18px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.avatar { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: white; font-weight: 900; font-size: 23px; }
.profile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.metric { padding: 20px; border-radius: 18px; background: #f6f6fa; }
.metric strong { display: block; font-size: 27px; }
.metric span { color: var(--muted); font-size: 13px; font-weight: 700; }

dialog { width: min(760px, calc(100% - 28px)); max-height: calc(100vh - 28px); padding: 0; border: 0; border-radius: 28px; box-shadow: 0 30px 90px rgba(11,11,24,.28); overflow: auto; }
dialog::backdrop { background: rgba(17,17,28,.56); backdrop-filter: blur(4px); }
.dialog-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.dialog-head h2 { margin: 0; }
.close { width: 38px; height: 38px; border: 0; border-radius: 12px; background: #f1f1f5; font-size: 18px; }
.dialog-body { padding: 25px; }
.detail-hero { display: grid; grid-template-columns: 120px 1fr; gap: 22px; align-items: center; }
.detail-icon { width: 120px; height: 120px; display: grid; place-items: center; border-radius: 32px; background: linear-gradient(140deg,#e8e4ff,#bcb3ff); font-size: 35px; font-weight: 950; box-shadow: inset 0 0 0 1px rgba(82,67,232,.08); }
.detail-hero p { color: var(--muted); }
.detail-actions { display: flex; gap: 9px; margin-top: 16px; flex-wrap: wrap; }
.detail-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 26px 0; }
.info-box { padding: 14px; border-radius: 15px; background: #f5f5f9; }
.info-box small { display: block; color: var(--muted); }
.review { margin-top: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; }
.review strong { display: block; margin-bottom: 6px; }
.review p { margin: 0; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 7px; color: #3e3f4b; font-size: 14px; font-weight: 800; }
label.full { grid-column: 1 / -1; }
input, textarea { border: 1px solid var(--line); border-radius: 13px; padding: 12px 14px; outline: none; }
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(86,39,251,.09); }
.form-note { padding: 14px; border-radius: 14px; background: #fff7df; color: #79611d; font-size: 14px; }
.submit-row { display: flex; justify-content: end; gap: 10px; margin-top: 20px; }
#toast { position: fixed; left: 50%; bottom: 28px; z-index: 60; transform: translate(-50%, 20px); padding: 13px 18px; border-radius: 13px; background: var(--ink); color: white; font-weight: 750; opacity: 0; pointer-events: none; transition: .22s ease; box-shadow: var(--shadow); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
footer { padding: 28px 0 100px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; }

@media (max-width: 820px) {
  .shell { padding: 0 18px; }
  .topbar { min-height: 64px; }
  .desktop-nav, .top-actions .icon-btn { display: none; }
  .top-actions .btn { padding: 10px 13px; }
  main { padding-top: 24px; }
  .intro, .feature-row { grid-template-columns: 1fr; }
  .intro-main { min-height: 225px; padding: 28px; }
  .weekly { min-height: 185px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .toolbar { align-items: stretch; flex-wrap: wrap; }
  .search { flex-basis: 100%; }
  .toolbar select { flex: 1; }
  .mobile-nav { position: fixed; display: grid; grid-template-columns: repeat(4, 1fr); left: 10px; right: 10px; bottom: 10px; z-index: 40; padding: 7px; border: 1px solid rgba(231,231,239,.9); border-radius: 20px; background: rgba(255,255,255,.94); box-shadow: 0 14px 40px rgba(20,20,39,.18); backdrop-filter: blur(16px); }
  .mobile-nav button { display: grid; gap: 2px; place-items: center; border: 0; background: transparent; border-radius: 13px; padding: 7px 3px; color: var(--muted); font-size: 11px; font-weight: 800; }
  .mobile-nav button.active { background: #eeecff; color: var(--primary); }
  .mobile-nav b { font-size: 18px; line-height: 1.1; }
}
@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; }
  .card-visual { height: 158px; }
  .intro-actions { flex-direction: column; align-items: stretch; }
  .intro-actions .btn { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  label.full { grid-column: auto; }
  .detail-hero { grid-template-columns: 84px 1fr; gap: 15px; }
  .detail-icon { width: 84px; height: 84px; border-radius: 24px; }
  .detail-info, .profile-grid { grid-template-columns: 1fr; }
  .footer-row { display: grid; }
}

/* ── 서버 렌더링 버전 보정 ────────────────────────────────
   프로토타입은 버튼으로 화면을 전환했지만, 실제 서비스는
   페이지 이동(<a> 태그)을 씁니다. 그래서 버튼용으로 잡혀 있던
   스타일을 링크에도 똑같이 적용해줍니다. */

.view { display: block; }

.nav-btn { display: inline-block; text-decoration: none; }

.chip { display: inline-block; text-decoration: none; }

.product-card a { display: block; color: inherit; text-decoration: none; }

.mini-item strong a { color: inherit; text-decoration: none; }

.detail-icon { display: grid; place-items: center; color: white; font-weight: 900; font-size: 34px; }

@media (max-width: 820px) {
  .mobile-nav a {
    display: grid; gap: 2px; place-items: center;
    border-radius: 13px; padding: 7px 3px;
    color: var(--muted); font-size: 11px; font-weight: 800;
    text-decoration: none;
  }
  .mobile-nav a.active { background: #eeecff; color: var(--primary); }
  .mobile-nav b { font-size: 18px; line-height: 1.1; }
}

/* ── 약관 · 개인정보처리방침 ──────────────────────────── */
.legal { max-width: 760px; padding-bottom: 40px; line-height: 1.75; }
.legal h2 { margin: 34px 0 10px; font-size: 19px; letter-spacing: -.03em; }
.legal p { margin: 0 0 12px; color: #3e3f4b; }
.legal ul { margin: 0 0 14px; padding-left: 20px; color: #3e3f4b; }
.legal li { margin-bottom: 6px; }
.legal-table { width: 100%; margin: 12px 0 18px; border-collapse: collapse; font-size: 15px; }
.legal-table th, .legal-table td { padding: 11px 13px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table thead th { background: #f5f5f9; font-weight: 800; }
.legal-table tbody th { width: 110px; background: #fafafd; font-weight: 800; }
.legal-foot { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* ── 로그인 · 가입 · 계정 ─────────────────────────────── */
.auth-wrap { display: grid; place-items: center; padding: 30px 0 60px; }
.auth-card { width: 100%; max-width: 430px; padding: 38px 34px; border: 1px solid var(--line); border-radius: 26px; background: var(--card); box-shadow: var(--shadow); text-align: center; }
.auth-card h1 { font-size: 25px; margin-bottom: 10px; }
.auth-mark { width: 58px; height: 58px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 18px; background: var(--primary); color: white; font-size: 26px; font-weight: 900; }
.auth-avatar { width: 58px; height: 58px; margin: 0 auto 18px; display: block; border-radius: 50%; object-fit: cover; }
.auth-lead { color: var(--muted); margin-bottom: 24px; }
.auth-buttons { display: grid; gap: 10px; margin-bottom: 20px; }
.auth-btn { display: block; padding: 14px; border-radius: 14px; font-weight: 800; text-decoration: none; transition: .18s ease; }
.auth-btn:hover { transform: translateY(-1px); }
.auth-btn.bordered { border: 1px solid var(--line); }
.auth-fine { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0; }
.auth-fine a { text-decoration: underline; text-underline-offset: 3px; }
.auth-submit { width: 100%; margin-top: 6px; }

.agree-form { text-align: left; display: grid; gap: 12px; margin: 22px 0; }
.agree-row { display: flex; align-items: start; gap: 10px; font-size: 15px; font-weight: 600; color: #3e3f4b; cursor: pointer; }
.agree-row input { width: 19px; height: 19px; margin-top: 1px; flex: none; accent-color: var(--primary); }
.agree-row b { color: var(--primary); }
.agree-row a { text-decoration: underline; text-underline-offset: 3px; }
.collect-box { padding: 16px; border-radius: 15px; background: #f5f5f9; font-size: 14px; text-align: left; }
.collect-box strong { display: block; margin-top: 10px; }
.collect-box strong:first-child { margin-top: 0; }
.collect-box p { margin: 3px 0 0; color: var(--muted); }

.nickname-form { display: flex; align-items: end; gap: 10px; margin-bottom: 8px; }
.nickname-form label { flex: 1; }
.save-ok { color: var(--primary); font-size: 14px; font-weight: 700; }
.account-actions { display: flex; align-items: center; gap: 16px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.leave-link { color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.leave-btn { width: 100%; background: #c0392b; color: white; }
.my-service { display: flex; align-items: center; gap: 10px; padding: 14px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 15px; }
.status { margin-left: auto; padding: 4px 10px; border-radius: 999px; background: #f5f5f9; font-size: 13px; font-weight: 800; color: var(--muted); }
.status-approved { background: #e7fbef; color: #1e7a45; }
.status-pending { background: #fff7df; color: #79611d; }
img.avatar { object-fit: cover; }

/* ── 서비스 등록 · 수정 · 검수 ────────────────────────── */
.service-form { max-width: 760px; }
.service-form .form-note { margin-bottom: 20px; }
.error-note { background: #ffeceb; color: #a5342a; }
.error-note div { margin: 2px 0; }
.check-row { display: flex; flex-wrap: wrap; gap: 8px; }
.check-chip { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; background: white; font-weight: 700; font-size: 14px; cursor: pointer; }
.check-chip input { width: 16px; height: 16px; accent-color: var(--primary); }
.check-chip:has(input:checked) { border-color: var(--ink); background: var(--ink); color: white; }
.color-chip { display: inline-grid; justify-items: center; gap: 4px; cursor: pointer; }
.color-chip input { display: none; }
.color-chip .swatch { width: 38px; height: 38px; border-radius: 12px; border: 2px solid transparent; }
.color-chip:has(input:checked) .swatch { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23,24,34,.12); }
.color-chip small { color: var(--muted); font-weight: 700; }

.my-service { gap: 12px; }
.my-service-main { flex: 1; min-width: 0; }
.reject-note { margin: 5px 0 0; color: #a5342a; font-size: 13px; }
.my-service-actions { display: flex; align-items: center; gap: 12px; }
.my-service-actions a, .my-service-actions button { border: 0; background: none; padding: 0; color: var(--muted); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.my-service-actions form { display: inline; }
.my-service-actions button { color: #c0392b; }

.admin-card { padding: 20px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.admin-head { display: flex; gap: 14px; margin-bottom: 14px; }
.admin-icon { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 16px; color: white; font-weight: 900; }
.admin-title strong { font-size: 17px; margin-right: 8px; }
.admin-title p { margin: 6px 0 0; color: var(--muted); }
.admin-meta { display: grid; grid-template-columns: 80px 1fr; gap: 6px 12px; margin: 0 0 14px; font-size: 14px; }
.admin-meta dt { color: var(--muted); font-weight: 800; }
.admin-meta dd { margin: 0; word-break: break-all; }
.admin-meta a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.admin-desc { padding: 14px; border-radius: 14px; background: #f5f5f9; font-size: 14px; color: #3e3f4b; }
.admin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.reject-form { display: flex; gap: 8px; flex: 1; min-width: 240px; }
.reject-form input { flex: 1; border: 1px solid var(--line); border-radius: 13px; padding: 10px 13px; }
.status-rejected { background: #ffeceb; color: #a5342a; }
.status-hidden { background: #eeeef4; color: #5a5b6b; }

/* ── 이미지 업로드 ────────────────────────────────────── */
.hint { color: var(--muted); font-weight: 600; }
input[type="file"] { border: 1px dashed var(--line); border-radius: 13px; padding: 12px 14px; background: #fafafd; font-size: 14px; }
.img-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.img-item { width: 120px; }
.img-item img { width: 120px; height: 80px; object-fit: cover; border-radius: 11px; border: 1px solid var(--line); }
.img-del { display: flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 13px; color: #c0392b; font-weight: 700; cursor: pointer; }
.img-del input { width: 15px; height: 15px; accent-color: #c0392b; }
.card-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-cover { width: 100%; max-height: 360px; object-fit: cover; border-radius: 24px; margin-bottom: 22px; }
.shot-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.shot-row img { height: 260px; border-radius: 16px; border: 1px solid var(--line); }

/* ── 로고 ─────────────────────────────────────────────── */
.logo { gap: 0; }
.logo img { height: 26px; width: auto; display: block; }
.auth-icon { width: 64px; height: 64px; margin: 0 auto 18px; display: block; border-radius: 18px; }
@media (max-width: 820px) {
  .logo img { height: 23px; }
}

/* ── 검수 화면 이미지 ─────────────────────────────────── */
.admin-images { margin-top: 14px; }
.admin-images-label { margin: 0 0 8px; font-size: 14px; font-weight: 800; }
.admin-images-label small { margin-left: 6px; color: var(--muted); font-weight: 600; }
.admin-img-row { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-img { position: relative; display: block; width: 150px; border-radius: 13px; overflow: hidden; border: 1px solid var(--line); }
.admin-img img { display: block; width: 100%; height: 100px; object-fit: cover; }
.admin-img span { position: absolute; left: 6px; top: 6px; padding: 3px 8px; border-radius: 999px; background: rgba(13,19,48,.78); color: white; font-size: 11px; font-weight: 800; }
.admin-img:hover { border-color: var(--ink); }
.admin-noimg { margin-top: 12px; padding: 12px 14px; border-radius: 13px; background: #f5f5f9; color: var(--muted); font-size: 14px; }

/* ── 등록 종류 선택 ───────────────────────────────────── */
.field-label { margin: 18px 0 8px; font-size: 14px; font-weight: 800; }
.type-picker { margin-bottom: 20px; }
.type-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.type-chip { cursor: pointer; }
.type-chip input { display: none; }
.type-chip span { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: white; transition: .18s ease; }
.type-chip strong { display: block; font-size: 15px; margin-bottom: 3px; }
.type-chip small { color: var(--muted); font-size: 13px; line-height: 1.45; }
.type-chip:has(input:checked) span { border-color: var(--primary); background: #f2efff; box-shadow: 0 0 0 3px rgba(86,39,251,.1); }
.type-chip:has(input:checked) small { color: #4a3f8f; }
.type-fields { margin-bottom: 4px; }
.type-chips { margin-bottom: 4px; }

/* ── 설치 안내 ────────────────────────────────────────── */
.install-box { margin-top: 24px; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.install-warn { padding: 13px 15px; margin-bottom: 16px; border-radius: 14px; background: #fff7df; color: #79611d; font-size: 14px; font-weight: 600; line-height: 1.6; }
.install-meta { display: grid; grid-template-columns: 88px 1fr; gap: 7px 12px; margin: 0; font-size: 14px; }
.install-meta dt { color: var(--muted); font-weight: 800; }
.install-meta dd { margin: 0; word-break: break-all; }
.install-meta a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.cmd-row { display: flex; gap: 8px; align-items: stretch; }
.cmd-row code { flex: 1; padding: 12px 14px; border-radius: 13px; background: var(--ink); color: #e8e6ff; font-size: 13.5px; word-break: break-all; }
.env-box { margin: 0; padding: 13px 15px; border-radius: 13px; background: #f5f5f9; font-size: 13.5px; white-space: pre-wrap; word-break: break-all; }
.admin-warn { margin: 12px 0; padding: 12px 14px; border-radius: 13px; background: #fff7df; color: #79611d; font-size: 14px; font-weight: 700; }
.admin-meta code { padding: 2px 7px; border-radius: 7px; background: #f0f0f6; font-size: 13px; }

/* ── 홈 종류별 섹션 ───────────────────────────────────── */
.section-head > div { min-width: 0; }
.section-desc { margin: 3px 0 0; color: var(--muted); font-size: 14px; font-weight: 600; }

/* ── 운영자 소개 항목 ─────────────────────────────────── */
.badge-curated { flex: none; padding: 3px 9px; border-radius: 999px; background: #eeecff; color: var(--primary); font-size: 11px; font-weight: 800; }
.curated-note { margin-bottom: 20px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: #fafafd; }
.curated-note strong { display: block; margin-bottom: 6px; font-size: 15px; }
.curated-note p { margin: 0 0 10px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.curated-note dl { display: grid; grid-template-columns: 76px 1fr; gap: 5px 12px; margin: 0 0 10px; font-size: 14px; }
.curated-note dt { color: var(--muted); font-weight: 800; }
.curated-note dd { margin: 0; }
.curated-claim { margin: 0 !important; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px !important; }
.curated-claim a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.admin-source { padding: 16px 18px; margin-bottom: 20px; border: 1px dashed var(--primary); border-radius: 16px; background: #f7f6ff; }
.admin-source .form-note { margin: 14px 0 12px; }
.footer-legal { padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; line-height: 1.7; }

/* ── 스킬 · MCP 목록형 ────────────────────────────────── */
.tool-list { display: grid; gap: 8px; margin-bottom: 30px; }
.tool-row { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); text-decoration: none; color: inherit; transition: .18s ease; }
.tool-row:hover { border-color: var(--ink); transform: translateY(-1px); box-shadow: var(--shadow); }
.tool-icon { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; color: white; font-weight: 900; font-size: 15px; }
.tool-main { flex: 1; min-width: 0; }
.tool-title { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.tool-title strong { font-size: 16px; letter-spacing: -.02em; }
.tool-author { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.tool-tagline { display: block; margin: 4px 0 8px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.tool-meta { display: flex; flex-wrap: wrap; gap: 5px; }
.tool-chip { font-style: normal; padding: 3px 9px; border-radius: 999px; background: #f2f2f7; color: #5a5b6b; font-size: 11.5px; font-weight: 700; }
.tool-chip-cmd { background: var(--ink); color: #dcd9ff; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.tool-side { flex: none; display: grid; justify-items: end; gap: 6px; text-align: right; }
.tool-type { font-style: normal; padding: 4px 10px; border-radius: 999px; background: #eeecff; color: var(--primary); font-size: 11.5px; font-weight: 800; }
.tool-count { font-style: normal; color: var(--muted); font-size: 12px; font-weight: 700; }
.split-head { margin: 24px 0 12px; font-size: 16px; letter-spacing: -.03em; }
.split-head:first-child { margin-top: 0; }

@media (max-width: 640px) {
  .tool-row { padding: 14px; gap: 11px; }
  .tool-icon { width: 38px; height: 38px; border-radius: 12px; font-size: 13px; }
  .tool-side { display: none; }
  .tool-title strong { font-size: 15px; }
}

/* ── 새 홈 레이아웃 ───────────────────────────────────── */
.hero-search { display: flex; align-items: center; gap: 10px; margin: 6px 0 26px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 16px; background: #f4f4f8; }
.hero-search span { color: var(--muted); font-size: 19px; }
.hero-search input { flex: 1; border: 0; background: none; padding: 0; font-size: 16px; font-weight: 600; }
.hero-search input:focus { outline: none; }

.hero { margin-bottom: 26px; }
.hero h1 { font-size: 40px; line-height: 1.14; letter-spacing: -.045em; margin-bottom: 12px; }
.hero p { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 520px; }

.type-tabs { display: flex; gap: 4px; margin-bottom: 18px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.type-tabs::-webkit-scrollbar { display: none; }
.type-tabs a { flex: 1; min-width: 82px; padding: 12px 6px 14px; text-align: center; text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 800; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.type-tabs a b { font-weight: 800; opacity: .65; margin-left: 3px; }
.type-tabs a.active { color: var(--primary); border-bottom-color: var(--primary); }
.type-tabs a.active b { opacity: 1; }

.list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0 4px; }
.list-head h2 { font-size: 18px; letter-spacing: -.03em; }
.list-head h2 span { color: var(--muted); font-weight: 800; }
.sort-form select { border: 0; background: none; padding: 6px 4px; color: var(--muted); font-size: 14px; font-weight: 800; cursor: pointer; }

.item-list { display: grid; }
.item-row { display: flex; align-items: flex-start; gap: 14px; padding: 18px 2px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; transition: .16s ease; }
.item-row:hover { background: #fafafd; }
.item-icon { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; color: white; font-weight: 900; font-size: 16px; overflow: hidden; }
.item-icon.has-img { background: #f2f2f7; }
.item-icon img { width: 100%; height: 100%; object-fit: cover; }
.item-main { flex: 1; min-width: 0; }
.item-title { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.item-title strong { font-size: 16.5px; letter-spacing: -.025em; }
.item-tagline { display: block; margin: 3px 0 7px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.item-meta { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.item-meta em { font-style: normal; }
.item-meta em + em::before { content: '· '; margin-right: 5px; }

.more-btn { display: block; margin: 18px 0 0; padding: 15px; border: 1px solid var(--line); border-radius: 16px; text-align: center; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 15px; transition: .16s ease; }
.more-btn span { color: var(--muted); margin: 0 4px; }
.more-btn:hover { border-color: var(--ink); background: #fafafd; }

.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 34px 0 10px; padding: 24px; border-radius: 22px; background: #f4f4f8; }
.cta-box strong { display: block; font-size: 18px; letter-spacing: -.03em; margin-bottom: 5px; }
.cta-box p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.cta-box .btn { flex: none; }

@media (max-width: 640px) {
  .hero h1 { font-size: 31px; }
  .hero p { font-size: 15px; }
  .item-icon { width: 46px; height: 46px; border-radius: 14px; }
  .item-title strong { font-size: 15.5px; }
  .cta-box { flex-direction: column; align-items: stretch; text-align: left; }
  .cta-box .btn { width: 100%; }
}

/* ── 저장 버튼 ────────────────────────────────────────── */
.item-row { position: relative; }
.item-link { display: flex; align-items: flex-start; gap: 14px; flex: 1; min-width: 0; text-decoration: none; color: inherit; }
.save-form { flex: none; display: flex; }
.save-btn { flex: none; display: grid; place-items: center; width: 40px; height: 40px; margin-top: 4px; border: 0; border-radius: 12px; background: none; color: #c9c9d4; font-size: 21px; line-height: 1; cursor: pointer; text-decoration: none; transition: .16s ease; }
.save-btn:hover { background: #f2f2f7; color: var(--muted); }
.save-btn.on { color: var(--primary); }
.save-btn.on:hover { color: var(--primary-dark); }
.btn.saved-on { background: #eeecff; color: var(--primary); }

/* ── 목록 지표 ────────────────────────────────────────── */
.item-stat { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; color: #9a9aa8; font-size: 12px; font-weight: 700; }
.item-stat em { font-style: normal; }
.split-head span { margin-left: 6px; color: var(--muted); font-weight: 800; }

/* '더 보기'로 이동했을 때 항목이 화면 위에 딱 붙지 않도록 여백을 둡니다 */
.item-row[id], .product-card[id] { scroll-margin-top: 84px; }

.count-badge { color: var(--muted); font-weight: 800; }
.profile-wrap .more-btn { margin-top: 10px; padding: 12px; font-size: 14px; }

/* ── 종류 안내 문구 ───────────────────────────────────── */
.type-hint { margin: -8px 0 16px; padding: 11px 14px; border-radius: 13px; background: #f4f4f8; color: #4a4b5c; font-size: 14px; font-weight: 600; line-height: 1.55; }

/* ── 제작자 안내 ──────────────────────────────────────── */
.maker-box { margin: 36px 0 12px; padding: 28px; border-radius: 24px; background: var(--ink); color: white; }
.maker-head strong { display: block; font-size: 21px; letter-spacing: -.035em; margin-bottom: 6px; }
.maker-head p { margin: 0 0 22px; color: rgba(255,255,255,.62); font-size: 15px; }
.maker-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.maker-points > div { padding: 16px; border-radius: 16px; background: rgba(255,255,255,.07); }
.maker-points b { display: block; margin-bottom: 5px; font-size: 15px; }
.maker-points span { color: rgba(255,255,255,.62); font-size: 13.5px; line-height: 1.5; }
.maker-cta { width: 100%; }

@media (max-width: 640px) {
  .maker-box { padding: 22px; border-radius: 20px; }
  .maker-points { grid-template-columns: 1fr; gap: 8px; }
  .maker-points > div { padding: 14px; }
  .maker-head strong { font-size: 19px; }
}

/* ── 종류별 구역 ──────────────────────────────────────── */
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 30px 0 12px; }
.sec-head h2 { display: flex; align-items: center; gap: 7px; font-size: 19px; letter-spacing: -.035em; }
.sec-head h2 span { font-size: 18px; }
.sec-head h2 em { font-style: normal; color: var(--muted); font-size: 15px; font-weight: 800; }
.sec-head a { flex: none; color: var(--muted); font-size: 14px; font-weight: 800; text-decoration: none; }
.sec-head a:hover { color: var(--ink); }
.item-list.ranked { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.item-list.ranked .item-row { padding: 16px 18px; }
.item-list.ranked .item-row:last-child { border-bottom: 0; }
.item-rank { flex: none; width: 22px; padding-top: 14px; color: #b5b5c2; font-size: 14px; font-weight: 800; text-align: center; }
@media (max-width: 640px) {
  .sec-head h2 { font-size: 17px; }
  .item-list.ranked .item-row { padding: 14px; }
  .item-rank { width: 16px; padding-top: 12px; font-size: 13px; }
}

/* ── 종류 구역 2열 배치 ───────────────────────────────── */
.sec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 22px; }
.sec-col { min-width: 0; }
.sec-grid .sec-head { margin-top: 24px; }
.sec-grid .item-tagline { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sec-grid .item-stat { display: none; }
.sec-grid .item-icon { width: 42px; height: 42px; border-radius: 13px; font-size: 14px; }
.sec-grid .item-list.ranked .item-row { padding: 14px 15px; gap: 11px; }

@media (max-width: 820px) {
  .sec-grid { grid-template-columns: 1fr; gap: 0; }
  .sec-grid .item-stat { display: flex; }
}

/* ── 카테고리 아이콘 ──────────────────────────────────── */
.item-icon.has-svg { background: none; padding: 0; }
.item-icon.has-svg img { width: 100%; height: 100%; object-fit: contain; }
.tool-icon.has-svg { background: none; }
.tool-icon.has-svg img { width: 100%; height: 100%; object-fit: contain; }
.app-icon-img { width: 74px; height: 74px; display: block; margin: 0 auto; }
.detail-icon-img { width: 76px; height: 76px; flex: none; border-radius: 22px; }
.admin-icon-img { width: 52px; height: 52px; flex: none; border-radius: 16px; }

/* ── 후기 ─────────────────────────────────────────────── */
.review-form { margin-bottom: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.review-choice { display: flex; gap: 8px; margin-bottom: 12px; }
.review-form textarea { width: 100%; min-height: 96px; border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; font-size: 15px; line-height: 1.6; resize: vertical; }
.review-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(86,39,251,.1); }
.review-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.review-note { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.review-del { margin-bottom: 18px; text-align: right; }
.review-del button { border: 0; background: none; padding: 0; color: #c0392b; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.review-list { display: grid; gap: 10px; }
.review { padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.review.mine { border-color: var(--primary); background: #fafaff; }
.review-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.review-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: none; }
.review-avatar.blank { display: grid; place-items: center; background: #eeecff; color: var(--primary); font-size: 12px; font-weight: 900; }
.review-head strong { font-size: 14.5px; }
.review-tag { font-style: normal; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.review-tag.up { background: #e7fbef; color: #1e7a45; }
.review-tag.down { background: #fff7df; color: #79611d; }
.review-mine { font-style: normal; padding: 3px 9px; border-radius: 999px; background: #eeecff; color: var(--primary); font-size: 12px; font-weight: 800; }
.review p { margin: 0; color: #3e3f4b; font-size: 15px; line-height: 1.65; white-space: pre-wrap; }
@media (max-width: 640px) {
  .review-actions { flex-direction: column; align-items: stretch; }
  .review-actions .btn { width: 100%; }
}
