/* 중기이코노미 WORKS · 2026-11-22 · 인슈라넷 초록 #008745 (대표 11/22 "어드민은 인슈라넷 초록 · 전문성 가독성 깔끔하게") · 휴대폰 좌우 흔들림 없게(overflow-x clip) */
:root {
	--g: #008745; --g-d: #006E38; --g-dd: #0B5132; --g-l: #E7F4EC; --g-ll: #F3FAF6; --g-line: #BFE0CE;
	--line: #E3E7E5; --line2: #EEF1EF; --bg: #F4F6F5; --card: #fff; --fg: #17201B; --fg2: #3D4842; --mut: #6B756F;
	--ok: #008745; --warn: #B45309; --red: #D3302F; --sh: 0 1px 2px rgba(16, 40, 28, .05), 0 1px 1px rgba(16, 40, 28, .03);
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.6 'Pretendard Variable', Pretendard, -apple-system, 'Malgun Gothic', sans-serif; -webkit-text-size-adjust: 100%; letter-spacing: -.005em; }
a { color: inherit; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -3px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 24px max(16px, env(safe-area-inset-right)) 64px max(16px, env(safe-area-inset-left)); }

/* 상단 띠 */
.top { background: var(--g); color: #fff; position: sticky; top: 0; z-index: 20; box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
.top .in { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 22px; padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { height: 26px; width: auto; filter: brightness(0) invert(1); }
.brand b { font-size: 12px; letter-spacing: .16em; font-weight: 700; padding: 2px 7px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 4px; }
.tabs { display: flex; align-self: stretch; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; min-width: 0; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: flex; align-items: center; gap: 5px; text-decoration: none; padding: 0 13px; font-size: 14.5px; font-weight: 500; white-space: nowrap; color: rgba(255, 255, 255, .82); box-shadow: inset 0 -3px 0 transparent; }
.tabs a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.tabs a.on { color: #fff; font-weight: 700; box-shadow: inset 0 -3px 0 #fff; }
.tabs .cnt { font-style: normal; background: #fff; color: var(--g-d); border-radius: 9px; padding: 0 7px; font-size: 11.5px; font-weight: 700; line-height: 18px; }
.me { display: flex; align-items: center; gap: 14px; font-size: 13.5px; flex: none; }
.me a { text-decoration: none; opacity: .9; }
.me a:hover { opacity: 1; }
.me .who { font-weight: 600; }
.me small { opacity: .75; font-weight: 400; margin-left: 2px; }
.me .site { display: flex; align-items: center; gap: 4px; }
.me form { margin: 0; }
.me button { background: transparent; border: 1px solid rgba(255, 255, 255, .45); color: #fff; border-radius: 6px; padding: 4px 11px; font: inherit; font-weight: 500; cursor: pointer; }
.me button:hover { background: rgba(255, 255, 255, .1); filter: none; }
.testbar { background: #FFF7E8; color: #8A4B08; font-size: 13px; text-align: center; padding: 6px 16px; border-bottom: 1px solid #F5E2BC; }

/* 제목·알림 */
.ph { display: flex; align-items: center; gap: 9px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin: 2px 0 18px; flex-wrap: wrap; }
.ph .ic { width: 22px; height: 22px; color: var(--g); }
.ph small { font-size: 14px; color: var(--mut); font-weight: 500; letter-spacing: 0; }
.flash, .err, .note, .once { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-radius: 8px; font-size: 14px; margin: 0 0 16px; }
.flash { background: var(--g-l); color: var(--g-dd); border: 1px solid var(--g-line); }
.err { background: #FDEEEE; color: var(--red); border: 1px solid #F6CACA; }
.note { background: var(--card); border: 1px solid var(--line); color: var(--fg2); }
.note .ic { margin-left: auto; order: 2; color: var(--g); }
.note a { color: var(--g-d); font-weight: 600; text-decoration: none; }
.once { background: #FFF8E6; border: 1px solid #F2D58A; align-items: flex-start; }
.empty { color: var(--mut); padding: 28px 4px; margin: 0; text-align: center; }
.muted, tr.muted td { color: #A3ABA6; }

/* 숫자판 */
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh); padding: 16px 18px; display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; min-width: 0; }
.kpi .ic { color: var(--g); background: var(--g-l); border-radius: 8px; padding: 6px; width: 30px; height: 30px; }
.kpi span { font-size: 13.5px; color: var(--mut); font-weight: 500; overflow-wrap: anywhere; }
.kpi b { grid-column: 1 / -1; font-size: 28px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.2; }

/* 칸 */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh); padding: 18px 20px; margin-bottom: 16px; min-width: 0; }
.bh { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -2px 0 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line2); }
.bh h2 { display: flex; align-items: center; gap: 7px; font-size: 16px; font-weight: 700; margin: 0; }
.bh h2 .ic { color: var(--g); }
.bh a { font-size: 13px; color: var(--mut); text-decoration: none; }
.bh a:hover { color: var(--g-d); }

/* 표 */
.tbw { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh); }
.tb { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tb th { text-align: left; font-weight: 600; color: var(--mut); font-size: 12.5px; letter-spacing: .02em; padding: 11px 14px; border-bottom: 1px solid var(--line); background: #F7F9F8; white-space: nowrap; }
.tb td { padding: 11px 14px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
.tb tbody tr:hover td { background: var(--g-ll); }
.box .tb th { background: transparent; padding: 6px 6px 8px; }
.box .tb td { padding: 10px 6px; }
.tb tr:last-child td { border-bottom: 0; }
.tb td a { text-decoration: none; font-weight: 500; }
.tb td a:hover { color: var(--g-d); text-decoration: underline; text-underline-offset: 3px; }
.tb .num { text-align: right; font-variant-numeric: tabular-nums; }
.tb .nowrap { white-space: nowrap; }
.tb .ck { width: 32px; }
.tb input[type=checkbox] { accent-color: var(--g); width: 16px; height: 16px; }
b.topb { color: var(--red); border: 1px solid #F2B8B8; background: #FFF6F6; font-size: 10.5px; padding: 0 5px; border-radius: 3px; font-weight: 700; letter-spacing: .02em; vertical-align: 1px; margin-right: 2px; }
.src { color: var(--mut); border: 1px solid var(--line); border-radius: 3px; padding: 0 4px; font-size: 11px; }
.st { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 10px; white-space: nowrap; }
.st-draft { background: #EEF1EF; color: #4B5550; }
.st-review { background: #FFF2E2; color: var(--warn); }
.st-approved { background: var(--g-l); color: var(--g-d); }
.st-hidden { background: #F2F3F3; color: #9AA19D; }

/* 버튼·입력 */
button, .filters button, .acts button, .bulk button { background: var(--g); color: #fff; border: 1px solid var(--g); border-radius: 8px; padding: 9px 18px; font: inherit; font-weight: 600; cursor: pointer; transition: background .15s; }
button:hover { background: var(--g-d); border-color: var(--g-d); }
button.sub { background: #fff; color: var(--fg); border: 1px solid #CDD5D0; }
button.sub:hover { background: var(--g-ll); border-color: var(--g-line); color: var(--g-dd); }
button.sm { padding: 4px 11px; font-size: 13px; font-weight: 500; }
input, select, textarea { font: inherit; border: 1px solid #CDD5D0; border-radius: 8px; padding: 8px 11px; background: #fff; color: var(--fg); max-width: 100%; }
input::placeholder, textarea::placeholder { color: #A3ABA6; }
input:focus, select:focus, textarea:focus, .ed:focus { outline: 3px solid rgba(0, 135, 69, .16); border-color: var(--g); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh); }
.filters input:not([type=checkbox]) { flex: 1 1 200px; min-width: 0; }
.filters button { margin-left: auto; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.chk input { accent-color: var(--g); }
.inl { display: inline-flex; gap: 6px; margin: 0; align-items: center; }
.bulk { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 12px; font-size: 14px; color: var(--mut); }
.pager { display: flex; justify-content: center; gap: 4px; margin: 22px 0; flex-wrap: wrap; }
.pager a, .pager span { min-width: 36px; text-align: center; padding: 6px 9px; border-radius: 8px; text-decoration: none; background: #fff; border: 1px solid var(--line); font-size: 14px; font-variant-numeric: tabular-nums; }
.pager a:hover { border-color: var(--g-line); color: var(--g-d); }
.pager .on { background: var(--g); color: #fff; border-color: var(--g); font-weight: 600; }

/* 기사 쓰기 */
.write { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.fl { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; margin-bottom: 16px; color: var(--fg2); }
.fl small { font-weight: 400; color: var(--mut); }
.fl .cc { margin-left: auto; }
.fl:has(.cc) { position: relative; }
.cc.warn { color: var(--warn); }
.fl input, .fl select, .fl textarea { font-weight: 400; width: 100%; color: var(--fg); }
#title { font-size: 21px; font-weight: 700; padding: 11px 13px; letter-spacing: -.02em; }
.ed-bar { display: flex; flex-wrap: wrap; gap: 4px; padding: 7px; background: #F7F9F8; border: 1px solid #CDD5D0; border-bottom: 0; border-radius: 8px 8px 0 0; font-weight: 400; }
.ed-bar button, .ed-bar .up { background: #fff; color: var(--fg); border: 1px solid #DCE2DE; border-radius: 6px; padding: 4px 10px; font-size: 13.5px; font-weight: 500; cursor: pointer; }
.ed-bar button:hover, .ed-bar .up:hover { background: var(--g-ll); border-color: var(--g-line); color: var(--g-dd); }
.ed-bar button.on { background: var(--g); border-color: var(--g); color: #fff; }
.ed-bar .up.busy { opacity: .5; pointer-events: none; }
.ed-bar .sep { width: 1px; background: #DCE2DE; margin: 2px 4px; }
.ed, .ed-html { min-height: 460px; background: #fff; border: 1px solid #CDD5D0; border-radius: 0 0 8px 8px; padding: 20px 22px; font-weight: 400; font-size: 16.5px; line-height: 1.85; color: var(--fg); overflow-wrap: anywhere; }
.ed-html { font-family: ui-monospace, Consolas, monospace; font-size: 13px; line-height: 1.5; width: 100%; }
.ed p { margin: 0 0 1em; }
.ed h2, .ed h3 { font-size: 18px; margin: 1.4em 0 .6em; }
.ed blockquote { margin: 1em 0; padding: 12px 16px; background: var(--g-ll); border-radius: 8px; color: var(--fg2); }
.ed figure { margin: 1.2em 0; }
.ed img { max-width: 100%; height: auto; display: block; }
.ed figcaption { font-size: 13.5px; color: var(--mut); margin-top: 6px; }
.wside { position: sticky; top: 76px; }
.acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-bottom: 12px; }
.narrow { max-width: 440px; }

/* 로그인 */
.login-pg { display: grid; place-items: center end; padding-right: max(16px, 9vw) !important; min-height: 100vh; min-height: 100dvh; padding: 24px 16px; background: #3B4370 url(/img/login_bg.jpg) center / cover no-repeat; overflow: hidden; }
.login-bg { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; pointer-events: none; }
.login-pg::before { content: ""; position: fixed; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(14, 20, 48, .10), rgba(14, 20, 48, .38)); pointer-events: none; }
.login { position: relative; z-index: 1; width: 100%; max-width: 400px; background: #fff; border-radius: 16px; box-shadow: 0 20px 50px rgba(8, 12, 32, .35), 0 2px 8px rgba(8, 12, 32, .12); padding: 34px 30px 26px; display: flex; flex-direction: column; gap: 12px; }
.login img { width: 176px; height: auto; margin: 0 auto 2px; }
.login h1 { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 18px; font-weight: 700; margin: 0 0 10px; color: var(--fg); }
.login h1 .ic { color: var(--g); }
.login .sso { display: flex; align-items: center; justify-content: center; gap: 9px; height: 50px; border-radius: 10px; font-size: 15.5px; font-weight: 600; text-decoration: none; transition: filter .15s; }
.login .sso svg { width: 20px; height: 20px; flex: none; }
.login .kakao { background: #FEE500; color: #191919; }
.login .google { background: #fff; color: #1f1f1f; border: 1px solid #DADCE0; }
.login .sso:hover { filter: brightness(.96); }
.login .note { border: 0; border-top: 1px solid var(--line2); border-radius: 0; background: none; padding: 14px 0 0; margin: 6px 0 0; color: var(--mut); font-size: 12.5px; line-height: 1.55; justify-content: center; text-align: center; }
.login .foot { text-align: center; font-size: 12px; color: #A3ABA6; margin: 0; }

/* 계정 */
.users-tb input { padding: 6px 9px; font-size: 14px; }

@media (max-width: 1000px) {
	.kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.cols, .write { grid-template-columns: minmax(0, 1fr); }
	.wside { position: static; }
}
@media (max-width: 760px) {
	.top .in { gap: 10px; height: 52px; }
	.brand b, .me .site span, .me > a:not(.site) small, .me .who small { display: none; }
	.me { gap: 10px; }
	.me .who, .me > a:not(.site) { max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.tabs { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
	.tabs a { padding: 0 9px; font-size: 14px; }
	.wrap { padding-top: 18px; }
	.kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.kpi { padding: 13px 14px; }
	.kpi b { font-size: 23px; }
	.box { padding: 14px 15px; }
	.m-hide { display: none; }
	.ph { font-size: 19px; }
	.ed, .ed-html { min-height: 320px; padding: 14px; font-size: 16px; }
	.filters button { margin-left: 0; }
	.login { padding: 28px 22px 22px; }
	.login-pg { place-items: center; padding-right: 16px !important; }
}

/* 배너 */
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 16px; }
.bthumb { width: 130px; }
.bthumb img { max-width: 120px; max-height: 60px; display: block; border: 1px solid var(--line); border-radius: 4px; }
.bh h2 small { font-weight: 400; font-size: 12.5px; color: var(--mut); }
