/* Setingan lomba (S1) + Setingan saat juara (S4): #setingan and its entry on Profil burung → Lomba. */
/* entry card in the Lomba tab */
.stg-entry{display:flex;align-items:center;gap:12px;width:100%;box-sizing:border-box;min-height:64px;padding:12px 14px;margin-bottom:16px;border:0;border-radius:var(--kl-radius);background:var(--kl-card);color:var(--kl-ink);font:inherit;text-align:left;text-decoration:none;cursor:pointer}
.stg-entry:focus-visible{outline:3px solid var(--kl-focus);outline-offset:2px}
.stg-entry-i{width:40px;height:40px;flex:none;border-radius:12px;background:var(--kl-green-light);display:flex;align-items:center;justify-content:center;color:var(--kl-green)}
.stg-entry.is-locked .stg-entry-i{background:var(--kl-sand);color:var(--kl-muted-2)}
.stg-entry-i .kl-icon{width:22px;height:22px}
.stg-entry-t{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.3}
.stg-entry-t strong{font-size:16px}.stg-entry-t small{font-size:13px;color:var(--kl-muted-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.stg-entry-t em{font-style:normal;font-size:13px;font-weight:700;color:var(--kl-green)}
.stg-go{flex:none;color:var(--kl-green)}.stg-go .kl-icon{width:20px;height:20px}

/* screen */
.stg-head{display:flex;align-items:center;gap:12px}
.stg-head .bd-photo.stg-ph{width:40px;height:40px;border-radius:50%;object-fit:cover;flex:none;background:var(--kl-green-light)}
.stg-title{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.15}
.stg.bd-page .stg-title h1{font-size:22px}
.stg-title>span{font-size:13px;color:var(--kl-muted-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.stg-layout{display:grid;gap:16px;grid-template-columns:minmax(0,1fr)}
.stg-col{display:flex;flex-direction:column;gap:12px;min-width:0}
.stg-from{max-width:none}.stg-from select{height:48px;font-weight:700}

.stg-grid{background:var(--kl-card);border-radius:var(--kl-radius);overflow:hidden}
.stg-row{display:grid;grid-template-columns:minmax(0,1.3fr) repeat(4,minmax(0,1fr));align-items:center;gap:4px;min-height:56px;padding:4px 12px;border-bottom:1px solid var(--kl-divider)}
.stg-row.is-head{min-height:0;padding:10px 12px;font-size:12px;font-weight:700;color:var(--kl-muted-2);text-align:center}
.stg-row.is-head>span:first-child{text-align:left}.stg-row.is-head .is-h{color:var(--kl-neg)}
.stg-food{display:flex;flex-direction:column;line-height:1.2;min-width:0}
.stg-food strong{font-size:14px;overflow-wrap:anywhere}.stg-food small{font-size:12px;color:var(--kl-muted-2)}
.stg-cell{height:44px;min-width:0;border-radius:10px;border:1.5px solid var(--kl-divider);background:var(--kl-bg);color:var(--kl-ink);font:700 15px var(--kl-font-body);cursor:pointer}
.stg-cell.is-zero{background:var(--kl-card);color:var(--kl-dashed)}
.stg-cell.is-up{background:var(--kl-amber-light);border-color:var(--kl-amber)}
.stg-cell:focus-visible,.stg-add:focus-visible{outline:3px solid var(--kl-focus);outline-offset:1px}
.stg-add{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:52px;border:0;background:none;color:var(--kl-green);font:700 15px var(--kl-font-body);cursor:pointer}
.stg-add .kl-icon{width:20px;height:20px}

.stg-note{margin:0;font-size:13px;color:var(--kl-muted-2)}
.stg-key{display:inline-block;width:10px;height:10px;margin:0 4px 0 2px;border-radius:3px;background:var(--kl-amber-light);border:1.5px solid var(--kl-amber);vertical-align:-1px}
.stg-none{margin:0;padding:14px;border-radius:16px;background:var(--kl-card);font-size:14px;color:var(--kl-muted-2)}
.stg-grid .stg-none{border-radius:0;border-bottom:1px solid var(--kl-divider)}

.stg-fields{display:flex;flex-direction:column;gap:12px;background:var(--kl-card);border-radius:var(--kl-radius);padding:14px}
.stg-fld{display:flex;align-items:flex-end;gap:10px}.stg-fld .kc-field{flex:1}.stg-fld .kc-input{height:48px}
.stg-fld-i{width:40px;height:48px;flex:none;border-radius:12px;background:var(--kl-green-light);display:flex;align-items:center;justify-content:center;color:var(--kl-green)}
.stg-fld-i.is-amber{background:var(--kl-amber-light);color:var(--kl-amber-text)}.stg-fld-i .kl-icon{width:20px;height:20px}

/* S4: setingan saat juara */
.stg-best{display:flex;flex-direction:column;gap:6px;padding:16px;border-radius:22px;background:var(--kl-green);color:var(--kl-bg)}
.stg-best strong{font:800 20px/1.2 var(--kl-font-head)}
.stg-best>span:not(.dc-eyebrow){font-size:14px;color:var(--kl-dark-soft)}
.stg-best .kc-btn{margin-top:8px}
.stg.bd-page .stg-h{font-size:19px;margin-top:4px}
.stg-runs{list-style:none;margin:0;padding:2px 14px;background:var(--kl-card);border-radius:var(--kl-radius)}
.stg-runs li{display:flex;align-items:center;gap:12px;min-height:64px;border-bottom:1px solid var(--kl-divider)}.stg-runs li:last-child{border-bottom:0}
.stg-badge{width:38px;height:38px;flex:none;border-radius:12px;background:var(--kl-bg);color:var(--kl-muted-2);display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:800}
.stg-badge.is-win{background:var(--kl-green-light);color:var(--kl-green)}
.stg-run-t{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.3;padding:8px 0}
.stg-run-t strong{font-size:15px}.stg-run-t small{font-size:13px;color:var(--kl-muted-2)}
.stg-ob{flex:none;padding:3px 8px;border-radius:999px;background:#F6E6DC;color:var(--kl-neg);font-size:11px;font-weight:800;font-style:normal}

/* cell editor sheet */
.stg-ed{display:flex;align-items:center;gap:10px;margin:8px 0}
.stg-ed .kc-input{flex:1;font-size:22px;font-weight:700;height:56px}
.stg-ed-u{font-size:16px;font-weight:700;color:var(--kl-muted-2);min-width:48px}
.stg-sh-f{display:flex;flex-direction:column;gap:8px;margin-top:14px}

@media(min-width:1024px){
  .stg-head{flex-wrap:wrap}.stg-head .stg-back{flex-basis:100%}
  .stg-layout{grid-template-columns:minmax(0,1.35fr) minmax(300px,1fr);align-items:start;max-width:1100px}
  .stg-col>.kc-btn{align-self:flex-start;width:auto;padding:0 32px}
}
