
:root{
  --green:#19c83f;--bg:#eef1f4;--card:#fff;--text:#181818;--muted:#9aa1aa;
  --line:#e9ecef;--dark:#4e5666;--yellow:#ffd900;--purple:#8e42c6;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:Arial,"Noto Sans KR","Apple SD Gothic Neo",sans-serif;background:var(--bg);color:var(--text)}
img{max-width:100%} a{text-decoration:none;color:inherit}
.topbar{position:sticky;top:0;z-index:80;background:var(--green);color:white;min-height:42px}
.topbar-inner{max-width:1080px;margin:auto;min-height:42px;display:flex;align-items:center;justify-content:space-between;padding:0 12px}
.home{font-size:21px;font-weight:900}
.brand{font-weight:800;font-size:15px}
.contacts{display:flex;gap:22px;font-size:12px;font-weight:700}
.contacts a:hover{text-decoration:underline}
.layout{max-width:1080px;margin:26px auto;display:grid;grid-template-columns:220px minmax(0,1fr) 255px;gap:18px;padding:0 12px}
.card{background:var(--card);border:1px solid #edf0f2}
.left-profile{background:transparent}
.profile-image{width:100%;aspect-ratio:4/5;object-fit:cover;background:#ddd;display:block}
.profile-title{font-size:20px;font-weight:900;line-height:1.25;margin:18px 0 5px}
.profile-meta{font-size:12px;color:#a3a9b1;line-height:1.5}
.profile-copy{font-size:13px;line-height:1.55;margin:10px 0 16px}
.btn{display:block;text-align:center;padding:12px 10px;font-weight:800}
.btn-dark{background:#4e5564;color:#fff}
.btn-yellow{background:var(--yellow);color:#111;margin-top:8px}
.intro{padding:20px}
.intro h3,.notice h3{margin:0 0 16px;font-size:15px}
.intro-text{white-space:pre-line;font-size:13px;line-height:1.75}
.highlight{color:var(--purple);font-weight:800}
.notice{margin-top:12px}
.notice h3{padding:16px 20px 9px}
.notice-row{border-top:1px solid var(--line);padding:12px 20px;font-size:13px}
.notice-row b{color:#05b84d}
.post{padding:18px 20px;margin-top:12px;background:#fff;border:1px solid #edf0f2}
.author{display:flex;align-items:center;gap:10px;margin-bottom:13px}
.author img{width:40px;height:40px;border-radius:50%;object-fit:cover;background:#eee}
.author-name{font-weight:900;font-size:14px}
.author-sub{font-size:11px;color:#a0a6af;margin-top:3px}
.post-body{font-size:13px;line-height:1.7;white-space:pre-line}
.post-image{display:block;width:100%;margin-top:14px}
.post-actions{display:flex;justify-content:space-between;gap:8px;border-top:1px solid var(--line);margin:16px -20px -18px;padding:13px 20px;color:#9ea4ac;font-size:12px}
.right-title{padding:12px 14px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;font-size:12px;color:#555}
.right-title b{color:#19c83f}
.chat-row{display:flex;align-items:center;gap:10px;padding:12px}
.talk-icon{width:42px;height:42px;border-radius:50%;background:var(--yellow);display:grid;place-items:center;font-size:10px;font-weight:900}
.chat-copy{min-width:0}
.chat-copy strong{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-copy span{font-size:11px;color:#999}
.side-image{width:100%;display:block;margin-top:12px}
.side-contact{margin-top:12px;padding:14px}
.side-contact h4{margin:0 0 9px}
.side-contact a{display:block;padding:10px 12px;margin-top:8px;background:#f1f3f5;border-radius:5px;font-size:12px}
.footer{max-width:1080px;margin:10px auto 65px;padding:20px 12px;color:#8e959f;text-align:center;font-size:11px;line-height:1.6}
.floating-admin{position:fixed;right:18px;bottom:18px;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:#ff244f;color:#fff;font-size:12px;font-weight:900;box-shadow:0 5px 18px #0002;z-index:90}
.mobile-contact{display:none}

/* admin */
.admin-wrap{max-width:980px;margin:30px auto;padding:0 14px}
.admin-card{background:#fff;border:1px solid #e7eaee;border-radius:10px;padding:20px;margin-bottom:14px}
.admin-card h2,.admin-card h3{margin-top:0}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.field{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}
.field label{font-size:12px;color:#555;font-weight:700}
.field input,.field textarea{border:1px solid #d8dde3;border-radius:6px;padding:10px;font:inherit}
.field textarea{min-height:130px;resize:vertical}
.full{grid-column:1/-1}
.admin-btn{border:0;border-radius:6px;padding:10px 14px;background:#19c83f;color:white;font-weight:800;cursor:pointer}
.admin-btn.secondary{background:#4e5666}
.admin-btn.danger{background:#dc3545}
.notice-edit,.post-edit{padding:12px;border:1px solid #e7eaee;border-radius:7px;margin:10px 0}
.notice-edit{display:flex;gap:8px}
.notice-edit input{flex:1}
.flash{padding:10px 12px;border-radius:6px;background:#eaf8ef;color:#176b36;margin-bottom:12px}
.error{background:#fff0f0;color:#a92020}
.login-box{max-width:420px;margin:80px auto;padding:24px;background:#fff;border-radius:10px;border:1px solid #e7eaee}
.note{font-size:12px;color:#7d858f;line-height:1.6}
@media(max-width:900px){
  .layout{grid-template-columns:185px minmax(0,1fr)}
  .right{display:none}
}
@media(max-width:640px){
  .topbar-inner{min-height:52px;flex-wrap:wrap;padding:6px 12px 7px;gap:3px}
  .home{position:absolute;left:12px;top:11px}
  .brand{width:100%;text-align:center}
  .contacts{width:100%;justify-content:center;font-size:10px;gap:12px}
  .layout{display:block;margin:10px auto;padding:0 8px}
  .left-profile{display:grid;grid-template-columns:104px 1fr;gap:12px;background:#fff;padding:12px;border:1px solid #edf0f2}
  .profile-image{height:132px}
  .profile-title{font-size:16px;margin:1px 0 5px}
  .profile-copy{font-size:12px;margin:6px 0}
  .left-profile .btn{grid-column:1/-1}
  .center{margin-top:10px}
  .intro{padding:16px}
  .post{padding:14px}
  .post-actions{margin:14px -14px -14px}
  .mobile-contact{display:flex;position:fixed;left:10px;right:10px;bottom:10px;z-index:85;gap:8px}
  .mobile-contact a{flex:1;text-align:center;padding:12px 8px;border-radius:8px;font-size:12px;font-weight:900;box-shadow:0 4px 18px #0002}
  .mobile-contact a:first-child{background:var(--yellow)}
  .mobile-contact a:last-child{background:#19c83f;color:#fff}
  .floating-admin{bottom:70px}
  .footer{margin-bottom:95px}
  .form-grid{grid-template-columns:1fr}
}

.post-rich{font-size:13px;line-height:1.95;white-space:normal}
.post-rich .post-block-image{margin:14px 0}
.post-rich .post-image{display:block;width:100%;border:1px solid #eef1f4}
.help-box{font-size:12px;background:#f8fafc;border:1px dashed #d8dde3;border-radius:8px;padding:10px 12px;color:#57606a;line-height:1.8}
.code-sample{display:block;background:#fff;border:1px solid #e5e7eb;border-radius:6px;padding:8px 10px;margin-top:8px;white-space:pre-line}
.admin-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.admin-head.compact{margin-bottom:12px}.admin-head.compact h2{margin:0}.admin-menu-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.admin-menu-card{display:flex;flex-direction:column;gap:6px;background:#fff;border:1px solid #e7eaee;border-radius:10px;padding:20px}.admin-menu-card b{font-size:18px}.admin-menu-card span{font-size:12px;color:#7d858f}.admin-thumb{display:block;max-width:220px;max-height:180px;object-fit:cover;border-radius:8px;margin:8px 0}.toolbar{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.inline-btn{display:inline-block;width:auto}.table-wrap{overflow:auto}.admin-table{width:100%;border-collapse:collapse;font-size:13px}.admin-table th,.admin-table td{padding:11px;border-bottom:1px solid #e7eaee;text-align:left;white-space:nowrap}.admin-table .actions{display:flex;gap:10px;align-items:center}.inline-form{display:inline}.link-danger{border:0;background:none;color:#d33;padding:0;cursor:pointer}.empty{text-align:center!important;color:#8b929b}.blocks-list{display:flex;flex-direction:column;gap:12px}.content-block{border:1px solid #dfe4ea;background:#f9fafb;border-radius:8px;padding:14px}.content-block-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.block-actions{display:flex;gap:6px}.mini-btn{border:1px solid #ccd2d9;background:white;border-radius:5px;padding:5px 8px;cursor:pointer}.mini-btn.danger{color:#c62828}.content-block textarea{width:100%;border:1px solid #d8dde3;border-radius:6px;padding:10px;font:inherit}.hidden-file{display:none}.admin-block-image{display:block;max-width:420px;max-height:420px;object-fit:contain;background:#fff;border:1px solid #e3e7eb;border-radius:6px;margin-bottom:10px}.sticky-save{position:sticky;bottom:10px;display:flex;justify-content:flex-end;padding:10px 0}.sticky-save .admin-btn{box-shadow:0 5px 18px #0002}@media(max-width:640px){.admin-menu-grid{grid-template-columns:1fr}.admin-head{align-items:flex-start;flex-direction:column}.admin-table .actions{white-space:normal;flex-wrap:wrap}.admin-block-image{max-width:100%}}
.comment-admin-card{position:relative}.comment-edit-grid{display:grid;grid-template-columns:150px 1fr;gap:18px}.admin-avatar{width:96px;height:96px;border-radius:50%;object-fit:cover;border:1px solid #e1e5e9;background:#f2f3f5;display:grid;place-items:center;font-size:11px;color:#8b929b}.thumb-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px;margin:10px 0 14px}.image-delete-card{border:1px solid #e1e5e9;border-radius:8px;padding:8px;background:#fafbfc}.image-delete-card img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:5px;margin-bottom:7px}.image-delete-card span{font-size:12px}.comment-delete-form{margin-top:10px;padding-top:10px;border-top:1px solid #eceff2}@media(max-width:640px){.comment-edit-grid{grid-template-columns:1fr}.admin-avatar{width:80px;height:80px}.thumb-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.post-text-block{font-size:13px;line-height:1.9;margin:10px 0;word-break:break-word}.post-image-block{margin:14px 0}.post-image-block .post-image{display:block;width:100%;height:auto;object-fit:contain;background:#f6f7f8}.comments-section{border-top:1px solid #e8ebef;margin:18px -20px -18px;padding:0 20px}.comments-title{padding:13px 0 9px;font-size:12px;color:#6f7680}.comments-title b{color:#222}.comment-item{display:grid;grid-template-columns:42px minmax(0,1fr);gap:10px;padding:13px 0;border-top:1px solid #f0f2f4}.comment-avatar{width:42px;height:42px;border-radius:50%;object-fit:cover;background:#eef1f4;border:1px solid #e2e6ea}.comment-avatar-empty{display:grid;place-items:center;color:#aab1b8}.comment-main{min-width:0}.comment-meta{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}.comment-meta strong{font-size:12px}.comment-meta span{font-size:10px;color:#a0a6ae}.comment-text{font-size:12px;line-height:1.75;margin-top:6px;word-break:break-word}.comment-images{display:flex;flex-direction:column;gap:8px;margin-top:9px}.comment-image{display:block;width:100%;height:auto;object-fit:contain;background:#f7f8fa;border:1px solid #edf0f2}.comments-empty{border-top:1px solid #eceff2;margin:14px -20px -18px;padding:14px 20px;color:#9aa1aa;font-size:11px}.empty-public{padding:30px;text-align:center;color:#9aa1aa;margin-top:12px}@media(max-width:640px){.comments-section{margin:14px -14px -14px;padding:0 14px}.comments-empty{margin:14px -14px -14px;padding:14px}.comment-item{grid-template-columns:36px minmax(0,1fr)}.comment-avatar{width:36px;height:36px}.post-text-block{font-size:13px;line-height:1.85}}


.post-ending{margin:20px 0 4px;padding:20px 0 0;border-top:1px solid #eceff2;font-size:13px;line-height:1.9;color:#282d33}.post-ending h3{margin:0 0 6px;font-size:18px;line-height:1.45;color:#111}.post-ending-meta{color:#9aa1aa;margin-bottom:16px}.post-ending p{margin:0 0 11px}.post-ending-points{margin:18px 0}.post-ending h4{margin:18px 0 8px;color:#e60012;font-size:14px}.post-ending ol{margin:0 0 22px;padding-left:22px}.post-ending li{margin:4px 0}.post-ending-contact{display:block;margin:0 -20px -1px;padding:15px 12px;border-top:1px solid #eceff2;text-align:center;font-size:14px;color:#111;background:#fff}.post-ending-contact:hover{background:#fafafa}@media(max-width:640px){.post-ending{padding-top:17px}.post-ending h3{font-size:16px}.post-ending-contact{margin-left:-14px;margin-right:-14px}}

.page-ending-card{margin-top:12px;overflow:hidden}.page-ending-card .post-ending{margin:0;padding:20px;border-top:0}.page-ending-card .post-ending-contact{margin-left:-20px;margin-right:-20px;margin-bottom:-20px}@media(max-width:640px){.page-ending-card .post-ending{padding:16px 14px}.page-ending-card .post-ending-contact{margin-left:-14px;margin-right:-14px;margin-bottom:-16px}}

/* notice detail */
.notice-row{display:block;color:inherit;cursor:pointer}.notice-row:hover{background:#fafcfa}.notice-detail-page{background:#edf0f2}.notice-detail-page.has-fixed-cta{padding-bottom:84px}.notice-detail-topbar{position:sticky;top:0;z-index:120;background:var(--green);color:#fff}.notice-detail-topbar-inner{max-width:520px;height:50px;margin:0 auto;display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:8px;padding:0 10px}.notice-back{font-size:24px;line-height:1;text-align:left}.notice-detail-brand{text-align:center;font-size:14px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.notice-top-contact{font-size:11px;font-weight:800;white-space:nowrap}.notice-detail-shell{max-width:520px;margin:0 auto;padding:12px 10px 28px}.notice-detail-card{background:#fff;border:1px solid #e7eaee;border-radius:3px;overflow:hidden}.notice-detail-heading{display:grid;grid-template-columns:48px minmax(0,1fr);gap:11px;padding:16px 16px 12px;border-bottom:1px solid #eef1f3}.notice-author-avatar{width:48px;height:48px;border-radius:50%;object-fit:cover;background:#eef1f4;border:1px solid #e2e6ea}.notice-author-copy{min-width:0}.notice-author-copy h1{margin:0 0 6px;font-size:15px;line-height:1.45;word-break:break-word}.notice-author-meta{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:10px;color:#969da6}.notice-author-meta strong{font-size:11px;color:#4b525b}.notice-detail-content{padding:17px 16px 8px;font-size:13px;line-height:1.9;word-break:break-word}.notice-text-block,.notice-red-text,.notice-bold-text{margin:0 0 15px}.notice-red-text{color:#e31522;font-weight:700}.notice-bold-text{font-weight:800;color:#17191c}.notice-divider{border:0;border-top:1px solid #e7eaee;margin:18px 0}.notice-image-block,.notice-gallery{margin:15px -16px}.notice-image-block img,.notice-gallery img{display:block;width:100%;height:auto;object-fit:contain;background:#f6f7f8}.notice-gallery{display:flex;flex-direction:column;gap:10px}.notice-inline-button,.notice-mid-button{display:block;margin:18px 0;padding:13px 12px;border-radius:4px;background:#f1f3f5;color:#16191d;text-align:center;font-weight:800;font-size:13px}.notice-mid-button{margin:10px 16px 18px;background:#ffd900;color:#111}.notice-page-ending{margin-top:12px;overflow:hidden}.notice-page-ending .post-ending{margin:0;padding:20px;border-top:0}.notice-page-ending .post-ending-contact{margin-left:-20px;margin-right:-20px;margin-bottom:-20px}.notice-fixed-cta-wrap{position:fixed;left:0;right:0;bottom:0;z-index:150;padding:8px 10px max(8px,env(safe-area-inset-bottom));background:rgba(255,255,255,.95);border-top:1px solid #e5e8eb}.notice-fixed-cta{display:block;max-width:500px;margin:0 auto;padding:14px 12px;border-radius:6px;background:var(--green);color:#fff;text-align:center;font-weight:900;font-size:15px;box-shadow:0 4px 14px #0002}.notice-not-found{padding:34px 22px;text-align:center}.notice-not-found h1{font-size:19px;margin:0 0 10px}.notice-not-found p{font-size:13px;color:#7e858e}.notice-not-found a{display:inline-block;margin-top:10px;color:#0a9f33;font-weight:800}@media(max-width:640px){.notice-detail-shell{padding:8px 0 24px}.notice-detail-card,.notice-page-ending{border-left:0;border-right:0}.notice-detail-heading{padding-left:14px;padding-right:14px}.notice-detail-content{padding-left:14px;padding-right:14px}.notice-image-block,.notice-gallery{margin-left:-14px;margin-right:-14px}.notice-page-ending .post-ending{padding:16px 14px}.notice-page-ending .post-ending-contact{margin-left:-14px;margin-right:-14px;margin-bottom:-16px}.notice-mid-button{margin-left:14px;margin-right:14px}}

/* notice admin */
.sort-input{width:78px;border:1px solid #d8dde3;border-radius:5px;padding:7px}.notice-add-toolbar{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.notice-add-toolbar .admin-btn{padding:8px 10px;font-size:12px}.notice-admin-avatar{margin-bottom:10px}.checkbox-line{display:flex;align-items:center;gap:7px;font-size:12px;color:#646b74;margin:5px 0 10px}.notice-content-block[data-notice-type="red_text"]{border-left:4px solid #e31522}.notice-content-block[data-notice-type="bold_text"]{border-left:4px solid #222}.notice-content-block[data-notice-type="divider"]{border-left:4px solid #b6bdc5}.notice-content-block[data-notice-type="gallery"]{border-left:4px solid #6877ff}.notice-content-block[data-notice-type="button"]{border-left:4px solid #ffd000}@media(max-width:640px){.notice-add-toolbar{justify-content:flex-start}.notice-add-toolbar .admin-btn{flex:1 1 calc(50% - 6px)}}
