/* NLL Marketing app, SUBMIT tab (Andrew 2026-11-30 "build submit"). Loaded after marketing.css. The screen is one more .ads-screen inside the ads section (so the Facebook preview takes SWIPE's post styles);
   the frame stays black, white and orange #f26522, Montserrat for labels, Inter for what people type. Phone first: one column that scrolls inside the panel; two columns from 900 px. */
.mk-tabs[data-n="4"] { grid-template-columns: repeat(4, 1fr) }
.mk-tabs[data-n="2"] { grid-template-columns: repeat(2, 1fr) }
.mk-tabs[data-n="4"] button { font-size: 10px; letter-spacing: .04em }

#tab-ads [data-ads-s="submit"]:not([hidden]) { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 2px 2px 28px }
#tab-ads .sb .ads-h { font: 900 22px/1.15 var(--display); color: #fff; margin: 4px 0 4px }
#tab-ads .sb .ads-sub { font: 14px/1.4 var(--body); color: var(--muted); margin: 0 0 12px }
#tab-ads .sb-cols { display: flex; flex-direction: column; gap: 18px }
#tab-ads .sb-form { display: flex; flex-direction: column; gap: 6px; background: var(--panel2); border: 3px solid #000; box-shadow: 4px 4px 0 #000; padding: 14px 14px 16px }
#tab-ads .sb-l { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 8px; font: 800 12px/1.3 var(--display); letter-spacing: .06em; text-transform: uppercase; color: #fff }
#tab-ads .sb-l small { flex-basis: 100%; font: 12px/1.3 var(--body); letter-spacing: 0; text-transform: none; color: var(--muted); font-weight: 400 }
#tab-ads .sb-count { font: 700 12px var(--display); letter-spacing: 0; color: var(--muted); white-space: nowrap }
#tab-ads .sb-count.sb-over { color: #ff4d6d }
#tab-ads .sb-form textarea, #tab-ads .sb-form input[type="text"], #tab-ads .sb-form input:not([type]) { width: 100%; box-sizing: border-box; font: 16px/1.4 var(--body); padding: 11px 12px; background: #000; color: #fff; border: 2px solid var(--brand); border-radius: 0; resize: vertical }
#tab-ads .sb-form textarea { min-height: 120px }
#tab-ads .sb-form .sb-invalid { border-color: #ff4d6d }
#tab-ads .sb-form ::placeholder { color: #8d84b3 }
#tab-ads .sb-form :focus-visible { outline: 3px solid #fff; outline-offset: 1px }
#tab-ads .sb-pick { display: flex; align-items: center; gap: 12px; min-width: 0 }
#tab-ads .sb-pickbtn { all: unset; box-sizing: border-box; cursor: pointer; flex: none; padding: 12px 16px; min-height: 48px; font: 800 13px var(--display); background: var(--brand); color: #000; border: 3px solid #000; box-shadow: 3px 3px 0 #000 }
#tab-ads .sb-pickbtn:focus-visible { outline: 3px solid #fff; outline-offset: 2px }
#tab-ads .sb-fname { font: 14px var(--body); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0 }
#tab-ads .sb-tg { display: flex; align-items: center; gap: 10px; margin-top: 12px; font: 700 15px/1.3 var(--body); color: #fff; cursor: pointer; min-height: 44px }
#tab-ads .sb-tg input { width: 22px; height: 22px; accent-color: var(--brand); flex: none }
#tab-ads .sb-err { margin: 0; padding: 7px 10px; font: 600 14px/1.35 var(--body); color: #fff; background: #3a0d1a; border-left: 4px solid #ff4d6d }
#tab-ads .sb-err[hidden], #tab-ads .sb-status[hidden], #tab-ads [data-sb-hookbox][hidden] { display: none }
#tab-ads .sb-rules { margin: 8px 0 0; font: 13px/1.4 var(--body); color: var(--muted) }
#tab-ads .sb-status { margin: 6px 0 0; padding: 8px 10px; font: 600 14px/1.35 var(--body); color: #fff; border: 2px solid var(--cyan) }
#tab-ads .sb-status.sb-bad { border-color: #ff4d6d }
#tab-ads .sb-send { all: unset; box-sizing: border-box; cursor: pointer; display: block; width: 100%; text-align: center; margin-top: 10px; padding: 14px 6px; min-height: 52px; font: 900 15px var(--display); letter-spacing: .04em; background: var(--brand); color: #000; border: 3px solid #000; box-shadow: 4px 4px 0 #000 }
#tab-ads .sb-send[disabled] { opacity: .45; cursor: not-allowed }
#tab-ads .sb-send:focus-visible { outline: 3px solid #fff; outline-offset: 2px }

/* the preview: the white Facebook post at its real feed width, not scaled (SWIPE's fit code does not run here) */
#tab-ads .sb-prev { min-width: 0 }
#tab-ads .sb-prevh, #tab-ads .sb-mineh { margin: 0 0 8px; font: 800 12px/1.3 var(--display); letter-spacing: .08em; color: var(--brand) }
#tab-ads .sb-frame .ads-fit { position: static; width: 100%; max-width: 380px; margin: 0 auto }
#tab-ads .sb-frame .ads-fit .fb-post { position: static; width: 100%; transform: none }
#tab-ads .sb-frame .fb-rx { display: flex }
#tab-ads .sb-frame .fb-pt.sb-ph { color: #8a8d91 }
#tab-ads .sb-frame .fb-img .ads-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
/* the hook as it will print on the picture: dark band at the foot, white lead, orange accent, the small wordmark (compose.ts does the real one) */
#tab-ads .sb-band { position: absolute; left: 0; right: 0; bottom: 0; padding: 38px 16px 12px; background: linear-gradient(to top, rgba(0, 0, 0, .86) 0%, rgba(0, 0, 0, .8) 62%, rgba(0, 0, 0, 0) 100%); display: flex; flex-direction: column; gap: 6px }
#tab-ads .sb-hook { font: 800 21px/1.14 var(--display); color: #fff }
#tab-ads .sb-acc { color: #f26522 }
#tab-ads .sb-mark { align-self: flex-end; font: 700 10px var(--display); font-style: normal; color: #ffffffcc }

/* picture ad or video ad, the video picker, the cover frame, the upload bar */
#tab-ads .sb-kind { display: grid; grid-template-columns: 1fr 1fr; gap: 8px }
#tab-ads .sb-kindbtn { all: unset; box-sizing: border-box; cursor: pointer; text-align: center; padding: 12px 6px; min-height: 48px; font: 800 13px var(--display); letter-spacing: .05em; color: #fff; background: #000; border: 3px solid #000; box-shadow: 3px 3px 0 #000 }
#tab-ads .sb-kindbtn[aria-pressed="true"] { background: var(--brand); color: #000 }
#tab-ads .sb-kindbtn:focus-visible { outline: 3px solid #fff; outline-offset: 2px }
#tab-ads [data-sb-videobox][hidden], #tab-ads .sb-scrub[hidden], #tab-ads .sb-prog[hidden] { display: none }
#tab-ads .sb-scrub { display: flex; flex-direction: column; gap: 8px }
#tab-ads .sb-scrubv { width: 100%; max-height: 220px; background: #000; object-fit: contain; border: 2px solid var(--brand) }
#tab-ads .sb-scrub input[type="range"] { width: 100%; min-height: 36px; accent-color: var(--brand) }
#tab-ads .sb-grab { align-self: flex-start }
#tab-ads .sb-prog { width: 100%; height: 14px; accent-color: var(--brand) }
#tab-ads .sb-cover { margin: 14px auto 0; max-width: 380px }
#tab-ads .sb-coverh { margin: 0 0 6px; font: 800 11px/1.3 var(--display); letter-spacing: .08em; color: var(--muted) }
#tab-ads .sb-coverbox { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #e4e6eb }
#tab-ads .sb-coverbox .ads-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
#tab-ads .sb-coverbox .ads-soon { top: 50%; left: 50%; transform: translate(-50%, -50%) }
#tab-ads .sb-vtag { font: 800 10px var(--display); letter-spacing: .06em; color: #000; background: var(--brand); padding: 2px 5px; border-radius: 2px }

/* my submissions */
#tab-ads .sb-mine { min-width: 0; margin-top: 22px }
#tab-ads .sb-none { margin: 0; padding: 14px; font: 14px/1.4 var(--body); color: var(--muted); background: var(--panel2); border: 2px dashed #3b2f6b }
#tab-ads .sb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px }
#tab-ads .sb-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; padding: 10px 12px; background: var(--panel2); border: 2px solid #000; border-left: 6px solid var(--muted); box-shadow: 3px 3px 0 #000 }
#tab-ads .sb-item.sb-queued { border-left-color: var(--cyan) }
#tab-ads .sb-item.sb-making, #tab-ads .sb-item.sb-redo { border-left-color: var(--yellow) }
#tab-ads .sb-item.sb-approved, #tab-ads .sb-item.sb-live { border-left-color: var(--green) }
#tab-ads .sb-item.sb-passed { border-left-color: #ff4d6d }
#tab-ads .sb-code { font: 800 12px var(--display); color: var(--brand); align-self: baseline }
#tab-ads .sb-hl { font: 700 15px/1.3 var(--body); color: #fff; overflow-wrap: anywhere }
#tab-ads .sb-st { grid-column: 1 / -1; font: 800 13px/1.3 var(--display); color: #fff }
#tab-ads .sb-note { grid-column: 1 / -1; font: 14px/1.4 var(--body); color: var(--muted); overflow-wrap: anywhere }
#tab-ads .sb-day { grid-column: 1 / -1; font: 12px var(--body); color: var(--dim) }

@media (min-width: 900px) {
  #tab-ads [data-ads-s="submit"]:not([hidden]) { padding: 2px 6px 36px }
  #tab-ads .sb .ads-h { font-size: 30px }
  #tab-ads .sb .ads-sub { font-size: 16px }
  #tab-ads .sb-cols { display: grid; grid-template-columns: minmax(420px, 560px) minmax(320px, 420px); column-gap: 36px; align-items: start }
  #tab-ads .sb-mine { margin-top: 26px; max-width: 560px }
  #tab-ads .sb-form textarea, #tab-ads .sb-form input:not([type="checkbox"]) { font-size: 17px }
  #tab-ads .sb-send { max-width: 360px }
}
