:root {
  --red: #e12828;
  --red-d: #b81e1e;
  --red-t: #fdecec;
  --bg: #ffffff;
  --surf: #f6f6f6;
  --text: #141414;
  --sub: #5c5c5c;
  --faint: #8a8a8a;
  --line: #e8e8e8;
  --dis: #c9c9c9;
  --ok: #1e7d45;
  --warn: #9a6400;
  --serif: "Fraunces", "Noto Serif Malayalam", "Noto Serif Tamil", Georgia,
    serif;
  --sans: "Inter", "Noto Sans Malayalam", "Noto Sans Tamil", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f0f;
    --surf: #1a1a1a;
    --text: #f2f2f2;
    --sub: #b4b4b4;
    --faint: #8a8a8a;
    --line: #2a2a2a;
    --red-t: #3a1414;
  }
}
* {
  box-sizing: border-box;
}
html,
body,
#root {
  height: 100%;
  margin: 0;
}
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
a {
  color: inherit;
}
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.btn {
  border: 0;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 12px;
}
.btn:disabled {
  background: var(--dis);
}
.btn.ghost {
  background: none;
  border: 1.5px solid var(--line);
  color: var(--text);
  font-weight: 600;
}
.btn.k {
  background: var(--text);
  color: var(--bg);
}
.btn.sm {
  padding: 6px 10px;
  font-size: 0.8rem;
  border-radius: 8px;
}
.btn.full {
  width: 100%;
}
.b {
  border: 0;
  background: var(--surf);
  border-radius: 8px;
  padding: 6px 10px;
  margin: 2px;
  font-size: 0.8rem;
  font-weight: 600;
}
.b.p {
  background: var(--red);
  color: #fff;
}
.b.k {
  background: var(--text);
  color: var(--bg);
}
.b:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.field {
  width: 100%;
  padding: 12px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  margin: 6px 0;
}
.st {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--surf);
  white-space: nowrap;
}
.st.published,
.st.completed,
.st.active,
.st.ok,
.st.approved,
.st.valid,
.st.imported {
  background: #e5f4eb;
  color: var(--ok);
}
.st.changes_requested,
.st.failed,
.st.error,
.st.rejected,
.st.trashed,
.st.unsupported {
  background: var(--red-t);
  color: var(--red);
}
.st.scheduled,
.st.submitted,
.st.pending,
.st.duplicate,
.st.draft,
.st.processing,
.st.suggested {
  background: #fff3dc;
  color: var(--warn);
}
.note {
  color: var(--faint);
  font-size: 0.8rem;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%);
  background: var(--text);
  color: var(--bg);
  padding: 11px 18px;
  border-radius: 12px;
  z-index: 9999;
  font-size: 0.88rem;
  max-width: 90vw;
  box-shadow: 0 8px 24px #0003;
}
.chip {
  border: 1.5px solid var(--line);
  background: none;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 0.85rem;
}
.chip.on {
  border-color: var(--red);
  background: var(--red-t);
  color: var(--red);
}
.choice {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
}
.choice button {
  border: 1.5px solid var(--line);
  background: var(--bg);
  border-radius: 14px;
  padding: 14px 6px;
  font-weight: 600;
}
.choice .on {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-t);
}
.sw {
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: var(--dis);
  position: relative;
  flex: none;
  border: 0;
}
.sw:after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: 0.2s;
}
.sw.on {
  background: var(--red);
}
.sw.on:after {
  left: 21px;
}
.opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.opt small {
  display: block;
  color: var(--faint);
  font-size: 0.78rem;
}
.adtag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #fff;
  color: #141414;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 4px;
  box-shadow: 0 1px 4px #0003;
  z-index: 2;
}
.rd {
  height: 100%;
  display: flex;
  flex-direction: column;
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  padding-top: env(safe-area-inset-top);
}
.rd-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px 6px;
}
.rd-hd img {
  height: 30px;
  border-radius: 4px;
}
.rd-hd .sp {
  flex: 1;
}
.pill {
  border: 0;
  background: var(--surf);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pill.red {
  background: var(--red-t);
  color: var(--red);
}
.seg {
  display: flex;
  background: var(--surf);
  border-radius: 999px;
  padding: 3px;
}
.seg button {
  border: 0;
  background: none;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sub);
}
.seg .on {
  background: var(--bg);
  color: var(--red);
  box-shadow: 0 1px 3px #0002;
}
.fchips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 16px 6px;
  font-size: 0.74rem;
}
.fchips span {
  background: var(--red-t);
  color: var(--red);
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 600;
}
.fchips button {
  border: 0;
  background: none;
  color: var(--sub);
  text-decoration: underline;
  font-size: 0.74rem;
}
.tabs {
  display: flex;
  gap: 18px;
  padding: 2px 16px 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
  display: none;
}
.tabs button {
  border: 0;
  background: none;
  padding: 10px 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--faint);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tabs .on {
  color: var(--text);
  border-color: var(--red);
}
.stage {
  flex: 1;
  position: relative;
  perspective: 1800px;
  overflow: hidden;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
.pg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  transform-origin: 50% 0;
  will-change: transform;
  backface-visibility: hidden;
}
.pg .ph {
  flex: none;
  height: 44%;
  position: relative;
  overflow: hidden;
  background: var(--surf);
}
.pg .ph img,
.pg .ph video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pg .ph .art {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  place-items: center;
  font-size: 4.5rem;
  color: #fff;
}
.shade {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  background: linear-gradient(#000, #0000 70%);
  opacity: 0;
  z-index: 3;
}
.shade.b {
  background: linear-gradient(#0000 30%, #000);
}
.pg .tx {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 8px;
  overscroll-behavior: contain;
}
.kick {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sub);
  flex-wrap: wrap;
}
.kick .loc {
  color: var(--red);
}
.brk {
  background: var(--red);
  color: #fff;
  padding: 2px 7px;
  border-radius: 4px;
}
.pg h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.38rem;
  line-height: 1.32;
  margin: 10px 0;
}
.pg p {
  font-size: 1rem;
  line-height: 1.72;
  margin: 0 0 12px;
}
.by {
  font-size: 0.78rem;
  color: var(--faint);
}
.corr {
  border-left: 3px solid var(--red);
  padding: 6px 10px;
  background: var(--red-t);
  font-size: 0.86rem;
  border-radius: 0 6px 6px 0;
}
.bar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 12px 8px;
  border-top: 1px solid var(--line);
  flex: none;
}
.ic {
  border: 0;
  background: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--sub);
}
.ic:active {
  background: var(--surf);
  transform: scale(0.92);
}
.ic.on {
  color: var(--red);
}
.ic svg {
  width: 21px;
  height: 21px;
}
.read {
  margin-left: auto;
  border: 0;
  background: var(--text);
  color: var(--bg);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.85rem;
}
.adpg {
  background: var(--surf);
}
.adpg .ph {
  height: 66%;
  background: #111;
}
.adpg .tx {
  background: var(--surf);
}
.adpg .cta {
  border: 1.5px solid var(--text);
  background: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
}
.adbtn {
  position: absolute;
  bottom: 12px;
  border: 0;
  background: #000b;
  color: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.78rem;
  z-index: 2;
}
.rd-nav {
  display: flex;
  border-top: 1px solid var(--line);
  padding: 4px 6px calc(4px + env(safe-area-inset-bottom));
}
.rd-nav button {
  flex: 1;
  border: 0;
  background: none;
  padding: 6px 0;
  color: var(--faint);
  font-size: 0.66rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.rd-nav svg {
  width: 22px;
  height: 22px;
}
.rd-nav .on,
.rd-nav .ai {
  color: var(--red);
}
.rd-nav .ai .dot {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.6rem;
  font-weight: 800;
}
.keys {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 20;
}
.keys button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: var(--bg);
  box-shadow: 0 2px 10px #0002;
  color: var(--sub);
}
.ov {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--bg);
  z-index: 50;
  display: flex;
  flex-direction: column;
}
.ov .in {
  flex: 1;
  overflow: auto;
  padding: 18px 20px 30px;
}
.ov h1 {
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1.25;
  margin: 6px 0 12px;
}
.ov h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  margin: 22px 0 8px;
}
.back {
  border: 0;
  background: none;
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.rl button {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  padding: 13px 2px;
  text-align: left;
}
.rl small {
  color: var(--faint);
}
.empty {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  color: var(--sub);
  gap: 8px;
}
.empty b {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--text);
}
.skel {
  background: linear-gradient(90deg, var(--surf), var(--line), var(--surf));
  background-size: 200%;
  animation: sk 1.2s infinite;
  border-radius: 8px;
}
@keyframes sk {
  to {
    background-position: -200% 0;
  }
}
.social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.social a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
}
.social svg {
  width: 18px;
  height: 18px;
}
.chat {
  flex: 1;
  overflow: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.msg {
  max-width: 88%;
  padding: 11px 14px;
  border-radius: 16px;
  line-height: 1.55;
  white-space: pre-wrap;
  font-size: 0.95rem;
}
.msg.u {
  align-self: flex-end;
  background: var(--text);
  color: var(--bg);
  border-bottom-right-radius: 4px;
}
.msg.a {
  align-self: flex-start;
  background: var(--surf);
  border-bottom-left-radius: 4px;
}
.srcs {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.src {
  display: flex;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  text-align: left;
  width: 100%;
}
.src .th {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  flex: none;
  background: var(--red-t);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.src .th img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.src b {
  font-size: 0.86rem;
  line-height: 1.35;
  display: block;
}
.composer {
  display: flex;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}
.composer input {
  flex: 1;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 11px 16px;
  background: var(--bg);
}
.composer button {
  border: 0;
  background: var(--red);
  color: #fff;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 700;
}
.understood {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.understood span {
  font-size: 0.7rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
  color: var(--sub);
}
.dash {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}
.dash aside {
  width: 236px;
  border-right: 1px solid var(--line);
  padding: 16px 10px;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}
.dash aside img {
  width: 180px;
  border-radius: 6px;
  margin: 0 6px 14px;
}
.dash aside .grp {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
  padding: 12px 12px 4px;
}
.dash aside a {
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--sub);
  text-decoration: none;
}
.dash aside a:hover {
  background: var(--surf);
}
.dash aside a.on {
  background: var(--red-t);
  color: var(--red);
  font-weight: 600;
}
.dash main {
  flex: 1;
  padding: 22px 28px 60px;
  min-width: 0;
}
.dash h1 {
  font-family: var(--serif);
  font-size: 1.6rem;
  margin: 0 0 4px;
}
.lede {
  color: var(--sub);
  margin: 0 0 16px;
  font-size: 0.9rem;
  max-width: 900px;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.kpi {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}
.kpi b {
  font-family: var(--serif);
  font-size: 1.8rem;
  display: block;
}
.kpi span {
  font-size: 0.8rem;
  color: var(--sub);
}
.tw {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}
table.t {
  width: 100%;
  border-collapse: collapse;
}
.t td,
.t th {
  padding: 9px 11px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 0.84rem;
  vertical-align: top;
}
.t th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sub);
  background: var(--surf);
}
.t tr:last-child td {
  border-bottom: 0;
}
.t tr.sel {
  background: var(--red-t);
}
.fm {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 16px;
}
.fm .w {
  grid-column: 1/-1;
}
.fm label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--sub);
  display: block;
  margin-bottom: 4px;
}
.fm input:not([type="checkbox"]):not([type="radio"]),
.fm select,
.fm textarea,
.fbar input,
.fbar select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg);
  font-size: 0.88rem;
}
.fbar {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  margin-bottom: 8px;
}
.fbar label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--sub);
}
.factive {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.84rem;
}
.factive .st b {
  cursor: pointer;
  margin-left: 4px;
}
.sum {
  background: var(--surf);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.86rem;
  line-height: 1.6;
}
.warnbox {
  background: #fff3dc;
  color: #5a3a00;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #0007;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal > div {
  background: var(--bg);
  border-radius: 16px;
  max-width: 640px;
  width: 100%;
  padding: 22px;
  max-height: 92vh;
  overflow: auto;
}
.modal h2 {
  font-family: var(--serif);
  margin: 0 0 10px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.grid3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.perm td,
.perm th {
  text-align: center;
}
.perm td:first-child,
.perm th:first-child {
  text-align: left;
}
.login {
  max-width: 380px;
  margin: 8vh auto;
  text-align: center;
  padding: 0 16px;
}
.login img {
  width: 250px;
  max-width: 80%;
}
.login h2 {
  font-family: var(--serif);
  margin: 10px 0 4px;
}
.prog {
  height: 6px;
  background: var(--line);
  border-radius: 3px;
  overflow: hidden;
}
.prog i {
  display: block;
  height: 6px;
  background: var(--red);
}
.mob-top {
  display: none;
}
@media (max-width: 860px) {
  .dash {
    flex-direction: column;
  }
  .dash aside {
    position: static;
    height: auto;
    width: auto;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 8px;
  }
  .dash aside .grp,
  .dash aside img {
    display: none;
  }
  .dash aside a {
    flex: none;
  }
  .dash main {
    padding: 16px;
  }
  .split {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pg {
    transition: opacity 0.2s !important;
  }
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.av {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.3rem;
  overflow: hidden;
}
.av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
span.ok {
  color: var(--ok);
  font-weight: 600;
}
span.warn {
  color: #9a6200;
  font-weight: 600;
}
.rl a {
  display: flex;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}
.pv {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.pv-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: #141414;
  color: #fff;
  font-size: 0.8rem;
  flex: none;
  flex-wrap: wrap;
}
.pv-bar .note {
  color: #aaa;
}
.pv-bar a {
  color: #ddd;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.pv-bar a.on {
  background: var(--red);
  color: #fff;
}
.pv-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  position: relative;
}
.pv-body .dash {
  min-height: 100%;
}
@media (min-width: 861px) {
  .pv-body .dash aside {
    height: auto;
    min-height: 100%;
    position: sticky;
    top: 0;
    max-height: 100%;
  }
}
.rd {
  overflow: hidden;
}
.rd-hd {
  min-width: 0;
}
.rd-hd .pill {
  min-width: 0;
  flex-shrink: 1;
}
.rd .chat {
  padding-bottom: 16px;
}
.msg {
  word-break: break-word;
}
.src b {
  display: block;
  line-height: 1.35;
  font-size: 0.9rem;
}
.src .note {
  display: block;
}
.rl button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rl small {
  flex: none;
  max-width: 45%;
  text-align: right;
}
.ov .in {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
}
.fm > * {
  min-width: 0;
}
.fm select[multiple] {
  padding: 4px;
}
.modal > div {
  max-height: 92vh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.t td {
  overflow-wrap: anywhere;
}
.t td:last-child {
  white-space: nowrap;
}
.factive select {
  max-width: 180px;
}
@media (min-width: 900px) {
  .rd {
    max-width: 1180px;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }
  .rd-hd {
    padding: 16px 28px 8px;
  }
  .rd-hd img {
    height: 38px;
  }
  .fchips,
  .tabs {
    padding-left: 28px;
    padding-right: 28px;
  }
  .pg {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .pg .ph {
    height: auto;
    width: 56%;
    flex: none;
  }
  .pg .tx {
    width: 44%;
    flex: 1;
    padding: 36px 40px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .pg h2 {
    font-size: 2rem;
    line-height: 1.22;
  }
  .pg p {
    font-size: 1.08rem;
  }
  .pg .bar {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 44%;
    background: var(--bg);
  }
  .adpg .ph {
    height: auto;
  }
  .rd-nav {
    justify-content: center;
    gap: 24px;
  }
  .rd-nav button {
    flex: 0 0 96px;
  }
  .ov .in {
    padding: 32px 40px 60px;
  }
  .ov h1 {
    font-size: 2.2rem;
  }
}
@media (min-width: 600px) and (max-width: 899px) {
  .rd {
    max-width: 760px;
  }
  .pg .ph {
    height: 50%;
  }
  .pg h2 {
    font-size: 1.6rem;
  }
}
@media (max-width: 360px) {
  .rd-hd img {
    height: 24px;
  }
  .pill {
    max-width: 110px;
    padding: 6px 9px;
  }
  .seg button {
    padding: 6px 8px;
  }
  .rd-nav button {
    font-size: 0.6rem;
  }
}
@media (max-width: 860px) {
  .dash main {
    padding: 16px 14px 60px;
  }
  .dash h1 {
    font-size: 1.35rem;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .kpi b {
    font-size: 1.4rem;
  }
  .modal {
    padding: 0;
    align-items: flex-end;
  }
  .modal > div {
    border-radius: 18px 18px 0 0;
    max-height: 94vh;
    padding: 18px;
  }
}
@media (max-width: 700px) {
  .pv-bar {
    padding: 4px 8px;
    gap: 4px;
    font-size: 0.72rem;
  }
  .pv-bar .note,
  .pv-bar b,
  .pv-bar span {
    display: none;
  }
  .pv-bar a {
    flex: 1;
    text-align: center;
    padding: 5px 6px;
  }
}
.rb {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 980;
  background: #000d;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rb-card {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #111;
}
@media (min-width: 900px) {
  .rb-card {
    width: min(760px, 90%);
    height: min(560px, 86%);
    border-radius: 18px;
    box-shadow: 0 30px 80px #0008;
  }
}
.keys {
  top: 12px;
  bottom: auto;
}
@media (hover: none) {
  .keys {
    display: none;
  }
}
@media (max-width: 1000px) {
  .pv-bar .note {
    display: none;
  }
}
.fbtoggle {
  display: none;
}
.t a {
  text-decoration: none;
}
.t a:hover b {
  color: var(--red);
}
@media (max-width: 860px) {
  .dash aside {
    align-items: center;
  }
  .dash aside a {
    white-space: nowrap;
  }
  .fbtoggle {
    display: inline-block;
    margin-bottom: 8px;
  }
  .fbar {
    display: none;
  }
  .fbar.open {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .factive {
    font-size: 0.78rem;
  }
}
.counter {
  display: inline-block;
  min-width: 30px;
  text-align: center;
  background: var(--red-t);
  color: var(--red);
  border-radius: 999px;
  padding: 2px 8px;
}
.wa {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  height: 560px;
  max-height: 75vh;
  background: #efe7dd;
}
.wa-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #075e54;
  color: #fff;
  padding: 10px 12px;
}
.wa-hd input {
  width: 150px;
  border: 0;
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 0.8rem;
  background: #ffffff26;
  color: #fff;
}
.wa-av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--red);
  display: grid;
  place-items: center;
  font-weight: 800;
}
.wa-body {
  flex: 1;
  overflow: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wa-sys {
  align-self: center;
  background: #fff3c4;
  color: #5a4a00;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 8px;
}
.wa-msg {
  align-self: flex-start;
  max-width: 84%;
  background: #fff;
  color: #141414;
  border-radius: 0 10px 10px;
  padding: 7px 10px;
  box-shadow: 0 1px 1px #0002;
  font-size: 0.86rem;
}
.wa-msg.me {
  align-self: flex-end;
  background: #dcf8c6;
  border-radius: 10px 0 10px 10px;
}
.wa-txt {
  white-space: pre-wrap;
  word-break: break-word;
}
.wa-btns {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
}
.wa-btns button,
.wa-list button {
  border: 0;
  border-top: 1px solid #eee;
  background: #fff;
  color: #0a7cff;
  padding: 7px;
  font-weight: 600;
  font-size: 0.84rem;
}
.wa-btns button:disabled,
.wa-list button:disabled {
  color: #9bb;
  cursor: default;
}
.wa-list summary {
  color: #0a7cff;
  font-weight: 600;
  cursor: pointer;
  margin-top: 6px;
}
.wa-list button {
  display: block;
  width: 100%;
  text-align: left;
}
.wa-in {
  display: flex;
  gap: 6px;
  padding: 8px;
  background: #f0f0f0;
}
.wa-in input {
  flex: 1;
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  background: #fff;
  color: #141414;
}
.wa-in button {
  border: 0;
  background: #075e54;
  color: #fff;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  flex: none;
}
.wa-log {
  max-height: 420px;
  overflow: auto;
  background: #efe7dd;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.wa-b {
  max-width: 85%;
  background: #fff;
  color: #141414;
  border-radius: 8px;
  padding: 6px 9px;
  font-size: 0.8rem;
  white-space: pre-wrap;
}
.wa-b.in {
  align-self: flex-end;
  background: #dcf8c6;
}
.wa-b small {
  display: block;
  color: #888;
  font-size: 0.65rem;
  margin-top: 2px;
}
.dash-top {
  display: flex;
  justify-content: flex-end;
  margin: -6px 0 6px;
}
.bell {
  position: relative;
}
.bell .dot {
  background: var(--red);
  color: #fff;
  border-radius: 999px;
  font-size: 0.65rem;
  padding: 1px 6px;
  margin-left: 4px;
}
.bell-pop {
  position: absolute;
  right: 0;
  top: 36px;
  width: min(340px, 90vw);
  max-height: 420px;
  overflow: auto;
  z-index: 800;
  box-shadow: 0 12px 30px #0002;
}
.bell-pop a {
  display: block;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: 0.84rem;
}
.bell-pop a.unread {
  background: var(--red-t);
}
.bell-pop small {
  display: block;
  color: var(--faint);
}
.split > * {
  min-width: 0;
}
.wa-hd input {
  width: min(150px, 38vw);
  min-width: 0;
}
.wa-hd > div {
  min-width: 0;
}
.logo-sq {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
}
.soc {
  display: inline-flex;
  gap: 3px;
  margin-left: 6px;
  vertical-align: middle;
}
.soc span {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
  background: #bbb;
}
.soc .soc-facebook.posted {
  background: #1877f2;
}
.soc .soc-instagram.posted {
  background: #dd2a7b;
}
.soc .failed {
  background: var(--red);
}
.soc .queued,
.soc .posting {
  background: #e0a100;
}
.fbcard {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 6px;
}
.fbcard img,
.fbimg {
  width: 100%;
  aspect-ratio: 1.91/1;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: var(--surf);
  font-size: 3rem;
}
.metabtn {
  background: #1877f2 !important;
  color: #fff !important;
}
input[type="file"] {
  max-width: 100%;
}
.dash .seg {
  flex-wrap: wrap;
  max-width: 100%;
}
.dash main {
  overflow-x: hidden;
}
code {
  overflow-wrap: anywhere;
}
.counter.ok {
  background: #e5f4eb;
  color: var(--ok);
}
.kpi.conf {
  background: #fff8e6;
  border-color: #f0d58a;
}
.t td {
  overflow-wrap: normal;
  word-break: normal;
}
.t td .note,
.t td a {
  overflow-wrap: anywhere;
}
.t td:has(> b.counter),
.t th {
  white-space: nowrap;
}
.vbtn {
  font-size: 0.72rem;
}
.vchip {
  border: 0;
  border-radius: 999px;
  padding: 3px 9px;
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
  margin-left: 4px;
}
.v-good {
  background: #e5f4eb;
  color: var(--ok);
}
.v-mid {
  background: #fff3dc;
  color: var(--warn);
}
.v-bad {
  background: var(--red-t);
  color: var(--red);
}
.vgauge {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 6px auto 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  padding-top: 36px;
  border: 8px solid currentColor;
  background: none;
}
.vgauge b {
  font-size: 2.2rem;
  font-family: var(--serif);
}
.vgauge span {
  font-size: 0.8rem;
  margin-left: 2px;
}
@media (min-width: 861px) {
  .bc-side {
    position: sticky;
    top: 0;
    align-self: start;
  }
}
.netad {
  position: relative;
  width: 100%;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}
.netad-page {
  height: 100%;
  padding: 56px 18px 18px;
  background: var(--bg);
}
.netad-roadblock {
  width: 100%;
  height: 100%;
  padding: 60px 16px 16px;
}
.netad-box {
  width: 100%;
  min-height: 100px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.netad-box > * {
  max-width: 100%;
}
.netad-consent,
.netad-sample {
  margin: auto;
  max-width: 420px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 22px 16px;
  background: var(--surf);
}
.netad-consent p,
.netad-sample p {
  font-size: 0.85rem;
  color: var(--sub);
  margin: 8px 0 14px;
  overflow-wrap: anywhere;
}
.netad-logo {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.netad-card .adtag {
  position: static;
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 8px;
  box-shadow: none;
  border: 1px solid var(--line);
}
.pnl {
  padding: 16px;
  margin-bottom: 14px;
  min-width: 0;
}
.infobox {
  background: var(--surf);
  border-left: 3px solid var(--red);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.85rem;
  margin: 0 0 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.chk {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.88rem;
  margin: 10px 0;
  line-height: 1.4;
}
.chk input {
  margin-top: 3px;
  flex: none;
}
.mailprev {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  color: #141414;
}
.mailprev-hd {
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  font-size: 0.85rem;
  line-height: 1.4;
  background: #fafafa;
}
.mailprev iframe {
  width: 100%;
  height: 340px;
  border: 0;
  display: block;
  background: #fff;
}
.pnl .t select,
.pnl > div > label + textarea,
.pnl textarea {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg);
  font-size: 0.86rem;
  color: var(--text);
  max-width: 100%;
}
.pnl > div > label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--sub);
  display: block;
  margin: 12px 0 4px;
}
.pnl .t select {
  min-width: 180px;
}
.crup {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.crup-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 8px 10px;
}
.crup-row > b {
  font-size: 0.85rem;
  min-width: 0;
  flex: 1 1 180px;
}
.crup-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1 1 100%;
}
.mpick {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}
.mpick-it {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--surf);
}
.mpick-it img,
.mpick-it video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mpick-it .st {
  position: absolute;
  left: 6px;
  top: 6px;
}
.mpick-it .b {
  position: absolute;
  right: 4px;
  top: 4px;
  padding: 2px 8px;
  min-height: 0;
}
.mpick-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  border: 1.5px dashed var(--line);
  border-radius: 10px;
  aspect-ratio: 4/3;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px;
}
.mpick-add small {
  font-weight: 400;
  color: var(--sub);
  font-size: 0.72rem;
}
.mpick-add.busy {
  opacity: 0.6;
  cursor: wait;
}

.mg-ms {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-height: 38px;
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg);
  cursor: text;
}
.mg-ms.open {
  border-color: var(--red);
}
.mg-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--surf);
  border-radius: 999px;
  padding: 3px 3px 3px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  max-width: 100%;
}
.mg-chip button {
  border: 0;
  background: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  line-height: 1;
  font-size: 1rem;
  color: var(--sub);
  cursor: pointer;
  padding: 0;
}
.mg-chip button:hover {
  background: var(--line);
  color: var(--text);
}
.mg-ms input.mg-in {
  flex: 1;
  min-width: 140px;
  width: auto !important;
  border: 0 !important;
  padding: 4px !important;
  background: none !important;
  outline: 0;
}
.mg-clear {
  border: 0;
  background: none;
  color: var(--faint);
  font-size: 0.75rem;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
}
.mg-clear:hover {
  color: var(--red);
}
.mg-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 950;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 24px #0002;
  max-height: 260px;
  overflow: auto;
  padding: 4px;
}
.mg-menu button {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.86rem;
  cursor: pointer;
}
.mg-menu button small {
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mg-menu button.act,
.mg-menu button:hover {
  background: var(--surf);
}
.mg-menu button.sel {
  color: var(--red);
  font-weight: 600;
}
.mg-hint {
  display: block;
  margin-top: 4px;
  color: var(--faint);
  font-size: 0.75rem;
  line-height: 1.4;
}
.mg-times {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}
.mg-time {
  display: flex;
  gap: 6px;
  align-items: center;
}
.fm .mg-time select {
  width: auto !important;
  min-width: 64px;
}
.mg-toggle {
  display: flex !important;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.88rem !important;
  font-weight: 400 !important;
  color: var(--text) !important;
  margin: 0 0 12px;
  cursor: pointer;
}
.mg-toggle input {
  margin-top: 3px;
  flex: none;
}
.mg-toggle b {
  display: block;
}
.mg-set {
  max-width: 900px;
}
.mg-sec {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 14px;
  background: var(--bg);
}
.mg-sec-h {
  margin-bottom: 12px;
}
.mg-sec-h h3 {
  margin: 0 0 2px;
  font-size: 1rem;
}
.mg-sec-h p {
  margin: 0;
}
.mg-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}
.mg-grid .w {
  grid-column: 1/-1;
}
.mg-grid .lbl {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--sub);
  display: block;
  margin-bottom: 4px;
}
.mg-grid input,
.mg-grid textarea,
.mg-grid select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg);
  font-size: 0.88rem;
  box-sizing: border-box;
}
.mg-grid input:disabled,
.mg-grid textarea:disabled {
  background: var(--surf);
}
.mg-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}
@media (max-width: 700px) {
  .mg-grid {
    grid-template-columns: 1fr;
  }
}
