/* ============================================================
   PRODUCER CONTROL DOCK — operator panel, NOT part of broadcast
   ============================================================ */
:root { --ctl-accent: #E51D24; }

#dockToggle {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: inline-flex; align-items: center; gap: 9px;
  height: 44px; padding: 0 18px;
  background: #14171e; color: #fff; border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px; cursor: pointer;
  font-family: "Saira", sans-serif; font-weight: 700; font-size: 14px;
  letter-spacing: .04em; box-shadow: 0 8px 30px rgba(0,0,0,.5);
  transition: background .15s, transform .15s;
}
#dockToggle:hover { background: #1b1f28; transform: translateY(-1px); }
#dockToggle i { width: 9px; height: 9px; border-radius: 50%; background: var(--ctl-accent); }

.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  background: #0c0e13; border-top: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 -18px 50px rgba(0,0,0,.55);
  font-family: "Saira", sans-serif; color: #e7eaf0;
  transform: translateY(100%); transition: transform .32s cubic-bezier(.22,.61,.36,1);
  max-height: 50vh; display: flex; flex-direction: column;
}
.dock.open { transform: translateY(0); }

.dock-top {
  display: flex; align-items: center; gap: 18px;
  padding: 12px 22px; border-bottom: 1px solid rgba(255,255,255,.08);
  flex: none;
}
.dock-title { font-family: "Saira Condensed", sans-serif; font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: .04em; display:flex; align-items:center; gap:10px; }
.dock-title i { width: 10px; height: 10px; border-radius: 50%; background: var(--ctl-accent); }
.dock-tabs { display: flex; gap: 4px; margin-left: 10px; }
.dock-tab {
  padding: 7px 15px; border-radius: 8px; cursor: pointer; border: 1px solid transparent;
  font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  color: #99a1b0; background: transparent; transition: .14s;
}
.dock-tab:hover { color: #fff; background: rgba(255,255,255,.05); }
.dock-tab.active { color: #fff; background: rgba(255,90,31,.16); border-color: rgba(255,90,31,.4); }
.dock-close {
  margin-left: auto; width: 34px; height: 34px; border-radius: 8px; cursor: pointer;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  color: #cdd2dc; font-size: 18px; display: grid; place-items: center;
}
.dock-close:hover { background: rgba(255,255,255,.1); }

.dock-body { padding: 18px 22px 24px; overflow-y: auto; }

.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button {
  padding: 8px 16px; border-radius: 8px; cursor: pointer;
  background: #161a22; border: 1px solid rgba(255,255,255,.1); color: #aab2c0;
  font-family: "Saira", sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .04em;
  text-transform: uppercase; transition: .14s;
}
.seg button:hover { color: #fff; border-color: rgba(255,255,255,.22); }
.seg button.on { background: var(--ctl-accent); border-color: var(--ctl-accent); color: #0a0a0a; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > label {
  font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #7e8696;
}
.field input, .field textarea, .field select {
  background: #161a22; border: 1px solid rgba(255,255,255,.12); border-radius: 8px;
  color: #fff; font-family: "Saira", sans-serif; font-size: 15px; font-weight: 600;
  padding: 9px 12px; outline: none; transition: border-color .14s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ctl-accent); }
.field textarea { resize: vertical; min-height: 64px; line-height: 1.45; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px 18px; }
.grid4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px 18px; }
.col-span { grid-column: 1 / -1; }

.toggle-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tgl {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 14px; border-radius: 10px; cursor: pointer;
  background: #14171e; border: 1px solid rgba(255,255,255,.1); transition: .14s;
}
.tgl:hover { border-color: rgba(255,255,255,.2); }
.tgl span { font-weight: 700; font-size: 14px; letter-spacing: .02em; }
.tgl .sw { width: 40px; height: 22px; border-radius: 20px; background: #2a2f3a; position: relative; flex: none; transition: background .16s; }
.tgl .sw::after { content:""; position:absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background:#fff; transition: transform .16s; }
.tgl.on { border-color: rgba(255,90,31,.5); background: rgba(255,90,31,.1); }
.tgl.on .sw { background: var(--ctl-accent); }
.tgl.on .sw::after { transform: translateX(18px); }

.dock-section-title {
  font-family: "Saira Condensed", sans-serif; font-weight: 800; font-size: 16px;
  text-transform: uppercase; letter-spacing: .1em; color: #8b93a2; margin: 4px 0 12px;
  display: flex; align-items: center; gap: 12px;
}
.dock-section-title::after { content:""; flex:1; height:1px; background: rgba(255,255,255,.08); }

.btn-primary {
  padding: 9px 18px; border-radius: 8px; cursor: pointer; border: none;
  background: var(--ctl-accent); color: #0a0a0a; font-family:"Saira",sans-serif;
  font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost {
  padding: 9px 16px; border-radius: 8px; cursor: pointer;
  background: transparent; color: #c6ccd6; border: 1px solid rgba(255,255,255,.14);
  font-family:"Saira",sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
}
.btn-ghost:hover { background: rgba(255,255,255,.06); }

/* standings editor table */
.stand-edit { width: 100%; border-collapse: collapse; font-size: 14px; }
.stand-edit th {
  text-align: left; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: #7e8696; padding: 0 8px 8px;
}
.stand-edit td { padding: 3px 8px; }
.stand-edit input {
  width: 100%; background: #14171e; border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px; color: #fff; padding: 6px 9px; font-family:"Saira",sans-serif; font-weight: 600; font-size: 14px;
}
.stand-edit input.c { text-align: center; }
.stand-edit .pcell { font-family:"Saira Condensed",sans-serif; font-weight: 800; color: var(--ctl-accent); width: 30px; text-align: center; font-size: 16px; }
.stand-edit input:focus { outline: none; border-color: var(--ctl-accent); }

.hint { font-size: 12px; color: #6b7282; font-weight: 500; line-height: 1.5; }
.row-flex { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.spacer { flex: 1; }

.theme-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.theme-card {
  padding: 14px; border-radius: 12px; cursor: pointer; text-align: left;
  background: #14171e; border: 1px solid rgba(255,255,255,.1); transition: .14s;
}
.theme-card:hover { border-color: rgba(255,255,255,.25); }
.theme-card.on { border-color: var(--ctl-accent); box-shadow: 0 0 0 1px var(--ctl-accent) inset; }
.theme-card .tc-name { font-family:"Saira Condensed",sans-serif; font-weight: 800; font-size: 20px; text-transform: uppercase; }
.theme-card .tc-desc { font-size: 12px; color: #8b93a2; margin-top: 3px; line-height: 1.4; }
.theme-card .tc-swatch { display: flex; gap: 5px; margin-top: 10px; }
.theme-card .tc-swatch i { width: 22px; height: 22px; border-radius: 5px; }
