:root{--red:#C8161D;--orange:#F25C05;--amber:#FFB000;--yellow:#FFD23F;--ink:#24140C;--ink2:#3A2216;--muted:#6B4E3D;--sand:#E9D6C6;--bg:#FBF3E8;--line:#F3DCC4;--soft:#F3E6D6}
*{box-sizing:border-box}
body{margin:0;font-family:'Plus Jakarta Sans',system-ui,sans-serif;color:var(--ink);background:var(--bg);font-size:15px;line-height:1.5}
a{color:#B23A00}
h1,h2{margin:0}
h2{font-size:18px;margin-bottom:12px}
.muted{color:var(--muted)}
.shell{display:flex;min-height:100vh}
.side{width:250px;flex-shrink:0;background:var(--ink);color:var(--sand);padding:20px 14px;display:flex;flex-direction:column;gap:4px;position:sticky;top:0;height:100vh;overflow:auto}
.sbrand{display:flex;align-items:center;gap:10px;padding:4px 8px 20px;text-decoration:none}
.sbrand span{width:48px;height:48px;border-radius:12px;background:#fff;display:flex;align-items:center;justify-content:center}
.sbrand img{width:44px;height:44px;object-fit:contain}
.sbrand b{display:block;color:#fff;font-family:'Bricolage Grotesque',sans-serif;font-size:18px}
.sbrand small{color:var(--amber);font-weight:600;font-size:12px}
.side nav{display:flex;flex-direction:column;gap:2px}
.side nav a{color:var(--sand);text-decoration:none;padding:11px 12px;border-radius:12px;font-weight:600;min-height:44px;display:flex;align-items:center}
.side nav a:hover{background:var(--ink2)}
.side nav a.on{background:var(--orange);color:#fff}
.sfoot{margin-top:auto;padding:16px 8px 0;display:flex;flex-direction:column;gap:8px}
.sfoot a{color:var(--amber);font-size:14px;font-weight:600}
.main{flex:1;min-width:0;padding:24px;display:flex;flex-direction:column;gap:20px}
.top{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.top .tt{flex-grow:1}.top small{color:var(--muted)}
.top h1{font-family:'Bricolage Grotesque',sans-serif;font-size:30px}
.mbtn{display:none;width:44px;height:44px;border-radius:12px;border:0;background:#fff;font-size:20px;cursor:pointer}
.who{display:flex;align-items:center;gap:10px;background:#fff;padding:6px 14px 6px 6px;border-radius:999px}
.who i{width:36px;height:36px;border-radius:50%;background:var(--orange);color:#fff;font-style:normal;font-weight:800;display:flex;align-items:center;justify-content:center}
.who b{display:block;font-size:14px}.who small{font-size:12px;color:var(--muted)}
.card{background:#fff;border-radius:20px;padding:20px}
.card.narrow{max-width:520px}
.card.red{background:var(--red);color:#fff;display:flex;flex-direction:column;gap:10px}
.card .head{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;margin-bottom:12px}
.card .head h2{margin:0}
.qa{background:#fff;color:var(--ink);padding:12px 14px;border-radius:12px;font-weight:700;text-decoration:none;min-height:44px;display:flex;align-items:center}
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px}
.tile{background:#fff;border-radius:20px;padding:20px}
.tile span{color:var(--muted);font-weight:600;font-size:14px}
.tile b{display:block;font-family:'Bricolage Grotesque',sans-serif;font-size:40px;line-height:1.1;margin-top:6px}
.tile small{color:var(--muted)}
.row2{display:flex;flex-wrap:wrap;gap:16px}
.row2>.card:first-child{flex:2 1 420px;min-width:0}.row2>.card:last-child{flex:1 1 280px;min-width:0}
.act{display:flex;gap:12px;padding:12px 0;border-top:1px solid var(--soft)}
.act i{width:10px;height:10px;border-radius:50%;background:var(--orange);margin-top:7px;flex-shrink:0}
.act div{flex-grow:1}.act small{display:block;color:var(--muted);font-size:12px}
.act time{color:var(--muted);font-size:13px;white-space:nowrap}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{display:inline-block;background:var(--soft);border-radius:8px;padding:5px 10px;font-size:13px;font-weight:700}
.chip.dark{background:var(--ink);color:#fff}.chip.warn{background:#FDE2E2;color:#8F1A12}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:0;cursor:pointer;font:inherit;font-weight:700;padding:11px 16px;border-radius:12px;min-height:44px;text-decoration:none;background:var(--soft);color:var(--ink)}
.btn.primary{background:var(--orange);color:#fff}.btn.primary:hover{background:#D94F00}
.btn.ghost{background:#fff;border:2px solid var(--line)}
.btn.big{width:100%;background:var(--red);padding:15px;font-size:16px}
.btn.sm{min-height:36px;padding:7px 11px;font-size:13px;border-radius:10px}
.btn.icon{width:34px;padding:0}
.btn.danger{background:#FDE2E2;color:#8F1A12}
.btn[disabled]{opacity:.35;cursor:default}
.inl{display:inline}
.tw{overflow-x:auto}
table{width:100%;border-collapse:collapse;min-width:640px}
th{text-align:left;color:var(--muted);font-size:13px;padding:10px 8px}
td{padding:10px 8px;border-top:1px solid var(--soft);vertical-align:middle}
.r{text-align:right}.nowrap{white-space:nowrap}
td .btn,td form{margin-left:4px}
.clip{display:block;max-width:320px;color:var(--muted)}
.thumb{width:72px;height:72px;border-radius:12px;object-fit:cover;background:var(--soft);display:flex;align-items:center;justify-content:center;font-size:12px;color:var(--muted);flex-shrink:0}
.thumb.s{width:48px;height:48px;border-radius:10px;display:block}
.thumb.doc{font-weight:800;color:#8F1A12;text-decoration:none}
.pill{border:0;cursor:pointer;padding:7px 12px;border-radius:999px;font:inherit;font-weight:700;font-size:13px;background:var(--soft);color:var(--muted);min-height:34px}
.pill.on{background:#DDF3E4;color:#14532D}
input.mini{width:80px;padding:8px 10px;border-radius:10px;border:2px solid var(--line);font:inherit}
input.mini.w{width:110px}
input.mini.low{border-color:var(--red);background:#FFF5F5}
.form{display:flex;flex-direction:column;gap:14px}
.fld{display:flex;flex-direction:column;gap:6px}
.fld label{font-weight:700;font-size:14px}
.fld input,.fld textarea,.fld select,.pair input,.pair textarea{font:inherit;padding:12px;border-radius:12px;border:2px solid var(--line);background:#fff;width:100%}
.fld input:focus,.fld textarea:focus,.fld select:focus,.pair input:focus,.pair textarea:focus{outline:none;border-color:var(--orange)}
.fld textarea{resize:vertical}
.chk{display:flex;gap:10px;align-items:center;font-weight:600;cursor:pointer;min-height:40px}
.chk input{width:20px;height:20px;accent-color:var(--orange)}
.chk.sm{font-size:13px;min-height:30px}
.imgf{display:flex;gap:14px;align-items:flex-start;flex-wrap:wrap}
.imgf>div{display:flex;flex-direction:column;gap:4px}
.imgf small{font-size:12px}
.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}
.grid3{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin-top:14px}
.pairs{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px;margin-top:6px}
.pair{display:flex;flex-direction:column;gap:6px;background:var(--bg);padding:10px;border-radius:14px}
.pair input{font-weight:700}
.formbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:8px}
.formbar.sticky{position:sticky;bottom:0;background:var(--bg);padding:12px 0}
.alert{border-radius:14px;padding:12px 16px;font-weight:600}
.alert.ok{background:#DDF3E4;color:#14532D}
.alert.err{background:#FDE2E2;color:#8F1A12}
.colorrow{display:flex;gap:8px;align-items:center}
.colorrow input[type=color]{width:56px;height:48px;padding:2px;border-radius:12px}
.sw{width:40px;height:40px;border-radius:12px;border:3px solid #fff;box-shadow:0 0 0 1px var(--line);cursor:pointer}
/* login */
body.login{display:flex;flex-wrap:wrap;min-height:100vh;background:#FFF6EA}
.lg-art{flex:1 1 460px;background:radial-gradient(110% 90% at 30% 20%,var(--yellow) 0%,var(--amber) 35%,var(--orange) 75%,var(--red) 100%);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 24px;text-align:center;gap:20px;perspective:900px}
.lg-logo{width:220px;height:220px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 40px 60px -24px rgba(90,20,0,.6),inset 0 0 0 8px var(--yellow);animation:bob 6s ease-in-out infinite}
.lg-logo img{width:180px;height:180px;object-fit:contain}
.lg-art h1{font-family:'Bricolage Grotesque',sans-serif;font-size:36px;line-height:1.05}
.lg-art p{max-width:420px;margin:0;color:#FFF4E6;font-size:17px}
.lg-form{flex:1 1 400px;display:flex;align-items:center;justify-content:center;padding:48px 24px}
.lg-form form{width:100%;max-width:400px}
.lg-form h2{font-family:'Bricolage Grotesque',sans-serif;font-size:32px;margin:0}
.back{text-align:center;font-size:14px;font-weight:600}
@keyframes bob{0%,100%{transform:translateY(0) rotateY(-18deg) rotateX(8deg)}50%{transform:translateY(-14px) rotateY(18deg) rotateX(-4deg)}}
@media (max-width:860px){
  .shell{display:block}
  .side{position:fixed;z-index:50;left:0;top:0;transform:translateX(-100%);transition:transform .25s;box-shadow:0 0 40px rgba(0,0,0,.4)}
  .side.open{transform:none}
  .mbtn{display:block}
  .main{padding:16px}
  .who div{display:none}
}
@media (prefers-reduced-motion:reduce){.lg-logo{animation:none}}
.pill.wait{background:#FFF1C2;color:#7A4B00}
span.pill{cursor:default;display:inline-flex;align-items:center}
.rv-st{color:#FFB000;letter-spacing:1px}.rv-st span{color:#E8DCD2}
.rv-tx{min-width:220px;max-width:420px;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
/* drag & drop */
.grip-h{width:28px}
td.grip{cursor:grab;color:var(--muted);font-size:20px;text-align:center;touch-action:none;user-select:none;width:28px;padding-left:4px;padding-right:4px}
tr.srow.dragging{background:#FFF1E2;box-shadow:0 6px 18px rgba(36,20,12,.15)}
body.is-dragging,body.is-dragging *{cursor:grabbing!important;user-select:none}
tbody.saving{opacity:.5;pointer-events:none}
.dnd-hint{margin-top:0}
.thumb.vid{display:grid!important;place-items:center;background:var(--ink);color:#fff;font-size:16px}
/* portfolio media manager */
.fld .lbl{font-weight:700;font-size:14px}
.muted.sm{font-size:13px;margin:2px 0 8px}
.mlist{list-style:none;margin:0 0 10px;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px}
.mitem{position:relative;aspect-ratio:1;border-radius:14px;overflow:hidden;background:var(--soft);border:2px solid var(--line);cursor:grab;touch-action:none;user-select:none}
.mitem img,.mitem video{width:100%;height:100%;object-fit:cover;display:block;pointer-events:none}
.mitem:first-child{border-color:var(--orange);box-shadow:0 0 0 3px rgba(242,92,5,.2)}
.mitem:first-child::before{content:"Sampul";position:absolute;left:6px;top:6px;z-index:2;background:var(--orange);color:#fff;font-size:11px;font-weight:800;padding:3px 8px;border-radius:999px}
.mitem.dragging{opacity:.55;transform:scale(.96)}
.mitem.bad{border-color:#C8161D;opacity:.5}
.mlink{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:var(--ink);color:#fff;font-size:26px}
.mlink small{font-size:12px;font-weight:700;color:var(--amber)}
.mtype{position:absolute;left:6px;bottom:6px;background:rgba(255,255,255,.92);font-size:11px;font-weight:800;padding:3px 7px;border-radius:7px}
.mdel{position:absolute;right:6px;top:6px;z-index:2;width:28px;height:28px;border-radius:50%;border:0;background:rgba(36,20,12,.75);color:#fff;font-size:18px;line-height:1;cursor:pointer}
.mdel:hover{background:#C8161D}
.madd{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:6px}
.murl{display:flex;gap:8px;flex:1 1 320px}
.murl input{flex:1;min-width:0}
details.card summary{cursor:pointer;list-style:none}details.card summary::-webkit-details-marker{display:none}details.card summary h2{font-size:18px}
/* roles */
.chip.mkt{background:#FFE7C2;color:#7A2700}
.mini-sel{font:inherit;font-size:13px;font-weight:700;padding:7px 10px;border-radius:10px;border:2px solid var(--line);background:#fff;min-height:36px;cursor:pointer}
table.perm th.c,table.perm td.c{text-align:center;width:110px}
table.perm input[type=checkbox]{width:20px;height:20px;accent-color:var(--orange);cursor:pointer}
table.perm input:disabled{cursor:not-allowed}
.pw-wrap{position:relative}
.pw-wrap input{padding-right:88px!important}
.pw-eye{position:absolute;right:8px;top:50%;transform:translateY(-50%);border:0;background:var(--soft);font:inherit;font-size:12.5px;font-weight:700;padding:6px 10px;border-radius:8px;cursor:pointer;color:var(--ink)}
.pw-caps{color:#B3121A;font-weight:700;font-size:12.5px}
