:root{font-family:system-ui,-apple-system,"Malgun Gothic",sans-serif;background:#f4f7f5;color:#1b2d25}
*{box-sizing:border-box}
body{margin:0}
[hidden]{display:none!important}
button,input,textarea,select{font:inherit}
button{cursor:pointer;border:1px solid #cbd9d0;background:#fff;border-radius:10px;padding:10px 13px;color:inherit}
button.primary{background:#216d4b;color:#fff;border-color:#216d4b}
button.danger{color:#9b2c2c;border-color:#e3c3c3}
button.small{padding:6px 10px;font-size:13px}
button:disabled{opacity:.5;cursor:not-allowed}
main{max-width:1050px;margin:auto;padding:18px 16px 70px}
header{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.header-right{display:flex;gap:8px;align-items:center}
.brandname{font-size:19px;font-weight:800;color:#206544}
.light{font-weight:400}
.muted,small{color:#687a70}
.small-text{font-size:13px;margin-top:10px}
h1{font-size:26px;margin:25px 0 7px}
h2{font-size:19px}
p{line-height:1.65}
.notice{background:#fff4d8;border:1px solid #e7d5a2;border-radius:12px;padding:12px;font-size:13px;color:#775a22;margin:18px 0}
.flash{border-radius:12px;padding:12px;font-size:14px;margin:0 0 14px;background:#e8f3ec;border:1px solid #bcd9c7;color:#1f5a3e}
.flash.error{background:#fdecec;border-color:#efc4c4;color:#8a2626}
.panel,.post,.stat{background:#fff;border:1px solid #dde7e0;border-radius:15px;padding:17px}
.toolbar,.inline-form{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.inline-form{margin-top:12px}
.toolbar select,input,select{padding:10px;border:1px solid #cbd9d0;border-radius:10px;background:#fff;max-width:100%}
#loginForm{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
#loginForm input{flex:1;min-width:200px}
.tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:19px 0}
.tabs button{padding:14px 7px}
.tabs button.active{background:#216d4b;color:#fff}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:16px 0}
.stat strong{font-size:27px;display:block;margin-top:6px}
.post{margin:12px 0}
.post h3{font-size:18px;margin:12px 0}
.post p{white-space:pre-wrap}
.tag{font-size:12px;border-radius:16px;background:#eaf3ed;color:#285f44;padding:5px 9px}
.tag.APPROVED{background:#d8efe1}
.tag.REJECTED{background:#f6e3e3;color:#8a2626}
.tag.PENDING_APPROVAL{background:#fff1cf;color:#775a22}
.posttop,.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.posttop{justify-content:space-between}
.actions{margin-top:13px}
textarea{width:100%;min-height:140px;border:1px solid #cbd9d0;border-radius:10px;padding:12px}
.field{display:block;width:100%;margin:8px 0}
.warn{font-size:13px;color:#8a5a12;margin:6px 0}
.subnav{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}
.subnav button.selected{border-color:#216d4b;color:#216d4b;font-weight:700}
.empty{text-align:center;padding:38px 15px}
.foot{margin-top:22px;font-size:12px;color:#718078}
@media(max-width:540px){
  h1{font-size:22px}
  .tabs{gap:5px}
  .tabs button{font-size:12px;padding:11px 2px}
  .panel,.post{padding:14px}
  .stat{padding:11px}
  .stat strong{font-size:23px}
  .actions button{flex:1 1 auto}
}
.conflict{background:#fff7e6;border:1px solid #f0d49a;border-radius:12px;padding:12px;margin-top:10px;font-size:14px}
.conflict p{white-space:pre-wrap;margin:6px 0;color:#34463c}
.note{border-radius:10px;padding:9px 11px;margin-top:10px;font-size:13px}
.note.ok{background:#e8f3ec;border:1px solid #bcd9c7;color:#1f5a3e}
.note.info{background:#eef2f7;border:1px solid #cdd8e6;color:#34465c}
.note.error{background:#fdecec;border:1px solid #efc4c4;color:#8a2626}
