
:root{
  --bg:#f6f7fb;
  --card:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --red:#e11d48;
  --black:#0b0f19;
  --border: rgba(17,24,39,.10);
  --shadow: 0 10px 30px rgba(17,24,39,.10);
  --radius: 18px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
  background: var(--bg);
  color: var(--text);
}

a{color:inherit;text-decoration:none}
a:hover{opacity:.92}

.container{max-width:1200px;margin:0 auto;padding:22px}

.topbar{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 18px;border:1px solid var(--border); border-radius: var(--radius);
  background: rgba(255,255,255,.75); backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(17,24,39,.06);
}
.brand{display:flex;gap:10px;align-items:center;font-weight:800;letter-spacing:.3px}
.brand-badge{
  width:34px;height:34px;border-radius:12px;
  background: linear-gradient(135deg, var(--red), #fb7185);
  box-shadow: 0 8px 22px rgba(225,29,72,.25);
}
.nav{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:10px 12px;border-radius:14px;border:1px solid var(--border);
  background: #fff;
  font-weight:650;
}
.btn.primary{background: var(--text); color:#fff; border-color: rgba(17,24,39,.20)}
.btn.danger{background: var(--red); color:#fff; border-color: rgba(225,29,72,.25)}
.btn.ghost{background: transparent}
.btn.small{padding:8px 10px;border-radius:12px;font-weight:600}

.hero{
  display:flex;align-items:flex-end;justify-content:space-between;gap:18px;
  margin-top:16px;
}
.hero h1{margin:0;font-size:30px;letter-spacing:.2px}
.hero p{margin:6px 0 0;color:var(--muted);max-width:750px;line-height:1.55}

.split{
  margin-top:18px;
  display:grid;
  grid-template-columns: 1fr 6px 1fr;
  border-radius: 22px;
  overflow:hidden;
  box-shadow: var(--shadow);
}
.divider{background:#fff}


.resolved-section{
  margin-top:18px;
  background:#fff;
  border:1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 18px;
}
.resolved-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 12px;
}
.resolved-title{
  font-weight:900;
  font-size:18px;
  color: var(--text);
}
.resolved-sub{
  font-size:12px;
  color: var(--muted);
}

.boardchip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:4px 9px;
  border-radius:999px;
  font-size:12px;
  font-weight:850;
  border:1px solid var(--border);
  background: rgba(17,24,39,.04);
  line-height: 1;
}
.boardchip.red{
  color: var(--red);
  border-color: rgba(225,29,72,.25);
  background: rgba(225,29,72,.10);
}
.boardchip.black{
  color: var(--black);
  border-color: rgba(11,15,25,.25);
  background: rgba(11,15,25,.08);
}

.panel{
  min-height: 560px;
  padding: 18px;
}
.panel.red{background: linear-gradient(135deg, rgba(225,29,72,.95), rgba(225,29,72,.78))}
.panel.black{background: linear-gradient(135deg, rgba(11,15,25,.95), rgba(11,15,25,.82))}
.panel-head{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  margin-bottom: 12px;
}
.panel-title{
  display:flex;gap:10px;align-items:center;
  font-weight:900;font-size:18px;color:#fff;
}
.pill{
  display:inline-flex;align-items:center;gap:6px;
  padding:6px 10px;border-radius:999px;
  background: rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.18);
  color:#fff;font-weight:700;font-size:12px;
}

.list{display:flex;flex-direction:column;gap:12px}

.subhead{
  margin:14px 0 10px;
  padding:8px 10px;
  border-radius: 999px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:900;
  font-size:13px;
  color:#fff;
  background: rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.18);
}

.status-badge{
  display:inline-flex;align-items:center;gap:6px;
  padding:6px 10px;border-radius:999px;
  border:1px solid rgba(17,24,39,.10);
  background: rgba(17,24,39,.04);
  font-size:12px;font-weight:800;color:#111827;
}
.status-badge.pending{background: rgba(245,158,11,.14); border-color: rgba(245,158,11,.25); color:#92400e}
.status-badge.approved{background: rgba(34,197,94,.14); border-color: rgba(34,197,94,.25); color:#166534}
.status-badge.rejected{background: rgba(239,68,68,.14); border-color: rgba(239,68,68,.25); color:#991b1b}
.status-badge.resolved{background: rgba(100,116,139,.14); border-color: rgba(100,116,139,.25); color:#334155}
.card{
  display:grid;
  grid-template-columns: 110px 1fr;
  gap:12px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 18px;
  padding: 12px;
}
.cover{
  width:110px;height:78px;border-radius:14px;
  object-fit:cover;background:#e5e7eb;
}
.title{
  font-size:15px;font-weight:850;line-height:1.2;margin:0;
}
.meta{display:flex;gap:10px;align-items:center;margin-top:6px;color:var(--muted);font-size:12px}
.summary{margin-top:6px;color:#374151;font-size:13px;line-height:1.5}

.badges{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.badge{
  font-size:12px;font-weight:750;
  padding:5px 8px;border-radius:999px;
  background: rgba(17,24,39,.06);
  border:1px solid rgba(17,24,39,.10);
  color: rgba(17,24,39,.86);
}

.footer{margin:20px 0 0;color:var(--muted);font-size:12px;text-align:center}

.form-wrap{
  max-width:560px;margin:26px auto;
  background:#fff;border:1px solid var(--border); border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 18px;
}
.form-row{display:flex;gap:12px;flex-wrap:wrap}
.field{flex:1;min-width:220px}
label{display:block;margin:10px 0 6px;font-weight:750;font-size:13px}
input,textarea,select{
  width:100%;
  padding:10px 12px;
  border-radius: 14px;
  border:1px solid var(--border);
  outline:none;
  font-size:14px;
  background:#fff;
}
textarea{min-height:140px;resize:vertical}
.hint{font-size:12px;color:var(--muted);margin-top:6px}
.row-between{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.captcha{
  display:flex;gap:10px;align-items:center;flex-wrap:wrap;
}
.captcha img{
  width:140px;height:44px;border-radius:12px;border:1px solid var(--border);background:#fff;
}
.alert{
  padding:10px 12px;border-radius:14px;border:1px solid rgba(225,29,72,.25);
  background: rgba(225,29,72,.08); color: rgba(185,28,28,.95);
  font-weight:650;
}

@media (max-width: 980px){
  .split{grid-template-columns:1fr}
  .divider{display:none}
  .panel{min-height:unset}
}


.grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.company-list{
  margin-top: 12px;
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.company-item{
  display:grid;
  grid-template-columns: 60px 1fr 70px;
  align-items:center;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.22);
}
.company-rank{
  font-weight:900;
  color: rgba(17,24,39,.75);
}
.company-name{
  font-weight:900;
}
.company-count{
  text-align:right;
  font-weight:900;
  color: rgba(17,24,39,.78);
}
.panel.red .company-item{background: rgba(255,255,255,.94)}
.panel.black .company-item{background: rgba(255,255,255,.92)}

.comment-card{
  background: rgba(17,24,39,.03);
  border: 1px solid rgba(17,24,39,.08);
  border-radius: 16px;
  padding: 12px;
}
.comment-content{
  margin-top: 8px;
  color: rgba(17,24,39,.88);
  font-size: 14px;
  line-height: 1.65;
  word-break: break-word;
}
.comment-images{
  margin-top: 10px;
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}
.comment-images img{
  width: 96px;
  height: 96px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(17,24,39,.10);
  background: #fff;
}
.cimg{display:inline-flex}

@media (max-width: 980px){
  .grid-2{grid-template-columns:1fr}
}


/* v19: multi-images, contact, company highlight, readable meta */
.thumbs{display:flex;gap:10px;flex-wrap:wrap}
.thumbs img{width:110px;height:72px;object-fit:cover;border-radius:14px;background:#e5e7eb;box-shadow:0 6px 18px rgba(0,0,0,.06)}
.gallery{margin-top:12px;display:flex;gap:10px;flex-wrap:wrap}
.gallery img{width:180px;max-width:calc(50% - 10px);height:120px;object-fit:cover;border-radius:16px;background:#e5e7eb;box-shadow:0 10px 24px rgba(0,0,0,.06);cursor:pointer}
@media (min-width: 900px){.gallery img{width:220px;height:150px;max-width:none}}
.pill-light{color:#111827;background:rgba(17,24,39,.08);border:1px solid rgba(17,24,39,.15)}
.company-highlight{font-size:18px;font-weight:800;color:#b91c1c;background:rgba(239,68,68,.12);padding:2px 8px;border-radius:999px;display:inline-block}
