@charset "utf-8";

/* XE 제거 후 PHP 7에서 원본 레이아웃을 안정적으로 보여주기 위한 보정만 포함합니다. */
body { min-width: 950px; }
#header { position: relative; }
#header ul#menu { left: 0; top: 0; z-index: 4000; width: 950px; height: 310px; }
#header ul#menu { pointer-events: none; }
#header ul#menu a { pointer-events: auto; }
#header ul#menu li.comics,
#header ul#menu li.data,
#header ul#menu li.shop,
#header ul#menu li.community { z-index: 10; }
#header ul#menu > li.active-section { z-index: 100 !important; }
#header ul#menu > li.active-section > ul { z-index: 110; pointer-events: none; }
#header ul#menu > li.active-section > ul > li { z-index: 111; pointer-events: none; }
#header ul#menu > li.active-section > ul > li > a { position: relative; z-index: 112; display: block; pointer-events: auto; }
#header ul#menu > li.active-section > ul > li > a > img { display: block; pointer-events: none; }
#body { position: relative; z-index: 1; }
#body #content { min-height: 510px; }
.php7-content { position: relative; top: -230px; min-height: 460px; }
.clear { clear: both; }
#footer { margin-bottom: -200px; }
#quick-menu { position: fixed; right: 18px; top: 45%; z-index: 5000; display: flex; flex-direction: column; gap: 4px; }
#quick-menu a { display: block; }

/* 로그인 / 회원가입 */
#header ul#login { display: flex; align-items: center; gap: 3px; }
#header ul#login li { display: inline-flex; align-items: center; }
.legacy-image-button { display: inline-block; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; }
.legacy-image-button img, .legacy-auth-link img { display: block; }
.auth-logout-form { display: inline-block; margin: 0; }
.auth-user-name { margin-right: 5px; color: #5e4300; font: 11px Gulim, Dotum, sans-serif; white-space: nowrap; }
.auth-user-name strong { color: #222; }
.auth-modal[hidden] { display: none !important; }
.auth-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; overflow: auto; padding: 125px 20px 25px; }
.auth-modal-backdrop { position: absolute; inset: 0; background: #000; opacity: .7; }
.auth-form-message { margin: 0 0 14px; padding: 8px 10px; font: 11px/1.5 Gulim, Dotum, sans-serif; }
.auth-form-error { border: 1px solid #eeb0a6; background: #fff0ed; color: #a32a1d; }
.auth-form-success { border: 1px solid #a9d59e; background: #effbea; color: #2c7020; }
.auth-modal-open { overflow: hidden !important; }
.auth-flash { position: fixed; top: 15px; left: 50%; z-index: 12000; min-width: 260px; padding: 12px 42px 12px 16px; transform: translateX(-50%); border-radius: 5px; box-shadow: 0 5px 20px rgba(0,0,0,.22); color: #fff; font: 12px Gulim, Dotum, sans-serif; }
.auth-flash-success { background: #39913a; }
.auth-flash-error { background: #b73a2c; }
.auth-flash button { position: absolute; right: 9px; top: 5px; border: 0; background: transparent; color: #fff; cursor: pointer; font-size: 21px; }

/* 원본 widgets/login_info/skins/login 팝업 */
.legacy-login-popup { position: relative; z-index: 1; width: 465px; height: 548px; }
.legacy-login-title { position: absolute; top: -110px; left: 0; z-index: 2; width: 324px; height: 125px; }
.legacy-login-title img { display: block; }
.legacy-login-wrapper { width: 465px; height: 548px; background: url(../images/auth/login/login_background.png) no-repeat 0 0; }
.legacy-login-form { position: relative; width: 465px; height: 548px; }
.legacy-login-form .auth-form-message { position: absolute; top: 5px; left: 38px; z-index: 5; box-sizing: border-box; width: 390px; }
.legacy-login-label, .legacy-login-input, .legacy-auto-login, .legacy-login-submit, .legacy-login-join, .legacy-login-find, .legacy-login-close { position: absolute; }
.legacy-login-label img { display: block; }
.legacy-id-label { top: 60px; left: 40px; }
.legacy-pw-label { top: 143px; left: 40px; }
.legacy-login-input { box-sizing: border-box; left: 172px; width: 283px; height: 83px; background: url(../images/auth/login/idForm.gif) no-repeat 0 0; }
.legacy-id-input { top: 40px; }
.legacy-pw-input { top: 128px; }
.legacy-login-input span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.legacy-login-input input { box-sizing: border-box; width: 230px; height: 49px; margin: 17px 0 0 20px; padding: 6px 2px; border: 0; outline: 0; background: transparent; color: #222; font: bold 25px/37px Arial, Gulim, sans-serif; }
.legacy-login-input input:focus { outline: 2px solid #ffb400; outline-offset: -2px; }
.legacy-auto-login { top: 224px; left: 80px; display: flex; align-items: center; gap: 5px; cursor: pointer; }
.legacy-auto-login input { width: 13px; height: 13px; }
.legacy-auto-login img { display: block; }
.legacy-login-submit, .legacy-login-join, .legacy-login-find, .legacy-login-close { padding: 0; border: 0; background: transparent; cursor: pointer; }
.legacy-login-submit { top: 216px; left: 235px; }
.legacy-login-join { top: 300px; left: 30px; }
.legacy-login-find { top: 371px; left: 20px; }
.legacy-login-close { top: -40px; right: 0; }
.legacy-login-submit img, .legacy-login-join img, .legacy-login-find img, .legacy-login-close img { display: block; }

/* 원본 modules/member/skins/default 회원가입 화면 */
.member-signup-page { min-height: 430px; color: #666; font: 12px Gulim, Dotum, sans-serif; }
.member-signup-page #memberModule { width: 100%; }
#memberModule h3 { margin: 0 0 10px; padding: 5px 0 5px 25px; border-bottom: 2px solid #ccc; background: url(../images/auth/member/iconH2.gif) no-repeat left center; color: #666; font-size: 12px; }
#memberModule p.summary { margin: 0 0 15px; color: #888; line-height: 1.6; }
#memberModule p.summary a { color: #888; text-decoration: none; }
#memberModule .rowTable { width: 100%; margin: 0 0 20px; padding: 0; border: 0; border-top: 2px solid #cfcfcf; border-collapse: collapse; }
#memberModule .rowTable th div { white-space: nowrap; }
#memberModule .rowTable th,
#memberModule .rowTable td { padding: 10px; border: 0; text-align: left; vertical-align: top; font-weight: normal; }
#memberModule .rowTable tbody th,
#memberModule .rowTable td { border-bottom: 1px solid #e5e5e5; }
#memberModule .rowTable td.wide { width: 100%; }
#memberModule .rowTable th.title { padding: 10px; border-bottom: 1px solid #ddd; background: url(../images/auth/member/bgTab.gif) repeat-x left bottom; font-weight: bold; text-align: center; }
#memberModule .rowTable th.button { background: #eaeaea; text-align: right; }
#memberModule .inputTypeText { height: 1.4em; padding: .2em 0 0 .3em; border: 1px solid; border-color: #a6a6a6 #d8d8d8 #d8d8d8 #a6a6a6; background: #fff; color: #333; font-size: 1em; }
#memberModule .inputTypeText:hover,
#memberModule .inputTypeText:focus { background: #f4f4f4; }
#memberModule .inputTypeText.w300 { width: 300px; }
#memberModule select { margin-bottom: 4px; }
#memberModule p { margin: 3px 0 0; padding: 0; color: #aaa; }
#memberModule #dummy_check_nick_name { margin: 3px 0 0; padding: 0; color: red; }
#memberModule .require { margin-left: 5px; color: red; font: bold 10px Tahoma, sans-serif; }
#memberModule .auth-form-message { margin: 0 0 14px; padding: 8px 10px; }
#memberModule .auth-form-error { color: #a32a1d; }
#memberModule .auth-form-success { color: #2c7020; }

/* XE 공통 버튼 이미지를 그대로 사용합니다. */
#memberModule a.button,
#memberModule a.button span { position: relative; display: inline-block; background: url(../images/auth/member/buttonWhite.gif) no-repeat; color: #000; text-decoration: none !important; white-space: nowrap; vertical-align: middle; cursor: pointer; }
#memberModule a.button { padding: 0; overflow: visible; background-position: left top; }
#memberModule a.button span { left: 2px; padding: 6px 10px 5px 8px; background-position: right top; font: 12px/12px Sans-serif; }
#memberModule span.button,
#memberModule span.button input { position: relative; display: inline-block; margin: 0; border: 0; background: url(../images/auth/member/buttonWhite.gif) no-repeat; font: 12px Sans-serif; white-space: nowrap; vertical-align: middle; }
#memberModule span.button { margin-right: 2px; padding: 0; background-position: left top; }
#memberModule span.button input { left: 2px; height: 23px; padding: 0 10px 0 8px; background-position: right top; line-height: 24px; cursor: pointer; }
#memberModule span.button.black,
#memberModule span.button.black input { background-image: url(../images/auth/member/buttonBlack.gif); color: #fff; }
#memberModule span.button.strong input { font-weight: bold !important; }

/* 배경의 작은 캐릭터도 전부 실제 링크입니다. */
#container > a[class^="c"] { cursor: pointer; }
#container > a[class^="c"]:focus-visible { outline: 3px solid #005eff; outline-offset: 2px; }
#container > a.c00_sun { display: block; z-index: 5000 !important; width: 184px; height: 117px; pointer-events: auto !important; }
#container > a.c00_sun img { display: block; width: 184px; height: 117px; pointer-events: none; }

.home-grid { display: grid; grid-template-columns: 377px 377px; gap: 28px 34px; }
.home-widget { width: 377px; min-height: 245px; padding-top: 108px; background-repeat: no-repeat; }
.home-widget h2, .home-shop h2 { position: absolute; left: -9999px; }
.widget-byungmat { background-image: url(../images/widget/byungmat.png); }
.widget-data { background-image: url(../images/widget/data.png); }
.widget-board { background-image: url(../images/widget/board.png); }
.widget-sungji { background-image: url(../images/widget/sungji.png); }
.placeholder-posts { margin: 0; padding: 0 12px 0 20px; }
.placeholder-posts li { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dotted #bbb; line-height: 27px; font-size: 12px; }
.placeholder-posts li a { max-width: 255px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.placeholder-posts li span { color: #999; font-size: 11px; }
.widget-message { padding: 28px 18px; color: #888; text-align: center; font-size: 12px; }
.home-shop { width: 810px; min-height: 230px; margin-top: 25px; padding-top: 110px; background: url(../images/widget/shop.png) no-repeat 0 0; clear: both; }
.shop-empty { padding: 35px; text-align: center; color: #888; font-size: 12px; }
.home-shop-more { margin: 18px 20px 0; text-align: right; }
.home-shop-more a { color: #e36d00; font-weight: bold; }
.db-placeholder { margin: 12px; padding: 20px; border: 1px dashed #aaa; background: rgba(255,255,255,.72); text-align: center; font-size: 12px; }
.db-placeholder strong, .db-placeholder span { display: block; }
.db-placeholder span { margin-top: 7px; color: #888; }

/* 원본 XE 위젯을 복원 DB 게시물로 출력 */
.legacy-widget-empty { box-sizing: border-box; min-height: 42px; padding: 13px 15px; color: #999; text-align: center; font: 11px Gulim, Dotum, sans-serif; }
.legacy-widget-clear { clear: both; height: 0; overflow: hidden; }
.legacy-widget-no-image { display: grid; width: 100%; height: 100%; place-items: center; background: #f4f1e8; color: #b7ae95; font: bold 10px Arial, sans-serif; }
.legacy-widget-featured { position: relative; top: 32px; left: 180px; box-sizing: border-box; height: 204px; overflow: hidden; }
.legacy-widget-featured .todayImg { float: left; width: 300px; height: 164px; overflow: hidden; background: #f4f1e8; }
.legacy-widget-featured-image { display: block; width: 300px; height: 164px; object-fit: cover; }
.legacy-widget-featured .todayInfo { float: left; box-sizing: border-box; width: 165px; padding: 20px 0 0 10px; }
.legacy-widget-featured .todayInfo h4 { overflow: hidden; max-width: 160px; margin: 0; text-overflow: ellipsis; white-space: nowrap; }
.legacy-widget-featured .todayInfo h4 a { color: #333; font-size: 14px; }
.legacy-widget-featured .memo { max-height: 48px; overflow: hidden; }
.legacy-widget-featured .btnGo img { border: 0; }
.legacy-widget-highlight { box-sizing: border-box; min-height: 145px; overflow: hidden; list-style: none !important; }
.legacy-widget-highlight .popImg { float: left; width: 140px; height: 140px; overflow: hidden; border: 1px solid #999; background: #f4f1e8; }
.legacy-widget-highlight-image { display: block; width: 140px; height: 140px; object-fit: cover; }
.legacy-widget-highlight .popInfo { float: left; box-sizing: border-box; width: 165px; padding-left: 16px; }
.legacy-widget-highlight .popIcon { padding-top: 12px; color: #d82000; }
.legacy-widget-highlight .popInfo h4 { overflow: hidden; margin: 0; text-overflow: ellipsis; white-space: nowrap; }
.legacy-widget-highlight .memo { max-height: 54px; overflow: hidden; }
.legacy-widget-popular { box-sizing: border-box; min-height: 96px; overflow: hidden; list-style: none !important; }
.legacy-widget-popular .newImg { float: left; width: 90px; height: 90px; margin-bottom: 10px; overflow: hidden; border: 1px solid #999; background: #f4f1e8; }
.legacy-widget-popular-image { display: block; width: 90px; height: 90px; object-fit: cover; }
.legacy-widget-popular .newInfo { float: left; box-sizing: border-box; width: 185px; padding: 8px 0 0 16px; }
.legacy-widget-popular .newInfo h4 { overflow: hidden; margin: 0; text-overflow: ellipsis; white-space: nowrap; }
.legacy-widget-popular .memo { max-height: 38px; overflow: hidden; }
.interview { width: 280px; font-family: Dotum, sans-serif; }
.interview h4 { margin: 0 0 7px; font-size: 13px; }
.interviewImg { float: left; width: 120px; height: 120px; margin-right: 18px; overflow: hidden; }
.interviewInfo { margin-left: 10px; }
.interviewAuthor { padding-top: 8px; font-weight: bold; }
.interview .btnView { margin-top: 5px; }
.legacy-widget-interview-image { display: block; width: 120px; height: 120px; object-fit: cover; }
.legacy-widget-highlight .writer, .legacy-widget-popular .writer, .legacy-widget-line .writer { color: #788eb7; font-size: 10px; }
.legacy-widget-highlight .author, .legacy-widget-popular .author { line-height: 1.5; }
.legacy-widget-line .by { color: #bbb; font-size: 10px; }
.legacy-widget-line { box-sizing: border-box; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legacy-widget-bullet { margin-right: 7px; color: #d0aa00; font-size: 10px; }
.legacy-widget-ranking { margin: 0; padding: 0; list-style: none; counter-reset: none; }
.legacy-widget-ranking li { display: flex; align-items: center; gap: 6px; box-sizing: border-box; min-height: 25px; overflow: hidden; padding: 2px 3px !important; list-style: none !important; white-space: nowrap; }
.legacy-widget-ranking li a { overflow: hidden; flex: 1; text-overflow: ellipsis; }
.legacy-widget-ranking li em { color: #e26922; font: normal 10px Tahoma, sans-serif; }
.legacy-widget-rank { display: inline-grid; width: 17px; height: 17px; place-items: center; border-radius: 2px; background: #ef5a26; color: #fff; font: bold 10px Tahoma, sans-serif; }

.plain-board, .shop-page, .xe-document, .xe-comments, #shopxe_product { font-family: Gulim, Dotum, sans-serif; }
.plain-board h2, .shop-page h2 { min-height: 70px; margin-bottom: 12px; text-align: left; }
.plain-board h2 img, .shop-page h2 img { max-width: 100%; }
.board-ready { display: flex; justify-content: space-between; padding: 8px 8px 5px; border-bottom: 1px solid #e5e5e5; font-size: 11px; }
.board-ready strong { color: #f60; }
.board-ready span { color: #999; }
.plain-board table { position: relative; width: 796px; margin-left: -3px; border-collapse: collapse; background: #fff url(../images/board/head_bg_yellow.png) no-repeat left top; font-size: 12px; table-layout: fixed; }
.plain-board thead tr { height: 83px; background: transparent; }
.plain-board th { height: 83px; padding: 0 5px; border: 0; color: #292000; vertical-align: middle; }
.plain-board th > span { position: relative; display: inline-block; }
.plain-board .head-number > span { top: -5px; left: 15px; }
.plain-board .head-title > span { top: -10px; left: 5px; }
.plain-board .head-date > span { top: -8px; left: -5px; }
.plain-board .head-writer > span { top: -10px; left: -20px; }
.plain-board .head-views > span { top: -15px; left: 0; }
.plain-board td { height: 29px; padding: 3px 5px; border-bottom: 1px solid #e6e6e6; text-align: center; }
.plain-board tr.notice td { background: #e9e9e9; }
.plain-board .number { width: 55px; }
.plain-board .writer { width: 90px; }
.plain-board .date { width: 85px; }
.plain-board .views { width: 55px; }
.plain-board td.subject { text-align: left; }
.plain-board tbody tr:hover td { background: #fffbe2; }
.board-tools { display: flex; justify-content: space-between; align-items: center; padding: 15px 0 4px; }
.page-links { display: flex; gap: 4px; }
.page-links a { display: inline-block; min-width: 18px; padding: 4px; border: 1px solid #eee; background: #fff; color: #999; text-align: center; font: bold 11px Tahoma, sans-serif; }
.page-links a.active { border-color: #c9c9c9; background: #f7f7f7; color: #555; }
.plain-board td.no-posts { padding: 50px 10px; color: #888; text-align: center; }
.plain-board td.subject em { color: #f60; font-style: normal; }
.mobile-board-meta, .mobile-board-notice { display: none; }
.board-tools input { box-sizing: border-box; width: 180px; height: 24px; padding: 2px 5px; border: 1px solid #ccc; background: #fff; }
.board-tools button { height: 24px; padding: 0 11px; border: 1px solid #c9c9c9; background: url(../images/product/btn_common_bg.gif) repeat-x left top; color: #4d4d4d; cursor: pointer; }
.board-list-actions { min-height: 28px; padding: 10px 0 0; text-align: right; }
.legacy-board-image-action { display: inline-block; margin-left: 4px; vertical-align: top; }
.legacy-board-image-action img { display: block; border: 0; }

/* 원본 XE 게시판 글쓰기 흐름 */
.board-write-page { width: 796px; }
.board-write-heading { display: flex; justify-content: space-between; margin: 0 0 18px; padding: 9px 12px 7px; border-top: 2px solid #e2ca5d; border-bottom: 1px solid #decf93; background: #fffbe3; color: #6c5a0e; font-size: 12px; }
.board-write-heading span { color: #9a8d58; }
.board-write-login-required { padding: 80px 20px; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; text-align: center; }
.board-write-login-required p { margin-bottom: 16px; color: #666; }
.board-form-message { margin: 0 0 12px; padding: 9px 12px; border: 1px solid; font-size: 11px; }
.board-form-error { border-color: #e7ada5; background: #fff1ef; color: #a12b20; }
.board-form-success { border-color: #a9d59e; background: #effbea; color: #2c7020; }
.legacy-board-write-form { box-sizing: border-box; width: 100%; padding: 12px; border-top: 2px solid #e2ca5d; border-bottom: 1px solid #d9d9d9; background: #fff; color: #555; }
.legacy-board-write-form label { display: block; }
.legacy-board-write-form label > span, .board-write-author span { display: inline-block; width: 62px; color: #756319; font-weight: bold; }
.board-write-author { margin-bottom: 10px; padding: 7px 9px; background: #fffbe3; }
.board-write-title { display: flex !important; align-items: center; margin-bottom: 9px; }
.board-write-title input { box-sizing: border-box; flex: 1; height: 28px; padding: 4px 7px; border: 1px solid #c8c8c8; font: 12px Gulim, Dotum, sans-serif; }
.board-write-content > span { display: block !important; width: auto !important; margin-bottom: 6px; }
.board-write-content textarea { box-sizing: border-box; display: block; width: 100%; min-height: 330px; padding: 10px; resize: vertical; border: 1px solid #c8c8c8; background: #fff; font: 13px/1.7 Gulim, Dotum, sans-serif; }
.board-write-tags { display: flex !important; align-items: center; gap: 7px; margin-top: 10px; }
.board-write-tags input { box-sizing: border-box; width: 380px; height: 25px; padding: 3px 6px; border: 1px solid #c8c8c8; }
.board-write-tags small { color: #999; font-size: 10px; }
.board-write-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 13px; }
.legacy-board-submit { min-width: 70px; height: 26px; padding: 0 16px; border: 1px solid #c83a19; background: #ef5a26; color: #fff; cursor: pointer; font: bold 11px Gulim, Dotum, sans-serif; }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; padding: 6px 10px; border: 1px solid #c9c9c9; background: url(../images/product/table_top_bg.gif) repeat-x left top; font: 12px Gulim, Dotum, sans-serif; }
.shop-toolbar strong { color: #4f4f4f; }
.shop-toolbar form { display: flex; gap: 5px; }
.shop-toolbar input { box-sizing: border-box; width: 210px; height: 25px; padding: 0 7px; border: 1px solid #bbb; background: #fff; }
.shop-toolbar button { height: 25px; padding: 0 11px; border: 1px solid #aaa; background: #fff; color: #555; cursor: pointer; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 13px; border: 1px solid #c9c9c9; background: #fcfcfc; }
.product-grid-home { width: 790px; box-sizing: border-box; margin-left: 0; }
.product-card { position: relative; overflow: hidden; border: 1px solid #dedede; background: #fff; }
.product-card-image { position: relative; display: grid; place-items: center; height: 205px; overflow: hidden; border-bottom: 1px solid #eaeaea; background: #fff; }
.product-grid-home .product-card-image { height: 175px; }
.product-card-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.product-no-image { color: #b3aa92; font: bold 12px Arial, sans-serif; letter-spacing: 1px; }
.product-sold-out, .product-event { position: absolute; top: 7px; left: 7px; padding: 4px 6px; color: #fff; font: bold 10px Arial, Gulim, sans-serif; }
.product-sold-out { background: rgba(40, 40, 40, .82); }
.product-event { background: #ff6c00; }
.product-card-info { min-height: 78px; padding: 10px 11px 12px; font-family: Gulim, Dotum, sans-serif; }
.product-brand { display: block; margin-bottom: 5px; color: #999; font-size: 10px; }
.product-card h3 { height: 31px; overflow: hidden; margin: 0 0 8px; font-size: 12px; line-height: 1.4; }
.product-card h3 a { color: #444; font-size: 12px; }
.product-price { display: flex; align-items: baseline; gap: 7px; margin: 0; }
.product-price del { color: #aaa; font-size: 10px; }
.product-price strong { color: #cb1401; font: bold 14px Arial, Gulim, sans-serif; }
.shop-empty-page { min-height: 170px; display: grid; place-items: center; border: 1px solid #c9c9c9; background: #fcfcfc; }
.shop-pagination { display: flex; justify-content: center; gap: 5px; margin-top: 25px; }
.shop-pagination a { display: grid; place-items: center; min-width: 24px; height: 24px; border: 1px solid #eee; background: #fff; color: #999; font: bold 11px Tahoma, sans-serif; }
.shop-pagination a.active { border-color: #c9c9c9; background: #f7f7f7; color: #555; }
.simple-page { min-height: 320px; padding: 40px; border: 1px solid #ddd; background: #fff; }
.simple-page h2 { margin-bottom: 25px; }
.simple-page li { display: list-item; margin: 12px 0; }
.xe-document { background: #fff; }
.legacy-document-title { box-sizing: border-box; width: 100%; height: 81px; padding: 27px 60px 0; background: url(../images/board/view_title_bg_yellow.png) no-repeat center top; text-align: center; }
.legacy-document-title h2 { overflow: hidden; color: #1b1600; font-size: 20px; line-height: 28px; text-overflow: ellipsis; white-space: nowrap; }
.legacy-document-info { position: relative; box-sizing: border-box; height: 100px; margin-bottom: 20px; background: url(../images/board/view_info_bg.png) no-repeat center top; color: #fff; }
.legacy-document-info > div { position: absolute; top: 10px; box-sizing: border-box; padding-top: 21px; text-align: center; }
.legacy-document-info span { display: block; margin-bottom: 3px; font-size: 10px; }
.legacy-document-info strong { font-size: 14px; }
.legacy-writer { left: 10px; width: 217px; height: 73px; padding-left: 45px; background: url(../images/board/write_charactor.png) no-repeat left top; }
.legacy-read-count { right: 7px; width: 193px; height: 60px; background: url(../images/board/read_charactor.png) no-repeat left top; }
.legacy-document-info time { position: absolute; right: 48px; bottom: 5px; color: #555; font: 11px Tahoma, Gulim, sans-serif; }
.xe-document-content { min-height: 320px; padding: 25px 18px 35px; overflow: hidden; font-size: 13px; line-height: 1.8; }
.xe-document-content img, .xe-document-content video, .xe-document-content iframe { max-width: 100%; height: auto; }
.legacy-document-footer, .product-view-footer { padding: 10px 0; border-top: 1px solid #ddd; text-align: left; }
.legacy-flat-button { display: inline-block; height: 24px; padding: 0 14px; border: 1px solid #c9c9c9; background: url(../images/product/btn_common_bg.gif) repeat-x left top; color: #4d4d4d !important; font-size: 11px !important; line-height: 24px; }

/* 원본 XE 상품 상세 스킨 */
#shopxe_product { width: 100%; color: #555; font-size: 12px; }
#shopxe_product .product-view-nav { height: 38px; padding: 0 12px; border: 1px solid #eee; background: url(../images/product/infomationBar.gif) repeat-x left top; line-height: 38px; }
#shopxe_product .product-view-nav span { margin: 0 7px; color: #f60; }
#shopxe_product .product-view-top { display: flex; align-items: flex-start; gap: 18px; padding: 20px 0 24px; }
#shopxe_product .productImageBox { width: 40%; text-align: center; }
#shopxe_product .imageItem { display: grid; place-items: center; box-sizing: border-box; width: 100%; height: 308px; padding: 4px; border: 4px solid #eaeaea; background: #fff; overflow: hidden; }
#shopxe_product .imageItem > img { display: block; max-width: 100%; max-height: 100%; border: 0; object-fit: contain; }
#shopxe_product .product-large-placeholder { color: #bbb; font: bold 13px Arial, sans-serif; }
#shopxe_product .imageList { display: flex; justify-content: center; gap: 5px; margin-top: 10px; }
#shopxe_product .product-thumb { box-sizing: border-box; width: 52px; height: 52px; padding: 2px; border: 1px solid #ddd; background: #fff; cursor: pointer; }
#shopxe_product .product-thumb.is-active { border: 2px solid #f60; padding: 1px; }
#shopxe_product .product-thumb img { width: 100%; height: 100%; border: 0; object-fit: cover; }
#shopxe_product .product-order-form { width: 50%; margin-left: auto; }
#shopxe_product .productPriceBox { width: 100%; }
#shopxe_product .productPriceBox .title { box-sizing: border-box; width: 100%; min-height: 28px; padding: 3px 0 5px; border-bottom: 2px solid #91675d; color: #333; font-size: 14px; line-height: 1.4; }
#shopxe_product .productPriceBox .code { margin-top: 7px; padding: 5px 0; border-top: 1px solid #eaeaea; border-bottom: 0; color: #9b9b9b; font-size: 11px; font-weight: bold; }
#shopxe_product .productPriceBox table { width: 100%; border-collapse: collapse; }
#shopxe_product .productPriceBox th { width: 30%; height: 35px; padding: 5px 0 5px 10px; border-bottom: 1px dashed #eaeaea; background: url(../images/product/shop_arrow.gif) no-repeat 0 50%; color: #555; text-align: left; font-size: 11px; }
#shopxe_product .productPriceBox td { width: 70%; height: 35px; padding: 5px 0; border-bottom: 1px dashed #eaeaea; }
#shopxe_product .productPriceBox del { margin-right: 9px; color: #aaa; font-size: 11px; }
#shopxe_product .productPriceBox .price { color: #cb1401; font-size: 16px; }
#shopxe_product .product-stock-empty { color: #cb1401; }
#shopxe_product .product-options label { display: flex; align-items: center; gap: 6px; margin: 3px 0; }
#shopxe_product .product-options label span { min-width: 55px; color: #777; font-size: 11px; }
#shopxe_product .product-options select { max-width: 220px; border: 1px solid #ccc; color: #555; font-size: 11px; }
#shopxe_product .product-volume { box-sizing: border-box; width: 45px; height: 22px; padding: 2px 4px; border: 1px solid #ccc; text-align: right; }
#shopxe_product .orderButton { display: flex; gap: 3px; width: 100%; margin-top: 8px; padding-top: 7px; border-top: 2px solid #91675d; }
#shopxe_product .orderButton span, #shopxe_product .orderButton a, #shopxe_product .orderButton img { display: block; }
#shopxe_product .orderButton a:focus-visible { outline: 2px solid #f60; outline-offset: 2px; }
#shopxe_product .InfoBox { width: 100%; margin-top: 7px; border: 0; color: #666; }
#shopxe_product .InfoBox .head { width: 100%; height: 36px; background-repeat: no-repeat; background-position: left top; color: #4f4f4f; }
#shopxe_product .InfoBox-product .head { background-image: url(../images/product/product_detail.gif); }
#shopxe_product .InfoBox-delivery .head { margin-top: 20px; background-image: url(../images/product/delivery_info.gif); }
#shopxe_product .InfoBox-exchange .head { margin-top: 20px; background-image: url(../images/product/exchange_info.gif); }
#shopxe_product .InfoBox .subject span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
#shopxe_product .InfoBox .cont { min-height: 0; padding: 12px 0; font-size: 12px; line-height: 1.7; }
#shopxe_product .InfoBox .xe-document-content { min-height: 180px; }
#shopxe_product .product-view-footer { text-align: left; }
#shopxe_product .product-view-footer img { display: block; }

/* 원본 ShopXE 흐름을 잇는 주문서·장바구니·관심물품 화면 */
.shop-flow-page { width: 100%; color: #555; font: 12px Gulim, Dotum, sans-serif; }
.shop-flow-heading { box-sizing: border-box; height: 58px; margin-bottom: 16px; padding: 8px 0 0 65px; border-bottom: 2px solid #ebddae; background: #fff url(../images/product/shop_board_top.jpg) no-repeat 0 0; }
.shop-flow-heading h2 { margin: 0 0 4px; color: #f60; font-size: 14px; }
.shop-flow-heading p { color: #878686; font-size: 11px; font-weight: bold; }
.shop-flow-steps { display: flex; justify-content: flex-end; gap: 1px; margin-bottom: 14px; }
.shop-flow-steps strong, .shop-flow-steps em, .shop-flow-steps span { padding: 7px 12px; border: 1px solid #ddd; background: #f7f7f7; color: #aaa; font-size: 11px; font-style: normal; }
.shop-flow-steps em { border-color: #91675d; background: #fff8e6; color: #8d5e26; font-weight: bold; }
.shop-order-panel { margin-bottom: 16px; border: 1px solid #ddd; background: #fff; }
.shop-order-panel > h3 { height: 34px; padding: 0 12px; border-bottom: 1px solid #ddd; background: url(../images/product/table_top_bg.gif) repeat-x left top; color: #4f4f4f; font-size: 12px; line-height: 34px; }
.checkout-product { display: grid; grid-template-columns: 95px 1fr 130px; gap: 14px; align-items: center; padding: 15px; }
.checkout-product-image { display: grid; place-items: center; width: 90px; height: 90px; overflow: hidden; border: 1px solid #ddd; color: #aaa; font-size: 9px; }
.checkout-product-image img { width: 100%; height: 100%; object-fit: contain; }
.checkout-product h4 { margin-bottom: 9px; font-size: 13px; }
.checkout-product p { margin: 3px 0; color: #888; font-size: 11px; }
.checkout-product > strong { color: #cb1401; text-align: right; font-size: 15px; }
.checkout-login-notice { margin: 12px 14px 0; padding: 9px; border: 1px solid #f0d8a1; background: #fffbea; color: #7d6331; font-size: 11px; }
.checkout-login-notice button { border: 0; background: transparent; color: #f60; cursor: pointer; font-weight: bold; text-decoration: underline; }
.checkout-fields { width: 100%; border-collapse: collapse; }
.checkout-fields th, .checkout-fields td { padding: 9px 12px; border-bottom: 1px solid #eee; text-align: left; }
.checkout-fields th { width: 120px; background: #fafafa; color: #666; }
.checkout-fields input { box-sizing: border-box; width: 260px; height: 25px; padding: 3px 5px; border: 1px solid #ccc; }
.checkout-fields input.wide { width: 480px; }
.checkout-total-price { color: #cb1401; font-size: 17px; }
.checkout-actions { display: flex; justify-content: center; gap: 6px; padding: 8px 0 20px; }
.checkout-actions button, .checkout-actions a { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; height: 39px; padding: 0 25px; border: 1px solid #91675d; background: url(../images/product/btn_comm_big_bg.gif) repeat-x left top; color: #4d4d4d !important; cursor: pointer; font-weight: bold; }
.shop-payment-modal[hidden] { display: none !important; }
.shop-payment-modal { position: fixed; inset: 0; z-index: 15000; display: grid; place-items: center; }
.shop-payment-backdrop { position: absolute; inset: 0; background: #000; opacity: .65; }
.shop-payment-modal > section { position: relative; z-index: 1; box-sizing: border-box; width: 420px; padding: 25px; border: 5px solid #ffd200; background: #fff; text-align: center; }
.shop-payment-modal h2 { margin-bottom: 14px; color: #f60; font-size: 16px; }
.shop-payment-modal p { margin: 7px 0; color: #666; font-size: 12px; line-height: 1.6; }
.shop-payment-modal button { height: 27px; margin-top: 15px; padding: 0 20px; border: 1px solid #999; background: url(../images/product/btn_common_bg.gif) repeat-x left top; cursor: pointer; }
.shop-flow-flash { margin-bottom: 12px; padding: 10px 12px; border: 1px solid #dcc98c; background: #fffbe6; color: #7d672a; font-size: 11px; }
.saved-shop-table { width: 100%; border-collapse: collapse; border: 1px solid #c9c9c9; background: #fff; table-layout: fixed; }
.saved-shop-table-wrap { width: 100%; }
.saved-shop-table th { height: 38px; border-bottom: 1px solid #c9c9c9; background: url(../images/product/table_top_bg.gif) repeat-x left top; color: #4f4f4f; font-size: 11px; }
.saved-shop-table td { padding: 10px 7px; border-bottom: 1px solid #eaeaea; text-align: center; }
.saved-shop-table th:nth-child(1) { width: 90px; }
.saved-shop-table th:nth-child(2) { width: auto; }
.saved-shop-table th:nth-child(3), .saved-shop-table th:nth-child(5) { width: 90px; }
.saved-shop-table th:nth-child(4) { width: 45px; }
.saved-shop-table th:nth-child(6) { width: 80px; }
.saved-product-image img { width: 70px; height: 70px; object-fit: contain; }
.saved-shop-table td.saved-product-title { text-align: left; }
.saved-product-title a { color: #555; font-weight: bold; }
.saved-product-title small { display: block; margin-top: 6px; color: #999; }
.saved-product-actions a { display: block; margin: 3px 0; color: #f60; font-size: 11px; }
.saved-shop-summary { display: flex; justify-content: flex-end; align-items: baseline; gap: 14px; padding: 15px; border: 1px solid #ddd; border-top: 0; background: #fafafa; }
.saved-shop-summary strong { color: #cb1401; font-size: 19px; }
.saved-shop-bottom { display: flex; justify-content: space-between; padding-top: 12px; }
.saved-shop-bottom a, .saved-shop-empty a { display: inline-block; height: 24px; padding: 0 13px; border: 1px solid #aaa; background: url(../images/product/btn_common_bg.gif) repeat-x left top; color: #555; line-height: 24px; }
.saved-shop-empty { padding: 55px 20px; border: 1px solid #ccc; background: #fcfcfc; text-align: center; }
.saved-shop-empty strong { display: block; margin-bottom: 17px; color: #888; }

/* 원본 XE 댓글 목록의 구조와 색감 */
.xe-comments { margin-top: 28px; color: #555; }
.xe-comments h3 { margin-bottom: 8px; padding: 10px 3px; border-bottom: 1px solid #ddd; color: #666; font-size: 15px; }
.xe-comments h3 strong { color: #f60; }
.xe-comment-list { overflow: hidden; }
.xe-comment-item { box-sizing: border-box; padding: 11px 8px 12px; border-top: 1px dashed #d7d7d7; background: #fff; }
.xe-comment-item.is-reply { border-left: 8px solid #eee; background: #fafafa; }
.xe-comment-item header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 12px; }
.xe-comment-item header strong, .xe-comment-item header a { color: #3074a5; font-size: 12px; }
.xe-comment-item header time { color: #aaa; font: 11px Tahoma, sans-serif; }
.xe-comment-content { clear: both; color: #555; font-size: 12px; line-height: 1.7; }
.xe-comment-content img { max-width: 100%; height: auto; }
.secret-comment { padding-left: 18px; color: #999; font-style: italic; }
.comment-votes { margin-top: 8px; color: #aaa; font-size: 10px; text-align: right; }
.xe-comments-empty { padding: 30px 10px; border-bottom: 1px solid #ddd; color: #999; text-align: center; font-size: 12px; }

/* 관리자 */
.admin-dashboard { width: 100%; color: #292619; font-family: Gulim, Dotum, sans-serif; }
.admin-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 22px; padding: 25px 28px; border-radius: 9px; background: #27251f; color: #fff; }
.admin-heading span { color: #ffc400; font-size: 10px; font-weight: bold; letter-spacing: 1.5px; }
.admin-heading h2 { margin: 6px 0 7px; font-size: 25px; }
.admin-heading p { color: #c9c5b7; font-size: 12px; }
.admin-heading a { padding: 9px 13px; border: 1px solid #706b5e; border-radius: 4px; color: #fff; font-size: 11px; }
.admin-heading a:visited { color: #fff; }
.admin-db-warning { margin-bottom: 15px; padding: 12px 14px; border: 1px solid #e5ac9e; background: #fff1ed; color: #9e3020; font-size: 12px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.admin-stats article { padding: 18px 20px; border: 1px solid #d9d2bd; border-radius: 7px; background: #fff; }
.admin-stats span { display: block; margin-bottom: 8px; color: #817861; font-size: 11px; }
.admin-stats strong { font-size: 24px; }
.admin-panel { margin-bottom: 20px; border: 1px solid #d8d1bc; border-radius: 7px; background: #fff; overflow: hidden; }
.admin-panel-title { display: flex; justify-content: space-between; align-items: center; padding: 17px 19px; border-bottom: 1px solid #e4dfd0; background: #faf8f1; }
.admin-panel-title h3 { margin-bottom: 4px; font-size: 15px; }
.admin-panel-title p { color: #8a816b; font-size: 11px; }
.admin-panel-title form { display: flex; gap: 5px; }
.admin-panel-title input { box-sizing: border-box; width: 230px; height: 32px; padding: 0 9px; border: 1px solid #c9c1aa; }
.admin-panel-title button { height: 32px; padding: 0 12px; border: 0; background: #3d3930; color: #fff; cursor: pointer; }
.admin-table-scroll { overflow-x: auto; }
.admin-panel table { width: 100%; border-collapse: collapse; table-layout: auto; font-size: 11px; }
.admin-panel th { padding: 10px 9px; border-bottom: 1px solid #d9d2be; background: #f3efe4; color: #6f6753; text-align: left; white-space: nowrap; }
.admin-panel td { padding: 11px 9px; border-bottom: 1px solid #eeeadd; vertical-align: middle; }
.admin-panel td strong { display: inline-block; margin-right: 5px; }
.admin-panel td em { display: inline-block; padding: 2px 4px; border-radius: 3px; background: #3a352b; color: #ffc400; font-size: 8px; font-style: normal; }
.admin-panel td small { display: block; margin-top: 4px; color: #8a816e; }
.admin-document-title { min-width: 220px; }
.admin-status { display: inline-block; min-width: 34px; padding: 3px 6px; border-radius: 10px; text-align: center; }
.admin-status.is-active { background: #e8f6e3; color: #327024; }
.admin-status.is-denied { background: #fde9e4; color: #a33a29; }
.admin-action-button { padding: 5px 7px; border: 1px solid #c7bea7; background: #fff; cursor: pointer; color: #5f5745; font-size: 10px; white-space: nowrap; }
.admin-self { color: #999; white-space: nowrap; }
.admin-empty { padding: 35px !important; color: #888; text-align: center; }
.admin-access-card { min-height: 240px; padding: 60px; border: 1px solid #d8d0b8; border-radius: 8px; background: #fff; text-align: center; }
.admin-access-card h2 { margin-bottom: 12px; font-size: 23px; }
.admin-access-card p { margin-bottom: 22px; color: #777; }
.admin-access-card button, .admin-access-card a { display: inline-block; padding: 11px 18px; border: 0; border-radius: 4px; background: #f28b00; color: #fff; cursor: pointer; font-weight: bold; }

/* 이미지 중심의 원본 분위기를 유지한 모바일/태블릿 레이아웃 */
@media (max-width: 950px) {
    html, body { width: 100%; overflow-x: hidden; }
    body { min-width: 0; }
    #byungmat, #container { width: 100%; }
    #quick-menu { display: none; }

    /* 노란 마을 위에 로고·캐릭터·그림 메뉴를 다시 배치 */
    #header { height: 310px; }
    h1 #logo { top: 30px; left: clamp(14px, 5vw, 70px); }
    h1 #logo img { width: clamp(170px, 30vw, 244px); height: auto; }
    #header ul#login { top: 98px; right: 10px; left: auto; transform: scale(.68); transform-origin: right top; }
    #header ul#menu { top: 145px; left: 8px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; box-sizing: border-box; width: calc(100% - 16px); height: 155px; }
    #header ul#menu > li.comics,
    #header ul#menu > li.data,
    #header ul#menu > li.shop,
    #header ul#menu > li.community { position: relative; top: auto; left: auto; display: flex; align-items: flex-start; justify-content: center; width: auto; z-index: 10; }
    #header ul#menu > li > a { display: block; width: 100%; text-align: center; }
    #header ul#menu > li > a > img { width: 100%; max-width: 145px; height: auto; }
    #header ul#menu > li.active-section > ul { top: 98px; display: flex; align-items: center; justify-content: space-around; box-sizing: border-box; width: calc(400% + 12px); height: 50px; padding: 7px 12px; background-size: 100% 100%; }
    #header ul#menu > li.comics.active-section > ul { left: 0; }
    #header ul#menu > li.data.active-section > ul { left: calc(-100% - 4px); }
    #header ul#menu > li.active-section > ul > li { position: static !important; display: flex; align-items: center; justify-content: center; flex: 1; }
    #header ul#menu > li.active-section > ul > li > a { display: flex; align-items: center; justify-content: center; width: 100%; }
    #header ul#menu > li.active-section > ul img { max-width: 92%; height: auto; }

    #container > a[class^="c"] { z-index: 30; }
    #container > a.c00_sun { top: 0; right: 0; width: 110px; height: 70px; }
    #container > a.c00_sun img { width: 110px; height: 70px; }
    #container > a.c04_bf { top: 0; left: 3vw; width: 30px; height: 26px; }
    #container > a.c04_bf img { width: 30px; height: 26px; }
    #container > a.c05_fish1 { top: 76px; left: 52vw; }
    #container > a.c06_cloud1 { top: 0; left: 34vw; width: 82px; height: 30px; }
    #container > a.c06_cloud1 img { width: 82px; height: 30px; }
    #container > a.c07_cloud2 { top: 78px; left: 40vw; }
    #container > a.c08_bird1 { top: 62px; right: 5vw; left: auto; }
    #container > a.c09_bird2 { top: 132px; right: 27vw; left: auto; }
    #container > a.c01_bmt { top: 330px; left: 6vw; }
    #container > a.c02_flower { top: 320px; left: 19vw; }
    #container > a.c03_car { top: 334px; left: 33vw; }
    #container > a.c13_byung { top: 326px; left: 49vw; }
    #container > a.c10_sungji { top: 318px; right: 24vw; left: auto; }
    #container > a.c11_garbage { top: 340px; right: 12vw; left: auto; }
    #container > a.c12_ie6 { top: 372px; right: 3vw; left: auto; }

    /* 원본 종이 배경을 화면 폭에 맞춰 연결 */
    #body { margin: 0 5px; background-position: center top; background-size: 100% auto; }
    #body #top { height: clamp(100px, 29vw, 222px); }
    #body #content { top: 0; box-sizing: border-box; width: 100%; min-height: 420px; margin: 0; padding: 12px clamp(16px, 6vw, 60px) 70px; background-position: center top; background-size: 100% auto; }
    .php7-content { top: 0; min-height: 380px; }
    .php7-content img { max-width: 100%; height: auto; }

    #footer { top: 0; height: clamp(123px, 31.6vw, 285px); margin: 0; background-position: center top; background-size: 100% auto; }
    #footer ul { display: flex; align-items: center; justify-content: center; gap: clamp(2px, 1.5vw, 10px); box-sizing: border-box; width: 100%; padding-top: clamp(22px, 5.5vw, 55px); }
    #footer li { position: static; padding: 0; }
    #footer li img { width: auto; height: clamp(20px, 3.5vw, 32px); }

    /* 메인: 배너는 그림 그대로, 게시물과 상품은 읽기 좋은 폭으로 */
    ul#topBanner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 2px; }
    ul#topBanner li { display: block; }
    ul#topBanner img, #mainBanner img { display: block; width: 100%; height: auto; }
    #mainBanner { padding-bottom: 16px; }
    .home-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .home-widget { box-sizing: border-box; width: 100%; min-height: 220px; padding-top: 96px; background-position: left top; background-size: 100% auto; }
    .placeholder-posts { padding: 0 8px; }
    .placeholder-posts li { display: flex; width: 100%; line-height: 30px; }
    .placeholder-posts li a { max-width: calc(100% - 72px); }
    .home-shop { box-sizing: border-box; width: 100%; margin-top: 20px; padding-top: clamp(68px, 15vw, 115px); background-size: 100% auto; }
    .product-grid-home { width: 100%; }

    /* 게시판은 원본 노란 thead를 유지하고 모바일용 정보를 제목 아래 표시 */
    .plain-board h2, .shop-page h2 { min-height: 46px; margin-bottom: 8px; }
    .plain-board h2 img, .shop-page h2 img { max-height: 70px; }
    .plain-board table { width: 100%; margin-left: 0; background-size: 100% 64px; table-layout: auto; }
    .plain-board thead tr, .plain-board th { height: 64px; }
    .plain-board thead th { display: none; }
    .plain-board thead th.head-title { display: table-cell; width: auto; }
    .plain-board .head-title > span { top: -4px; left: 0; }
    .plain-board tbody td { display: none; }
    .plain-board tbody td.subject, .plain-board tbody td.no-posts { display: table-cell; box-sizing: border-box; width: 100%; height: auto; padding: 11px 10px; }
    .plain-board td.subject > a { display: inline; font-size: 13px; line-height: 1.45; }
    .mobile-board-meta { display: block; margin-top: 5px; color: #999; font-size: 10px; line-height: 1.4; }
    .mobile-board-notice { display: inline-block; margin-right: 5px; padding: 2px 4px; background: #ef5a26; color: #fff; font-size: 9px; font-weight: bold; vertical-align: 1px; }
    .board-ready { align-items: center; gap: 8px; }
    .board-tools { align-items: stretch; flex-direction: column; gap: 10px; }
    .board-tools form { display: flex; }
    .board-tools input { flex: 1; width: auto; }
    .page-links { flex-wrap: wrap; }

    .board-write-page { width: 100%; }
    .legacy-board-write-form { padding: 10px; }
    .board-write-title, .board-write-tags { align-items: stretch; flex-direction: column; }
    .legacy-board-write-form label > span, .board-write-author span { width: auto; margin-bottom: 5px; }
    .board-write-tags input { width: 100%; }
    .board-write-content textarea { min-height: 250px; }

    /* 쇼핑 목록·상세·주문 흐름 */
    .shop-toolbar { align-items: stretch; flex-direction: column; gap: 8px; }
    .shop-toolbar input { flex: 1; width: auto; min-width: 0; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 8px; }
    .product-card-image, .product-grid-home .product-card-image { height: clamp(125px, 40vw, 200px); }
    .product-card-info { min-height: 84px; padding: 8px; }
    .product-price { align-items: flex-start; flex-direction: column; gap: 2px; }

    .legacy-document-title { height: 64px; padding: 20px 34px 0; background-size: 100% 64px; }
    .legacy-document-title h2 { font-size: 16px; line-height: 24px; }
    .legacy-document-info { height: 92px; background-size: 100% 92px; }
    .legacy-writer { left: 2px; width: 49%; }
    .legacy-read-count { right: 2px; width: 43%; }
    .legacy-document-info time { right: 15px; bottom: 4px; }
    .xe-document-content { min-height: 220px; padding: 17px 10px 26px; overflow-wrap: anywhere; }
    .xe-document-content table { display: block; max-width: 100%; overflow-x: auto; }
    .xe-comment-item[style] { margin-left: 0 !important; }

    #shopxe_product .product-view-nav { overflow: hidden; padding: 0 8px; text-overflow: ellipsis; white-space: nowrap; }
    #shopxe_product .product-view-top { flex-direction: column; gap: 15px; }
    #shopxe_product .productImageBox, #shopxe_product .product-order-form { width: 100%; }
    #shopxe_product .imageItem { height: clamp(250px, 72vw, 380px); }
    #shopxe_product .orderButton { justify-content: center; }
    #shopxe_product .orderButton span { flex: 1; max-width: 101px; }
    #shopxe_product .orderButton img { width: 100%; height: auto; }
    #shopxe_product .InfoBox .head { background-size: auto 36px; }
    #shopxe_product .InfoBox .cont { overflow-wrap: anywhere; }

    .shop-flow-heading { padding-right: 8px; }
    .shop-flow-steps { display: grid; grid-template-columns: repeat(3, 1fr); }
    .shop-flow-steps strong, .shop-flow-steps em, .shop-flow-steps span { padding: 7px 3px; text-align: center; }
    .checkout-product { grid-template-columns: 76px minmax(0, 1fr); gap: 10px; padding: 11px; }
    .checkout-product-image { width: 72px; height: 72px; }
    .checkout-product > strong { grid-column: 1 / -1; text-align: right; }
    .checkout-fields, .checkout-fields tbody, .checkout-fields tr, .checkout-fields th, .checkout-fields td { display: block; box-sizing: border-box; width: 100%; }
    .checkout-fields th { padding-bottom: 5px; border-bottom: 0; }
    .checkout-fields td { padding-top: 4px; }
    .checkout-fields input, .checkout-fields input.wide { width: 100%; }
    .checkout-actions button, .checkout-actions a { padding: 0 15px; }
    .shop-payment-modal > section { width: calc(100% - 30px); padding: 20px 14px; }
    .saved-shop-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .saved-shop-table { min-width: 650px; }
    .saved-shop-bottom { gap: 8px; }
    .saved-shop-summary { padding: 12px 8px; }

    /* 원본 회원 스킨을 모바일에서는 한 줄씩 펼침 */
    #memberModule .rowTable, #memberModule .rowTable tbody, #memberModule .rowTable tr, #memberModule .rowTable th, #memberModule .rowTable td { display: block; box-sizing: border-box; width: 100%; }
    #memberModule .rowTable th { padding: 9px 10px 4px; border-bottom: 0; background: #fafafa; }
    #memberModule .rowTable td { padding: 4px 10px 10px; }
    #memberModule .rowTable th.title { display: block; }
    #memberModule .rowTable th.button { padding: 10px; border-bottom: 1px solid #ddd; }
    #memberModule .inputTypeText, #memberModule .inputTypeText.w300, #memberModule select { box-sizing: border-box; width: 100%; height: 29px; }

    /* 원본 로그인 그림은 비율을 유지한 채 화면 안으로 축소 */
    .auth-modal { padding-right: 0; padding-left: 0; }
    .auth-flash { box-sizing: border-box; width: calc(100% - 24px); min-width: 0; }

    /* 원본 소개·만화·자료 페이지의 고정 폭 해제 */
    #introduceWrap, #confirmWrap, #comicsWrap, #humorWrap, #ruleWrap, #personWrap, #contactWrap, #ie6Wrap { box-sizing: border-box; width: 100%; margin-right: 0; margin-left: 0; }
    .introduceBanner { left: 0; width: 100%; height: auto; }
    .introduceBanner img { width: 100% !important; height: auto; }
    #introduceWrap h2, #introduceWrap h3.sub01, #introduceWrap h3.sub02 { width: 100%; background-position: center top; background-size: contain; }
    #introduceWrap table { display: block; width: 100% !important; }
    #introduceWrap tbody, #introduceWrap tr { display: block; width: 100%; }
    #introduceWrap tr { display: grid; grid-template-columns: 48px minmax(0, 1fr); height: auto !important; }
    #introduceWrap td { box-sizing: border-box; width: auto !important; min-height: 48px; }
    #introduceWrap table tr td.memo { padding: 8px; }

    #comicsWrap h2, #humorWrap h2 { float: none; width: 100%; height: 105px; margin: 0 0 8px; background-position: center top; background-size: contain; }
    #comicsWrap .banner1, #comicsWrap .banner2, #humorWrap .banner1, #humorWrap .banner2 { float: none; margin: 6px 0; padding: 0; text-align: center; }
    #comicsWrap .today, #humorWrap .today { width: 100%; height: auto; min-height: 205px; background-size: 100% auto; }
    #new, #popular, #interview, #author, #humorPop, #humorRank { float: none; box-sizing: border-box; width: 100%; margin: 18px 0 0; }
    #new h3, #popular h3, #interview h3, #author h3, #humorPop h3, #humorRank h3 { width: 100%; background-size: contain; }
    #new ul, #popular ul, #interview ul, #humorPop ul, #humorRank ul { box-sizing: border-box; width: 100%; padding: 10px; }
    #author > div { margin-left: 0 !important; }
    #tabList { width: 100%; margin-top: 30px; }
    #tabList .tabTitle { display: flex; width: 100%; background-size: 100% auto; }
    #tabList .tabTitle img { width: 33.333% !important; height: auto !important; }
    #tabList .tabBody { padding: 18px 10px 0; }
    .legacy-widget-featured { top: 28px; left: 4%; width: 92%; height: auto; min-height: 165px; }
    .legacy-widget-featured .todayImg { width: 58%; height: 145px; }
    .legacy-widget-featured .todayInfo { width: 42%; padding: 13px 0 0 8px; }
    .legacy-widget-featured .todayInfo h4 { max-width: 100%; }
    .legacy-widget-highlight .popImg { width: 42%; height: 125px; }
    .legacy-widget-highlight .popInfo { width: 58%; }
    .legacy-widget-popular .newInfo { width: calc(100% - 95px); }
    .interview { width: 100%; }

    .simple-page { min-height: 240px; padding: 25px 15px; }
    .admin-heading { align-items: flex-start; flex-direction: column; gap: 15px; padding: 20px; }
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
    .admin-panel-title { align-items: stretch; flex-direction: column; gap: 12px; }
    .admin-panel-title input { flex: 1; width: auto; min-width: 0; }
    .admin-access-card { min-height: 190px; padding: 40px 15px; }
}

@media (min-width: 601px) and (max-width: 950px) {
    .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-widget { background-size: auto 90px; }
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
    .legacy-login-popup { transform: scale(.76); transform-origin: center top; margin-right: -56px; margin-bottom: -132px; margin-left: -56px; }
    .auth-modal { align-items: flex-start; padding-top: 115px; }
}

@media (max-width: 360px) {
    #header ul#login { transform: scale(.61); }
    .legacy-login-popup { transform: scale(.66); margin-right: -79px; margin-bottom: -186px; margin-left: -79px; }
    .product-card h3 a { font-size: 11px; }
    .product-price strong { font-size: 12px; }
}
