/* ClipForge AI — PHP | FULL STICKY sidebar on user + admin */
*{box-sizing:border-box} body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:#0b0f14;color:#e8eef4}
a{color:#a3e635} input,select,textarea{width:100%;padding:10px;margin:6px 0 12px;border:1px solid #334155;border-radius:8px;background:#111827;color:#e8eef4}
button,.btn{display:inline-block;padding:10px 16px;border:0;border-radius:8px;background:#a3e635;color:#111;font-weight:700;cursor:pointer;text-decoration:none}
.btn.ghost{background:#1f2937;color:#e8eef4}.btn.big{font-size:16px;padding:12px 22px}
.app{display:flex;min-height:100vh}
.sidebar{position:sticky;top:0;height:100vh;width:260px;flex-shrink:0;background:#111827;border-right:1px solid #1f2937;padding:18px 12px;overflow-y:auto;display:flex;flex-direction:column}
.sidebar .brand{font-size:20px;font-weight:800;color:#a3e635}
.sidebar .who{font-size:12px;color:#94a3b8;margin:6px 0 14px}
.sidebar nav{display:flex;flex-direction:column;gap:4px}
.sidebar .nav{display:block;padding:10px 12px;border-radius:8px;color:#e8eef4;text-decoration:none}
.sidebar .nav:hover{background:#1f2937}.sidebar .nav.active{background:#a3e635;color:#111;font-weight:700}
.sidebar .sect{font-size:11px;letter-spacing:1px;color:#94a3b8;margin:14px 8px 4px}
.sidebar .side-foot{margin-top:auto;font-size:11px;color:#64748b;padding-top:16px}
.main{flex:1;min-width:0}.topbar{position:sticky;top:0;background:#0b0f14;border-bottom:1px solid #1f2937;padding:14px 20px;display:flex;justify-content:space-between;z-index:5}
.content{padding:20px;max-width:1000px}
.public{max-width:900px;margin:0 auto;padding:24px}
.card{background:#111827;border:1px solid #1f2937;border-radius:12px;padding:18px;margin-bottom:16px}
.hero h1{font-size:34px;margin:8px 0}.muted{color:#94a3b8}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}
.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px}
.stat{background:#111827;border:1px solid #1f2937;border-radius:12px;padding:16px;text-align:center}.stat b{font-size:26px;display:block;color:#a3e635}
.alert{background:#1f2937;border-left:4px solid #a3e635;padding:12px;border-radius:8px;margin-bottom:14px}.alert.ok{border-color:#22c55e}
.tbl{width:100%;border-collapse:collapse;font-size:14px}.tbl th,.tbl td{border-bottom:1px solid #1f2937;padding:8px;text-align:left;vertical-align:top}
code{background:#1f2937;padding:2px 6px;border-radius:6px}pre{background:#020617;padding:12px;border-radius:8px;overflow:auto}
.badge{background:#a3e635;color:#111;padding:2px 8px;border-radius:20px;font-size:11px}.badge2{background:#1f2937;color:#a3e635;padding:2px 8px;border-radius:20px;font-size:11px}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}.chip{background:#1f2937;padding:8px 12px;border-radius:20px}.chip input{width:auto;margin:0}
.clip{border:1px solid #1f2937;border-radius:10px;padding:14px;margin:12px 0;background:#0f172a}.clip-head{display:flex;justify-content:space-between}.score{color:#a3e635;font-weight:700}
.grid4{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.clip-card{background:#0f172a;border:1px solid #1f2937;border-radius:10px;padding:14px}
.clip-card h4{margin:0 0 6px;font-size:15px}
.clip-card .btn{padding:8px 12px;font-size:13px}
.modal{position:fixed;inset:0;background:rgba(0,0,0,.75);display:flex;align-items:center;justify-content:center;z-index:50;padding:20px}
.modal-box{background:#111827;border:1px solid #334155;border-radius:12px;max-width:640px;width:100%;max-height:85vh;overflow:auto;padding:20px;position:relative}
.modal-x{position:absolute;top:10px;right:10px;background:#1f2937;color:#e8eef4;padding:6px 12px}
.progress{height:12px;background:#1f2937;border-radius:6px;overflow:hidden}
.progress>div{height:100%;background:#a3e635;width:0%}
.field{border-top:1px solid #1f2937;padding:8px 0}.field p{margin:4px 0}.copy{padding:4px 10px;font-size:12px}
.guide h3{margin-top:0}
@media(max-width:760px){.app{flex-direction:column}.sidebar{position:sticky;top:0;height:auto;width:100%}.cards{grid-template-columns:repeat(2,1fr)}.grid2{grid-template-columns:1fr}.grid4{grid-template-columns:repeat(2,1fr)}}
.rangebar{position:relative;height:14px;background:#1f2937;border-radius:7px;margin:10px 0 4px}
.range-sel{position:absolute;top:0;bottom:0;background:#a3e635;border-radius:7px;left:0;width:100%}
.range-labels{display:flex;justify-content:space-between;font-size:12px;color:#94a3b8;gap:8px;flex-wrap:wrap}
