: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;
}


/* =========================================================
   KLEDIA v4.8 · MENU LEAF SIZE FINAL
   - 첫 오프닝 화면은 v4.7 그대로
   - 뒤 메뉴 목록의 확정 올리브잎만 27px로 소폭 확대
   - 잎 이미지/각도/간격/로고/기타 디자인은 변경 없음
   ========================================================= */
.menu-card::before,
.gallery-admin-card::before,
.admin-card::before {
  width: 27px !important;
  height: 27px !important;
}

.menu-card,
.gallery-admin-card,
.admin-card {
  padding-left: 42px !important;
}

/* =========================================================
   KLEDIA v5.0 · MOBILE FULL-BLEED PAGE + MULTI PAGE IMAGES
   - public page images fill the mobile viewport width
   - multiple page images are shown continuously in order
   - admin can upload/reorder/remove several images
   ========================================================= */
.page-visual-gallery{
  width:min(900px,100%);
  margin:0 auto 24px;
  display:grid;
  gap:18px;
}
.page-visual-sheet{
  margin:0;
  padding:0;
  background:transparent;
}
.page-visual-sheet img{
  display:block;
  width:100%;
  height:auto;
  max-height:none;
  object-fit:contain;
  border-radius:4px;
  box-shadow:0 10px 32px rgba(62,58,43,.055);
}
.page-upload-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:16px;
}
.page-upload-head h2{margin:0 0 4px}
.page-upload-head .file-control{min-width:240px}
.page-preview-list{display:grid;gap:14px;margin:14px 0 20px}
.page-preview-item{
  display:grid;
  grid-template-columns:minmax(110px,220px) 1fr;
  gap:16px;
  align-items:center;
  padding:14px;
  border:1px dashed rgba(70,78,46,.25);
  border-radius:16px;
  background:rgba(255,255,255,.28);
}
.page-preview-item img{width:100%;max-height:260px;object-fit:contain}
.page-preview-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.page-preview-actions span{min-width:72px;font-weight:700;color:var(--olive-dark)}
.page-preview-actions button:disabled{opacity:.35;cursor:not-allowed}
.page-preview-empty{margin:0;padding:18px 0;text-align:center}

@media(max-width:720px){
  .public-page{
    width:100%;
    max-width:none;
    padding-left:0 !important;
    padding-right:0 !important;
    padding-top:30px;
  }
  .public-page-title{
    padding:0 18px;
    margin-bottom:24px;
  }
  .page-visual-gallery{
    width:100vw;
    max-width:100vw;
    margin-left:calc(50% - 50vw);
    margin-right:calc(50% - 50vw);
    margin-bottom:24px;
    gap:0;
  }
  .page-visual-sheet img{
    width:100vw;
    max-width:100vw;
    border-radius:0;
    box-shadow:none;
  }
  .public-page .public-rich{
    width:auto;
    margin:0 18px;
    padding-left:0;
    padding-right:0;
  }
  .page-upload-head{display:grid;grid-template-columns:1fr}
  .page-upload-head .file-control{min-width:0;width:100%}
  .page-preview-item{grid-template-columns:1fr}
  .page-preview-item img{max-height:none}
}

/* =========================================================
   KLEDIA v5.1 · MOBILE LIGHT MODE + PAGE FINISH + PWA POLISH
   - KLEDIA 화면은 기기 다크모드와 무관하게 밝은 아이보리로 유지
   - 이미지 전용 페이지의 불필요한 하단 여백 최소화
   - 장식용 올리브잎은 확정 자산만 사용
   ========================================================= */
:root,
html,
body {
  color-scheme: light only !important;
}

/* Samsung/Android 등 강제 다크 환경에서도 KLEDIA 종이색과 글자색 유지 */
@media (prefers-color-scheme: dark) {
  html,
  body {
    color: var(--ink) !important;
    background-color: #f7f3eb !important;
    background-image:
      linear-gradient(rgba(251,248,241,.40), rgba(251,248,241,.40)),
      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;
  }
  .topbar {
    background: rgba(247,243,234,.88) !important;
    color: var(--ink) !important;
  }
  .soft-btn,
  .icon-btn,
  .menu-card,
  .gallery-admin-card,
  .admin-card,
  .content-card,
  .form-section,
  .gallery-form,
  .book-item,
  .activity-thumb,
  input,
  textarea,
  select,
  .rich-editor {
    color: var(--ink) !important;
  }
}

/* 이미지 전용 소개/프로필/강의 페이지는 콘텐츠가 끝나는 곳에서 조용히 마무리 */
.visual-only-shell {
  min-height: 0 !important;
}
.visual-only-page {
  padding-bottom: 18px !important;
}
.visual-only-page .page-visual-gallery {
  margin-bottom: 0 !important;
}

/* 확정된 장식용 올리브잎 하나만 사용 */
.studio-leaf,
.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;
  filter: none !important;
}

@media (max-width: 720px) {
  .visual-only-page {
    padding-bottom: 0 !important;
  }
  .visual-only-page .public-page-title {
    margin-bottom: 18px !important;
  }
  .visual-only-page .page-visual-gallery {
    margin-bottom: 0 !important;
  }
}


/* =========================================================
   KLEDIA v5.2 · ROLE LABELS + RICH TEXT SIZE/LINE HEIGHT
   - 저장되는 권한 값은 기존 영문 그대로, 화면 표시만 한국어
   - 본문 선택 글자 크기/줄간격 조절
   - 붙여넣기/직접 입력의 줄바꿈 유지
   ========================================================= */
.editor-toolbar{
  align-items:center;
}
.editor-divider{
  width:1px;
  height:28px;
  background:var(--line);
  margin:0 2px;
}
.editor-control{
  display:inline-flex !important;
  align-items:center;
  gap:6px;
  margin:0 !important;
  font-size:12px !important;
  font-weight:600 !important;
  color:var(--muted);
  white-space:nowrap;
}
.editor-control select{
  min-width:78px;
  padding:7px 24px 7px 8px !important;
  border:1px solid var(--line) !important;
  border-radius:8px !important;
  background-color:#fff !important;
  font:inherit !important;
  color:var(--ink) !important;
}
.editor-help{
  margin:7px 3px 9px;
  font-size:12px;
  line-height:1.6;
  color:var(--muted);
}
.rich-editor,
.public-rich,
.book-body{
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}
.rich-editor p,
.public-rich p,
.book-body p{
  white-space:inherit;
}
@media(max-width:720px){
  .editor-toolbar{
    position:static;
  }
  .editor-divider{
    display:none;
  }
  .editor-control{
    flex:1 1 130px;
  }
  .editor-control select{
    flex:1;
    min-width:0;
  }
}

/* =========================================================
   KLEDIA v5.3 · MOBILE BRAND STORY SCROLL
   - 소개를 가로 이미지 축소가 아닌 실제 HTML 세로 스크롤로 재구성
   - 문구는 HTML 텍스트로 고정하여 오타/축소 문제 최소화
   - 대표 소개는 짧게, 전문성·활동·리포트·문의까지 한 흐름으로 연결
   ========================================================= */
.story-shell{min-height:100svh}
.story-page{width:100%;overflow:hidden}
.story-section{
  position:relative;
  width:100%;
  padding:76px 24px;
}
.story-section::after{
  content:"";
  position:absolute;
  left:50%;bottom:0;
  width:min(760px,calc(100% - 48px));
  height:1px;
  transform:translateX(-50%);
  background:linear-gradient(90deg,transparent,rgba(85,91,58,.16),transparent);
}
.story-section-inner{width:min(980px,100%);margin:0 auto}
.story-kicker,
.story-eyebrow{
  display:block;
  margin-bottom:10px;
  color:#88806f;
  font-size:11px;
  letter-spacing:.22em;
  text-transform:uppercase;
}
.story-section h2{
  margin:0;
  color:var(--olive-dark);
  font-size:clamp(30px,5vw,44px);
  font-weight:500;
  letter-spacing:.035em;
}
.story-lead{
  margin:16px 0 0;
  color:#5d5a4e;
  font-size:clamp(16px,2.6vw,20px);
  line-height:1.8;
}
.story-copy{margin:38px auto 0;max-width:760px;color:#36362f;font-size:16px;line-height:2.05}
.story-copy p{margin:0 0 23px}
.story-copy-center{text-align:center}
.story-emphasis{color:var(--olive-dark);font-size:18px}
.story-footnote{margin:30px 0 0;text-align:center;color:#7c7567;font-size:13px;line-height:1.8}
.story-link-btn{
  display:block;
  margin:26px auto 0;
  padding:11px 18px;
  border:1px solid rgba(86,94,58,.32);
  border-radius:999px;
  background:rgba(255,255,255,.28);
  color:var(--olive-dark);
  font:inherit;
  font-size:13px;
  letter-spacing:.02em;
  cursor:pointer;
}
.story-link-btn:hover{background:rgba(255,255,255,.52)}

/* cover / ending */
.story-cover{
  min-height:calc(100svh - 62px);
  display:grid;
  place-items:center;
  padding:48px 24px 72px;
  text-align:center;
}
.story-cover::after{display:none}
.story-cover-inner{width:min(720px,100%);margin:auto}
.story-symbol{display:block;width:112px;height:auto;margin:18px auto 14px;object-fit:contain}
.story-cover h1,
.story-ending h2{
  margin:6px 0 16px;
  color:var(--olive-dark);
  font-size:clamp(44px,9vw,74px);
  font-weight:400;
  letter-spacing:.28em;
  text-indent:.28em;
}
.story-rule{display:flex;align-items:center;justify-content:center;gap:12px;width:min(330px,72%);margin:0 auto 18px}
.story-rule::before,.story-rule::after{content:"";height:1px;flex:1;background:rgba(91,92,64,.28)}
.story-rule i{width:8px;height:8px;border-radius:50%;background:#73744f}
.story-cover-tagline{margin:0;color:#4f5043;font-size:clamp(16px,3vw,21px);line-height:1.9}
.story-cover-fields{display:block;margin-top:16px;color:#8c8578;font-size:13px;letter-spacing:.18em}
.story-scroll-cue{display:block;margin-top:54px;color:#9c9588;font-size:11px;letter-spacing:.08em}
.story-symbol-end{width:96px}
.story-ending{min-height:72svh}

/* philosophy */
.story-philosophy{text-align:center}
.philosophy-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:44px}
.philosophy-grid article{
  min-height:178px;
  padding:22px 14px;
  border:1px solid rgba(82,91,55,.12);
  border-radius:22px;
  background:rgba(255,255,255,.25);
}
.philosophy-grid article span{font-size:10px;color:#a0998a;letter-spacing:.15em}
.philosophy-grid h3{margin:10px 0 8px;color:var(--olive-dark);font-size:22px;font-weight:500}
.philosophy-grid p{margin:0;color:#555348;font-size:13px;line-height:1.8}

/* founder */
.founder-card{display:grid;grid-template-columns:minmax(260px,400px) 1fr;gap:46px;align-items:center;margin-top:34px}
.founder-photo-wrap{overflow:hidden;border-radius:28px;background:#eee7db;box-shadow:0 18px 44px rgba(69,63,48,.08)}
.founder-photo-wrap img{display:block;width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;object-position:center top}
.founder-copy{text-align:left}
.founder-label{color:#8f887a;font-size:12px;letter-spacing:.12em}
.founder-copy h3{margin:8px 0 18px;color:var(--olive-dark);font-size:34px;font-weight:500;letter-spacing:.08em}
.founder-summary{max-width:520px;margin:0;color:#3f4037;font-size:18px;line-height:1.9}
.founder-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:24px}
.founder-tags span{padding:8px 11px;border-radius:999px;background:rgba(106,113,76,.08);color:#65674f;font-size:12px;line-height:1.4}
.founder-copy .story-link-btn{margin:24px 0 0}

/* expertise */
.story-expertise{text-align:center}
.expertise-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:18px;margin-top:36px;text-align:left}
.expertise-panel{padding:26px;border:1px solid rgba(78,85,55,.13);border-radius:24px;background:rgba(255,255,255,.24)}
.expertise-panel h3{margin:0 0 18px;color:var(--olive-dark);font-size:19px;font-weight:600}
.experience-list{display:grid;gap:0}
.experience-list>div{padding:13px 0;border-bottom:1px dotted rgba(81,82,60,.18)}
.experience-list>div:last-child{border-bottom:0}
.experience-list strong{display:block;color:#38382f;font-size:14px;line-height:1.6}
.experience-list strong em{font-style:normal;font-weight:400;color:#706c60;font-size:12px}
.experience-list small{display:block;margin-top:4px;color:#6f6c61;font-size:12px;line-height:1.65}
.qualification-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.qualification-grid span{display:flex;align-items:center;min-height:66px;padding:12px 14px;border:1px solid rgba(83,89,59,.11);border-radius:15px;background:rgba(248,246,239,.7);color:#47483d;font-size:13px;line-height:1.5}
.story-quote{margin:30px auto 0;max-width:680px;padding:22px 24px;border:0;border-radius:20px;background:rgba(255,255,255,.22);color:#5f5d50;font-size:15px;line-height:1.9}

/* activity flow */
.story-activities{text-align:center}
.activity-flow{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:30px auto 34px;max-width:760px}
.activity-flow>*{padding:8px 12px;border-radius:999px;border:1px solid rgba(74,84,51,.13);background:rgba(255,255,255,.25);color:#6f7058;font-size:12px}
.activity-flow strong{background:rgba(95,105,61,.12);color:var(--olive-dark)}
.activity-story-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;text-align:left}
.activity-story-card{overflow:hidden;border:1px solid rgba(79,84,56,.12);border-radius:24px;background:rgba(255,255,255,.28)}
.activity-story-img{aspect-ratio:2/1;overflow:hidden;background:#eee8dc}
.activity-story-img img{width:100%;height:100%;object-fit:cover;display:block}
.activity-story-copy{padding:18px 18px 20px}
.activity-story-copy span{display:inline-block;margin-bottom:6px;color:#8c8679;font-size:11px;letter-spacing:.10em}
.activity-story-copy h3{margin:0 0 8px;color:var(--olive-dark);font-size:18px;font-weight:600}
.activity-story-copy p{margin:0;color:#5a594f;font-size:13px;line-height:1.75}

/* report */
.story-report{text-align:center}
.report-inner{max-width:820px}
.report-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:42px}
.report-steps>div{padding:26px 16px;border-radius:22px;background:rgba(255,255,255,.24);border:1px solid rgba(80,87,56,.11)}
.report-steps span{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:rgba(99,108,68,.10);color:var(--olive-dark);font-size:11px}
.report-steps p{margin:14px 0 0;color:#4b4a40;font-size:15px;line-height:1.85}
.report-highlight{display:flex;flex-direction:column;align-items:center;gap:4px;margin:34px auto 0;color:#4e5040}
.report-highlight strong{font-size:20px;color:var(--olive-dark)}
.report-highlight span{font-size:14px}
.report-closing{margin:56px 0 0;color:#797367;font-size:13px;line-height:1.8}

/* contact */
.story-contact{text-align:center}
.contact-story-grid{display:grid;grid-template-columns:1fr 260px;gap:24px;align-items:center;max-width:760px;margin:38px auto 0;text-align:left}
.contact-details{padding:24px 26px;border-radius:24px;background:rgba(255,255,255,.24);border:1px solid rgba(78,84,55,.12)}
.contact-details h3{margin:0;color:var(--olive-dark);font-size:28px;font-weight:500;letter-spacing:.08em}
.contact-role{margin:8px 0 22px;color:#777164;font-size:13px}
.contact-details a,.contact-details>div{display:grid;grid-template-columns:88px 1fr;gap:10px;padding:12px 0;border-top:1px dotted rgba(83,85,59,.18);color:inherit;text-decoration:none}
.contact-details span{color:#8b8578;font-size:12px}
.contact-details strong{color:#45463b;font-size:14px;font-weight:500}
.contact-qr{margin:0;text-align:center}
.contact-qr figcaption{margin-bottom:10px;color:#68695a;font-size:13px}
.contact-qr img{width:210px;max-width:100%;border-radius:18px;box-shadow:0 12px 28px rgba(74,69,55,.07)}

@media(max-width:760px){
  .story-section{padding:62px 18px}
  .story-cover{min-height:calc(100svh - 58px);padding:42px 20px 64px}
  .story-cover h1,.story-ending h2{font-size:46px;letter-spacing:.22em;text-indent:.22em}
  .story-symbol{width:92px}
  .story-scroll-cue{margin-top:42px}
  .story-section h2{font-size:30px}
  .story-lead{font-size:16px}
  .story-copy{margin-top:30px;font-size:14px;line-height:1.95;text-align:left}
  .story-copy br{display:none}
  .story-emphasis{font-size:16px}
  .philosophy-grid{grid-template-columns:1fr 1fr;gap:10px;margin-top:30px}
  .philosophy-grid article{min-height:150px;padding:18px 12px}
  .philosophy-grid h3{font-size:20px}
  .philosophy-grid p{font-size:12px}
  .founder-card{grid-template-columns:1fr;gap:26px;margin-top:28px}
  .founder-photo-wrap{width:min(82vw,360px);margin:0 auto;border-radius:24px}
  .founder-copy{text-align:center}
  .founder-summary{font-size:15px;line-height:1.85}
  .founder-tags{justify-content:center}
  .founder-copy .story-link-btn{margin:22px auto 0}
  .expertise-grid{grid-template-columns:1fr;gap:12px;margin-top:28px}
  .expertise-panel{padding:20px 18px;border-radius:20px}
  .qualification-grid{grid-template-columns:1fr 1fr;gap:8px}
  .qualification-grid span{min-height:58px;padding:10px;font-size:12px}
  .activity-story-grid{grid-template-columns:1fr;gap:12px}
  .activity-story-card{border-radius:20px}
  .activity-story-copy{padding:16px}
  .report-steps{grid-template-columns:1fr;gap:10px;margin-top:30px}
  .report-steps>div{display:grid;grid-template-columns:38px 1fr;align-items:center;text-align:left;padding:17px 18px}
  .report-steps p{margin:0 0 0 12px;font-size:14px}
  .contact-story-grid{grid-template-columns:1fr;gap:26px;margin-top:30px}
  .contact-details{padding:20px 18px}
  .contact-details a,.contact-details>div{grid-template-columns:78px 1fr}
  .contact-qr img{width:190px}
  .story-ending{min-height:68svh}
}

@media(max-width:420px){
  .story-cover h1,.story-ending h2{font-size:38px}
  .philosophy-grid{grid-template-columns:1fr 1fr}
  .philosophy-grid article{min-height:142px}
  .qualification-grid{grid-template-columns:1fr}
  .contact-details a,.contact-details>div{grid-template-columns:72px 1fr}
}


/* =========================================================
   KLEDIA v5.4 · INTRO STORY IMAGE CMS
   ========================================================= */
.intro-asset-admin{padding-bottom:110px}
.intro-asset-head{align-items:flex-end;gap:18px}
.intro-asset-head p{margin:8px 0 0;color:#777164;font-size:13px;line-height:1.7}
.intro-asset-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:26px}
.intro-asset-card{display:grid;grid-template-columns:190px 1fr;gap:18px;padding:16px;border:1px solid rgba(78,84,55,.13);border-radius:22px;background:rgba(255,255,255,.42);box-shadow:0 12px 30px rgba(61,58,45,.035)}
.intro-asset-preview{overflow:hidden;min-height:150px;border-radius:16px;background:#eee8dc}
.intro-asset-preview img{display:block;width:100%;height:100%;aspect-ratio:4/3;object-fit:cover}
.intro-asset-copy{display:flex;flex-direction:column;justify-content:center;min-width:0}
.intro-asset-copy h2{margin:0 0 6px;color:var(--olive-dark);font-size:18px;font-weight:600}
.intro-asset-copy p{margin:0 0 14px;color:#777164;font-size:12px;line-height:1.6}
.intro-asset-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.intro-asset-copy .file-status{display:block;margin-top:10px;color:#918a7d}
@media(max-width:900px){.intro-asset-grid{grid-template-columns:1fr}}
@media(max-width:560px){
  .intro-asset-head{align-items:flex-start;flex-direction:column}
  .intro-asset-card{grid-template-columns:1fr;gap:13px;padding:14px}
  .intro-asset-preview{min-height:auto}
  .intro-asset-preview img{aspect-ratio:16/10}
  .intro-asset-copy h2{font-size:17px}
}


/* KLEDIA v5.6 · Android PWA install card */
.kledia-pwa-install-card{position:fixed;left:50%;bottom:calc(18px + env(safe-area-inset-bottom));transform:translateX(-50%);z-index:9999;width:min(92vw,420px);display:flex;align-items:center;gap:8px;padding:8px;background:rgba(250,247,240,.97);border:1px solid rgba(102,112,68,.22);border-radius:18px;box-shadow:0 12px 34px rgba(45,45,35,.16);backdrop-filter:blur(10px)}
.kledia-pwa-install-main{flex:1;min-width:0;border:0;background:transparent;display:flex;align-items:center;gap:11px;text-align:left;color:#50543f;padding:5px 4px;cursor:pointer}
.kledia-pwa-install-main img{width:42px;height:42px;border-radius:11px;object-fit:cover;flex:0 0 auto}
.kledia-pwa-install-main span{display:flex;flex-direction:column;min-width:0;gap:2px}
.kledia-pwa-install-main b{font:600 14px/1.3 inherit;letter-spacing:.02em}
.kledia-pwa-install-main small{font-size:11px;line-height:1.35;color:#77796b;white-space:normal}
.kledia-pwa-install-close{border:0;background:transparent;color:#77796b;font-size:22px;line-height:1;width:34px;height:34px;border-radius:50%;cursor:pointer}
@media (display-mode:standalone){.kledia-pwa-install-card{display:none!important}}

/* =========================================================
   KLEDIA v5.7 · RICH EDITOR IMAGE + FIXED TEXT COLORS
   - 본문 이미지 파일 삽입 / 클립보드 이미지 붙여넣기 / 드롭
   - 이미지 크기 4단계, 정렬 3단계
   - 글자색: 검정 / KLEDIA 올리브 / 주황 / 밝은 올리브
   ========================================================= */
.editor-color-group,
.editor-image-tools{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  font-weight:600;
  color:var(--muted);
  white-space:nowrap;
}
.editor-color-group>span,
.editor-image-tools>span{margin-right:1px}
.editor-toolbar .color-dot{
  width:24px;
  height:24px;
  min-width:24px;
  padding:0;
  border-radius:50%;
  border:2px solid rgba(255,255,255,.95);
  box-shadow:0 0 0 1px rgba(62,61,52,.18);
}
.editor-toolbar .color-black{background:#222222}
.editor-toolbar .color-olive{background:#667044}
.editor-toolbar .color-orange{background:#C9783C}
.editor-toolbar .color-lightolive{background:#9AAE5B}
.editor-toolbar .editor-image-add{
  background:var(--olive-dark);
  color:#fff;
  border-color:var(--olive-dark);
}
.editor-image-tools button{
  padding:7px 9px;
  font-size:11px;
}
.rich-editor .rich-inline-image,
.public-rich .rich-inline-image,
.book-body .rich-inline-image{
  box-sizing:border-box;
  max-width:100%;
  height:auto;
  border-radius:12px;
  vertical-align:middle;
}
.rich-editor .rich-inline-image{cursor:pointer;transition:outline-color .15s,box-shadow .15s}
.rich-editor .rich-inline-image.editor-image-selected{
  outline:3px solid rgba(102,112,68,.45);
  outline-offset:3px;
  box-shadow:0 6px 20px rgba(66,68,52,.12);
}
.rich-editor:empty:before{
  content:'글을 입력하거나 붙여넣으세요. 그림은 Ctrl+V 또는 “＋ 이미지”로 넣을 수 있어요.';
  color:#aaa69c;
  pointer-events:none;
}
@media(max-width:720px){
  .editor-color-group,.editor-image-tools{flex:1 1 100%;flex-wrap:wrap}
  .editor-image-tools button{flex:0 0 auto}
  .editor-toolbar .editor-image-add{flex:1 1 120px}
  .rich-editor .rich-inline-image[data-size="small"],
  .public-rich .rich-inline-image[data-size="small"],
  .book-body .rich-inline-image[data-size="small"]{min-width:32%}
}



/* =========================================================
   KLEDIA v5.9 · INTRO CMS / PREVIEW / MUSIC / ROLE VIEW
   ========================================================= */
.philosophy-icon{display:flex!important;align-items:center;justify-content:center;width:34px;height:34px;margin:0 auto 2px!important;color:#747a55;letter-spacing:0!important}
.philosophy-icon svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.35;stroke-linecap:round;stroke-linejoin:round}
.philosophy-grid p{word-break:keep-all;overflow-wrap:break-word}
.viewer-preview-badge{display:inline-flex;align-items:center;min-height:32px;padding:0 10px;border:1px solid rgba(102,112,68,.22);border-radius:999px;background:rgba(255,255,255,.42);color:#667044;font-size:11px;white-space:nowrap}
.role-preview-panel{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 26px;padding:20px 22px;border:1px solid rgba(82,87,59,.13);border-radius:22px;background:rgba(255,255,255,.35)}
.role-preview-panel h2{margin:4px 0 4px;color:#4f553b;font-size:20px}.role-preview-panel p{margin:0;color:#777164;font-size:12px}.role-preview-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.music-toggle{display:inline-grid;place-items:center;width:34px;height:34px;border:1px solid rgba(102,112,68,.18);border-radius:50%;background:rgba(255,255,255,.45);color:#667044;font-size:16px;cursor:pointer}
.music-file-row,.music-preview-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px}.music-preview-actions{margin-top:12px}
.story-admin-sections{display:grid;gap:12px;margin-top:18px}.story-admin-details{border:1px solid rgba(82,87,59,.12);border-radius:18px;background:rgba(255,255,255,.27);overflow:hidden}.story-admin-details>summary{cursor:pointer;padding:16px 18px;color:#59603f;font-weight:650;list-style:none}.story-admin-details>summary::-webkit-details-marker{display:none}.story-admin-details[open]>summary{border-bottom:1px solid rgba(82,87,59,.10);background:rgba(255,255,255,.24)}
.story-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;padding:18px}.story-admin-field{display:flex;flex-direction:column;gap:7px;min-width:0}.story-admin-field>span{color:#666254;font-size:12px;font-weight:600}.story-admin-field input,.story-admin-field textarea,.story-array-row input,.story-array-row textarea,.qualification-editor-grid input{width:100%;box-sizing:border-box;border:1px solid rgba(76,82,55,.16);border-radius:12px;background:rgba(255,255,255,.62);padding:10px 12px;color:#313329;font:inherit;line-height:1.55;resize:vertical}.story-admin-field small{color:#969083;font-size:11px}
.story-array-list{display:grid;gap:9px;padding:0 18px 18px}.story-array-row{display:grid;grid-template-columns:38px minmax(180px,.65fr) minmax(240px,1.35fr);align-items:center;gap:9px}.story-array-row>b{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:rgba(102,112,68,.09);color:#737957;font-size:11px}.activity-text-editor-row{grid-template-columns:38px 100px minmax(170px,.65fr) minmax(240px,1.35fr)}.report-editor-row{grid-template-columns:38px 1fr}.qualification-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:18px}.qualification-editor-grid label{display:grid;grid-template-columns:30px 1fr;align-items:center;gap:7px}.qualification-editor-grid span{color:#8d887b;font-size:11px;text-align:center}.intro-preview-buttons{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.story-preview-mobile{max-width:430px;margin:18px auto;box-shadow:0 24px 70px rgba(46,43,34,.16);border-radius:28px;overflow:hidden}.story-preview-mobile .topbar{position:relative}.story-preview-mobile .story-section{padding-left:18px;padding-right:18px}.story-preview-mobile .philosophy-grid{grid-template-columns:1fr 1fr}.story-preview-mobile .expertise-grid,.story-preview-mobile .activity-story-grid,.story-preview-mobile .contact-story-grid{grid-template-columns:1fr}.story-preview-mobile .founder-card{grid-template-columns:1fr}.story-preview-mobile .founder-photo-wrap{max-width:280px;margin:0 auto}.story-preview-desktop{max-width:1180px;margin:18px auto;box-shadow:0 24px 70px rgba(46,43,34,.10)}
@media(max-width:760px){.role-preview-panel{align-items:flex-start;flex-direction:column}.role-preview-actions{justify-content:flex-start}.story-admin-grid{grid-template-columns:1fr}.story-array-row,.activity-text-editor-row{grid-template-columns:30px 1fr}.story-array-row textarea,.activity-text-editor-row textarea{grid-column:2}.activity-text-editor-row .story-activity-area{grid-column:2}.qualification-editor-grid{grid-template-columns:1fr}.intro-preview-buttons{justify-content:flex-start}.viewer-preview-badge{display:none}}


/* =========================================================
   KLEDIA v6.1.2 · quiet desktop install button
   ========================================================= */
.hero-entry-actions{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:0;
  margin-top:0;
}
.hero-entry-actions .entrance-btn{margin-top:0}
.hero-install-btn{
  position:fixed;
  right:22px;
  bottom:20px;
  z-index:120;
  border:1px solid rgba(102,112,68,.20);
  background:rgba(250,247,240,.72);
  color:rgba(83,88,65,.78);
  font:500 11px/1.2 inherit;
  letter-spacing:.035em;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:7px 10px;
  border-radius:999px;
  box-shadow:0 3px 12px rgba(53,55,42,.05);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  cursor:pointer;
  transition:background .18s ease,color .18s ease,border-color .18s ease,transform .18s ease;
}
.hero-install-btn:hover{
  background:rgba(250,247,240,.92);
  color:#626b45;
  border-color:rgba(102,112,68,.30);
  transform:translateY(-1px);
}
.hero-install-btn[hidden]{display:none!important}
.hero-install-mark{font-size:12px;font-weight:300;line-height:1;color:#7b845c}
@media (max-width:760px){.hero-install-btn{display:none!important}}
@media (display-mode:standalone){.hero-install-btn{display:none!important}}

/* =========================================================
   KLEDIA v6.1.5 · SMART WORD PASTE / REAL TABLE PRESERVE
   ========================================================= */
.rich-table-scroll{
  width:100%;
  max-width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  margin:18px 0;
  border-radius:10px;
}
.rich-table{
  border-collapse:collapse;
  width:max-content;
  min-width:min(100%, 620px);
  max-width:none;
  background:#fff;
}
.rich-table td,.rich-table th{
  min-width:72px;
  vertical-align:top;
  overflow-wrap:break-word;
  word-break:keep-all;
}
.rich-table th{font-weight:700}
.rich-editor .rich-table-scroll{outline:1px dashed rgba(102,112,68,.16);outline-offset:2px}
@media(max-width:720px){
  .rich-table{min-width:560px}
  .rich-table td,.rich-table th{min-width:88px}
}

/* KLEDIA v6.1.8 · deterministic paste modes + book cover placeholders */
.editor-paste-mode{display:inline-flex;align-items:center;gap:5px;padding-left:2px}
.editor-paste-mode>span{font-size:11px;color:var(--muted);margin-right:2px}
.editor-toolbar .paste-mode-btn{padding:7px 10px;font-size:12px;background:rgba(255,255,255,.72);color:var(--olive-dark)}
.editor-toolbar .paste-mode-btn.active{background:var(--olive-dark);color:#fff;border-color:var(--olive-dark);box-shadow:0 0 0 1px rgba(102,112,68,.08)}
.rich-editor .rich-table-scroll{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;margin:14px 0}
.rich-editor .rich-table-scroll table{max-width:none;border-collapse:collapse}

.book-admin-card{min-height:150px}
.admin-book-cover-slot{width:80px;height:72px;float:right;margin-left:12px;border-radius:10px;overflow:hidden;background:rgba(247,244,235,.78);border:1px solid rgba(102,112,68,.12)}
.admin-book-cover-slot>img{width:100%;height:100%;object-fit:cover;display:block}
.admin-book-cover-empty{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:#9a9688;font-size:9px;letter-spacing:.02em;text-align:center}
.admin-book-cover-empty img{width:26px;height:34px;object-fit:contain;opacity:.55}
@media(max-width:720px){
  .editor-paste-mode{flex:1 1 100%;padding-top:2px}
  .editor-toolbar .paste-mode-btn{flex:0 0 auto}
  .admin-book-cover-slot{width:70px;height:64px}
}
