:root{
  --paper:#f4efe5;
  --paper-2:#faf7ef;
  --olive:#656f3d;
  --olive-dark:#384126;
  --ink:#26281f;
  --muted:#767465;
  --line:rgba(70,78,46,.18);
  --shadow:0 16px 45px rgba(61,56,42,.10);
  --radius:24px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;color:var(--ink);font-family:"Noto Serif KR","Nanum Myeongjo","Apple SD Gothic Neo",serif;background:
radial-gradient(circle at 12% 6%,rgba(255,255,255,.86),transparent 34%),
linear-gradient(120deg,rgba(101,111,61,.025),transparent 38%),var(--paper);min-height:100vh}
body:before{content:"";position:fixed;inset:0;pointer-events:none;opacity:.19;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E")}
button,a{font:inherit}.shell{min-height:100vh}.topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;padding:16px 20px;background:rgba(244,239,229,.9);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:11px;cursor:pointer}.brand img{width:32px;height:45px;object-fit:contain}.brand b{font-family:Georgia,serif;letter-spacing:.16em;font-size:18px}.nav-actions{display:flex;gap:8px}.icon-btn,.soft-btn,.primary-btn{border:0;border-radius:999px;padding:10px 15px;cursor:pointer}.icon-btn,.soft-btn{background:rgba(255,255,255,.58);color:var(--olive-dark);border:1px solid var(--line)}.primary-btn{background:var(--olive-dark);color:#fff}.page{width:min(1100px,100%);margin:0 auto;padding:28px 20px 84px}.hero{min-height:100vh;display:grid;place-items:center;text-align:center;padding:30px 22px}.hero-card{width:min(700px,100%);padding:54px 26px 50px;border:1px solid rgba(101,111,61,.15);border-radius:36px;background:rgba(250,247,239,.62);box-shadow:var(--shadow)}.hero-logo{width:min(210px,45vw);height:250px;object-fit:contain}.hero h1{font-family:Georgia,serif;letter-spacing:.24em;font-size:clamp(30px,8vw,58px);margin:18px 0 8px}.hero p{font-size:clamp(18px,4vw,28px);line-height:1.75;color:#4a4b40;margin:14px auto 32px;max-width:500px}.menu-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:28px}.menu-card{background:rgba(255,255,255,.56);border:1px solid var(--line);border-radius:22px;padding:28px 20px;text-align:left;cursor:pointer;transition:.2s transform,.2s box-shadow}.menu-card:hover{transform:translateY(-2px);box-shadow:var(--shadow)}.menu-card strong{display:block;font-size:24px}.menu-card small{display:block;color:var(--muted);margin-top:8px;line-height:1.6}.page-title{font-size:clamp(30px,7vw,50px);margin:14px 0 28px}.empty-panel,.content-card{border:1px solid var(--line);background:rgba(255,255,255,.52);border-radius:var(--radius);padding:28px;box-shadow:0 12px 36px rgba(61,56,42,.06)}.empty-panel{text-align:center;color:var(--muted);min-height:340px;display:grid;place-items:center}.book-list{display:grid;gap:12px}.book-item{display:flex;align-items:center;gap:18px;padding:14px;background:rgba(255,255,255,.55);border:1px solid var(--line);border-radius:18px;cursor:pointer}.book-item img{width:90px;height:76px;object-fit:cover;border-radius:10px}.book-item h3{margin:0;font-size:24px}.badge{display:inline-block;margin-top:8px;padding:4px 9px;border-radius:999px;background:rgba(101,111,61,.13);color:var(--olive-dark);font-size:13px}.book-head{display:grid;grid-template-columns:minmax(220px,42%) 1fr;gap:28px;align-items:center}.book-head img{width:100%;border-radius:20px;box-shadow:var(--shadow)}.book-meta h1{font-size:clamp(38px,8vw,68px);margin:0 0 14px}.book-meta p{line-height:1.9;color:#565648}.section{padding:30px 0;border-top:1px solid var(--line)}.section h2{font-size:30px;margin:0 0 16px;color:var(--olive-dark)}.section p,.section li{line-height:1.95;font-size:17px}.symbols{display:grid;gap:14px}.symbol{padding:18px 20px;border-left:3px solid var(--olive);background:rgba(255,255,255,.4);border-radius:0 16px 16px 0}.activity-main img{width:100%;border-radius:18px;border:1px solid var(--line)}.activity-info{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.tag{padding:7px 11px;border:1px solid var(--line);background:rgba(255,255,255,.55);border-radius:999px;font-size:14px}.more-row{text-align:center;margin-top:28px}.activity-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.activity-thumb{border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.55);padding:12px;cursor:pointer}.activity-thumb img{width:100%;display:block;border-radius:12px}.activity-thumb h3{font-size:18px;margin:12px 5px 4px}.login-card{max-width:520px;margin:40px auto}.field{display:grid;gap:7px;margin:16px 0}.field input{padding:14px 15px;border-radius:12px;border:1px solid var(--line);background:#fff}.admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.admin-card{padding:22px;border-radius:18px;border:1px solid var(--line);background:rgba(255,255,255,.55)}.admin-card h3{margin-top:0}.modal{position:fixed;inset:0;z-index:100;display:none;align-items:center;justify-content:center;background:rgba(20,20,16,.82);padding:clamp(14px,3vw,32px);overflow:hidden}.modal.open{display:flex}.modal img{display:block;width:auto;height:auto;max-width:calc(100dvw - clamp(28px,6vw,64px));max-height:calc(100dvh - clamp(28px,6vw,64px));object-fit:contain;border-radius:12px;margin:auto;box-shadow:0 18px 70px rgba(0,0,0,.3)}.modal-close{position:fixed;top:max(14px,env(safe-area-inset-top));right:max(14px,env(safe-area-inset-right));z-index:101;border:0;background:#fff;width:48px;height:48px;border-radius:50%;font-size:29px;line-height:1;cursor:pointer;box-shadow:0 8px 24px rgba(0,0,0,.18)}
@media(max-width:720px){.menu-grid,.activity-grid,.admin-grid{grid-template-columns:1fr}.book-head{grid-template-columns:1fr}.book-head img{max-width:460px;margin:auto}.page{padding-left:15px;padding-right:15px}.topbar{padding:12px 14px}.brand b{font-size:15px}.hero-card{padding:38px 18px}.book-item img{width:76px;height:64px}.book-item h3{font-size:21px}}
/* 관리자 글쓰기 테스트 */
.notice{color:var(--muted);line-height:1.7}.clickable{cursor:pointer;text-align:left;font:inherit;color:inherit}.clickable:hover{transform:translateY(-2px);box-shadow:var(--shadow)}.disabled{opacity:.58}.admin-title-row,.section-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.admin-editor-page{max-width:960px}.editor-form{display:grid;gap:20px}.form-section{background:rgba(255,255,255,.56);border:1px solid var(--line);border-radius:22px;padding:22px}.form-section h2{margin:0 0 18px;color:var(--olive-dark)}.form-section label{display:grid;gap:7px;margin:14px 0;font-weight:700}.form-section input:not([type=file]){width:100%;padding:13px 14px;border-radius:12px;border:1px solid var(--line);background:#fff;font:inherit}.check-label{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center;justify-content:flex-start!important;font-weight:400!important}.check-label input{width:20px;height:20px}.upload-row{display:grid;grid-template-columns:1fr minmax(120px,220px) auto;gap:16px;align-items:center;margin-top:16px;padding:15px;border:1px dashed rgba(70,78,46,.3);border-radius:16px}.upload-row.compact{grid-template-columns:minmax(100px,200px) auto}.upload-preview{display:block;max-width:100%;background:#f8f5ed;border-radius:12px;border:1px solid var(--line);object-fit:contain}.cover-preview{max-height:150px}.infographic-preview{max-height:240px}.file-btn{display:inline-flex!important;margin:0!important;padding:10px 14px;border-radius:999px;background:var(--olive-dark);color:white;cursor:pointer;white-space:nowrap}.file-btn input{display:none}.editor-toolbar{display:flex;flex-wrap:wrap;gap:7px;padding:9px;border:1px solid var(--line);border-bottom:0;border-radius:14px 14px 0 0;background:rgba(244,239,229,.8);position:sticky;top:78px;z-index:10}.editor-toolbar button{border:1px solid var(--line);background:white;border-radius:8px;padding:8px 11px;cursor:pointer}.rich-editor{min-height:460px;padding:24px;background:#fff;border:1px solid var(--line);border-radius:0 0 14px 14px;line-height:1.9;outline:none}.rich-editor:focus{box-shadow:inset 0 0 0 2px rgba(101,111,61,.18)}.rich-editor h2{font-size:28px;margin:30px 0 12px}.rich-editor h3{font-size:21px;margin:24px 0 8px}.rich-editor p{font-size:17px}.book-body h2{font-size:30px;color:var(--olive-dark);margin:36px 0 12px}.book-body h3{font-size:21px;margin:24px 0 7px}.book-body p,.book-body li{font-size:17px;line-height:1.95}.two-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}.other-editor{position:relative;padding:17px;margin-top:14px;border:1px solid var(--line);border-radius:16px;background:rgba(250,247,239,.72)}.remove-btn{position:absolute;right:12px;top:12px;border:0;background:#fff1ef;color:#9c3d32;border-radius:999px;padding:7px 11px;cursor:pointer}.sticky-save{position:sticky;bottom:12px;display:flex;justify-content:flex-end;gap:9px;padding:12px;background:rgba(244,239,229,.92);border:1px solid var(--line);border-radius:18px;backdrop-filter:blur(12px);box-shadow:var(--shadow);z-index:15}.toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%,30px);opacity:0;z-index:200;padding:12px 18px;border-radius:999px;background:var(--olive-dark);color:#fff;transition:.25s;pointer-events:none}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:720px){.admin-title-row{display:block}.upload-row,.upload-row.compact{grid-template-columns:1fr}.upload-preview{margin:auto}.two-col{grid-template-columns:1fr}.editor-toolbar{top:68px}.rich-editor{min-height:390px;padding:18px}.sticky-save{justify-content:stretch}.sticky-save button{flex:1}}
.activity-thumb{cursor:default}.activity-thumb-image{cursor:zoom-in}.activity-thumb-image img{transition:transform .2s ease}.activity-thumb-image:hover img{transform:scale(1.01)}.compact-info{margin:12px 5px 5px}.compact-info .tag{font-size:13px}.other-editor .two-col{margin-top:8px}

.locked{opacity:.78}.lock-note{display:block;font-size:.78rem;margin-top:.35rem;color:#777}.login-card form{display:grid;gap:14px}.login-card label{display:grid;gap:7px;text-align:left}.login-card input{width:100%;padding:12px;border:1px solid #cfc8b8;border-radius:10px;background:#fffdf8}.login-card hr{border:0;border-top:1px solid #ddd5c5;margin:22px 0}.activity-main>img{cursor:zoom-in}.book-item.locked{cursor:pointer}

.file-control{display:grid;gap:8px;align-content:center}.file-label{display:inline-flex!important;align-items:center;justify-content:center;margin:0!important;padding:11px 15px;border-radius:999px;background:var(--olive-dark);color:white;cursor:pointer;white-space:nowrap;font-weight:700!important}.real-file-input{display:block!important;width:100%;max-width:280px;padding:8px!important;border:1px solid var(--line)!important;border-radius:10px!important;background:#fff!important;font-size:14px!important}.real-file-input::file-selector-button{margin-right:10px;border:0;border-radius:8px;padding:8px 10px;background:#ece7d9;color:var(--olive-dark);font-weight:700}.file-status{color:var(--muted);word-break:break-all}.upload-preview[src=""]{display:none}

/* KLEDIA v3 CMS */
.cms-menu{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:34px}.cms-card{min-height:130px}.admin-subtitle{margin:32px 0 14px;font-size:28px}.book-admin-card>img{width:80px;height:72px;object-fit:cover;border-radius:10px;float:right;margin-left:12px}.card-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.danger-btn{border:1px solid rgba(150,60,45,.22);background:#fff4f1;color:#943d31;border-radius:999px;padding:10px 14px;cursor:pointer}.page-image{margin-bottom:18px;text-align:center}.page-image img{max-width:100%;max-height:480px;object-fit:contain;border-radius:16px}.public-rich{font-size:17px;line-height:1.95}.public-rich img{max-width:100%}.archive-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.archive-card{background:rgba(255,255,255,.55);border:1px solid var(--line);border-radius:18px;padding:13px}.archive-card img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:12px;cursor:zoom-in}.archive-card h3{margin:12px 4px 6px}.archive-card p{white-space:pre-wrap;line-height:1.7;color:var(--muted)}.archive-preview{max-height:360px;margin-top:12px}.form-section textarea{width:100%;padding:13px 14px;border-radius:12px;border:1px solid var(--line);background:#fff;font:inherit;resize:vertical}.member-list{display:grid;gap:10px}.member-card{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 18px;border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.55)}.member-card strong,.member-card small{display:block}.member-card small{margin-top:5px;color:var(--muted)}.member-card select{padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:white}
@media(max-width:820px){.cms-menu,.archive-grid{grid-template-columns:1fr 1fr}}@media(max-width:560px){.cms-menu,.archive-grid{grid-template-columns:1fr}.member-card{align-items:flex-start;flex-direction:column}.member-card select{width:100%}}

/* KLEDIA v3.2 · gallery library */
:root{
  --content-max:1200px;
  --card-radius:18px;
}
body{
  background:
    radial-gradient(circle at 18% 4%,rgba(255,255,255,.92),transparent 31%),
    radial-gradient(circle at 88% 92%,rgba(116,126,80,.045),transparent 25%),
    linear-gradient(140deg,rgba(126,113,78,.025),transparent 45%),
    #f5f0e7;
}
body:after{
  content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;
  background:
   radial-gradient(ellipse at 8% 25%,rgba(103,113,73,.028),transparent 18%),
   radial-gradient(ellipse at 92% 64%,rgba(103,113,73,.022),transparent 20%);
}
.page{width:min(var(--content-max),100%);padding-top:42px}
.topbar{background:rgba(246,242,233,.82);border-bottom:1px solid rgba(83,88,57,.12)}
.brand b{font-weight:500;letter-spacing:.18em}
.soft-btn,.primary-btn{padding:9px 16px;min-height:40px}
.primary-btn{background:var(--olive);box-shadow:none}
.primary-btn:hover{filter:brightness(.92)}
.menu-card,.admin-card,.content-card,.form-section,.archive-card,.book-item{border-radius:var(--card-radius)}

.gallery-hero{position:relative;isolation:isolate;background-image:var(--hero-bg);background-size:cover;background-position:center}
.gallery-hero:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(249,246,239,.89),rgba(244,239,229,.94))}
.gallery-hero:not([style]):before{background:linear-gradient(180deg,rgba(248,245,237,.2),rgba(244,239,229,.35))}
.gallery-entrance{border:0;background:transparent;box-shadow:none;padding:42px 24px;max-width:720px}
.gallery-kicker{font:500 10px/1.4 Georgia,serif;letter-spacing:.28em;color:#7c7b6b;margin-bottom:26px}
.gallery-entrance .hero-logo{height:auto;object-fit:contain;filter:drop-shadow(0 10px 30px rgba(72,76,45,.08))}
.gallery-entrance h1{font-weight:400;font-size:clamp(36px,8vw,64px);margin:26px 0 13px}
.gallery-entrance p{font-size:clamp(17px,3.5vw,24px);max-width:580px;color:#525448;letter-spacing:.01em}
.entrance-btn{min-width:138px;background:transparent!important;color:var(--olive-dark)!important;border:1px solid rgba(66,74,43,.48);font-size:15px;letter-spacing:.08em;padding:11px 24px}
.gallery-hero.lower{align-items:end;padding-bottom:9vh}

.admin-shell .page{padding-top:54px}
.admin-dashboard-head{display:flex;justify-content:space-between;align-items:end;gap:24px;margin:0 0 30px;padding-bottom:22px;border-bottom:1px solid var(--line)}
.admin-dashboard-head .page-title{margin:5px 0 8px;font-weight:500}
.admin-dashboard-head p{margin:0;color:var(--muted)}
.eyebrow,.section-label{font-family:Georgia,serif;font-size:10px;letter-spacing:.24em;color:#858273;text-transform:uppercase}
.dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.gallery-admin-card{position:relative;min-height:160px;padding:26px 26px 24px;background:rgba(255,255,255,.36);border:1px solid rgba(76,84,50,.14);overflow:hidden}
.gallery-admin-card:hover{background:rgba(255,255,255,.65);transform:translateY(-1px)}
.gallery-admin-card h3{font-size:22px;font-weight:600;margin:28px 0 8px}
.gallery-admin-card p{margin:0;color:var(--muted);line-height:1.6}
.cms-icon{position:absolute;left:25px;top:18px;font-family:Georgia,serif;color:var(--olive);font-size:20px;font-weight:400}
.cms-arrow{position:absolute;right:22px;bottom:20px;color:#777968;font-size:18px}

.gallery-form{background:rgba(255,255,255,.44);padding:28px;border-color:rgba(74,80,50,.13)}
.gallery-form h2{font-size:28px;font-weight:500;margin-top:7px}
.gallery-form select{width:100%;padding:13px 14px;border-radius:12px;border:1px solid var(--line);background:#fff;font:inherit}
.site-media-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:10px}
.site-preview{min-height:180px;border:1px dashed rgba(74,80,50,.24);border-radius:16px;background:rgba(250,247,239,.75);display:grid;place-items:center;overflow:hidden;margin-top:10px}
.site-preview img{max-width:100%;max-height:260px;object-fit:contain}
.site-preview img[src=""]{display:none}
.site-preview.landscape{aspect-ratio:16/9}.site-preview.landscape img{width:100%;height:100%;object-fit:cover}
.site-preview.checker{background-image:linear-gradient(45deg,rgba(0,0,0,.025) 25%,transparent 25%),linear-gradient(-45deg,rgba(0,0,0,.025) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,rgba(0,0,0,.025) 75%),linear-gradient(-45deg,transparent 75%,rgba(0,0,0,.025) 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0}
input[type=color]{min-height:48px;padding:5px!important}

.book-admin-card{min-height:150px}.book-admin-card h3{font-size:20px}.book-admin-card p{font-size:14px;color:var(--muted);line-height:1.6}

@media(max-width:760px){
 .dashboard-grid,.site-media-grid{grid-template-columns:1fr}
 .gallery-admin-card{min-height:145px}
 .admin-dashboard-head{align-items:flex-start}
 .gallery-form{padding:20px}
 .page{padding-top:30px}
 .gallery-entrance{padding:30px 18px}
 .gallery-kicker{font-size:9px;letter-spacing:.2em}
}


/* =========================================================
   KLEDIA v3.4 · PAPER LAYOUT
   제시.pdf 기준: 박스형 대시보드 → 종이 위에 직접 놓인 조용한 구성
   기존 Supabase/CMS 기능은 그대로 유지하고 표현만 정리
   ========================================================= */

:root{
  --paper:#f5f0e6;
  --paper-2:#faf7ef;
  --olive:#667044;
  --olive-dark:#3f482b;
  --ink:#2d3028;
  --muted:#7e7a6b;
  --line:rgba(73,78,52,.14);
  --shadow:none;
  --radius:12px;
  --content-max:1040px;
}

/* 실제 수채화지처럼 '아주 약한' 결만 남김.
   v3.3의 반복적인 가로결/노이즈 인상을 제거한다. */
body{
  background:
    radial-gradient(ellipse at 7% 11%, rgba(255,255,255,.72), transparent 31%),
    radial-gradient(ellipse at 94% 82%, rgba(111,116,78,.035), transparent 25%),
    linear-gradient(105deg, rgba(255,255,255,.20), transparent 42%),
    #f5f0e6;
  font-size:15px;
}
body:before{
  opacity:.075;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360' viewBox='0 0 360 360'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.018 .11' numOctaves='3' seed='8' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)' opacity='.18'/%3E%3C/svg%3E");
  mix-blend-mode:multiply;
}
body:after{
  z-index:-1;
  background:
    radial-gradient(ellipse at -3% 20%,rgba(62,68,42,.035),transparent 22%),
    radial-gradient(ellipse at 103% 67%,rgba(62,68,42,.028),transparent 22%);
}

/* 상단도 '바'보다 얇은 책 페이지의 머리말처럼 */
.topbar{
  padding:13px 24px;
  background:rgba(247,243,234,.76);
  border-bottom:1px solid rgba(73,78,52,.10);
  backdrop-filter:blur(10px);
}
.brand img{width:25px;height:34px}
.brand b{font-size:15px;letter-spacing:.16em;font-weight:500}
.soft-btn,.primary-btn,.icon-btn{
  min-height:35px;
  padding:7px 13px;
  font-size:13px;
}

/* 첫 화면: 카드/테두리/그림자 완전 제거 */
.hero{
  min-height:100svh;
  padding:6vh 24px 8vh;
}
.gallery-hero:before{
  background:linear-gradient(180deg,rgba(250,247,239,.10),rgba(245,240,230,.18));
}
.hero-card,.gallery-entrance{
  width:min(620px,100%);
  padding:20px 18px;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.gallery-kicker{
  margin-bottom:22px;
  font-size:9px;
  letter-spacing:.30em;
  color:#858173;
}
.gallery-entrance .hero-logo{
  max-width:122px;
  filter:none;
}
.gallery-entrance h1{
  margin:18px 0 10px;
  font-size:clamp(30px,5vw,46px);
  font-weight:400;
  letter-spacing:.25em;
}
.gallery-entrance p{
  max-width:520px;
  margin:10px auto 25px;
  font-size:clamp(14px,2.2vw,18px);
  line-height:1.9;
  color:#5b5b50;
  letter-spacing:.02em;
}
.entrance-btn{
  min-width:116px;
  min-height:36px;
  padding:8px 19px;
  font-size:12px;
  border-color:rgba(66,74,43,.36);
}

/* 본문: 큰 제목 축소 */
.page{
  width:min(var(--content-max),100%);
  padding:48px 28px 90px;
}
.page-title{
  margin:12px 0 34px;
  font-size:clamp(26px,4.2vw,38px);
  font-weight:500;
  letter-spacing:.025em;
}

/* 핵심: 메인 메뉴를 '칸칸이'가 아닌 종이 위 세로 목차로 */
.menu-grid{
  display:block;
  width:min(620px,100%);
  margin:34px auto 0;
}
.menu-card{
  position:relative;
  display:block;
  width:100%;
  padding:15px 14px 15px 38px;
  margin:0;
  border:0;
  border-bottom:1px solid rgba(73,78,52,.10);
  border-radius:0;
  background:transparent;
  box-shadow:none;
  text-align:left;
  transition:.18s ease;
}
.menu-card:before{
  content:"◊";
  position:absolute;
  left:9px;
  top:14px;
  color:var(--olive);
  font-size:16px;
  transform:rotate(-8deg);
}
.menu-card:hover{
  transform:translateX(4px);
  box-shadow:none;
  background:rgba(255,255,255,.16);
}
.menu-card strong{
  display:block;
  font-size:17px;
  font-weight:600;
  letter-spacing:.01em;
}
.menu-card small{
  margin-top:4px;
  font-size:12px;
  line-height:1.55;
  color:#8a8677;
}

/* 일반 콘텐츠도 '카드' 느낌 최소화 */
.content-card,.empty-panel{
  padding:25px 6px;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.public-rich{
  max-width:820px;
  margin:0 auto;
  font-size:15px;
  line-height:2;
}
.page-image{
  padding-bottom:18px;
}
.page-image img{
  border-radius:4px;
  box-shadow:0 10px 32px rgba(62,58,43,.055);
}

/* 그림책 목록도 책장/목차처럼 */
.book-list{gap:0}
.book-item{
  padding:16px 8px;
  border:0;
  border-bottom:1px solid rgba(73,78,52,.11);
  border-radius:0;
  background:transparent;
}
.book-item img{
  width:72px;height:62px;border-radius:4px;
  box-shadow:0 5px 16px rgba(55,52,40,.06);
}
.book-item h3{font-size:18px;font-weight:600}
.badge,.tag{
  font-size:11px;
  padding:4px 8px;
}

/* 책 상세: 큰 박스 해제 */
.book-head{
  padding:10px 0 34px;
  border-bottom:1px solid var(--line);
}
.book-head img{border-radius:5px;box-shadow:0 10px 28px rgba(60,56,42,.07)}
.book-meta h1{font-size:clamp(28px,5vw,46px);font-weight:500}
.section{padding:28px 0}
.section h2,.book-body h2{font-size:23px;font-weight:600}
.section p,.section li,.book-body p,.book-body li{font-size:15px;line-height:2}

/* 아카이브도 사진 중심, 박스 최소 */
.archive-grid{gap:28px 18px}
.archive-card{
  padding:0 0 15px;
  border:0;
  border-radius:0;
  border-bottom:1px solid var(--line);
  background:transparent;
}
.archive-card img{border-radius:4px}
.archive-card h3{font-size:16px}

/* 관리자: 기능 영역은 구분이 필요하지만 기존보다 훨씬 조용하게 */
.admin-shell .page{padding-top:42px}
.admin-dashboard-head{
  margin-bottom:18px;
  padding-bottom:18px;
}
.admin-dashboard-head .page-title{font-size:34px}
.dashboard-grid,.admin-grid,.cms-menu{
  display:block;
}
.gallery-admin-card,.admin-card,.cms-card{
  position:relative;
  min-height:0;
  margin:0;
  padding:19px 44px 19px 34px;
  border:0;
  border-bottom:1px solid rgba(73,78,52,.12);
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.gallery-admin-card:hover,.admin-card:hover{
  transform:translateX(3px);
  background:rgba(255,255,255,.16);
}
.gallery-admin-card h3{
  margin:0 0 5px;
  font-size:18px;
  font-weight:600;
}
.gallery-admin-card p{font-size:12px}
.cms-icon{left:7px;top:18px;font-size:15px}
.cms-arrow{right:8px;bottom:auto;top:22px;font-size:14px}

/* 입력/편집 화면은 실제 작업성을 위해 얇은 종이 면만 유지 */
.form-section,.gallery-form{
  padding:22px 20px;
  border:1px solid rgba(73,78,52,.10);
  border-radius:10px;
  background:rgba(255,255,255,.25);
  box-shadow:none;
}
.gallery-form h2,.form-section h2{font-size:21px}
.form-section label{font-size:13px}
.form-section input:not([type=file]),.form-section textarea,.gallery-form select{
  font-size:14px;
  border-radius:7px;
}
.rich-editor{font-size:14px;line-height:1.95;border-radius:0 0 8px 8px}
.sticky-save{border-radius:10px;box-shadow:none}

/* 회원 목록 역시 큰 카드 제거 */
.member-card{
  padding:14px 5px;
  border:0;
  border-bottom:1px solid var(--line);
  border-radius:0;
  background:transparent;
}

@media(max-width:720px){
  .page{padding:32px 18px 70px}
  .topbar{padding:11px 13px}
  .hero{padding-left:18px;padding-right:18px}
  .gallery-entrance h1{font-size:32px}
  .gallery-entrance p{font-size:14px}
  .menu-grid{margin-top:24px}
  .menu-card{padding-top:14px;padding-bottom:14px}
  .menu-card strong{font-size:16px}
  .admin-dashboard-head .page-title{font-size:29px}
}


/* =========================================================
   KLEDIA v3.5 · QUIET WATERCOLOR PAPER
   v3.4 기능 유지 / 밝은 수채화지 + 올리브잎 모티프
   ========================================================= */
:root{
  --paper:#f8f4eb;
  --paper-2:#fcfaf4;
}
body{
  background:
    radial-gradient(ellipse at 12% 9%,rgba(255,255,255,.82),transparent 33%),
    radial-gradient(ellipse at 87% 76%,rgba(104,112,68,.024),transparent 29%),
    linear-gradient(112deg,rgba(255,255,255,.22),transparent 46%),
    #f8f4eb;
}
/* 불규칙한 수채화지 섬유결: 눈에 먼저 띄지 않고 가까이서 느껴지는 정도 */
body:before{
  opacity:.12;
  mix-blend-mode:multiply;
  background-size:520px 520px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520' viewBox='0 0 520 520'%3E%3Cfilter id='paper'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .075' numOctaves='4' seed='23' stitchTiles='stitch' result='n'/%3E%3CfeColorMatrix in='n' type='saturate' values='0' result='g'/%3E%3CfeComponentTransfer in='g'%3E%3CfeFuncA type='table' tableValues='0 .19'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' fill='%23928c78' filter='url(%23paper)' opacity='.16'/%3E%3C/svg%3E");
}
/* 로고/문자가 종이에 잉크가 살짝 먹은 느낌 */
.gallery-entrance .hero-logo,.brand img{
  opacity:.91;
  filter:contrast(.94) saturate(.86) blur(.08px);
}
.gallery-kicker,.gallery-entrance h1,.gallery-entrance p,.page-title,.menu-card strong,.menu-card small,.brand b{
  text-shadow:0 .25px .35px rgba(55,58,43,.14);
}
/* 메뉴 기호: 다이아몬드 대신 작은 올리브 잎 선화 */
.menu-card:before{
  content:"";
  width:15px;
  height:20px;
  left:8px;
  top:15px;
  background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 24'%3E%3Cg fill='none' stroke='%23667044' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 18C4.2 10.2 8.2 4.7 14.7 2.5c-.2 7.3-3.4 12.8-9.7 16.2'/%3E%3Cpath d='M4.2 21.5c1.6-6 4.6-10.4 9.1-15.1'/%3E%3C/g%3E%3C/svg%3E");
  transform:rotate(-7deg);
  opacity:.82;
}
/* 시작하기: 둥근 버튼 대신 올리브잎과 조용한 텍스트 */
.entrance-btn{
  position:relative;
  min-width:0;
  min-height:0;
  padding:7px 9px 7px 29px;
  border:0 !important;
  border-radius:0;
  background:transparent !important;
  color:#56603a !important;
  box-shadow:none !important;
  letter-spacing:.08em;
}
.entrance-btn:before{
  content:"";
  position:absolute;
  left:6px;
  top:50%;
  width:14px;
  height:19px;
  transform:translateY(-52%) rotate(-8deg);
  background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 24'%3E%3Cg fill='none' stroke='%23667044' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 18C4.2 10.2 8.2 4.7 14.7 2.5c-.2 7.3-3.4 12.8-9.7 16.2'/%3E%3Cpath d='M4.2 21.5c1.6-6 4.6-10.4 9.1-15.1'/%3E%3C/g%3E%3C/svg%3E");
  opacity:.88;
}
.entrance-btn:hover{transform:translateX(2px);background:transparent !important;}
.topbar{background:rgba(250,247,239,.72)}
.form-section,.gallery-form{background:rgba(255,255,255,.20)}


/* =========================================================
   KLEDIA v3.6 · PAPER + INK + OLIVE
   관리자/공개 화면 전체를 같은 종이·잉크 언어로 통일
   ========================================================= */

:root{
  --paper:#f7f3ea;
  --paper-hi:#fbf8f1;
  --ink:#31352d;
  --olive:#788055;
  --olive-deep:#5f6843;
  --muted:#8b887a;
  --hairline:rgba(81,88,58,.13);
}

/* 종이 자체가 화면이 되도록 */
html, body{
  background:#f7f3ea !important;
}

body{
  position:relative;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.62), transparent 27%),
    radial-gradient(circle at 84% 78%, rgba(124,128,90,.028), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,0)),
    #f7f3ea !important;
}

/* '무늬'가 아니라 섬유가 느껴지는 종이결 */
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:9999;
  opacity:.20;
  mix-blend-mode:multiply;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='4' seed='17' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)' opacity='.12'/%3E%3C/svg%3E"),
    repeating-linear-gradient(88deg, rgba(92,89,70,.018) 0 1px, transparent 1px 6px);
  background-size:420px 420px, 100% 100%;
}

/* 종이 위에 찍힌 잉크처럼 아주 미세하게 부드럽게 */
.hero-logo,
.brand img,
.gallery-entrance h1,
.gallery-kicker,
.page-title,
.topbar,
.menu-card,
.gallery-admin-card,
.admin-card{
  filter:saturate(.92) contrast(.97);
}

.gallery-entrance h1,
.gallery-entrance p,
.gallery-kicker,
.page-title,
.menu-card strong,
.menu-card small,
.gallery-admin-card h3,
.gallery-admin-card p{
  text-shadow:0 0 .35px rgba(70,72,53,.20);
}

/* 시작하기: '버튼'보다 올리브잎이 이동 언어가 되도록 */
.entrance-btn{
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  padding:10px 12px !important;
  display:inline-flex !important;
  align-items:center;
  gap:9px;
  color:var(--olive-deep) !important;
}
.entrance-btn::before{
  content:"";
  width:16px;
  height:25px;
  display:inline-block;
  background:no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 36'%3E%3Cg fill='none' stroke='%23788055' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 31 C8 20,11 10,19 4 C18 14,14 24,7 31'/%3E%3Cpath d='M7 29 C10 23,13 17,17 10'/%3E%3C/g%3E%3C/svg%3E");
}
.entrance-btn:hover{
  transform:translateY(-1px);
  color:#505a37 !important;
}

/* 공개 메뉴 - 다이아몬드 완전 제거, 동일 올리브잎 */
.menu-card::before,
.gallery-admin-card::before,
.admin-card::before{
  content:"" !important;
  width:14px;
  height:22px;
  position:absolute;
  left:8px;
  top:14px;
  transform:none !important;
  background:no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 36'%3E%3Cg fill='none' stroke='%23788055' stroke-width='1.35' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 31 C8 20,11 10,19 4 C18 14,14 24,7 31'/%3E%3Cpath d='M7 29 C10 23,13 17,17 10'/%3E%3C/g%3E%3C/svg%3E") !important;
}

/* 관리자 대시보드: 아이콘 문자/기호를 숨기고 잎으로 통일 */
.cms-icon{
  font-size:0 !important;
  width:16px !important;
  height:23px !important;
  left:6px !important;
  top:17px !important;
  background:no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 36'%3E%3Cg fill='none' stroke='%23788055' stroke-width='1.35' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 31 C8 20,11 10,19 4 C18 14,14 24,7 31'/%3E%3Cpath d='M7 29 C10 23,13 17,17 10'/%3E%3C/g%3E%3C/svg%3E") !important;
}
.cms-icon *{display:none !important}

/* 관리자 메뉴를 가로 아이콘 행 느낌이 아닌 종이 목차형 2열로 */
.admin-dashboard-head{
  max-width:880px;
  margin-left:auto;
  margin-right:auto;
}
.dashboard-grid,
.admin-grid,
.cms-menu{
  width:min(880px,100%);
  margin:8px auto 0 !important;
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  column-gap:46px !important;
  row-gap:0 !important;
}
.gallery-admin-card,
.admin-card,
.cms-card{
  position:relative;
  min-width:0 !important;
  padding:17px 34px 17px 34px !important;
  border:0 !important;
  border-bottom:1px solid var(--hairline) !important;
  background:transparent !important;
  box-shadow:none !important;
  border-radius:0 !important;
}
.gallery-admin-card h3,
.admin-card h3{
  font-size:16px !important;
  font-weight:600 !important;
  margin:0 0 3px !important;
}
.gallery-admin-card p,
.admin-card p{
  font-size:11.5px !important;
  color:var(--muted) !important;
}
.cms-arrow{
  opacity:.42;
  font-size:12px !important;
  right:7px !important;
  top:19px !important;
  bottom:auto !important;
}

/* 관리자 전체 글자/헤더 조금 더 절제 */
.admin-dashboard-head .page-title{
  font-size:30px !important;
  margin-bottom:8px !important;
}
.admin-dashboard-head p{
  font-size:12.5px !important;
}
.admin-shell .page{
  padding-top:36px !important;
}

/* 상단바도 종이에 인쇄된 얇은 머리말 */
.topbar{
  background:rgba(247,243,234,.88) !important;
  border-bottom:1px solid rgba(81,88,58,.10) !important;
  box-shadow:none !important;
}

/* 입력 작업 화면만 아주 희미한 종이 면 */
.form-section,
.gallery-form{
  background:rgba(255,255,255,.18) !important;
  border:1px solid rgba(81,88,58,.10) !important;
  box-shadow:none !important;
}

/* 모바일은 1열 */
@media(max-width:760px){
  .dashboard-grid,
  .admin-grid,
  .cms-menu{
    grid-template-columns:1fr !important;
    column-gap:0 !important;
  }
}


/* =========================================================
   KLEDIA v3.7 · REAL PAPER PRINT
   실제 수채화지 이미지를 배경 자산으로 사용
   ========================================================= */

:root{
  --paper-wash: rgba(252,249,242,.72);
  --ink:#36392f;
  --olive:#747c51;
  --olive-deep:#5f6742;
  --muted:#8a8778;
  --line:rgba(80,85,58,.12);
}

/* 실제 종이 */
html, body{
  background:#f6f2e9 !important;
}
body{
  position:relative;
  background:
    linear-gradient(rgba(250,247,239,.62),rgba(250,247,239,.62)),
    url("assets/paper-watercolor.jpg") center center / cover fixed no-repeat !important;
}

/* 기존 CSS 종이 노이즈를 제거하고 실제 이미지가 보이게 */
body::before{
  content:"" !important;
  position:fixed !important;
  inset:0 !important;
  z-index:9998 !important;
  pointer-events:none !important;
  background:
    radial-gradient(circle at 18% 10%, rgba(255,255,255,.24), transparent 28%),
    radial-gradient(circle at 82% 80%, rgba(120,118,88,.025), transparent 30%) !important;
  opacity:1 !important;
  mix-blend-mode:normal !important;
}
body::after{
  content:"" !important;
  position:fixed !important;
  inset:0 !important;
  z-index:9997 !important;
  pointer-events:none !important;
  background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,0)) !important;
  opacity:1 !important;
}

/* 첫 화면은 종이 결이 가장 잘 느껴지도록 */
.hero,
.gallery-hero{
  background:transparent !important;
}
.gallery-hero::before{
  background:rgba(250,247,239,.18) !important;
}
.hero-card,
.gallery-entrance{
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}

/* 내부 페이지는 읽기 편하게 같은 종이를 살짝 씻어냄 */
.page,
.admin-shell,
main{
  background:transparent !important;
}
.page::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:rgba(250,247,239,.18);
}

/* 상단바도 종이 위 인쇄된 머리말처럼 */
.topbar{
  background:rgba(248,244,235,.78) !important;
  backdrop-filter:blur(4px);
  border-bottom:1px solid rgba(80,85,58,.10) !important;
  box-shadow:none !important;
}

/* 잉크가 종이에 눌러 찍힌 인상 */
.gallery-kicker,
.gallery-entrance h1,
.gallery-entrance p,
.page-title,
.brand b,
.topbar,
.menu-card strong,
.menu-card small,
.gallery-admin-card h3,
.gallery-admin-card p,
.admin-card h3,
.admin-card p{
  color:var(--ink) !important;
  text-shadow:
    0 .25px .35px rgba(62,64,48,.16),
    0 0 .4px rgba(62,64,48,.10);
  filter:contrast(.96) saturate(.92);
}

/* 로고도 너무 깨끗한 벡터처럼 뜨지 않게 */
.hero-logo,
.brand img{
  opacity:.90;
  filter:contrast(.92) saturate(.85) sepia(.04);
}

/* 시작하기 잎과 글자를 확실히 분리 */
.entrance-btn{
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:11px !important;
  padding:10px 12px !important;
  min-width:118px !important;
  color:var(--olive-deep) !important;
}
.entrance-btn::before{
  position:static !important;
  flex:0 0 auto !important;
  width:13px !important;
  height:21px !important;
  margin:0 !important;
  transform:none !important;
  content:"" !important;
  background:no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 36'%3E%3Cg fill='none' stroke='%23747c51' stroke-width='1.35' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 31 C8 20,11 10,19 4 C18 14,14 24,7 31'/%3E%3Cpath d='M7 29 C10 23,13 17,17 10'/%3E%3C/g%3E%3C/svg%3E") !important;
}

/* 메뉴 아이콘 모두 올리브잎 */
.menu-card::before,
.gallery-admin-card::before,
.admin-card::before{
  content:"" !important;
  position:absolute !important;
  left:8px !important;
  top:14px !important;
  width:13px !important;
  height:21px !important;
  transform:none !important;
  background:no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 36'%3E%3Cg fill='none' stroke='%23747c51' stroke-width='1.35' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 31 C8 20,11 10,19 4 C18 14,14 24,7 31'/%3E%3Cpath d='M7 29 C10 23,13 17,17 10'/%3E%3C/g%3E%3C/svg%3E") !important;
}

/* 관리자 기존 기호 숨김 */
.cms-icon{
  font-size:0 !important;
  width:13px !important;
  height:21px !important;
  left:7px !important;
  top:16px !important;
  background:no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 36'%3E%3Cg fill='none' stroke='%23747c51' stroke-width='1.35' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 31 C8 20,11 10,19 4 C18 14,14 24,7 31'/%3E%3Cpath d='M7 29 C10 23,13 17,17 10'/%3E%3C/g%3E%3C/svg%3E") !important;
}

/* 관리자 메뉴도 목차형 유지 */
.dashboard-grid,
.admin-grid,
.cms-menu{
  width:min(900px,100%);
  margin:8px auto 0 !important;
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  column-gap:44px !important;
  row-gap:0 !important;
}
.gallery-admin-card,
.admin-card,
.cms-card{
  padding:17px 34px 17px 34px !important;
  border:0 !important;
  border-bottom:1px solid var(--line) !important;
  border-radius:0 !important;
  background:rgba(250,247,239,.10) !important;
  box-shadow:none !important;
}

/* 입력 화면은 종이결을 남기되 가독성 확보 */
.form-section,
.gallery-form,
.rich-editor,
input,
textarea,
select{
  background-color:rgba(255,255,255,.28) !important;
  box-shadow:none !important;
}

/* 모바일 */
@media(max-width:760px){
  body{
    background:
      linear-gradient(rgba(250,247,239,.66),rgba(250,247,239,.66)),
      url("assets/paper-watercolor.jpg") center center / cover fixed no-repeat !important;
  }
  .dashboard-grid,
  .admin-grid,
  .cms-menu{
    grid-template-columns:1fr !important;
  }
}


/* =========================================================
   KLEDIA v3.8 · REAL PAPER + BRAND LEAF
   ========================================================= */

html, body {
  background:#f7f3eb !important;
}

body {
  position:relative;
  background-image:
    linear-gradient(rgba(251,248,241,.36), rgba(251,248,241,.36)),
    url("assets/paper-watercolor-v38.jpg") !important;
  background-position:center center, center center !important;
  background-repeat:no-repeat, no-repeat !important;
  background-size:cover, cover !important;
  background-attachment:fixed, fixed !important;
}

/* Let the real paper show through. Remove excessive whitening. */
body::before {
  content:"" !important;
  position:fixed !important;
  inset:0 !important;
  pointer-events:none !important;
  z-index:9998 !important;
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.10), transparent 30%),
    radial-gradient(circle at 82% 84%, rgba(102,101,76,.018), transparent 30%) !important;
  opacity:1 !important;
}

body::after {
  content:"" !important;
  position:fixed !important;
  inset:0 !important;
  pointer-events:none !important;
  z-index:9997 !important;
  background:transparent !important;
  opacity:1 !important;
}

.gallery-hero::before {
  background:rgba(251,248,241,.06) !important;
}

.page::before {
  background:rgba(251,248,241,.08) !important;
}

/* Printed-on-paper feel */
.gallery-kicker,
.gallery-entrance h1,
.gallery-entrance p,
.page-title,
.menu-card strong,
.menu-card small,
.gallery-admin-card h3,
.gallery-admin-card p,
.admin-card h3,
.admin-card p,
.brand b {
  text-shadow:
    0 .25px .28px rgba(75,76,58,.18),
    0 0 .35px rgba(75,76,58,.08) !important;
  filter:contrast(.95) saturate(.90) !important;
}

.hero-logo,
.brand img {
  opacity:.91 !important;
  filter:contrast(.91) saturate(.82) !important;
}

/* Start control: use a fuller brand-like leaf and give it breathing room. */
.entrance-btn {
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:13px !important;
  padding:10px 14px !important;
  min-width:130px !important;
  color:#606844 !important;
}

.entrance-btn::before {
  content:"" !important;
  position:static !important;
  flex:0 0 auto !important;
  width:19px !important;
  height:28px !important;
  margin:0 !important;
  transform:none !important;
  background:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 46'%3E%3Cg fill='none' stroke='%23747c51' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 40 C8 27,13 12,26 5 C25 18,20 32,10 40 C14 34,18 27,22 18'/%3E%3Cpath d='M10 39 C11 31,15 23,22 14'/%3E%3C/g%3E%3C/svg%3E") !important;
}

/* Same leaf language across public and admin menus. */
.menu-card::before,
.gallery-admin-card::before,
.admin-card::before {
  content:"" !important;
  position:absolute !important;
  left:7px !important;
  top:12px !important;
  width:17px !important;
  height:25px !important;
  transform:none !important;
  background:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 46'%3E%3Cg fill='none' stroke='%23747c51' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 40 C8 27,13 12,26 5 C25 18,20 32,10 40 C14 34,18 27,22 18'/%3E%3Cpath d='M10 39 C11 31,15 23,22 14'/%3E%3C/g%3E%3C/svg%3E") !important;
}

.cms-icon {
  font-size:0 !important;
  width:17px !important;
  height:25px !important;
  left:6px !important;
  top:14px !important;
  background:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 46'%3E%3Cg fill='none' stroke='%23747c51' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 40 C8 27,13 12,26 5 C25 18,20 32,10 40 C14 34,18 27,22 18'/%3E%3Cpath d='M10 39 C11 31,15 23,22 14'/%3E%3C/g%3E%3C/svg%3E") !important;
}

/* Keep quiet editorial structure. */
.gallery-admin-card,
.admin-card,
.cms-card,
.menu-card {
  background:rgba(251,248,241,.035) !important;
}

/* Mobile: preserve texture visibility without making it busy. */
@media(max-width:760px) {
  body {
    background-image:
      linear-gradient(rgba(251,248,241,.40), rgba(251,248,241,.40)),
      url("assets/paper-watercolor-v38.jpg") !important;
    background-size:cover, cover !important;
  }
}


/* =========================================================
   KLEDIA v3.9 · OLIVE BALANCE
   오프닝 타이포 색/크기 균형 조정
   ========================================================= */

/* 로고 아래 KLEDIA: 검정 느낌 제거 + 존재감 22% 축소 */
.gallery-entrance h1{
  color:#626b45 !important;
  font-size:clamp(27px,3.6vw,36px) !important;
  font-weight:400 !important;
  letter-spacing:.24em !important;
  margin-top:17px !important;
  margin-bottom:9px !important;
  text-shadow:
    0 .2px .3px rgba(78,82,56,.18),
    0 0 .35px rgba(78,82,56,.08) !important;
}

/* 문구도 새까맣지 않게 종이에 찍힌 올리브-그레이 */
.gallery-entrance p{
  color:#656758 !important;
  font-size:clamp(13px,1.8vw,16px) !important;
  text-shadow:0 .2px .3px rgba(78,82,56,.12) !important;
}

/* 상단 영문도 같은 인쇄색 */
.gallery-kicker{
  color:#737760 !important;
}

/* 시작하기는 로고 잎과 같은 계열, 조금 더 또렷하게 */
.entrance-btn{
  color:#69714a !important;
  font-size:12px !important;
}
.entrance-btn::before{
  width:18px !important;
  height:27px !important;
}

/* 모바일에서도 타이틀이 과하게 커지지 않도록 */
@media(max-width:760px){
  .gallery-entrance h1{
    font-size:29px !important;
  }
}


/* =========================================================
   KLEDIA v4.0 · ADMIN-CONTROLLED OPENING + BOOK SCALE
   ========================================================= */

/* 관리자 저장값이 실제 화면에 확실히 우선 적용 */
.gallery-entrance h1{
  font-size:var(--home-title-size,34px) !important;
  color:var(--home-title-color,#626b45) !important;
  margin-top:calc(var(--home-block-gap,10px) + 7px) !important;
  margin-bottom:var(--home-block-gap,10px) !important;
}
.gallery-entrance p{
  font-size:var(--home-subtitle-size,15px) !important;
  color:var(--home-subtitle-color,#656758) !important;
  margin-top:var(--home-block-gap,10px) !important;
  margin-bottom:calc(var(--home-block-gap,10px) + 10px) !important;
}
.entrance-btn{
  font-size:var(--home-button-size,12px) !important;
  color:var(--home-button-color,#69714a) !important;
}
.entrance-btn::before{
  width:var(--home-leaf-size,18px) !important;
  height:calc(var(--home-leaf-size,18px) * 1.5) !important;
}

/* 책 상세 표지는 이제 화면을 압도하지 않도록 관리자 조절 */
.book-head{
  display:grid !important;
  grid-template-columns:minmax(160px,var(--book-cover-width,280px)) 1fr !important;
  align-items:center !important;
  gap:clamp(28px,5vw,72px) !important;
}
.book-head > img{
  width:100% !important;
  max-width:var(--book-cover-width,280px) !important;
  height:auto !important;
  justify-self:center !important;
}
.book-meta h1{
  font-size:clamp(28px,4vw,44px) !important;
}

/* 설정 화면을 읽기 쉽게 */
.opening-detail-label{
  margin-top:26px !important;
  padding-top:20px !important;
  border-top:1px solid rgba(80,85,58,.12);
}

@media(max-width:760px){
  .gallery-entrance h1{
    font-size:min(var(--home-title-size,34px),34px) !important;
  }
  .book-head{
    grid-template-columns:1fr !important;
  }
  .book-head > img{
    width:min(72vw,var(--book-cover-width,280px)) !important;
  }
}

/* =========================================================
   KLEDIA v4.1 · LIVE DESIGN STUDIO + BOOK PRESENTATION
   ========================================================= */
.gallery-entrance h1{letter-spacing:var(--home-title-spacing,.24em)!important;transform:translate(var(--home-title-x,0),var(--home-title-y,0))!important}

/* 그림책 목록: 표지를 세로 원본 비율로 선명하게 */
.book-list{gap:0!important}.book-item{min-height:112px!important;padding:12px 8px!important;border-width:0 0 1px!important;border-radius:0!important;background:rgba(255,255,255,.10)!important;box-shadow:none!important}.book-item:hover{background:rgba(255,255,255,.28)!important}.book-list-cover,.book-item img{width:72px!important;height:92px!important;object-fit:contain!important;object-position:center!important;border-radius:4px!important;background:rgba(255,255,255,.58)!important;box-shadow:0 3px 10px rgba(50,45,35,.10)!important;image-rendering:auto!important}.book-item h3{font-size:19px!important;font-weight:500!important}
/* 상세 표지는 최대 260px, 기본 200px. 기존 저장값이 커도 화면을 압도하지 않음 */
.book-head{grid-template-columns:minmax(160px,var(--book-cover-width,200px)) minmax(0,1fr)!important;gap:clamp(36px,6vw,78px)!important;padding:40px 46px!important;background:rgba(255,255,255,.16)!important}.book-cover-detail,.book-head>img{width:100%!important;max-width:var(--book-cover-width,200px)!important;max-height:520px!important;object-fit:contain!important;border-radius:4px!important;justify-self:center!important}.book-meta h1{font-size:clamp(30px,4vw,48px)!important;font-weight:500!important}

/* 실시간 디자인 스튜디오 */
.site-studio-page{width:min(1500px,calc(100% - 34px));margin:0 auto;padding:32px 0 90px}.studio-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:20px}.studio-heading h1{font-size:34px;margin:5px 0 7px}.studio-heading p{margin:0;color:var(--muted)}.device-switch{display:flex;gap:6px}.device-switch button{border:1px solid var(--line);background:rgba(255,255,255,.45);padding:8px 12px;border-radius:999px;cursor:pointer;color:#686b58}.device-switch button.active{background:var(--olive);color:white}.studio-layout{display:grid;grid-template-columns:minmax(320px,430px) minmax(0,1fr);gap:22px;align-items:start}.studio-controls{max-height:calc(100vh - 180px);overflow:auto;padding:2px 8px 80px 2px;scrollbar-width:thin}.studio-section{background:rgba(255,255,255,.42);border:1px solid rgba(85,90,63,.13);border-radius:14px;padding:18px;margin-bottom:12px;box-shadow:0 10px 28px rgba(60,56,42,.035)}.studio-section h2{font-size:18px;margin:0 0 16px}.studio-section>label:not(.studio-control){display:grid;gap:7px;margin:12px 0;font-size:13px}.studio-section input[type=text],.studio-section input:not([type]),.studio-section textarea{width:100%;border:1px solid var(--line);background:rgba(255,255,255,.72);border-radius:9px;padding:10px 11px;color:var(--ink)}.studio-control{display:grid;gap:8px;margin:15px 0}.studio-control>span{font-size:13px}.range-row{display:grid;grid-template-columns:minmax(0,1fr) 48px auto;gap:9px;align-items:center}.range-row input[type=range]{width:100%;accent-color:var(--olive)}.range-row output{background:rgba(255,255,255,.7);border:1px solid var(--line);border-radius:8px;padding:6px;text-align:center;font-size:12px}.range-row small{font-size:11px;color:var(--muted);min-width:32px}.color-row{display:flex;align-items:center;gap:10px}.color-row input[type=color]{width:50px;height:34px;border:1px solid var(--line);border-radius:8px;background:none;padding:2px}.color-row code{font-size:12px;color:#666}.studio-divider{height:1px;background:var(--line);margin:20px 0}.studio-help{font-size:12px;color:var(--muted);line-height:1.6}.studio-savebar{position:sticky;bottom:-72px;display:grid;grid-template-columns:1fr 1fr;gap:8px;padding-top:12px;background:linear-gradient(transparent,rgba(247,243,235,.96) 28%);z-index:5}.studio-preview-wrap{position:sticky;top:90px}.studio-device{margin:auto;transition:max-width .25s ease}.studio-device.desktop{max-width:100%}.studio-device.tablet{max-width:760px}.studio-device.mobile{max-width:390px}.studio-browser{overflow:hidden;border:1px solid rgba(80,85,58,.14);border-radius:16px;background:#f7f3eb;box-shadow:0 16px 48px rgba(57,53,43,.10)}.studio-mini-top{height:54px;display:flex;justify-content:space-between;align-items:center;padding:0 18px;border-bottom:1px solid rgba(80,85,58,.11);background:rgba(248,244,235,.82);font-size:12px;color:#777}.studio-mini-brand{letter-spacing:.16em;color:#555a43}.studio-preview{min-height:620px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:50px 24px;background:linear-gradient(rgba(251,248,241,.38),rgba(251,248,241,.38)),url('assets/paper-watercolor-v38.jpg') center/cover no-repeat}.studio-logo{width:108px;height:auto;object-fit:contain;margin:22px 0 12px}.studio-title{font-family:Georgia,serif;color:#626b45;font-size:28px;letter-spacing:.24em;line-height:1.1;will-change:transform}.studio-subtitle{color:#656758;line-height:1.7}.studio-entry{display:inline-flex;align-items:center;gap:10px;color:#69714a}.studio-leaf{width:var(--studio-leaf-size,18px);height:calc(var(--studio-leaf-size,18px)*1.5);background:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 46'%3E%3Cg fill='none' stroke='%23747c51' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 40 C8 27,13 12,26 5 C25 18,20 32,10 40 C14 34,18 27,22 18'/%3E%3Cpath d='M10 39 C11 31,15 23,22 14'/%3E%3C/g%3E%3C/svg%3E")}.preview-note{text-align:center;color:var(--muted);font-size:12px;margin:10px 0}
@media(max-width:980px){.studio-layout{grid-template-columns:1fr}.studio-controls{max-height:none;overflow:visible}.studio-preview-wrap{position:static;order:-1}.studio-preview{min-height:480px}.site-studio-page{width:min(100% - 22px,900px)}}
@media(max-width:720px){.studio-heading{align-items:flex-start;flex-direction:column}.book-head{grid-template-columns:1fr!important;padding:30px 20px!important}.book-cover-detail,.book-head>img{max-width:min(var(--book-cover-width,200px),68vw)!important}.book-list-cover,.book-item img{width:62px!important;height:82px!important}.book-item{min-height:98px!important}.studio-preview{min-height:430px;padding:34px 16px}.studio-device.mobile{max-width:100%}}


/* =========================================================
   KLEDIA v4.2 · UI LEAF ONLY
   브랜드 심볼은 절대 변경하지 않음.
   '천천히 오세요', 공개 메뉴, 관리자 메뉴에 쓰이는
   작은 UI 장식 잎만 5번째 잎 스타일로 통일.
   ========================================================= */

.entrance-btn::before,
.menu-card::before,
.gallery-admin-card::before,
.admin-card::before,
.cms-icon {
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 44'%3E%3Cg fill='none' stroke='%23747c51' stroke-width='1.55' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 39 C12 31 16 23 23 8'/%3E%3Cpath d='M12.3 30.8 C7.8 31.0 5.7 27.7 6.1 23.4 C10.4 23.7 13.1 26.5 12.3 30.8 Z'/%3E%3Cpath d='M15.5 24.5 C19.7 24.0 22.3 20.8 22.0 16.7 C17.9 16.8 15.0 20.1 15.5 24.5 Z'/%3E%3Cpath d='M18.7 18.1 C14.8 17.2 13.4 14.0 14.2 10.6 C18.0 11.0 20.0 14.2 18.7 18.1 Z'/%3E%3Cpath d='M21.4 12.3 C25.1 11.5 27.1 8.6 26.5 5.2 C22.9 5.7 20.9 8.6 21.4 12.3 Z'/%3E%3C/g%3E%3C/svg%3E") !important;
  background-repeat:no-repeat !important;
  background-position:center !important;
  background-size:contain !important;
}

/* 시작 문구 앞 잎은 작고 단정하게 */
.entrance-btn::before {
  width:18px !important;
  height:24px !important;
}

/* 메뉴/관리자용 장식 잎 */
.menu-card::before,
.gallery-admin-card::before,
.admin-card::before,
.cms-icon {
  width:15px !important;
  height:21px !important;
}

/* 브랜드 로고/심볼은 v4.1 그대로 유지 */
.hero-logo,
.brand img {
  /* intentionally untouched */
}


/* =========================================================
   KLEDIA v4.3 · UI LEAF OPTION 1
   브랜드 심볼은 절대 변경하지 않음.
   작은 UI 장식 잎만 1번 '심플 한 잎'으로 통일.
   ========================================================= */

.entrance-btn::before,
.menu-card::before,
.gallery-admin-card::before,
.admin-card::before,
.cms-icon {
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 40'%3E%3Cg fill='none' stroke='%23747c51' stroke-width='1.55' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 34 C10 25 15 14 23 7 C23 17 18 28 9 34 Z'/%3E%3Cpath d='M9 33 C13 27 16 21 20 14'/%3E%3C/g%3E%3C/svg%3E") !important;
  background-repeat:no-repeat !important;
  background-position:center !important;
  background-size:contain !important;
}

.entrance-btn::before {
  width:15px !important;
  height:22px !important;
}

.menu-card::before,
.gallery-admin-card::before,
.admin-card::before,
.cms-icon {
  width:13px !important;
  height:19px !important;
}

/* KLEDIA 브랜드 심볼/로고는 그대로 유지 */
.hero-logo,
.brand img {
  /* untouched */
}


/* =========================================================
   KLEDIA v4.4 · UI LEAF OPTION 1 BOLD
   심볼/브랜드 로고는 그대로. UI 장식 잎만 확대/강조.
   ========================================================= */

.entrance-btn::before,
.menu-card::before,
.gallery-admin-card::before,
.admin-card::before,
.cms-icon {
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 40'%3E%3Cg fill='none' stroke='%235F6842' stroke-width='2.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.5 34.5 C9.5 24.5 14.8 13.5 23.5 6.5 C23.2 17.3 18.1 28.7 8.5 34.7 Z'/%3E%3Cpath d='M8.8 33.7 C12.8 27.7 16.3 20.9 20.6 13.3'/%3E%3C/g%3E%3C/svg%3E") !important;
  background-repeat:no-repeat !important;
  background-position:center !important;
  background-size:contain !important;
  opacity:.96 !important;
}

/* '천천히 오세요' 앞 */
.entrance-btn::before {
  width:26px !important;
  height:34px !important;
  margin-right:3px !important;
}

/* 공개 메뉴 / 관리자 메뉴 앞 */
.menu-card::before,
.gallery-admin-card::before,
.admin-card::before,
.cms-icon {
  width:22px !important;
  height:29px !important;
}

/* 메뉴 글자와 아이콘 간격 확보 */
.menu-card,
.gallery-admin-card,
.admin-card {
  padding-left:38px !important;
}

/* 브랜드 심볼은 절대 수정하지 않음 */
.hero-logo,
.brand img {
  /* untouched */
}


/* =========================================================
   KLEDIA v4.5 · SELECTED OLIVE LEAF ASSET
   KLEDIA 브랜드 심볼/로고는 절대 변경하지 않음.
   UI 장식용 잎만 사용자가 확정한 정확한 이미지로 교체.
   ========================================================= */

.entrance-btn::before,
.menu-card::before,
.gallery-admin-card::before,
.admin-card::before,
.cms-icon {
  background-image:url("assets/kledia-ui-olive-leaf.png") !important;
  background-repeat:no-repeat !important;
  background-position:center !important;
  background-size:contain !important;
  opacity:1 !important;
  filter:none !important;
}

/* '천천히 오세요' 앞 잎 */
.entrance-btn::before {
  width:24px !important;
  height:24px !important;
  margin-right:8px !important;
  transform:none !important;
}

/* 공개 메뉴 / 관리자 메뉴 앞 잎 */
.menu-card::before,
.gallery-admin-card::before,
.admin-card::before,
.cms-icon {
  width:19px !important;
  height:19px !important;
  transform:none !important;
}

/* v4.4에서 과하게 넓어진 패딩 정상화 */
.menu-card,
.gallery-admin-card,
.admin-card {
  padding-left:22px !important;
}

/* 브랜드 심볼은 건드리지 않음 */
.hero-logo,
.brand img {
  /* intentionally untouched */
}


/* =========================================================
   KLEDIA v4.6 · LEAF / TEXT SPACING ONLY
   확정된 올리브잎 이미지·크기·각도·브랜드 심볼은 그대로 유지.
   메뉴 제목과 잎 사이 간격만 약 9px 확보.
   ========================================================= */
.menu-card::before,
.gallery-admin-card::before,
.admin-card::before {
  margin-right: 9px !important;
  flex: 0 0 auto !important;
}


/* =========================================================
   KLEDIA v4.7 · LEAF SPACING FIX
   - 메뉴 잎은 제목에서 실제로 떨어지도록 위치 조정
   - 오프닝 '천천히 오세요'는 잎과 글씨 간격 축소
   ========================================================= */

/* 공개/관리자 메뉴: 잎이 absolute라 margin-right가 먹지 않아 left 위치를 조정 */
.menu-card,
.gallery-admin-card,
.admin-card {
  padding-left: 34px !important;
}

.menu-card::before,
.gallery-admin-card::before,
.admin-card::before {
  left: 7px !important;
  margin-right: 0 !important;
}

/* '천천히 오세요' 앞은 기존 gap이 너무 넓어 보여 축소 */
.entrance-btn {
  gap: 5px !important;
}

.entrance-btn::before {
  margin-right: 0 !important;
}
