/* Creator Studio · estilos
   Boards: cristal oscuro azul. Publisher: tema Día (blanco/turquesa) o Noche (negro/naranja). */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Inter, "SF Pro Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  font-size: 16px; line-height: 1.4; -webkit-font-smoothing: antialiased;
  background: #0f1c28;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 3px solid #5CC0FF; outline-offset: 2px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg { flex: none; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- Toast ---------- */
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; background: #18242B; color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.35); font-size: 15px; max-width: min(560px, 90vw); }
.toast.err { background: #8C1D18; }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; color: #fff;
  background: radial-gradient(900px 500px at 80% 0%, rgba(40,130,220,.35), transparent 60%), linear-gradient(160deg, #0f1c28, #18304a); }
.login form { width: min(400px, 100%); background: rgba(22,38,54,.85); border: 1px solid rgba(255,255,255,.18); border-radius: 18px; padding: 32px 28px; display: flex; flex-direction: column; gap: 16px; backdrop-filter: blur(16px); }
.login h1 { margin: 0; font-size: 28px; }
.login h1 span { color: #2FA8FF; }
.login label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #D3DCE4; }
.login input { height: 48px; border-radius: 10px; border: 1px solid rgba(255,255,255,.3); background: rgba(10,20,30,.6); padding: 0 14px; color: #fff; }
.login .err { color: #FFB4AB; font-size: 14px; min-height: 20px; margin: 0; }

/* ---------- Botones Boards ---------- */
.bprimary { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 10px; border: none;
  background: linear-gradient(180deg, #2C9BF5, #1678D6); color: #fff; font-size: 17px; font-weight: 600; box-shadow: 0 6px 20px rgba(22,120,214,.35); }
.gbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 48px; height: 48px; padding: 0 12px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.32); background: rgba(16,28,40,.55); color: #fff; }

/* ---------- Creator Boards ---------- */
.boards { min-height: 100vh; color: #fff; padding: 22px 28px 28px; display: flex; flex-direction: column; gap: 20px;
  background:
    radial-gradient(1100px 600px at 90% 5%, rgba(38,120,200,.38), transparent 60%),
    radial-gradient(800px 500px at 0% 0%, rgba(60,110,80,.28), transparent 60%),
    linear-gradient(165deg, #0f1c28 0%, #172a3c 55%, #0d1822 100%);
  background-attachment: fixed; }
.bh { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.bh .sep { width: 1px; height: 60px; background: rgba(255,255,255,.35); }
.bh h1 { margin: 0; font-size: 38px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.bh h1 span { color: #2FA8FF; }
.bh p { margin: 4px 0 0; color: #E3EAF0; font-size: 16px; }
.bh .spacer { flex: 1; }
.btool { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btool .spacer { flex: 1; }
.btool .vsep { width: 1px; height: 38px; background: rgba(255,255,255,.3); }
.gsel { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.35);
  background: rgba(16,28,40,.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); min-width: 240px; }
.gsel select { flex: 1; background: transparent; border: none; color: #fff; font-size: 19px; font-weight: 500; appearance: none; -webkit-appearance: none; cursor: pointer; }
.gsel select option { color: #111; }
.gsearch { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.32); background: rgba(16,28,40,.55); flex: 0 1 220px; min-width: 140px; }
.gsearch input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; color: #fff; }
.gsearch input::placeholder { color: #B8C6D2; }
.seg { display: flex; border-radius: 10px; border: 1px solid rgba(255,255,255,.35); background: rgba(16,28,40,.55); backdrop-filter: blur(14px); overflow: hidden; }
.seg button { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px; border: none; background: transparent; color: #fff; font-size: 17px; }
.seg button[aria-selected="true"] { background: linear-gradient(180deg, #2C9BF5, #1678D6); font-weight: 500; }

.cols { display: flex; gap: 16px; overflow-x: auto; align-items: stretch; flex: 1; padding-bottom: 6px; }
.col { flex: 1 1 300px; min-width: 290px; border-radius: 16px; background: rgba(28,42,56,.5); border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding: 10px; display: flex; flex-direction: column; gap: 10px; min-height: 520px; transition: border-color .15s, background .15s; }
.col.dropover { border-color: #2FA8FF; background: rgba(36,64,92,.6); }
.colhead { display: flex; align-items: center; gap: 10px; padding: 6px 6px 4px; }
.colhead h2 { margin: 0; font-size: 19px; font-weight: 500; }
.colhead .ic { color: #2FA8FF; display: flex; }
.count { min-width: 26px; height: 26px; padding: 0 8px; border-radius: 13px; background: #1E8AE8; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.cardlist { display: flex; flex-direction: column; gap: 10px; flex: 1; min-height: 40px; }
.bcard { display: flex; gap: 14px; align-items: center; text-align: left; width: 100%; color: #fff; border-radius: 12px; padding: 11px;
  background: rgba(52,68,84,.62); border: 1px solid rgba(255,255,255,.12); transition: border-color .15s, box-shadow .15s, transform .15s; }
.bcard:hover { border-color: rgba(47,168,255,.6); }
.bcard.active { border: 2px solid #2FA8FF; box-shadow: 0 0 18px rgba(47,168,255,.5); }
.bcard.dragging { opacity: .45; }
.thumb { width: 74px; height: 70px; border-radius: 10px; object-fit: cover; flex: none; background: linear-gradient(135deg, #2a4258, #1b2c3c); display: flex; align-items: center; justify-content: center; color: #8FB4D3; }
.bcbody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.clip { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bctitle { font-size: 16.5px; font-weight: 500; }
.bcdesc { font-size: 14px; color: #D3DCE4; }
.bcmeta { display: flex; align-items: center; gap: 10px; margin-top: 3px; }
.dchip { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; padding: 3px 8px; border-radius: 6px; background: rgba(47,140,230,.28); color: #E6F3FF; }
.dchip.none { background: transparent; color: #E3EAF0; padding: 3px 2px; }
.dchip.late { background: #F2A099; color: #4A1410; }
.chk { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; color: #E3EAF0; }
.bar { flex: 1; min-width: 36px; height: 7px; border-radius: 4px; background: rgba(255,255,255,.22); position: relative; }
.bar > i { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: #2FA8FF; }
.bar.full > i { background: #34C759; }
.donedot { width: 22px; height: 22px; border-radius: 11px; background: #34C759; display: inline-flex; align-items: center; justify-content: center; margin-left: -14px; }
.addcard { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 18px; border-radius: 12px; border: 1px solid rgba(255,255,255,.3); background: rgba(40,56,72,.45); color: #fff; font-size: 17px; }
.addform { display: flex; gap: 8px; }
.addform input { flex: 1; min-width: 0; height: 46px; border-radius: 10px; border: 1px solid #2FA8FF; background: rgba(10,20,30,.7); color: #fff; padding: 0 12px; }
.empty-col { color: #B8C6D2; font-size: 14px; padding: 8px 6px; }
.soon { font-size: 12px; padding: 2px 7px; border-radius: 999px; background: rgba(255,255,255,.14); color: #D3DCE4; margin-left: 4px; }

/* ---------- Ficha (modal oscuro) ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(4,10,16,.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; }
.mdl { width: 100%; max-width: 880px; border-radius: 22px; background: rgba(16,30,44,.97); border: 1px solid rgba(110,170,220,.35); color: #fff;
  box-shadow: 0 30px 80px rgba(0,0,0,.55); overflow: hidden; display: flex; flex-direction: column; }
.mtop { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: rgba(28,48,66,.7); border-bottom: 1px solid rgba(255,255,255,.12); }
.mtop .spacer { flex: 1; }
.ibtn { width: 46px; height: 46px; border: none; border-radius: 10px; background: transparent; color: inherit; display: inline-flex; align-items: center; justify-content: center; }
.ibtn:hover { background: rgba(255,255,255,.08); }
.mhead { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 22px; padding: 22px 26px; }
.mthumb { position: relative; width: 190px; height: 134px; border-radius: 14px; overflow: hidden; flex: none; background: linear-gradient(135deg, #2a4258, #1b2c3c); display: flex; align-items: center; justify-content: center; color: #8FB4D3; }
.mthumb img { width: 100%; height: 100%; object-fit: cover; }
.minfo { flex: 1 1 300px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mtitle { font-size: 30px; font-weight: 700; letter-spacing: -.01em; background: transparent; border: 1px solid transparent; border-radius: 10px; padding: 2px 8px; margin-left: -9px; color: #fff; width: 100%; }
.mtitle:hover { border-color: rgba(255,255,255,.2); }
.mtitle:focus { border-color: #2FA8FF; outline: none; background: rgba(0,0,0,.2); }
.mmeta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: #E3EAF0; font-size: 17px; }
.mmeta span { display: inline-flex; align-items: center; gap: 8px; }
.mmeta .vs { width: 1px; height: 20px; background: rgba(255,255,255,.35); }
.stagesel { position: relative; display: inline-flex; align-items: center; height: 44px; border-radius: 12px; border: 1px solid rgba(70,160,240,.55); background: rgba(30,110,200,.38); }
.stagesel select { appearance: none; -webkit-appearance: none; height: 100%; background: transparent; border: none; color: #fff; font-size: 17px; font-weight: 500; padding: 0 40px 0 44px; }
.stagesel select option { color: #111; }
.stagesel .lead { position: absolute; left: 16px; color: #3BA8FF; pointer-events: none; display: flex; }
.stagesel .trail { position: absolute; right: 14px; pointer-events: none; display: flex; }
.movebtn { align-self: center; display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px; border-radius: 14px; border: 2px solid #2FA8FF; background: rgba(20,40,60,.6); color: #fff; font-size: 17px; font-weight: 500; }
.mrows { margin: 0 26px; border-top: 1px solid rgba(255,255,255,.16); }
.mrow { display: flex; align-items: center; gap: 18px; width: 100%; min-height: 64px; padding: 0 12px; border: none; border-bottom: 1px solid rgba(255,255,255,.14); background: transparent; color: #fff; text-align: left; }
.mrow:hover { background: rgba(255,255,255,.04); }
.mrow .rl { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: 18px; font-weight: 600; }
.mrow .rl small { font-size: 16px; font-weight: 400; color: #C2CDD6; }
.mrow .rv { font-size: 17px; color: #C2CDD6; }
.mrow .chev { transition: transform .15s; }
.mrow[aria-expanded="true"] .chev { transform: rotate(90deg); }
.rpanel { padding: 14px 12px 20px 64px; border-bottom: 1px solid rgba(255,255,255,.14); display: flex; flex-direction: column; gap: 14px; }
.dfield { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #C2CDD6; }
.dfield textarea, .dfield input, .dinput { background: rgba(6,14,22,.55); border: 1px solid rgba(255,255,255,.22); border-radius: 10px; padding: 10px 12px; color: #fff; font-size: 15px; line-height: 1.5; }
.dfield textarea { resize: vertical; min-height: 64px; }
.dfield textarea:focus, .dfield input:focus, .dinput:focus { border-color: #2FA8FF; outline: none; }
.clist { display: flex; flex-direction: column; gap: 4px; }
.citem { display: flex; align-items: center; gap: 12px; min-height: 40px; }
.citem input[type=checkbox] { width: 20px; height: 20px; accent-color: #2FA8FF; }
.citem span { flex: 1; }
.citem.done span { color: #9FB0BE; text-decoration: line-through; }
.inline { display: flex; gap: 8px; }
.inline .dinput { flex: 1; min-width: 0; }
.dbtn { height: 42px; padding: 0 16px; border-radius: 10px; border: 1px solid rgba(110,170,220,.55); background: rgba(20,40,60,.6); color: #fff; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 6px 0 12px; border-radius: 999px; background: rgba(47,140,230,.3); font-size: 14px; }
.tag button { width: 22px; height: 22px; border: none; background: transparent; color: #fff; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; }
.mfoot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 36px 26px 0; padding: 22px 0 24px; border-top: 1px solid rgba(255,255,255,.16); }
.mfoot .spacer { flex: 1; }
.aibtn { display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 24px 0 20px; border-radius: 16px; border: 1px solid rgba(110,170,220,.55); background: rgba(20,40,60,.55); color: #fff; font-size: 18px; font-weight: 600; }
.sendbtn { display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 32px; border-radius: 16px; border: none; background: linear-gradient(180deg, #2CA4FA, #1680E0); color: #fff; font-size: 19px; font-weight: 600; box-shadow: 0 8px 24px rgba(30,140,240,.4); }
.saved { font-size: 13px; color: #9FB0BE; }
.archive { color: #FFB4AB; }
.pubrow { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.pubrow a { color: #8CCBFF; }

/* ---------- Temas Publisher ---------- */
.theme[data-theme="day"] {
  --bg: #EEF2F4; --surface: #FFFFFF; --surface2: #F3F6F8; --text: #18242B; --text2: #55646C;
  --primary: #0B7F7C; --primary-hover: #086966; --on-primary: #FFFFFF; --primary-soft: #E1F4F2; --primary-soft-text: #0A6E6B;
  --border: #CBD5DA; --border-soft: #E3E9EC; --focus: #087C85; --shadow: 0 1px 4px rgba(20,40,50,.07);
  --ok: #1F8A4C; --warn: #8A5A00; --warn-bg: #FFF4DC; --err: #B3261E; --err-bg: #FDECEA; --info: #0B6E8A;
  --phone: #1C1C1E; color-scheme: light;
}
.theme[data-theme="night"] {
  --bg: #0D1014; --surface: #171C22; --surface2: #1E242C; --text: #F4F6F8; --text2: #B0BAC5;
  --primary: #F5A459; --primary-hover: #FFB46E; --on-primary: #18110C; --primary-soft: #2A2017; --primary-soft-text: #FFB46E;
  --border: #394653; --border-soft: #2A333D; --focus: #FFB46E; --shadow: 0 1px 4px rgba(0,0,0,.4);
  --ok: #6FD39A; --warn: #F2C24E; --warn-bg: #3A2A0E; --err: #FF8A80; --err-bg: #3A1714; --info: #8CC8FF;
  --phone: #000000; color-scheme: dark;
}
.theme { min-height: 100vh; background: var(--bg); color: var(--text); }
.theme :focus-visible { outline-color: var(--focus); }
.pub { padding: 12px 20px 28px; display: flex; flex-direction: column; gap: 14px; }
.card { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); }
.ptop { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ptop .spacer { flex: 1; }
.backlink { display: inline-flex; align-items: center; gap: 12px; height: 44px; padding: 0 16px 0 10px; border-radius: 12px; background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; box-shadow: var(--shadow); border: none; }
.themegrp { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.themegrp button { width: 44px; height: 40px; border: none; border-radius: 10px; background: transparent; color: var(--text); display: inline-flex; align-items: center; justify-content: center; }
.themegrp button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.navlinks { display: flex; gap: 4px; }
.navlinks a { padding: 10px 14px; border-radius: 10px; color: var(--text2); text-decoration: none; font-size: 15px; }
.navlinks a[aria-current="page"] { background: var(--primary-soft); color: var(--primary-soft-text); font-weight: 600; }

.phead { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 14px 20px; }
.pthumb { position: relative; width: 190px; height: 86px; border-radius: 10px; overflow: hidden; flex: none; background: var(--surface2); display: flex; align-items: center; justify-content: center; color: var(--text2); }
.pthumb video, .pthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pthumb .dur { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.65); color: #fff; font-size: 13px; font-weight: 600; padding: 1px 6px; border-radius: 5px; }
.pinfo { flex: 1 1 320px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ptitle { font-size: 24px; font-weight: 700; background: transparent; border: 1px solid transparent; border-radius: 8px; padding: 2px 8px; margin-left: -9px; color: var(--text); width: 100%; }
.ptitle:hover { border-color: var(--border); }
.ptitle:focus { border-color: var(--focus); outline: none; }
.pfrom { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pfrom a { display: inline-flex; align-items: center; gap: 6px; color: var(--text); text-decoration: none; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-soft-text); font-size: 14px; font-weight: 500; }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.err { background: var(--err-bg); color: var(--err); }
.psel { display: flex; flex-direction: column; gap: 6px; background: var(--surface2); border-radius: 12px; padding: 10px 14px; width: 260px; font-size: 13px; color: var(--text2); }
.psel select { border: none; background: transparent; color: var(--text); font-size: 16px; padding: 2px 0; }

.pgrid { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.pmain { flex: 999 1 760px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.pside { flex: 1 1 340px; max-width: 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.ntabs { display: flex; flex-wrap: wrap; gap: 10px; }
.ntab { display: flex; align-items: center; gap: 12px; min-width: 160px; height: 58px; padding: 0 16px; border-radius: 12px; border: none; background: var(--surface); color: var(--text); text-align: left; box-shadow: var(--shadow); }
.ntab .nl { display: flex; flex-direction: column; line-height: 1.25; }
.ntab .nl b { font-size: 16px; font-weight: 600; }
.ntab .nl small { font-size: 13.5px; color: var(--text2); }
.ntab[aria-selected="true"] { background: var(--primary); color: var(--on-primary); box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.ntab[aria-selected="true"] .nl small { color: var(--on-primary); opacity: .9; }
.ntab.off { opacity: .6; }
.ntab .st { width: 10px; height: 10px; border-radius: 5px; margin-left: auto; }
.st.ok { background: var(--ok); } .st.err { background: var(--err); } .st.warn { background: var(--warn); }
.nlogo { width: 32px; height: 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; }
.nlogo.instagram { background: linear-gradient(45deg, #F9C33C, #E1306C 55%, #8134AF); }
.nlogo.youtube { background: #FF0000; border-radius: 8px; }
.nlogo.facebook { background: #1877F2; border-radius: 16px; }
.nlogo.tiktok { background: #111; }
.nlogo.base { background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
.addnet { display: inline-flex; align-items: center; gap: 8px; height: 58px; padding: 0 18px; border-radius: 12px; border: 1px dashed var(--border); background: transparent; color: var(--text); }

.pcols { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.pcontent { flex: 999 1 440px; min-width: 0; padding: 20px 22px; display: flex; flex-direction: column; gap: 16px; }
.pcontent h2, .pside h2 { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 600; }
.field { display: flex; flex-direction: column; gap: 7px; }
.flabel { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.flabel .grow { flex: 1; }
.badge { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface2); color: var(--text2); }
.badge.custom { background: var(--warn-bg); color: var(--warn); }
.linkbtn { border: none; background: transparent; color: var(--primary-soft-text); font-size: 13.5px; padding: 6px 4px; }
.frow { display: flex; gap: 10px; align-items: flex-start; }
.inwrap { flex: 1; min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 10px; padding: 0 12px; background: var(--surface); }
.inwrap:focus-within { border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); }
.inwrap input, .inwrap textarea { border: none; outline: none; background: transparent; color: var(--text); font-size: 15px; padding: 11px 0; }
.inwrap textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.inwrap .cnt { align-self: flex-end; font-size: 13px; color: var(--text2); padding-bottom: 6px; }
.inwrap .cnt.over { color: var(--err); font-weight: 600; }
.inrow { flex-direction: row; align-items: center; gap: 10px; }
.inrow input { flex: 1; min-width: 0; }
.inrow .cnt { align-self: center; padding: 0; }
.aism { display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text2); font-weight: 600; }
.htags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.htag { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 6px 0 12px; border-radius: 8px; background: var(--primary-soft); color: var(--primary-soft-text); font-size: 14px; }
.htag button { width: 22px; height: 22px; border: none; background: transparent; color: inherit; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; }
.htagin { height: 32px; width: 150px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); padding: 0 10px; font-size: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.sfield { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.sfield select { height: 44px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); padding: 0 10px; font-weight: 400; }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--primary-soft); color: var(--text); font-size: 14.5px; }
.note.warn { background: var(--warn-bg); }
.note.err { background: var(--err-bg); color: var(--err); }
.divider { height: 1px; background: var(--border-soft); margin: 2px 0; }
.toggleline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.switch { width: 46px; height: 28px; border-radius: 14px; border: none; background: var(--border); position: relative; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 11px; background: #fff; transition: left .15s; }
.switch[aria-checked="true"] { background: var(--primary); }
.switch[aria-checked="true"]::after { left: 21px; }
.drop { border: 2px dashed var(--border); border-radius: 14px; padding: 26px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; color: var(--text2); }
.drop.over { border-color: var(--primary); background: var(--primary-soft); }
.progress { width: 100%; height: 8px; border-radius: 4px; background: var(--surface2); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--primary); }

.ppreview { flex: 1 1 320px; max-width: 380px; min-width: 0; padding: 14px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pvbar { align-self: stretch; display: flex; align-items: center; gap: 8px; background: var(--surface2); border-radius: 10px; padding: 10px 12px; font-size: 14px; font-weight: 600; }
.phone { position: relative; width: 262px; aspect-ratio: 9 / 18.6; border-radius: 40px; background: var(--phone); padding: 9px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.screen { position: relative; width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: #111; }
.screen video { width: 100%; height: 100%; object-fit: cover; display: block; }
.screen .ph-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #8a949c; font-size: 14px; text-align: center; padding: 20px; }
.ph-top { position: absolute; top: 14px; left: 16px; right: 16px; display: flex; justify-content: space-between; color: #fff; font-weight: 700; font-size: 17px; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.ph-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 50px 14px 16px; color: #fff; font-size: 12.5px; line-height: 1.4; background: linear-gradient(transparent, rgba(0,0,0,.65)); display: flex; flex-direction: column; gap: 6px; }
.ph-bottom b { font-size: 13.5px; }
.ph-title { font-weight: 700; font-size: 13.5px; }
.pvnote { font-size: 12.5px; color: var(--text2); text-align: center; margin: 0; }

.sidecard { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; }
.check .dot { width: 20px; height: 20px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex: none; margin-top: 1px; color: #fff; }
.check .dot.ok { background: var(--ok); } .check .dot.warn { background: var(--warn); } .check .dot.err { background: var(--err); } .check .dot.info { background: var(--info); }
.theme[data-theme="night"] .check .dot { color: #0D1014; }
.radio { display: flex; align-items: center; gap: 12px; font-size: 16px; min-height: 34px; }
.radio input { width: 20px; height: 20px; accent-color: var(--primary); }
.dt { display: flex; gap: 10px; }
.dt label { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.dt input { border: none; outline: none; background: transparent; color: var(--text); width: 100%; min-width: 0; }
.tz { font-size: 13px; color: var(--text2); }
.when { font-size: 14px; }
.when.err { color: var(--err); }
.btnp { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 54px; border-radius: 12px; border: none; background: var(--primary); color: var(--on-primary); font-size: 17px; font-weight: 600; padding: 0 20px; }
.btnp:hover:not(:disabled) { background: var(--primary-hover); }
.btns { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 50px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 16px; font-weight: 500; padding: 0 18px; }
.btnsm { height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 14px; }
.btnsm.p { background: var(--primary); border-color: var(--primary); color: var(--on-primary); font-weight: 600; }
.res { display: flex; flex-direction: column; gap: 10px; }
.resrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--border-soft); border-radius: 12px; }
.resrow.bad { border-color: var(--err); }
.resrow .rinfo { flex: 1 1 180px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.resrow .rinfo small { color: var(--text2); font-size: 13px; }
.spill { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--surface2); color: var(--text2); }
.spill.ok { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.spill.err { background: var(--err-bg); color: var(--err); }
.spill.warn { background: var(--warn-bg); color: var(--warn); }
.spill.info { background: color-mix(in srgb, var(--info) 16%, transparent); color: var(--info); }

/* Diálogo de confirmación (tema Publisher) */
.dlgwrap { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.dlg { width: min(560px, 100%); max-height: 90vh; overflow-y: auto; background: var(--surface); color: var(--text); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.dlg h2 { margin: 0; font-size: 22px; }
.dlg dl { margin: 0; display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; font-size: 15px; }
.dlg dt { color: var(--text2); }
.dlg dd { margin: 0; }
.dlg .acts { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.netpick { display: flex; flex-direction: column; gap: 6px; }
.netpick label { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.netpick input { width: 18px; height: 18px; accent-color: var(--primary); }

/* Agenda */
.agenda { display: flex; flex-direction: column; gap: 18px; }
.aday h2 { margin: 0 0 10px; font-size: 17px; color: var(--text2); font-weight: 600; text-transform: capitalize; }
.aitem { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); color: var(--text); text-decoration: none; margin-bottom: 8px; }
.aitem .t { width: 72px; font-weight: 600; }
.aitem .grow { flex: 1 1 200px; min-width: 0; }

@media (max-width: 700px) {
  .boards { padding: 16px; }
  .bh h1 { font-size: 30px; }
  .bh .sep, .btool .vsep { display: none; }
  .gsel, .gsearch { min-width: 0; width: 100%; }
  .seg { width: 100%; overflow-x: auto; }
  .seg button { padding: 0 14px; font-size: 15px; }
  .cols { flex-direction: column; }
  .col { flex: none; min-width: 0; min-height: 0; }
  .overlay { padding: 0; }
  .mdl { border-radius: 0; min-height: 100vh; }
  .mhead { padding: 18px 16px; }
  .mrows, .mfoot { margin-left: 16px; margin-right: 16px; }
  .rpanel { padding-left: 12px; }
  .mtitle { font-size: 24px; }
  .pub { padding: 10px 12px 24px; }
  .psel { width: 100%; }
  .ntab { min-width: 0; flex: 1 1 140px; }
  .ppreview { max-width: none; }
  .pside { max-width: none; }
}
