:root{
  --bg:#08251A; --surface:#0E3526; --surface-2:#13422F; --line:#1E5840;
  --accent:#27C083; --accent-soft:#1B7A55; --gold:#E0B14A;
  --text:#EAF3ED; --muted:#8DAE9C; --danger:#E06A4A;
}
*{box-sizing:border-box}
body{
  margin:0; background:var(--bg); color:var(--text);
  font-family:Inter,system-ui,sans-serif; font-size:14px; line-height:1.5;
  -webkit-font-smoothing:antialiased;
  background-image:radial-gradient(120% 60% at 50% -10%, rgba(39,192,131,0.10), transparent 60%);
  background-repeat:no-repeat;
}
a{color:var(--accent); text-decoration:none}
a:hover{text-decoration:underline}
.wrap{max-width:1080px; margin:0 auto; padding:28px 22px 64px}
.muted{color:var(--muted)}
.small{font-size:12px}
h1{font-family:Sora,sans-serif; font-weight:700; font-size:24px; margin:0; letter-spacing:-0.01em}
h1 span{color:var(--accent)}
h2{font-family:Sora,sans-serif; font-weight:600; font-size:17px; margin:0}
.row{display:flex; align-items:center; gap:12px}
.grid2{display:grid; grid-template-columns:1fr 1fr; gap:14px}

.topbar{display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:22px}
.logo{height:40px; width:auto; border-radius:8px}

.flash{background:var(--surface-2); border:1px solid var(--line); border-left:3px solid var(--accent);
  border-radius:10px; padding:10px 14px; margin-bottom:18px; font-size:13px}
.banner{background:var(--surface-2); border:1px solid var(--line); border-left:3px solid var(--gold);
  border-radius:10px; padding:11px 14px; margin-bottom:18px; font-size:13px; color:var(--muted)}
.banner b{color:var(--text)} .banner a{margin-left:8px}

.panel{background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:18px 20px; margin-bottom:18px}
.panel-head{display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px}
.danger-zone{border-color:rgba(224,106,74,.4)}

.tag{font-size:11px; font-weight:600; padding:3px 9px; border-radius:10px}
.tag.ok{background:var(--accent-soft); color:#02160E}
.tag.warn{background:var(--gold); color:#02160E}

.btn{display:inline-block; font:inherit; font-size:13px; font-weight:600; cursor:pointer; border:1px solid var(--line);
  background:var(--surface-2); color:var(--text); padding:9px 15px; border-radius:10px; transition:background .15s ease}
.btn:hover{background:var(--surface); text-decoration:none}
.btn-primary{background:var(--accent); color:#02160E; border-color:var(--accent)}
.btn-primary:hover{filter:brightness(1.05); background:var(--accent)}
.btn-danger{background:transparent; color:var(--danger); border-color:var(--danger)}
.btn-danger:hover{background:rgba(224,106,74,.12)}
.btn-block{width:100%; text-align:center; margin-top:6px}
.btn-small{padding:6px 11px; font-size:12px}
.btn.ghost{background:transparent}

.field{margin-bottom:14px}
.field label{display:block; font-size:11px; text-transform:uppercase; letter-spacing:.1em; color:var(--muted); margin-bottom:6px}
input,textarea{width:100%; background:var(--bg); border:1px solid var(--line); color:var(--text);
  border-radius:10px; padding:10px 12px; font:inherit; font-size:14px}
textarea{resize:vertical}
input:focus,textarea:focus{outline:none; border-color:var(--accent)}

/* auth */
.auth{min-height:80vh; display:flex; align-items:center; justify-content:center}
.auth-card{background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:28px; width:100%; max-width:380px}
.brand{font-family:Sora,sans-serif; font-weight:700; font-size:22px; margin-bottom:4px}
.brand span{color:var(--accent)}
.auth-card form{margin-top:16px}

/* lists */
.list{display:flex; flex-direction:column}
.list-row{display:flex; align-items:center; gap:14px; padding:13px 4px; border-bottom:1px solid var(--line); color:var(--text)}
.list-row:last-child{border-bottom:none}
.list-row:hover{text-decoration:none; background:var(--surface-2); border-radius:8px}
.list-row.static:hover{background:transparent}
.list-row .nm{font-weight:600}
.list-row .chev{margin-left:auto; color:var(--muted); font-size:13px}
.swatch{width:14px; height:14px; border-radius:4px; flex:none}
.status-dot{width:10px; height:10px; border-radius:50%; flex:none; background:var(--muted)}
.status-dot.approved{background:var(--accent)} .status-dot.change{background:var(--gold)}

/* gallery */
.gallery{display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:16px}
.item{background:var(--surface-2); border:1px solid var(--line); border-radius:12px; overflow:hidden; display:flex; flex-direction:column}
.media{background:#04140D; aspect-ratio:1/1; display:flex; align-items:center; justify-content:center; overflow:hidden}
.media img,.media video{width:100%; height:100%; object-fit:contain; display:block}
.filebox{color:var(--muted); font-size:13px}
.item-body{padding:12px; display:flex; flex-direction:column; gap:10px}
.item-top{display:flex; align-items:center; gap:8px; justify-content:space-between}
.fname{font-weight:600; font-size:13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.status-pill{font-size:10px; font-weight:700; padding:3px 8px; border-radius:9px; background:var(--surface); color:var(--muted); flex:none; text-transform:uppercase; letter-spacing:.04em}
.status-pill.approved{background:var(--accent); color:#02160E}
.status-pill.change{background:var(--gold); color:#02160E}

.notes{display:flex; flex-direction:column; gap:6px}
.note{font-size:12px; background:var(--surface); border:1px solid var(--line); border-radius:8px; padding:7px 9px}
.note .who{color:var(--muted); font-size:11px; text-transform:capitalize; margin-right:5px}

.fb textarea{font-size:13px; margin-bottom:8px}
.fb-actions{display:flex; gap:6px; flex-wrap:wrap}

@media (max-width:560px){ .grid2{grid-template-columns:1fr} h1{font-size:20px} }
