
:root{
  --g900:#191f28;--g800:#333d4b;--g700:#4e5968;--g600:#6b7684;--g500:#8b95a1;--g400:#b0b8c1;--g300:#d1d6db;--g200:#e5e8eb;--g100:#f2f4f6;--g50:#f9fafb;
  --blue:#3182f6;--blueHover:#1b64da;--blue50:#e8f3ff;--blue100:#c9e2ff;--red:#f04452;
  --hairline:repeat-x url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1' height='1'><rect fill='rgba(0, 0, 33, 0.07)' x='0' y='0' width='1' height='0.5'/></svg>");
  --font:"Toss Product Sans","SF Pro KR","SF Pro Display","SF Pro Icons",-apple-system,system-ui,"Basier Square","Apple SD Gothic Neo",Roboto,"Noto Sans KR","Noto Sans","Helvetica Neue",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
  /* Tossface: flat 2D colour emoji for article content and the editor pickers */
  --font-flat:"Toss Product Sans","SF Pro KR","SF Pro Display",-apple-system,system-ui,"Apple SD Gothic Neo",Roboto,"Noto Sans KR","Noto Sans","Helvetica Neue",Helvetica,Arial,Tossface,sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
html{overscroll-behavior-y:none;scroll-padding-top:76px}
body{overscroll-behavior-y:none}
#app{padding-top:60px}
#app{min-height:100vh;display:flex;flex-direction:column}
#app>*{width:100%;flex-shrink:0}
#app>.toolbar{width:max-content}
#app>.footer{margin-top:auto}
body{font-family:var(--font);font-size:16px;line-height:24px;color:#212529;background:#fff;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;word-break:keep-all}
button{font-family:inherit;cursor:pointer;border:0;background:none;padding:0;color:inherit}
input,textarea{font-family:inherit}
a{color:inherit}

/* ---------- GNB ---------- */
.gnb{position:fixed;top:0;left:0;right:0;z-index:50;height:60px;padding:10px 40px;background:#fff;border-bottom:1px solid rgba(2,32,71,.05)}
.gnb-inner{max-width:1024px;height:40px;margin:0 auto;display:flex;align-items:center;justify-content:space-between}
.logo{display:flex;align-items:center;gap:8px;text-decoration:none;color:var(--g900);font-size:19px;font-weight:700;letter-spacing:-.02em;white-space:nowrap}
.logo-mark{width:26px;height:26px;flex:none;display:block}
html.dark .logo-mark{display:none}
.nbtn.on{color:var(--g900);font-weight:500}
.gnb-right{display:flex;align-items:center;gap:4px}
.nbtn{font-size:16px;font-weight:400;line-height:22px;color:var(--g700);padding:9px 12px;border-radius:10px;white-space:nowrap;transition:background .15s}
.nbtn:hover{background:rgba(2,32,71,.05)}
.nbtn.grey{background:rgba(2,32,71,.05)}
.nbtn.grey:hover{background:rgba(2,32,71,.09)}
.nbtn.primary{background:var(--blue);color:#fff;font-weight:500}
.nbtn.primary:hover{background:var(--blueHover)}
.nbtn.danger{color:var(--red)}
.nbtn:disabled{opacity:.4;cursor:default}
.save-status{font-size:14px;color:var(--g500);margin-right:8px;white-space:nowrap}
.save-status.err{color:var(--red)}

/* ---------- Article (toss.tech values) ---------- */
.article{max-width:740px;margin:0 auto 60px;padding:40px 20px}
.a-header{margin:0 0 40px}
.a-title{font-size:48px;font-weight:700;line-height:60px;color:var(--g800);margin:36px 0 0;word-break:keep-all}
.a-tags{display:flex;flex-wrap:wrap;margin:16px 0 0}
.a-tag{display:flex;align-items:center;font-size:13px;font-weight:600;line-height:20.8px;color:var(--g600);background:var(--g100);border-radius:8px;padding:2px 10px;margin:0 8px 10px 0}
.a-author{display:flex;margin:24px 0 0}
.a-author-line{display:flex;font-size:17px;line-height:25.5px;padding:8px 0 0;margin:0 0 2px}
.a-author-line span{font-weight:600;color:var(--g700);margin:0 4px 0 0}
.a-author-line span.a-role,.a-author-line span.a-role *{font-weight:400;color:var(--g600)}
.a-date{font-size:14px;line-height:21px;color:var(--g500)}

.a-body{display:flex;flex-direction:column;font-size:16px;line-height:28.8px;color:#1a1a1a;word-break:keep-all;letter-spacing:0}
.a-body>p{font-size:17px;letter-spacing:0;line-height:1.6;font-weight:400;color:var(--g800);margin:24px 0 8px}
.a-body>h2{font-size:30px;letter-spacing:0;line-height:1.55;font-weight:700;color:var(--g900);margin:40px 0 4px}
.a-body>h3{font-size:24px;letter-spacing:0;line-height:1.6;font-weight:700;color:var(--g900);margin:24px 0 4px}
.a-body blockquote{font-size:19px;letter-spacing:0;line-height:1.6;font-weight:700;color:var(--g900);white-space:pre-wrap;margin:24px 0;padding-left:20px;position:relative}
.a-body blockquote::before{content:"";display:block;position:absolute;top:4px;left:0;width:2px;height:calc(100% - 8px);padding:4px 0;background-color:var(--g800)}
.a-body ul,.a-body ol{display:flex;flex-direction:column;flex:0 0 auto;margin:24px 0 8px;padding:0;list-style:none}
.a-body li{font-size:17px;line-height:1.6;word-break:keep-all;letter-spacing:0;font-weight:400;color:var(--g800);margin-bottom:16px;padding-left:24px;position:relative}
.a-body li:last-of-type{margin-bottom:0}
.a-body ul>li::before{content:"•";font-weight:500;color:var(--g800);position:absolute;left:0}
.a-body ol{counter-reset:ol}
.a-body ol>li{counter-increment:ol}
.a-body ol>li::before{content:counter(ol) ".";font-weight:500;color:var(--g800);position:absolute;left:0}
.a-body>figure{margin:24px 0 8px;text-align:center;position:relative}
.a-body>figure img{max-width:100%;border-radius:16px;vertical-align:top}
.a-body>hr{border:0;height:1px;opacity:1;background:var(--hairline);margin:0;flex:none}
.a-body b,.a-body strong{font-weight:700}
.a-body a{color:var(--blue);text-decoration:none}
.a-body a:hover{text-decoration:underline}
.a-body code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.88em;background:var(--g100);border-radius:6px;padding:2px 6px}

/* ---------- Editor ---------- */
[contenteditable]{outline:none}
[data-ph]:empty::before{content:attr(data-ph);color:var(--g400);pointer-events:none}
.editing .a-body{min-height:50vh;padding-bottom:120px}
.editing .a-body.is-empty>p:first-child{position:relative}
.editing .a-body.is-empty>p:first-child::before{left:0;top:0;content:"본문을 입력하세요. / 를 누르면 이미지, Before/After, 인용 같은 블록을 넣을 수 있어요.";color:var(--g400);position:absolute;pointer-events:none}
.editing .a-body>figure{cursor:pointer}
.editing .a-body>figure.selected img{outline:3px solid var(--blue);outline-offset:3px}
.editing .a-body>figure.uploading img{opacity:.5}
.editing .a-body>hr{height:9px;background:var(--hairline) center/1px 1px repeat-x;margin:-4px 0;cursor:default}
.tag-edit{display:flex;align-items:center;gap:4px}
.tag-x{display:none;width:16px;height:16px;line-height:16px;font-size:13px;border-radius:50%;color:var(--g500);margin-right:-4px}
.a-tag:hover .tag-x{display:inline-block}
.tag-x:hover{background:var(--g300);color:var(--g800)}
.tag-input{font-size:13px;font-weight:600;line-height:20.8px;color:var(--g600);background:transparent;border:1px dashed var(--g300);border-radius:8px;padding:1px 10px;margin:0 8px 10px 0;width:110px;outline:none}
.tag-input:focus{border-color:var(--blue);background:#fff}
.a-author-line [contenteditable]{min-width:20px}
.role-dot{margin-right:4px}

.toolbar{position:fixed;left:50%;transform:translateX(-50%);width:max-content;bottom:24px;z-index:60;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:2px;background:#fff;border-radius:16px;padding:6px;box-shadow:0 0 0 1px rgba(0,27,55,.06),0 8px 28px rgba(0,27,55,.14);max-width:calc(100vw - 24px)}
.tb{height:36px;min-width:36px;padding:0 10px;border-radius:10px;font-size:14px;font-weight:600;color:var(--g700);display:flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap}
.tb:hover{background:var(--g100)}
.tb.on{background:var(--blue50);color:var(--blue)}
.tb svg{width:18px;height:18px;flex:none}
.tb-sep{width:1px;height:20px;background:var(--g200);margin:0 4px;flex:none}
.tb.accent{color:var(--blue)}

.fig-tools{position:absolute;z-index:40;display:none;gap:4px;padding:4px;background:rgba(25,31,40,.86);border-radius:10px;backdrop-filter:blur(6px)}
.fig-tools button{color:#fff;font-size:13px;font-weight:600;padding:6px 10px;border-radius:7px}
.fig-tools button:hover{background:rgba(255,255,255,.14)}

/* ---------- Home list ---------- */
.home{max-width:740px;margin:0 auto 60px;padding:40px 20px}
.home-h{font-size:30px;line-height:1.55;font-weight:700;color:var(--g900);margin:36px 0 8px}
.rn{font-weight:400}.rn b{font-weight:700}.logo .rn{font-weight:500}
.home-sub b{font-weight:700;color:var(--g800)}
.home-sub{font-size:17px;line-height:1.6;color:var(--g600);margin:0 0 24px}
.sec-h{font-size:15px;font-weight:600;color:var(--g500);margin:40px 0 8px}
.plist{display:flex;flex-direction:column}
.pitem{display:flex;gap:24px;align-items:center;padding:28px 0;text-decoration:none;cursor:pointer;background:var(--hairline) bottom/1px 1px repeat-x}
.pitem:hover .pi-title{color:var(--blue)}
.pitem{position:relative}
.pi-tools{position:absolute;top:18px;right:0;display:none;z-index:2}
.pitem:hover .pi-tools{display:block}
.pin-btn{width:36px;height:36px;border-radius:10px;background:var(--g100);color:var(--g500);display:flex;align-items:center;justify-content:center;transition:background .15s,color .15s}
.pin-btn svg{width:18px;height:18px}
.pin-btn:hover{background:var(--g200);color:var(--g700)}
.pin-btn.on{color:var(--blue)}
.pin-btn[data-ddel]:hover{background:#fff0f1;color:var(--red)}
.pin-btn.on:hover{background:var(--blue50)}
.pin-badge{display:inline-flex;align-items:center;gap:3px;font-size:12px;font-weight:600;line-height:20px;padding:1px 8px 1px 6px;border-radius:6px;background:var(--g100);color:var(--g600);margin-right:8px;vertical-align:3px}
.pin-badge svg{width:12px;height:12px;color:var(--blue)}
.pi-main{flex:1;min-width:0}
.pi-title{font-size:22px;line-height:1.45;font-weight:700;color:var(--g900);margin:0 0 6px;transition:color .15s}
.pi-sum{font-size:16px;line-height:1.6;color:var(--g700);margin:0 0 10px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pi-meta{font-size:14px;line-height:21px;color:var(--g500)}
.pi-thumb{width:200px;height:124px;flex:none;border-radius:16px;object-fit:cover;background:var(--g100)}
.badge{display:inline-block;font-size:12px;font-weight:600;line-height:18px;padding:1px 8px;border-radius:6px;background:var(--blue50);color:var(--blue);margin-left:6px;vertical-align:1px}
.badge.grey{background:var(--g100);color:var(--g600)}
.empty{padding:60px 0;text-align:center;color:var(--g500);font-size:16px;line-height:1.6}
.footer{max-width:740px;margin:0 auto;padding:32px 20px 60px;font-size:14px;color:var(--g500);background:var(--hairline) top/1px 1px repeat-x}
.f-top{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.f-top a{color:inherit;text-decoration:none}
.f-top a:hover{text-decoration:underline}
.f-note{margin:14px 0 0;font-size:12px;line-height:1.7;color:var(--g400);word-break:keep-all}

/* ---------- Modal / toast ---------- */
.dim{position:fixed;inset:0;z-index:100;background:rgba(0,12,30,.5);display:flex;align-items:center;justify-content:center;padding:20px}
.modal{background:#fff;border-radius:20px;padding:24px;width:100%;max-width:400px;max-height:calc(100vh - 40px);overflow:auto;box-shadow:0 20px 60px rgba(0,0,0,.2)}
.modal h4{margin:0 0 8px;font-size:20px;line-height:1.5;font-weight:700;color:var(--g900)}
.modal p{margin:0 0 20px;font-size:15px;line-height:1.6;color:var(--g700)}
.modal label{display:block;font-size:13px;font-weight:600;color:var(--g600);margin:14px 0 6px}
.field{width:100%;font-size:16px;line-height:24px;padding:11px 14px;border-radius:12px;border:0;background:var(--g100);color:var(--g900);outline:none}
.field:focus{box-shadow:inset 0 0 0 2px var(--blue)}
.m-actions{display:flex;gap:8px;margin-top:24px}
.m-actions .btn{flex:1}
.btn{height:48px;border-radius:14px;font-size:16px;font-weight:600;padding:0 18px;background:var(--g100);color:var(--g700);display:inline-flex;align-items:center;justify-content:center;gap:6px}
.btn:hover{background:var(--g200)}
.btn.primary{background:var(--blue);color:#fff}
.btn.primary:hover{background:var(--blueHover)}
.btn.danger{background:var(--red);color:#fff}
.btn:disabled{opacity:.4;cursor:default}
.toast{position:fixed;left:50%;bottom:90px;transform:translateX(-50%);z-index:200;background:rgba(25,31,40,.92);color:#fff;font-size:15px;font-weight:500;padding:12px 18px;border-radius:14px;opacity:0;transition:opacity .2s;pointer-events:none;max-width:90vw;text-align:center}
.toast.show{opacity:1}

/* ---------- Before/After composer ---------- */
.composer{background:#fff;border-radius:24px;width:100%;max-width:1180px;max-height:calc(100vh - 40px);display:flex;flex-direction:column;overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,.25)}
.c-head{display:flex;align-items:center;justify-content:space-between;padding:20px 24px 12px}
.c-head h4{margin:0;font-size:20px;font-weight:700;color:var(--g900)}
.c-close{width:36px;height:36px;border-radius:10px;font-size:22px;color:var(--g500)}
.c-close:hover{background:var(--g100)}
.c-main{display:flex;gap:24px;padding:4px 24px 24px;overflow:auto}
.c-preview{flex:1;min-width:0}
.c-preview canvas{width:100%;height:auto;border-radius:16px;display:block;box-shadow:0 0 0 1px rgba(0,27,55,.06)}
.c-hint{font-size:13px;color:var(--g500);margin-top:10px;line-height:1.5}
.c-side{width:320px;flex:none;display:flex;flex-direction:column;gap:20px}
.c-group h5{margin:0 0 10px;font-size:14px;font-weight:700;color:var(--g800);display:flex;justify-content:space-between;align-items:center}
.c-group h5 small{font-weight:500;color:var(--g500);font-size:13px}
.c-slots{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.c-slot{position:relative;aspect-ratio:1;border-radius:12px;background:var(--g100) center/cover no-repeat;overflow:hidden}
.c-slot .sx{position:absolute;top:4px;right:4px;width:22px;height:22px;border-radius:50%;background:rgba(25,31,40,.75);color:#fff;font-size:13px;line-height:22px}
.c-slot .sm{position:absolute;bottom:4px;right:4px;height:22px;padding:0 6px;border-radius:7px;background:rgba(25,31,40,.75);color:#fff;font-size:11px;font-weight:600}
.c-slot .sl{position:absolute;bottom:4px;left:4px;height:22px;width:22px;border-radius:7px;background:rgba(25,31,40,.75);color:#fff;font-size:11px}
.c-add{aspect-ratio:1;border-radius:12px;border:1.5px dashed var(--g300);color:var(--g500);font-size:24px;display:flex;align-items:center;justify-content:center}
.c-add:hover{border-color:var(--blue);color:var(--blue);background:var(--blue50)}
.c-add:disabled{opacity:.35;pointer-events:none}
.c-group.drag .c-slots{outline:2px dashed var(--blue);outline-offset:4px;border-radius:12px}
.c-group{padding:12px;margin:-12px;border-radius:16px;cursor:pointer;transition:background .15s}
.c-group.target{background:var(--blue50)}
.c-group h5 .tgt{display:none;font-size:12px;font-weight:600;color:var(--blue);margin-left:6px}
.c-group.target h5 .tgt{display:inline}
.c-paste{font-size:13px;line-height:1.5;color:var(--g600);background:var(--g50);border-radius:12px;padding:10px 12px}
.c-paste kbd{font-family:inherit;font-size:12px;font-weight:600;background:#fff;border-radius:6px;padding:1px 6px;box-shadow:inset 0 0 0 1px var(--g200);color:var(--g800)}
.c-row{display:flex;align-items:center;justify-content:space-between;font-size:15px;font-weight:600;color:var(--g800)}
.switch{position:relative;width:46px;height:28px;border-radius:14px;background:var(--g300);transition:background .2s;flex:none}
.switch::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.2);transition:transform .2s}
.switch.on{background:var(--blue)}
.switch.on::after{transform:translateX(18px)}
.swatches{display:flex;gap:8px;align-items:center}
.sw{width:28px;height:28px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,27,55,.12)}
.sw.on{box-shadow:inset 0 0 0 1px rgba(0,27,55,.12),0 0 0 2px #fff,0 0 0 4px var(--blue)}
.sw-custom{position:relative;overflow:hidden;background:conic-gradient(#f04452,#ffc342,#03b26c,#3182f6,#a234c7,#f04452)}
.sw-custom input{position:absolute;inset:0;opacity:0;cursor:pointer}
.c-actions{display:flex;flex-direction:column;gap:8px;margin-top:auto}


/* ---------- back link / pagination ---------- */
.back{display:inline-flex;align-items:center;gap:6px;font-size:15px;font-weight:600;line-height:22px;color:var(--g600);text-decoration:none}
.back svg{width:16px;height:16px;flex:none}
.back span{text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px;text-decoration-color:var(--g400)}
.back:hover{color:var(--g900)}
.back:hover span{text-decoration-color:var(--g900)}
.article>.back{margin-top:4px}
.post-acts{display:flex;justify-content:flex-end;gap:8px;margin:48px 0 0}
.sbtn.danger{color:var(--red)}
.sbtn.danger:hover{background:#fff0f1}
.cmt+.pager{margin-top:56px}
.pager{margin:64px 0 0;padding:32px 0 0;background:var(--hairline) top/1px 1px repeat-x}
.pager-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.pg{display:flex;flex-direction:column;gap:8px;padding:20px;border-radius:20px;background:var(--g50);text-decoration:none;min-height:100%;transition:background .15s}
.pg-row{display:flex;align-items:center;gap:14px;width:100%}
.pg.next .pg-row{flex-direction:row-reverse}
.pg:hover{background:var(--g100)}
.pg.next{text-align:right;align-items:flex-end}
.pg-label{display:flex;align-items:center;gap:4px;font-size:14px;font-weight:600;color:var(--g500)}
.pg-label svg{width:14px;height:14px}
.pg-title{font-size:17px;line-height:1.5;font-weight:700;color:var(--g900);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pg-thumb{width:72px;height:48px;flex:none;object-fit:cover;border-radius:10px;background:var(--g100)}
.pg.empty-pg{min-height:96px}
.pg.empty-pg{background:transparent;border:1px dashed var(--g200);color:var(--g400);font-size:14px;justify-content:center;align-items:center;text-align:center}
.pager-back{margin-top:32px;text-align:center}

/* ---------- thumbnail picker ---------- */
.thumb-edit{display:flex;align-items:center;gap:16px;margin:-16px 0 24px;padding:14px;border-radius:16px;background:var(--g50)}
.thumb-prev{width:112px;height:70px;border-radius:10px;object-fit:cover;background:var(--g200);flex:none}
.url-edit{display:flex;align-items:center;gap:4px;margin:-12px 0 28px;padding:10px 14px;border-radius:14px;background:var(--g50);font-size:14px;color:var(--g500);flex-wrap:wrap}
.url-edit .u-host{font-weight:600;color:var(--g600)}
.modal.review{max-width:560px}
.modal.review .thumb-edit,.modal.review .url-edit{margin:0}
.rv-sec{margin-top:22px}
.rv-h{display:flex;align-items:baseline;gap:8px;font-size:15px;font-weight:700;color:var(--g900);margin-bottom:10px}
.rv-h small{font-size:13px;font-weight:500;color:var(--g500)}
.url-edit{flex-direction:column;align-items:stretch;gap:10px}
.url-edit .u-row{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.url-edit .u-msg{margin-left:0}
.rv-seg{align-self:flex-start}
.rv-vis{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.rv-vis button{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:14px 16px;border-radius:14px;background:var(--g50);box-shadow:inset 0 0 0 1px var(--g100);text-align:left}
.rv-vis button b{font-size:15px;color:var(--g800)}
.rv-vis button small{font-size:13px;line-height:1.45;color:var(--g500)}
.rv-vis button.on{background:var(--blue50);box-shadow:inset 0 0 0 2px var(--blue)}
.rv-vis button.on b{color:var(--blue)}
@media (max-width:560px){.rv-vis{grid-template-columns:1fr}}
.url-edit input{height:32px;border:0;border-radius:8px;background:#fff;box-shadow:inset 0 0 0 1px var(--g200);padding:0 10px;font-size:14px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--g900);outline:none;width:120px}
.url-edit #eSlug{width:180px}
.url-edit input:focus{box-shadow:inset 0 0 0 2px var(--blue)}
.url-edit .u-sep{color:var(--g400)}
.url-edit .u-msg{margin-left:auto;font-size:12px;color:var(--g400)}
.url-edit .u-msg.err{color:var(--red)}
.thumb-prev.uni{object-fit:contain;background:#F2F4F6;padding:6px}
.thumb-prev.none{display:flex;align-items:center;justify-content:center;font-size:12px;color:var(--g500)}
.thumb-info{flex:1;min-width:0}
.thumb-info b{display:block;font-size:15px;font-weight:600;color:var(--g800);line-height:1.5}
.thumb-info small{display:block;font-size:13px;color:var(--g500);line-height:1.5}
.sbtn{height:36px;padding:0 14px;border-radius:10px;font-size:14px;font-weight:600;background:#fff;color:var(--g700);box-shadow:inset 0 0 0 1px var(--g200);white-space:nowrap}
.sbtn:hover{background:var(--g100)}
.sbtn.primary{background:var(--blue);color:#fff;box-shadow:none}
.sbtn.primary:hover{background:var(--blueHover)}
.modal.wide{max-width:560px;max-height:calc(100vh - 40px);overflow:auto}
.thumb-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:12px}
.thumb-opt{position:relative;aspect-ratio:16/10;border-radius:12px;overflow:hidden;background:var(--g100) center/cover no-repeat;box-shadow:inset 0 0 0 1px rgba(0,27,55,.06)}
.thumb-opt.on{box-shadow:0 0 0 3px var(--blue)}
.thumb-opt.add,.thumb-opt.auto{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:13px;font-weight:600;color:var(--g600);border:1.5px dashed var(--g300);box-shadow:none;background:#fff}
.thumb-opt.add:hover{border-color:var(--blue);color:var(--blue);background:var(--blue50)}
.thumb-opt.auto.on{box-shadow:0 0 0 3px var(--blue);border-color:transparent}

/* ---------- resume ---------- */
.r-owner{display:flex;gap:8px;margin:0 0 8px;flex-wrap:wrap}
.r-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:32px 0 0;padding:0 0 20px;background:var(--hairline) bottom/1px 1px repeat-x;flex-wrap:wrap}
.r-sum{font-size:15px;font-weight:600;color:var(--g500)}
.r-sum b{color:var(--g900);font-weight:700;margin-left:2px}
.r-dot{margin:0 8px;color:var(--g300)}
.r-ctrl{display:flex;align-items:center;gap:16px}
.r-toggle{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:600;color:var(--g700);cursor:pointer}
.seg{display:flex;background:var(--g100);border-radius:10px;padding:3px}
.seg button{font-size:13px;font-weight:600;color:var(--g600);padding:5px 10px;border-radius:8px}
.seg button.on{background:#fff;color:var(--g900);box-shadow:0 1px 3px rgba(0,27,55,.1)}
.tl{position:relative;list-style:none;margin:36px 0 0;padding:0 0 0 32px}
.tl::before{content:"";position:absolute;left:5px;top:10px;bottom:10px;width:2px;border-radius:1px;background:var(--g100)}
.tl-item{position:relative;padding:0 0 44px}
.tl-item:last-child{padding-bottom:8px}
.tl-dot{position:absolute;left:-32px;top:5px;width:12px;height:12px;border-radius:50%;background:#fff;box-shadow:inset 0 0 0 3px var(--g300)}
.tl-item.current .tl-dot{background:var(--blue);box-shadow:0 0 0 4px var(--blue50)}
.tl-date{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:14px;line-height:22px;font-weight:600;color:var(--g500)}
.tl-item.current .tl-date{color:var(--blue)}
.tl-dur{font-weight:500;color:var(--g400)}
.tl-date .badge{margin-left:0}
.tl-org{font-size:22px;line-height:1.45;font-weight:700;color:var(--g900);margin-top:6px}
.tl-role{font-size:17px;line-height:1.6;font-weight:400;color:var(--g600);margin-top:2px}
.tl-desc{font-size:16px;line-height:1.6;color:var(--g700);margin:10px 0 0;white-space:pre-wrap}
.tl-posts{display:inline-flex;align-items:center;gap:4px;margin-top:14px;font-size:14px;font-weight:600;color:var(--g700);background:var(--g100);border-radius:8px;padding:5px 8px 5px 10px}
.tl-posts:hover{background:var(--g200)}
.tl-posts b{color:var(--blue)}
.tl-posts svg{width:14px;height:14px;transition:transform .2s}
.tl-posts.open svg{transform:rotate(180deg)}
.r-title{display:flex;align-items:center;gap:6px}
.r-edit{width:36px;height:36px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;color:var(--g400);transition:background .15s,color .15s}
.r-edit:hover{background:var(--g100);color:var(--g700)}
.r-edit.on{background:var(--blue50);color:var(--blue)}
.r-edit svg{width:20px;height:20px}
.tl-plist{display:none;flex-direction:column;margin-top:6px}
.tl-plist.open{display:flex}
.tl-plist a{display:flex;align-items:baseline;gap:12px;padding:6px 0;text-decoration:none;font-size:16px;line-height:1.5;font-weight:400;color:var(--g700)}
.tl-plist a:hover{color:var(--blue)}
.tl-plist img,.tl-plist .ph{width:56px;height:36px;border-radius:8px;object-fit:cover;background:var(--g100);flex:none}
.tl-plist time{margin-left:auto;font-size:13px;font-weight:500;color:var(--g500);white-space:nowrap}
.tl-tools{position:absolute;top:-4px;right:0;display:none;gap:4px}
.tl-item:hover .tl-tools{display:flex}
.tl-tools button{font-size:13px;font-weight:600;color:var(--g600);padding:5px 9px;border-radius:8px;background:#fff;box-shadow:inset 0 0 0 1px var(--g200)}
.tl-tools button:hover{background:var(--g100)}
.tl-tools button.del{color:var(--red)}
.field-row{display:flex;gap:10px}
.field-row>div{flex:1}
textarea.field{resize:vertical;min-height:96px;line-height:1.6}
.chk-list{display:flex;flex-direction:column;gap:2px;max-height:200px;overflow:auto;background:var(--g50);border-radius:12px;padding:6px}
.chk-list label{display:flex;align-items:center;gap:10px;margin:0;padding:8px 10px;border-radius:8px;font-size:15px;font-weight:500;color:var(--g800);cursor:pointer}
.chk-list label:hover{background:var(--g100)}
.chk-list input{accent-color:var(--blue);width:18px;height:18px;flex:none}
.chk-list .none{padding:10px;font-size:14px;color:var(--g500)}
.m-row{display:flex;align-items:center;justify-content:space-between;margin-top:16px;font-size:15px;font-weight:600;color:var(--g800)}
@media (max-width:640px){
  .pager-grid{grid-template-columns:1fr}
}

.a-body>figure.figma{position:relative;width:100%;aspect-ratio:16/10;border-radius:16px;overflow:hidden;background:var(--g100);box-shadow:inset 0 0 0 1px rgba(0,27,55,.06)}
.a-body>figure.figma[data-ratio="square"]{aspect-ratio:1/1;max-width:560px;align-self:center}
.a-body>figure.figma[data-ratio="tall"]{aspect-ratio:9/16;max-width:400px;align-self:center}
.a-body>figure.figma iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.fig-cover{position:absolute;inset:0;display:flex;align-items:flex-end;justify-content:center;padding:14px;font-size:13px;font-weight:600;color:var(--g700);background:linear-gradient(to top,rgba(255,255,255,.85),rgba(255,255,255,0) 30%)}
.editing .a-body>figure.figma.selected{outline:3px solid var(--blue);outline-offset:3px}
/* ---------- share + comments ---------- */
.post-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:56px 0 0;padding:0 0 40px;border-bottom:1px solid var(--g200)}
.share-btn{display:inline-flex;align-items:center;gap:8px;font-size:17px;font-weight:600;color:var(--g700);padding:8px 10px;margin-left:-10px;border-radius:10px}
.share-btn:hover{background:var(--g100)}
.share-btn svg{width:22px;height:22px;color:var(--g400)}
.post-foot .post-acts{margin:0}
.cmt{margin:44px 0 0}
.cmt-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.cmt-head h3{margin:0;font-size:17px;font-weight:700;color:var(--g800)}
.cmt-contact{font-size:15px;color:var(--g500)}
.cmt-contact a{color:var(--blue);text-decoration:none}
.cmt-contact a:hover{text-decoration:underline}
.cmt-me{display:flex;align-items:center;gap:12px;margin:28px 0 0}
.ava{flex:none;display:flex;align-items:center;justify-content:center;border-radius:50%;line-height:1}
.ava.l{width:48px;height:48px;font-size:28px}
.ava.s{width:32px;height:32px;font-size:18px}
.nick-box{flex:1;display:flex;align-items:center;height:40px;border:1px solid var(--g200);border-radius:12px;padding:0 4px 0 12px;background:#fff}
.nick-box:focus-within{border-color:var(--blue)}
.nick-box input{flex:1;min-width:0;border:0;outline:none;font-size:16px;color:var(--g900);background:transparent}
.nick-rand{height:32px;padding:0 10px;border-radius:8px;background:var(--g100);font-size:13px;font-weight:600;color:var(--g700);white-space:nowrap}
.nick-rand:hover{background:var(--g200)}
.cmt-ta{display:block;width:100%;margin:12px 0 0;min-height:104px;border:1px solid var(--g200);border-radius:12px;padding:12px;font-size:15px;line-height:1.6;color:var(--g900);resize:vertical;outline:none}
.cmt-ta:focus{border-color:var(--blue)}
.cmt-ta::placeholder{color:var(--g400)}
.cmt-actions{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin:16px 0 0}
.cmt-note{font-size:13px;color:var(--g500);margin-right:auto;line-height:1.5}
.cmt-submit{height:40px;padding:0 14px;border-radius:12px;background:var(--blue);color:#fff;font-size:16px;font-weight:600}
.cmt-submit:hover{background:var(--blueHover)}
.cmt-submit:disabled{background:#90c2ff;cursor:default}
.cmt-list{display:flex;flex-direction:column;gap:12px;margin:24px 0 0}
.cmt-item{position:relative;background:var(--g50);border-radius:20px;padding:20px}
.cmt-who{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:700;color:var(--g800)}
.cmt-who time{font-size:13px;font-weight:500;color:var(--g400);margin-left:2px}
.cmt-text{margin:12px 0 0;font-size:16px;line-height:1.6;color:var(--g700);white-space:pre-wrap;word-break:break-word}
.cmt-del{position:absolute;top:16px;right:16px;font-size:13px;font-weight:600;color:var(--g500);padding:4px 8px;border-radius:8px;display:none}
.cmt-item:hover .cmt-del{display:block}
.cmt-del:hover{background:var(--g100);color:var(--red)}
.cmt-empty{padding:28px 0 8px;text-align:center;font-size:15px;color:var(--g500)}

.links{display:flex;flex-direction:column;gap:4px}
.links .lk{display:flex;align-items:center;gap:6px;border-radius:12px;background:var(--g50)}
.links .lk a{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px;padding:10px 12px;text-decoration:none}
.links .lk a b{font-size:14px;font-weight:600;color:var(--g800)}
.links .lk a small{font-size:12px;color:var(--g500);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.links .lk a:hover b{color:var(--blue)}
.links .lk button{width:32px;height:32px;margin-right:6px;border-radius:8px;color:var(--g400);flex:none}
.links .lk button:hover{background:var(--g100);color:var(--red)}
.links #lkAdd{align-self:flex-start;margin-top:4px}
.usage{display:flex;flex-direction:column;gap:10px;background:var(--g50);border-radius:12px;padding:12px 14px;font-size:14px;color:var(--g600)}
.u-top{display:flex;justify-content:space-between;font-size:13px;color:var(--g600);margin-bottom:4px}
.u-top b{font-weight:600;color:var(--g800)}
.u-bar{height:6px;border-radius:3px;background:var(--g200);overflow:hidden}
.u-bar i{display:block;height:100%;background:var(--blue);border-radius:3px}
.nc{position:fixed;top:76px;right:24px;z-index:80;width:340px;max-height:calc(100vh - 100px);overflow:auto;background:#fff;border-radius:24px;padding:24px 20px 18px;box-shadow:0 0 0 1px rgba(0,27,55,.04),0 12px 40px rgba(0,27,55,.12);transform:translateY(-12px);opacity:0;transition:transform .35s cubic-bezier(.2,.8,.2,1),opacity .35s}
.nc.show{transform:none;opacity:1}
.nc h4{margin:0;padding-right:32px;font-size:18px;line-height:1.5;font-weight:700;color:var(--g900)}
.nc .nl-x{top:18px;right:16px}
.nc-list{display:flex;flex-direction:column;gap:8px;margin-top:14px}
.nc-item{background:var(--g50);border-radius:16px;padding:12px 14px}
.nc-item .cmt-who{font-size:14px}
.nc-item .ava.s{width:26px;height:26px;font-size:15px}
.nc-text{margin:6px 0 10px;font-size:14px;line-height:1.55;color:var(--g700);white-space:pre-wrap;word-break:break-word;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.nc-post{display:flex;align-items:center;justify-content:space-between;gap:10px;text-decoration:none}
.nc-ptitle{font-size:13px;font-weight:600;color:var(--g600);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.nc-go{display:flex;align-items:center;gap:2px;font-size:13px;font-weight:600;color:var(--blue);white-space:nowrap}
.nc-go svg{width:14px;height:14px}
.nc-post:hover .nc-go{text-decoration:underline}
.nc-more{margin:10px 0 0;font-size:13px;color:var(--g500);text-align:center}
@media (max-width:640px){.nc{left:12px;right:12px;top:68px;width:auto}}
.prompt-copy{display:flex;align-items:center;gap:8px;width:100%;padding:11px 12px;border-radius:12px;background:var(--g50);box-shadow:inset 0 0 0 1px var(--g200);text-align:left;font-size:14px;color:var(--g700)}
.prompt-copy:hover{box-shadow:inset 0 0 0 1px var(--blue);background:#fff}
.prompt-copy svg{width:18px;height:18px;flex:none;color:var(--blue)}
.prompt-copy span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px}
.prompt-copy b{font-size:13px;font-weight:600;color:var(--blue)}
/* ---------- newsletter popup ---------- */
.nl{position:fixed;left:24px;bottom:24px;z-index:80;width:308px;background:#fff;border-radius:24px;padding:28px 24px 18px;box-shadow:0 0 0 1px rgba(0,27,55,.04),0 12px 40px rgba(0,27,55,.12);transform:translateY(16px);opacity:0;transition:transform .35s cubic-bezier(.2,.8,.2,1),opacity .35s}
.nl.show{transform:none;opacity:1;animation:nlIn .6s cubic-bezier(.16,1,.3,1) both}
@keyframes nlIn{0%{opacity:0;transform:translateY(28px) scale(.96)}60%{opacity:1;transform:translateY(-4px) scale(1.005)}100%{transform:none}}
.nl.show .nl-art svg{animation:mailDrop .8s cubic-bezier(.34,1.56,.64,1) .25s both}
@keyframes mailDrop{0%{opacity:0;transform:translateY(-14px) rotate(-8deg) scale(.9)}55%{opacity:1;transform:translateY(2px) rotate(3deg)}75%{transform:rotate(-2deg)}100%{transform:none}}
.nl-art{position:relative}
.nl h4{margin:0;padding-right:32px;font-size:20px;line-height:1.55;font-weight:700;color:var(--g900);letter-spacing:-.01em}
.nl-x{position:absolute;top:22px;right:20px;width:32px;height:32px;border-radius:10px;display:flex;align-items:center;justify-content:center;color:var(--g600)}
.nl-x:hover{background:var(--g100)}
.nl-x svg{width:22px;height:22px}
.nl-art{display:flex;justify-content:center;margin:16px 0 18px}
.nl-btn{display:block;width:100%;height:44px;border-radius:12px;background:var(--blue);color:#fff;font-size:16px;font-weight:600}
.nl-btn:hover{background:var(--blueHover)}
.nl-btn:disabled{background:#90c2ff;cursor:default}
.nl-later{display:block;width:100%;margin-top:10px;padding:8px 0;font-size:15px;font-weight:600;color:var(--g600);border-radius:10px}
.nl-later:hover{color:var(--g800)}
.nl-mail{width:100%;height:44px;border:1px solid var(--g200);border-radius:12px;padding:0 14px;font-size:16px;outline:none;margin:0 0 10px}
.nl-mail:focus{border-color:var(--blue)}
.nl-msg{font-size:14px;line-height:1.5;color:var(--g600);text-align:center;margin:0 0 8px}
@media (max-width:640px){.nl{left:12px;right:12px;bottom:12px;width:auto}.post-foot{flex-wrap:wrap}}

/* ---------- inline emphasis / references ---------- */
.a-body mark{border-radius:4px;padding:1px 2px;color:inherit;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.a-body mark[data-c="blue"]{background:#e8f3ff}
.a-body mark[data-c="green"]{background:#e3f6ec}
.a-body mark[data-c="yellow"]{background:#fff6d5}
.a-body span[data-c="blue"]{color:var(--blue)}
.a-body a[data-ref]{color:inherit;text-decoration:underline;text-decoration-color:#90c2ff;text-decoration-thickness:2px;text-underline-offset:5px;cursor:pointer;border-radius:4px;transition:background .15s}
.a-body a[data-ref]::after{content:"↗";font-size:.8em;font-weight:600;color:var(--blue);margin-left:2px;vertical-align:1px}
.a-body a[data-ref]:hover{background:var(--blue50);text-decoration-color:var(--blue)}
/* quote variants */
.a-body blockquote[data-tone="blue"]{color:var(--blue);font-weight:500;font-size:19px}
.a-body blockquote[data-tone="blue"]::before{background-color:#e8f3ff;width:6px;top:0;padding:0;height:100%;border-radius:3px}
.a-body blockquote[data-role]{font-size:17px;font-weight:400;color:var(--g800);background:var(--g50);border-radius:20px;padding:18px 22px 20px}
.a-body blockquote[data-role]::before{position:static;display:block;width:fit-content;height:auto;padding:3px 10px;margin:0 0 10px;border-radius:8px;font-size:13px;font-weight:700;line-height:20px;white-space:nowrap}
.a-body blockquote[data-role="marketer"]::before{content:"📣 마케터";color:#d97f00;background:#fff3e0}
.a-body blockquote[data-role="designer"]::before{content:"🎨 디자이너";color:#a234c7;background:#f9eefd}
.a-body blockquote[data-role="developer"]::before{content:"💻 개발자";color:#029359;background:#e3f6ec}
.a-body blockquote[data-role="ceo"]::before{content:"💼 경영자";color:#1b64da;background:#e8f3ff}
.a-body blockquote[data-role="operator"]::before{content:"🛠️ 운영자";color:#0f8c8e;background:#e0f6f6}
/* callout boxes */
.a-body aside[data-callout]{position:relative;margin:24px 0 8px;padding:24px 28px;border-radius:24px;background:var(--g100)}
.a-body aside[data-callout="blue"]{background:#e8f3ff}
.a-body aside[data-callout][data-emoji]:not([data-emoji=""]){padding-left:64px}
.a-body aside[data-callout][data-emoji]:not([data-emoji=""])::before{content:attr(data-emoji);position:absolute;left:26px;top:24px;font-size:20px;line-height:27px}
.a-body aside>p,.a-body aside>h3{font-size:17px;line-height:1.6;color:var(--g800);margin:12px 0 0}
.a-body aside>h3{font-weight:700;color:var(--g900)}
.a-body aside>*:first-child{margin-top:0}
.a-body aside>ul,.a-body aside>ol{margin:12px 0 0}
.a-body aside>ul:first-child,.a-body aside>ol:first-child{margin-top:0}
.a-body aside blockquote{margin:12px 0 0}
/* sources & glossary */
.a-body aside[data-notes]{margin:56px 0 0;padding:0}
.a-body aside[data-notes]>p,.a-body aside[data-notes] li{font-size:14px;line-height:1.8;color:var(--g500);margin:0}
.a-body aside[data-notes] li{margin-bottom:2px}
.a-body aside[data-notes] ul>li::before,.a-body aside[data-notes] ol>li::before{color:var(--g500)}
.a-body aside[data-notes]>p+p{margin-top:2px}
.editing .a-body aside[data-notes]{padding-top:28px;background:var(--hairline) top/1px 1px repeat-x}
.editing .a-body aside[data-notes]::before{content:"출처 · 용어 (선택)";position:absolute;margin-top:-28px;font-size:12px;font-weight:600;color:var(--g400)}


/* ---------- dark theme (실험실) ---------- */
body,.gnb{transition:background-color .35s ease,color .35s ease}
html.dark{color-scheme:dark;
  --g900:#f6f6f7;--g800:#e4e4e5;--g700:#c3c3c6;--g600:#9e9ea4;--g500:#7e7e87;--g400:#62626d;--g300:#4d4d59;--g200:#3c3c47;--g100:#2c2c35;--g50:#202027;
  --blue50:rgba(49,130,246,.16);--blue100:rgba(49,130,246,.3);
  --hairline:repeat-x url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1' height='1'><rect fill='rgba(255, 255, 255, 0.09)' x='0' y='0' width='1' height='0.5'/></svg>")}
html.dark body{background:#17171c;color:#e4e4e5}
html.dark .gnb{background:#17171c;border-bottom-color:rgba(255,255,255,.06)}
html.dark .nbtn:hover,html.dark .nbtn.grey{background:rgba(255,255,255,.08)}
html.dark .nbtn.grey:hover{background:rgba(255,255,255,.12)}
html.dark .modal,html.dark .nl,html.dark .bot,html.dark .nc,html.dark .tb-pop,html.dark .toolbar,html.dark .composer{background:#202027;box-shadow:0 0 0 1px rgba(255,255,255,.06),0 16px 48px rgba(0,0,0,.5)}
html.dark .sbtn,html.dark .tl-tools button,html.dark .nick-box,html.dark .url-edit input,html.dark .tag-input:focus,html.dark .prompt-copy:hover,html.dark .c-paste kbd,html.dark .seg button.on,html.dark .tl-dot{background:#2c2c35}
html.dark .bb .qa button,html.dark .bb .qa a,html.dark .bb .ln a,html.dark .bb input,html.dark .bb textarea{background:#3c3c47}
html.dark .bb .qa button:hover,html.dark .bb .qa a:hover{background:#4d4d59}
html.dark .bot-launch span{text-shadow:0 0 6px #17171c,0 0 2px #17171c}
html.dark .fig-cover{background:linear-gradient(to top,rgba(23,23,28,.85),rgba(23,23,28,0) 30%)}
html.dark .pin-btn[data-ddel]:hover,html.dark .sbtn.danger:hover{background:rgba(240,68,82,.16)}
html.dark .a-body mark[data-c="blue"],html.dark .a-body aside[data-callout="blue"],html.dark .a-body blockquote[data-tone="blue"]::before{background-color:rgba(49,130,246,.2)}
html.dark .a-body mark[data-c="green"]{background:rgba(3,178,108,.22)}
html.dark .a-body mark[data-c="yellow"]{background:rgba(255,194,10,.22)}
html.dark .a-body a[data-ref]{text-decoration-color:rgba(49,130,246,.6)}
html.dark .a-body blockquote[data-role="marketer"]::before{background:rgba(255,145,0,.16);color:#ffa940}
html.dark .a-body blockquote[data-role="designer"]::before{background:rgba(162,52,199,.2);color:#d58cf0}
html.dark .a-body blockquote[data-role="developer"]::before{background:rgba(3,178,108,.18);color:#3ad796}
html.dark .a-body blockquote[data-role="ceo"]::before{background:rgba(49,130,246,.2);color:#6aa8ff}
html.dark .a-body blockquote[data-role="operator"]::before{background:rgba(15,140,142,.22);color:#3fd0d2}
html.dark .gnb .logo{color:var(--g900)}
/* ---------- 실험실 entrance: effervescence ---------- */
.fizz{position:fixed;inset:0;z-index:40;pointer-events:none;overflow:hidden}
.lab-h{position:relative}
/* the bubble gradient fills the title from the bottom up */
.lab-h::after{content:attr(data-t);position:absolute;left:0;top:0;white-space:nowrap;background:linear-gradient(100deg,#4d94ff 0%,#2fc4c6 55%,#3fd599 100%);-webkit-background-clip:text;background-clip:text;color:transparent;clip-path:inset(100% 0 0 0);transition:clip-path 1.6s cubic-bezier(.16,1,.3,1);pointer-events:none}
.lab-h.tint::after{clip-path:inset(0 0 0 0)}
.lab-h::after{z-index:0}
/* a translucent light layer rises through the letters with the fill, then fades back so slowly you barely notice */
.lab-h::before{content:attr(data-t);position:absolute;left:0;top:0;z-index:1;white-space:nowrap;pointer-events:none;color:transparent;background:linear-gradient(rgba(255,255,255,.38),rgba(255,255,255,.38));-webkit-background-clip:text;background-clip:text;clip-path:inset(100% 0 0 0);opacity:0}
.lab-h.shine::before{animation:labGlow 2.6s forwards}
@keyframes labGlow{0%{clip-path:inset(100% 0 0 0);opacity:1;animation-timing-function:cubic-bezier(.16,1,.3,1)}22%{clip-path:inset(0 0 0 0);opacity:1;animation-timing-function:cubic-bezier(.4,0,.6,1)}100%{clip-path:inset(0 0 0 0);opacity:0}}
.lab-h.tint{color:rgba(246,246,247,0);transition:color .4s ease 1.2s}
.fizz i{position:absolute;left:0;top:0;border-radius:50%;opacity:0;will-change:transform,opacity}

/* ---------- slash menu · selection bar · drag handle ---------- */
.tb-pop.slash-pop{min-width:240px;max-height:320px}
.slash-pop .pi.on{background:var(--g100)}
.slash-pop .pi small{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.sel-bar{position:fixed;z-index:110;display:none;align-items:center;gap:2px;padding:4px;border-radius:12px;background:#fff;box-shadow:0 0 0 1px rgba(0,27,55,.06),0 8px 24px rgba(0,27,55,.16)}
.sel-bar.show{display:flex}
.sel-bar button{height:32px;min-width:32px;padding:0 8px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:600;color:var(--g700);white-space:nowrap}
.sel-bar button:hover{background:var(--g100)}
.sel-bar button.on{background:var(--blue50);color:var(--blue)}
.sel-bar svg{width:17px;height:17px}
.sel-bar .sb-a{font-size:15px;font-weight:700;color:var(--blue)}
.sel-bar .sb-sep{width:1px;height:18px;background:var(--g200);margin:0 3px}
.drag-h{position:fixed;z-index:55;width:24px;height:26px;border-radius:6px;display:none;align-items:center;justify-content:center;color:var(--g400);cursor:grab;touch-action:none}
.drag-h.show{display:flex}
.drag-h:hover{background:var(--g100);color:var(--g600)}
.drag-h svg{width:18px;height:18px}
body.is-dragging,body.is-dragging *{cursor:grabbing!important;user-select:none}
.drop-line{position:fixed;z-index:54;height:3px;border-radius:2px;background:var(--blue);display:none;pointer-events:none}
.drop-line.show{display:block}
.editing .a-body>.dragging{opacity:.35}
.editing .a-body>.blk-sel{background:rgba(49,130,246,.07);box-shadow:0 0 0 6px rgba(49,130,246,.07);border-radius:4px}
.drag-h[data-n]:not([data-n=""])::after{content:attr(data-n);position:absolute;right:-8px;top:-8px;min-width:16px;height:16px;padding:0 4px;border-radius:8px;background:var(--blue);color:#fff;font-size:11px;font-weight:700;line-height:16px;text-align:center}
.drag-h{position:fixed}
@media (hover:none){.drag-h{display:none!important}}
/* callout colour switch (editor only): dot at the top-right */
.editing .a-body aside[data-callout]{padding-right:44px}
.editing .a-body aside[data-callout]::after{content:"";position:absolute;right:14px;top:14px;width:18px;height:18px;border-radius:50%;background:#3182f6;box-shadow:0 0 0 3px rgba(255,255,255,.9);opacity:0;transition:opacity .15s;cursor:pointer}
.editing .a-body aside[data-callout="blue"]::after{background:#b0b8c1}
.editing .a-body aside[data-callout]:hover::after{opacity:.85}
/* Before → After text */
.a-body aside[data-compare]{position:relative;display:grid;grid-template-columns:1fr 1fr;margin:24px 0 8px;border-radius:20px;background:#fff;box-shadow:inset 0 0 0 1px var(--g200)}
.a-body aside[data-compare]>p{margin:0;padding:22px 30px 24px;font-size:17px;line-height:1.6;color:var(--g800);min-width:0;overflow-wrap:anywhere}
.a-body aside[data-compare]>p:last-child{box-shadow:inset 1px 0 0 var(--g200)}
.a-body aside[data-compare]>p::before{content:"Before";display:block;margin-bottom:8px;font-size:13px;font-weight:700;line-height:20px;color:var(--g500)}
.a-body aside[data-compare]>p:last-child::before{content:"After";color:var(--blue)}
.a-body aside[data-compare]::after{content:"";position:absolute;left:50%;top:50%;width:30px;height:30px;margin:-15px 0 0 -15px;border-radius:50%;background:#fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b95a1' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h13'/><path d='M13 7l5 5-5 5'/></svg>") center/16px no-repeat;box-shadow:0 0 0 1px var(--g200);pointer-events:none}
@media (max-width:560px){.a-body aside[data-compare]{grid-template-columns:1fr}.a-body aside[data-compare]>p:last-child{box-shadow:inset 0 1px 0 var(--g200)}.a-body aside[data-compare]::after{transform:rotate(90deg)}}
html.dark .a-body aside[data-compare]{background:transparent;box-shadow:inset 0 0 0 1px rgba(255,255,255,.1)}
html.dark .a-body aside[data-compare]>p:last-child{box-shadow:inset 1px 0 0 rgba(255,255,255,.1)}
html.dark .a-body aside[data-compare]::after{background-color:#17171c;box-shadow:0 0 0 1px rgba(255,255,255,.12)}

/* ---------- 수정 요청 모드 ---------- */
.rq-btn{display:inline-flex;align-items:center;justify-content:center;padding:9px 10px}
.rq-btn svg{width:18px;height:18px}
.rq-btn.on{background:var(--blue50);color:var(--blue)}
/* 수정 요청: a blue comment-bubble cursor; crosshair only while drawing a selection box */
body.req-mode,body.req-mode *{cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M3 25V12a9 9 0 0 1 9-9h4a9 9 0 0 1 9 9a9 9 0 0 1-9 9H9z' fill='%233182f6' stroke='white' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M14 8v9M9.5 12.5h9' stroke='white' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") 3 25, pointer!important}
body.req-mode.rq-marqing,body.req-mode.rq-marqing *{cursor:crosshair!important}
body.req-mode .rq-ui,body.req-mode .rq-ui *{cursor:auto!important}
body.req-mode .rq-ui button,body.req-mode .rq-ui a{cursor:pointer!important}
.rq-hover{position:fixed;z-index:95;display:none;pointer-events:none;border-radius:8px;box-shadow:0 0 0 2px var(--blue);background:rgba(49,130,246,.06);transition:left .08s,top .08s,width .08s,height .08s}
.rq-sel{position:fixed;z-index:95;pointer-events:none;border-radius:8px;box-shadow:0 0 0 2px var(--blue),0 0 0 6px rgba(49,130,246,.18);background:rgba(49,130,246,.05)}
.rq-marq{position:fixed;z-index:96;display:none;pointer-events:none;border-radius:4px;border:1.5px solid var(--blue);background:rgba(49,130,246,.08)}
.rq-bar{position:fixed;top:72px;left:50%;transform:translateX(-50%);z-index:96;display:flex;align-items:center;gap:10px;padding:8px 8px 8px 16px;border-radius:14px;background:#191f28;color:#fff;font-size:14px;box-shadow:0 8px 24px rgba(0,27,55,.2);white-space:nowrap}
.rq-bar .rq-dot{width:8px;height:8px;border-radius:50%;background:#3182f6;box-shadow:0 0 0 4px rgba(49,130,246,.3)}
.rq-bar .rq-help{color:#b0b8c1}
.rq-bar button{height:30px;padding:0 12px;border-radius:9px;font-size:13px;font-weight:600;color:#fff;background:rgba(255,255,255,.1)}
.rq-bar button:hover{background:rgba(255,255,255,.18)}
.rq-box{position:fixed;z-index:97;width:min(380px,calc(100vw - 24px));padding:14px;border-radius:16px;background:#fff;box-shadow:0 0 0 1px rgba(0,27,55,.06),0 12px 36px rgba(0,27,55,.18)}
.rq-target{font-size:12px;color:var(--g500);margin-bottom:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rq-target b{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--blue);font-weight:600}
.rq-box textarea{width:100%;border:0;border-radius:10px;background:var(--g50);box-shadow:inset 0 0 0 1px var(--g200);padding:10px 12px;font:inherit;font-size:15px;line-height:1.5;color:var(--g900);resize:vertical;outline:none}
.rq-box textarea:focus{box-shadow:inset 0 0 0 2px var(--blue)}
.rq-acts{display:flex;align-items:center;gap:6px;margin-top:10px}
.rq-acts small{margin-right:auto;font-size:12px;color:var(--g400)}
.rq-acts button{height:34px;padding:0 14px;border-radius:10px;font-size:14px;font-weight:600;color:var(--g700);background:var(--g100)}
.rq-acts button.primary{color:#fff;background:var(--blue)}
.rq-acts button:disabled{opacity:.6}
.rq-list{max-height:56vh;overflow:auto;margin-top:6px}
.rq-h{font-size:13px;font-weight:700;color:var(--g500);margin:16px 0 6px}
.rq-row{display:flex;align-items:baseline;gap:10px;padding:10px 12px;border-radius:12px;text-decoration:none;color:var(--g800)}
a.rq-row:hover{background:var(--g50)}
.rq-num{font-size:13px;font-weight:700;color:var(--blue);min-width:30px}
.rq-row.done .rq-num,.rq-row.done .rq-t{color:var(--g400)}
.rq-row.done .rq-t{text-decoration:line-through}
.rq-t{flex:1;font-size:15px;line-height:1.45}
.rq-row small{font-size:12px;color:var(--g400);white-space:nowrap}
.rq-note{font-size:13px;line-height:1.5;color:var(--g600);background:var(--g50);border-radius:10px;padding:10px 12px;margin-top:8px}
.rq-note.err{color:var(--red)}
.rq-foot{font-size:13px;color:var(--g500);margin:16px 0 0}

.rq-acts button.ghost{display:inline-flex;align-items:center;gap:5px;background:transparent;color:var(--g600);padding:0 10px}
.rq-acts button.ghost:hover{background:var(--g100)}
.rq-acts button.ghost svg{width:16px;height:16px}
.rq-bar button.primary{background:#3182f6}
.rq-shot{display:flex;align-items:center;gap:10px;margin-top:10px;padding:8px;border-radius:12px;background:var(--g50)}
.rq-shot img{width:72px;height:48px;object-fit:cover;object-position:top;border-radius:6px;box-shadow:0 0 0 1px var(--g200)}
.rq-shot div{flex:1;display:flex;flex-direction:column;gap:2px;font-size:13px;color:var(--g800)}
.rq-shot small{font-size:12px;color:var(--g500)}
.rq-shot button{width:28px;height:28px;border-radius:8px;color:var(--g500)}
.rq-shot button:hover{background:var(--g100)}
body.rq-arr,body.rq-arr *{cursor:grab!important;touch-action:none}
body.rq-arr .rq-ui,body.rq-arr .rq-ui *{cursor:auto!important;touch-action:auto}
body.rq-arr .rq-ui button{cursor:pointer!important}
.rq-moved{position:relative;z-index:80;outline:2px dashed var(--blue);outline-offset:4px;border-radius:4px}
body.rq-capturing .rq-moved{outline:0}
/* the request box stays light, also on dark (실험실) pages */
html.dark .rq-box{color-scheme:light;--g50:#f9fafb;--g100:#f2f4f6;--g200:#e5e8eb;--g300:#d1d6db;--g400:#b0b8c1;--g500:#8b95a1;--g600:#6b7684;--g700:#4e5968;--g800:#333d4b;--g900:#191f28;--blue50:#e8f3ff;background:#fff;color:#191f28}
@media (max-width:640px){.rq-bar{top:68px;font-size:13px}.rq-bar .rq-help{display:none}}
/* ---------- reading progress ---------- */
.read-progress{position:absolute;left:0;bottom:-1px;height:3px;width:100%;background:var(--g900);transform:scaleX(0);transform-origin:0 50%;will-change:transform;pointer-events:none}

/* ---------- toolbar popovers ---------- */
.tb .caret{width:10px;height:10px;margin-left:-2px;opacity:.6}
.tb-pop{position:fixed;z-index:120;background:#fff;border-radius:16px;padding:6px;box-shadow:0 0 0 1px rgba(0,27,55,.06),0 12px 36px rgba(0,27,55,.16);min-width:180px;max-height:60vh;overflow:auto}
.tb-pop .pi{display:flex;align-items:center;gap:10px;width:100%;padding:9px 12px;border-radius:10px;font-size:14px;font-weight:600;color:var(--g800);text-align:left;white-space:nowrap}
.tb-pop .pi:hover{background:var(--g100)}
.tb-pop .pi small{font-weight:500;color:var(--g500);margin-left:auto;font-size:12px}
.tb-pop .sw2{width:20px;height:20px;border-radius:6px;flex:none;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700}
.tb-pop .sep{height:1px;background:var(--g100);margin:4px 6px}
.emo-pop{width:340px}
.emo-pop input{width:100%;height:38px;border:0;border-radius:10px;background:var(--g100);padding:0 12px;font-size:14px;outline:none;margin-bottom:6px}
.emo-g{font-size:12px;font-weight:600;color:var(--g500);margin:8px 6px 4px}
.a-body,.emo-grid button,.tb-pop .sw2,.slash-pop .sw2{font-family:var(--font-flat)}
.emo-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:2px}
.emo-grid button{height:36px;border-radius:8px;font-size:21px;line-height:36px}
.emo-grid button:hover{background:var(--g100)}
.ref-list{display:flex;flex-direction:column;gap:2px;max-height:300px;overflow:auto;margin-top:10px}
.ref-list button{display:flex;align-items:center;gap:10px;padding:10px;border-radius:10px;text-align:left;font-size:15px;font-weight:600;color:var(--g800)}
.ref-list button:hover{background:var(--g100)}
.ref-list small{margin-left:auto;font-size:12px;font-weight:500;color:var(--g500);white-space:nowrap}

/* ---------- personal assistant bot ---------- */
.bot-launch{position:fixed;right:28px;bottom:24px;z-index:70;display:flex;flex-direction:column;align-items:center;gap:6px;padding:0;background:none;transition:transform .2s}
.bot-launch:hover{transform:translateY(-2px)}
.bot-launch span{font-size:16px;line-height:1.45;font-weight:500;color:var(--g600);text-align:center;white-space:pre-line;text-shadow:0 0 6px #fff,0 0 2px #fff}
.bot-launch .bot-ava{background:none;overflow:visible;filter:drop-shadow(0 6px 14px rgba(0,27,55,.16))}
.bot-launch .bot-ava svg rect.bg{fill:transparent}
.bot-ava{display:block;border-radius:50%;overflow:hidden;flex:none;background:var(--g100)}
.bot-launch .bot-ava{width:76px;height:76px}
.bot{transform-origin:calc(100% - 40px) calc(100% - 40px);position:fixed;right:24px;bottom:24px;z-index:90;width:380px;max-width:calc(100vw - 24px);height:min(640px,calc(100vh - 48px));display:flex;flex-direction:column;background:#fff;border-radius:32px;box-shadow:0 0 0 1px rgba(0,27,55,.04),0 16px 48px rgba(0,27,55,.18);transform:translateY(24px) scale(.18);opacity:0;border-radius:48px;transition:transform .5s cubic-bezier(.16,1,.3,1),opacity .22s ease,border-radius .5s cubic-bezier(.16,1,.3,1);overflow:hidden}
.bot.show{transform:none;opacity:1;border-radius:32px}
.bot.closing{transition:transform .34s cubic-bezier(.4,0,.6,1),opacity .26s ease .06s,border-radius .34s}
.bot .bot-head,.bot .bot-foot{opacity:0;transform:translateY(6px);transition:opacity .3s ease .16s,transform .4s cubic-bezier(.16,1,.3,1) .16s}
.bot.show .bot-head,.bot.show .bot-foot{opacity:1;transform:none}
.bot.closing .bot-head,.bot.closing .bot-foot{transition-delay:0s;transition-duration:.15s}
.bm{animation:bmIn .5s cubic-bezier(.22,1,.36,1) both;transform-origin:0 100%}
.bm.soft{animation:bmSoft .8s cubic-bezier(.22,1,.36,1) both}
.bm.soft .bb .qa>*{animation-duration:.6s;animation-delay:calc(var(--i,0) * 70ms + 260ms)}
@keyframes bmSoft{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.bm.me{animation-name:meIn;transform-origin:100% 100%}
.bm.typing-row{animation-duration:.25s}
@keyframes bmIn{from{opacity:0;transform:translateY(12px) scale(.96)}to{opacity:1;transform:none}}
@keyframes meIn{from{opacity:0;transform:translateX(14px) scale(.96)}to{opacity:1;transform:none}}
.bb .qa>*,.bb .ln>*{animation:qaIn .38s cubic-bezier(.16,1,.3,1) both;animation-delay:calc(var(--i,0) * 55ms + 140ms)}
@keyframes qaIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.bot-launch{transition:transform .35s cubic-bezier(.16,1,.3,1),opacity .25s}
.bot-launch.hide{opacity:0;transform:scale(.7) translateY(10px);pointer-events:none}
.bot-launch .bot-ava{animation:floatY 4s ease-in-out 1.2s infinite}
@keyframes floatY{0%,100%{transform:none}50%{transform:translateY(-3px)}}
@media (prefers-reduced-motion:reduce){.bot,.bot *,.bot-launch,.bot-launch *,.nl,.nl *{animation:none!important;transition:none!important}}
.bot-head{position:relative;padding:22px 20px 10px;text-align:center;font-size:15px;font-weight:500;color:var(--g500)}
.bot-head .nl-x{top:14px;right:14px}
.bot-msgs{flex:1;overflow:auto;padding:6px 20px 16px;display:flex;flex-direction:column;gap:14px}
.bm{display:flex;gap:10px;align-items:flex-start}
.bm .bot-ava{width:44px;height:44px}
.bb{background:var(--g100);border-radius:20px;padding:14px 16px;font-size:16px;line-height:1.55;color:var(--g800);white-space:pre-wrap;word-break:break-word;max-width:calc(100% - 54px)}
.bb a{color:var(--blue);text-decoration:none;font-weight:600}
.bm.me{justify-content:flex-end}
.bm.me .bb{background:var(--blue);color:#fff;border-bottom-right-radius:6px}
.bb .qa{display:flex;flex-direction:column;gap:8px;margin-top:14px;padding-top:14px;border-top:1px solid var(--g200);white-space:normal}
.bb .qa button,.bb .qa a{display:flex;align-items:center;justify-content:center;height:44px;border-radius:12px;background:#fff;color:var(--blue);font-size:15px;font-weight:600;text-decoration:none}
.bb .qa button:hover,.bb .qa a:hover{background:#f7faff}
.bb .ln{display:flex;flex-direction:column;gap:6px;margin-top:10px;white-space:normal}
.bb .ln a{display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:12px;background:#fff;color:var(--g800);font-size:15px}
.bb .ln a b{color:var(--blue);margin-left:auto;font-size:13px}
.bb form{display:flex;flex-direction:column;gap:8px;margin-top:12px;white-space:normal}
.bb input,.bb textarea{width:100%;border:0;border-radius:10px;background:#fff;padding:10px 12px;font-size:15px;outline:none;resize:none}
.bb input:focus,.bb textarea:focus{box-shadow:inset 0 0 0 2px var(--blue)}
.bb form button{height:42px;border-radius:12px;background:var(--blue);color:#fff;font-size:15px;font-weight:600}
.typing{display:flex;gap:4px;padding:4px 2px}
.typing i{width:6px;height:6px;border-radius:50%;background:var(--g400);animation:tp 1s infinite}
.typing i:nth-child(2){animation-delay:.15s}.typing i:nth-child(3){animation-delay:.3s}
@keyframes tp{0%,60%,100%{opacity:.3;transform:none}30%{opacity:1;transform:translateY(-3px)}}
.bot-foot{padding:10px 20px 20px;border-top:1px solid var(--g100)}
.bot-in{display:flex;gap:8px;align-items:center;margin-bottom:12px}
.bot-in input{flex:1;height:44px;border:0;border-radius:12px;background:var(--g100);padding:0 14px;font-size:15px;outline:none}
.bot-in input:focus{box-shadow:inset 0 0 0 2px var(--blue)}
.bot-in button{width:44px;height:44px;border-radius:12px;background:var(--blue);color:#fff;display:flex;align-items:center;justify-content:center}
.bot-in button:disabled{background:#90c2ff}
.bot-in svg{width:20px;height:20px}
.bot-direct{width:100%;height:52px;border-radius:14px;background:var(--blue);color:#fff;font-size:16px;font-weight:600}
.bot-direct:hover{background:var(--blueHover)}
@media (max-width:640px){.bot-launch{right:12px;bottom:12px}.bot-launch>span:not(.bot-ava){display:none}.bot-launch .bot-ava{width:60px;height:60px}.bot{right:12px;left:12px;bottom:12px;width:auto;height:calc(100vh - 24px)}}

@media (max-width:860px){.c-main{flex-direction:column}.c-side{width:100%}}
@media (max-width:640px){
  .gnb{padding:10px 16px}
  .article,.home{padding:24px 20px}
  .a-title{font-size:30px;line-height:40px;margin-top:20px}
  .a-body>h2{font-size:24px}
  .a-body>h3{font-size:20px}
  .pi-thumb{width:96px;height:96px}
  .pi-title{font-size:19px}
  .save-status{display:none}
}
