/* ATLAS BEATS — Studio admin: header button, login modal, dashboard, announcement composer, editor template controls */
:root { --ad-1: #f0abfc; --ad-2: #22d3ee; --ad-3: #fbbf24; --ad-glass: rgba(14, 12, 28, .62); --ad-line: rgba(255, 255, 255, .12); }

/* ── header button ── */
.sh-top-end { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sh-admin { position: relative; display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 14px 0 8px; border-radius: 999px; border: 1px solid var(--ad-line); background: linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03)); color: #fff; font: 800 12.5px/1 var(--font-ui, inherit); letter-spacing: .04em; cursor: pointer; backdrop-filter: blur(14px); transition: transform .25s, border-color .25s, box-shadow .25s; overflow: hidden; }
.sh-admin::before { content: ''; position: absolute; inset: -40% -60%; background: conic-gradient(from 0deg, transparent 0 60%, rgba(240, 171, 252, .35) 75%, transparent 90%); animation: adSweep 4s linear infinite; opacity: 0; transition: opacity .3s; }
.sh-admin:hover { transform: translateY(-1px); border-color: rgba(240, 171, 252, .5); box-shadow: 0 10px 30px -12px rgba(240, 171, 252, .5); }
.sh-admin:hover::before, .sh-admin.on::before { opacity: 1; }
.sh-admin > * { position: relative; }
.sa-ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--ad-1), var(--ad-2)); color: #0b0a17; }
.sa-ico .i { width: 15px; height: 15px; }
.sa-dot { position: absolute; right: -1px; top: -1px; width: 9px; height: 9px; border-radius: 50%; background: #64748b; border: 2px solid #0e0c1c; transition: background .3s; }
.sa-dot.on { background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .7); animation: adPulse 1.8s ease-out infinite; }
.sh-admin.on { border-color: rgba(34, 197, 94, .45); }
.sh-admin.on .sa-lbl::after { content: ' ✓'; color: #4ade80; }
@keyframes adSweep { to { transform: rotate(360deg); } }
@keyframes adPulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .7); } 100% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); } }

/* ── login modal ── */
body.ad-modal { overflow: hidden; }
.ad-login { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 20px; opacity: 0; transition: opacity .35s; }
.ad-login.show { opacity: 1; }
.ad-login-bg { position: absolute; inset: 0; background: radial-gradient(60% 50% at 30% 20%, rgba(168, 85, 247, .28), transparent 60%), radial-gradient(50% 50% at 80% 80%, rgba(34, 211, 238, .22), transparent 60%), rgba(6, 5, 14, .78); backdrop-filter: blur(18px) saturate(1.2); }
.ad-login-card { position: relative; width: min(440px, 100%); padding: 74px 34px 26px; border-radius: 30px; background: linear-gradient(160deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .03)) padding-box, linear-gradient(140deg, rgba(240, 171, 252, .7), rgba(34, 211, 238, .4), rgba(251, 191, 36, .5)) border-box; border: 1px solid transparent; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .04) inset; text-align: center; transform: translateY(22px) scale(.96); transition: transform .45s cubic-bezier(.2, .9, .2, 1.1); overflow: visible; }
.ad-login.show .ad-login-card { transform: none; }
.ad-login-card.shake { animation: adShake .5s; }
.ad-login-card.ok { animation: adOk .65s forwards; }
@keyframes adShake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-7px); } 40%, 60% { transform: translateX(7px); } }
@keyframes adOk { 40% { transform: scale(1.02); box-shadow: 0 0 0 4px rgba(74, 222, 128, .5), 0 40px 90px -30px rgba(0, 0, 0, .8); } 100% { transform: scale(.9) translateY(-30px); opacity: 0; } }
.al-orb { position: absolute; top: -44px; left: 50%; width: 88px; height: 88px; transform: translateX(-50%); }
.al-ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid transparent; border-top-color: var(--ad-1); border-bottom-color: var(--ad-2); animation: adSpin 3.2s linear infinite; }
.al-ring.r2 { inset: 8px; border-top-color: var(--ad-2); border-bottom-color: var(--ad-3); animation-duration: 2.2s; animation-direction: reverse; }
.al-ring.r3 { inset: 16px; border-top-color: var(--ad-3); border-bottom-color: var(--ad-1); animation-duration: 4s; }
.al-core { position: absolute; inset: 22px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #a855f7, #22d3ee); color: #06050e; box-shadow: 0 10px 30px -8px rgba(168, 85, 247, .8); }
.al-core .i { width: 20px; height: 20px; }
@keyframes adSpin { to { transform: rotate(360deg); } }
.al-close { position: absolute; top: 12px; inset-inline-end: 12px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--ad-line); background: rgba(255, 255, 255, .05); color: #fff; display: grid; place-items: center; cursor: pointer; }
.al-close .i { width: 15px; height: 15px; }
.al-brand { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; direction: ltr; }
.al-brand .wm { font-weight: 900; font-size: 15px; letter-spacing: .12em; }
.al-brand .wm i { font-style: normal; background: linear-gradient(90deg, var(--ad-1), var(--ad-2)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-left: 4px; }
.al-brand .studio-tag { font-size: 10px; font-weight: 900; letter-spacing: .2em; padding: 3px 8px; border-radius: 999px; background: linear-gradient(90deg, #f0abfc, #fbbf24); color: #1a1030; }
.ad-login-card h3 { margin: 4px 0 6px; font-size: 24px; font-weight: 900; letter-spacing: -.01em; }
.ad-login-card > p { margin: 0 0 22px; color: rgba(255, 255, 255, .62); font-size: 13.5px; line-height: 1.6; }
.al-field { display: block; text-align: start; margin-bottom: 14px; }
.al-field > span:first-child { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .55); margin: 0 4px 6px; }
.al-in { position: relative; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 12px; border-radius: 16px; background: rgba(0, 0, 0, .35); border: 1px solid var(--ad-line); transition: border-color .25s, box-shadow .25s; }
.al-in:focus-within { border-color: rgba(240, 171, 252, .7); box-shadow: 0 0 0 4px rgba(240, 171, 252, .15); }
.al-in > .i { width: 18px; height: 18px; color: rgba(255, 255, 255, .55); flex: none; }
.al-in input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: #fff; font: 600 15px/1 var(--font-ui, inherit); letter-spacing: .02em; }
.al-in input:-webkit-autofill { -webkit-text-fill-color: #fff; box-shadow: 0 0 0 100px #141127 inset; }
.al-eye { width: 34px; height: 34px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, .06); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.al-eye .i { width: 16px; height: 16px; grid-area: 1/1; }
.al-eye .i.off, .al-eye.show .i.on { display: none; }
.al-eye.show .i.off { display: block; }
.al-err { margin: -4px 0 12px; padding: 10px 12px; border-radius: 12px; background: rgba(244, 63, 94, .14); border: 1px solid rgba(244, 63, 94, .4); color: #fecdd3; font-size: 13px; font-weight: 700; }
.al-submit { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 54px; border-radius: 16px; border: 0; cursor: pointer; color: #0b0a17; font: 900 15px/1 var(--font-ui, inherit); letter-spacing: .04em; background: linear-gradient(90deg, #f0abfc, #22d3ee, #fbbf24); background-size: 200% 100%; transition: background-position .6s, transform .2s, filter .2s; overflow: hidden; }
.al-submit:hover { background-position: 100% 0; transform: translateY(-1px); filter: saturate(1.1); }
.al-submit .i { width: 18px; height: 18px; transform: scaleX(-1); transition: transform .3s; }
html[dir="rtl"] .al-submit .i { transform: none; }
.al-submit .al-spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(11, 10, 23, .25); border-top-color: #0b0a17; animation: adSpin .8s linear infinite; }
.al-submit.busy .al-spin { display: block; }
.al-submit.busy .i { display: none; }
.al-foot { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 16px; font-size: 11.5px; color: rgba(255, 255, 255, .48); font-weight: 600; }
.al-foot .i { width: 13px; height: 13px; color: #4ade80; }

/* ── dashboard panel ── */
.ad-panel { position: relative; scroll-margin-top: 84px; margin: 6px auto 26px; max-width: 1180px; padding: 22px; border-radius: 28px; background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025)) padding-box, linear-gradient(140deg, rgba(240, 171, 252, .55), rgba(34, 211, 238, .25) 50%, rgba(251, 191, 36, .45)) border-box; border: 1px solid transparent; box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .8); animation: adIn .6s cubic-bezier(.2, .9, .2, 1) both; overflow: hidden; }
.ad-panel::before { content: ''; position: absolute; inset: 0; background: radial-gradient(40% 60% at 0% 0%, rgba(168, 85, 247, .18), transparent 60%), radial-gradient(40% 60% at 100% 100%, rgba(34, 211, 238, .14), transparent 60%); pointer-events: none; }
.ad-panel.flash { box-shadow: 0 0 0 3px rgba(240, 171, 252, .6), 0 30px 80px -40px rgba(0, 0, 0, .8); }
@keyframes adIn { from { opacity: 0; transform: translateY(18px) scale(.985); } }
.ad-head { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.ad-head h2 { margin: 6px 0 4px; font-size: clamp(22px, 3vw, 30px); font-weight: 900; letter-spacing: -.01em; background: linear-gradient(90deg, #fff, var(--ad-1) 60%, var(--ad-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ad-head p { margin: 0; color: rgba(255, 255, 255, .62); font-size: 13.5px; max-width: 60ch; line-height: 1.6; }
.ad-kicker { color: var(--ad-1); }
.ad-kicker .i { width: 14px; height: 14px; }
.ad-user { margin-inline-start: 6px; padding: 2px 9px; border-radius: 999px; background: rgba(34, 197, 94, .16); border: 1px solid rgba(34, 197, 94, .4); color: #86efac; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.ad-head-acts { display: flex; gap: 8px; flex: none; }
.ad-head-acts .sbtn .i { width: 16px; height: 16px; }
.ad-head-acts .sbtn.spin .i { animation: adSpin .8s linear; }
.ad-stats { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.ad-stat { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 12px 14px; border-radius: 18px; background: rgba(0, 0, 0, .28); border: 1px solid var(--ad-line); overflow: hidden; }
.ad-stat .i { grid-row: 1 / 3; width: 30px; height: 30px; padding: 7px; border-radius: 10px; background: linear-gradient(135deg, rgba(240, 171, 252, .25), rgba(34, 211, 238, .25)); color: #fff; }
.ad-stat b { font-size: 18px; font-weight: 900; letter-spacing: -.01em; line-height: 1.1; }
.ad-stat small { color: rgba(255, 255, 255, .55); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.ad-stat.live::after { content: ''; position: absolute; top: 10px; inset-inline-end: 10px; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: adPulse 1.8s ease-out infinite; }
.ad-stat.ok b { color: #86efac; }
.ad-stat.off b { color: #fda4af; }
.ad-grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr 1.4fr; gap: 12px; }
.ad-card { padding: 16px; border-radius: 20px; background: rgba(0, 0, 0, .26); border: 1px solid var(--ad-line); min-width: 0; }
.ad-card h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 13px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.ad-card h4 .i { width: 16px; height: 16px; color: var(--ad-1); }
.ad-sub { margin: -6px 0 12px; color: rgba(255, 255, 255, .55); font-size: 12.5px; line-height: 1.55; }
.ad-toplist { display: grid; gap: 8px; }
.ad-toprow { display: grid; grid-template-columns: 22px 1fr 90px auto; align-items: center; gap: 10px; font-size: 13px; }
.ad-toprow .rk { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-weight: 900; font-size: 11px; background: linear-gradient(135deg, var(--s1), var(--s2)); color: #0b0a17; }
.ad-toprow .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-toprow .bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.ad-toprow .bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--s1), var(--s2)); transition: width .6s; }
.ad-toprow b { font-weight: 900; min-width: 2ch; text-align: end; }
.ad-empty, .ad-live-none { padding: 18px 10px; text-align: center; color: rgba(255, 255, 255, .45); font-size: 13px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ad-live-none .i { width: 22px; height: 22px; opacity: .5; }
.ad-quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ad-q { display: flex; align-items: center; gap: 9px; padding: 11px 12px; border-radius: 14px; border: 1px solid var(--ad-line); background: rgba(255, 255, 255, .04); color: #fff; font: 700 12.5px/1.25 var(--font-ui, inherit); text-align: start; cursor: pointer; transition: transform .2s, background .2s, border-color .2s; min-width: 0; }
.ad-q .i { width: 16px; height: 16px; flex: none; color: var(--ad-2); }
.ad-q:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .08); border-color: rgba(240, 171, 252, .5); }
.ad-q span { overflow: hidden; text-overflow: ellipsis; }
.ad-ann-form .ed-field { margin-bottom: 8px; }
.ad-ann-form .ed-row { display: flex; gap: 8px; }
.ad-ann-form .ed-row .ed-field { flex: 1; min-width: 0; }
.ad-ann-form .ed-field.ad-hours, .ad-ann-form .ed-field.ad-ver { flex: 0 0 110px; }
.ad-kinds { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.ad-kinds button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--ad-line); background: rgba(255, 255, 255, .04); color: #fff; font: 800 12px/1 var(--font-ui, inherit); cursor: pointer; }
.ad-kinds button .i { width: 14px; height: 14px; }
.ad-kinds button.on { background: linear-gradient(90deg, var(--ad-1), var(--ad-2)); color: #0b0a17; border-color: transparent; }
.ad-ann-acts { margin-top: 8px; }
.ad-ann-acts .grow { flex: 1; }
.ad-prev-lbl, .ad-live-lbl { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .5); margin: 8px 0 6px; display: flex; align-items: center; gap: 6px; }
.ad-live-lbl .dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; animation: adPulse 1.8s ease-out infinite; }
.ann-bar { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 14px; border: 1px solid var(--ad-line); background: linear-gradient(90deg, rgba(168, 85, 247, .22), rgba(34, 211, 238, .14)); font-size: 12.5px; min-width: 0; }
.ann-bar.k-promo { background: linear-gradient(90deg, rgba(244, 63, 94, .22), rgba(251, 191, 36, .14)); }
.ann-bar.k-info { background: linear-gradient(90deg, rgba(34, 211, 238, .22), rgba(99, 102, 241, .14)); }
.ann-bar.k-live { background: linear-gradient(90deg, rgba(34, 197, 94, .22), rgba(34, 211, 238, .14)); }
.ann-ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: rgba(255, 255, 255, .14); flex: none; }
.ann-ico .i { width: 14px; height: 14px; }
.ann-tx { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.ann-tx b { font-weight: 900; }
.ann-tx > span { color: rgba(255, 255, 255, .78); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.ann-ver { font-style: normal; font-size: 10.5px; font-weight: 900; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, .16); }
.ann-cta { padding: 5px 10px; border-radius: 999px; background: #fff; color: #0b0a17; font-weight: 900; font-size: 11px; flex: none; }
.ann-x { opacity: .5; font-weight: 900; flex: none; }
.ad-ann-live { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--ad-line); }
.ad-ann-form input.shake { animation: adShake .5s; border-color: rgba(244, 63, 94, .6) !important; }

/* ── collection header + tabs ── */
.st-col-head { display: flex; align-items: center; gap: 12px; margin: 6px 0 12px; padding: 12px 14px; border-radius: 18px; border: 1px solid rgba(240, 171, 252, .3); background: linear-gradient(90deg, rgba(240, 171, 252, .12), rgba(34, 211, 238, .06)); }
.st-col-lock { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, var(--ad-1), var(--ad-2)); color: #0b0a17; flex: none; }
.st-col-lock .i { width: 18px; height: 18px; }
.st-col-head h3 { margin: 0 0 2px; font-size: 16px; font-weight: 900; }
.st-col-head p { margin: 0; font-size: 12.5px; color: rgba(255, 255, 255, .6); }
.sh-tabs button.adm { border-color: rgba(240, 171, 252, .35); }
.sh-tabs button.adm .i { color: var(--ad-1); }
.sh-tabs button.adm.on { background: linear-gradient(90deg, #f0abfc, #22d3ee); color: #0b0a17; }
.st-net select { max-width: 150px; }

/* ── editor template controls ── */
.ed-templates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
.ed-templates button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; border-radius: 12px; border: 1px solid var(--ad-line); background: rgba(255, 255, 255, .04); color: #fff; font: 800 12px/1 var(--font-ui, inherit); cursor: pointer; }
.ed-templates button .i { width: 14px; height: 14px; }
.ed-templates button.on { background: linear-gradient(90deg, var(--ad-1), var(--ad-2)); color: #0b0a17; border-color: transparent; }
.ed-tpl { display: grid; gap: 6px; padding: 10px; border-radius: 14px; background: rgba(240, 171, 252, .06); border: 1px dashed rgba(240, 171, 252, .3); }
.ed-tpl .ed-row { display: flex; gap: 6px; }
.ed-tpl .ed-row .ed-field { flex: 1; min-width: 0; }
.ed-tpl .ed-field.pill { flex: 0 0 90px; }
.ed-tpl textarea { width: 100%; resize: vertical; min-height: 80px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--ad-line); background: rgba(0, 0, 0, .3); color: #fff; font: 600 13px/1.5 var(--font-ui, inherit); outline: 0; }
.ed-tpl textarea:focus { border-color: rgba(240, 171, 252, .6); }

/* ── responsive ── */
@media (max-width: 1023px) {
  .ad-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ad-grid { grid-template-columns: 1fr 1fr; }
  .ad-card.ad-ann { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .sh-admin { height: 36px; padding: 0 4px; gap: 0; }
  .sh-admin .sa-lbl { display: none; }
  .sh-top-end { gap: 6px; }
  .sh-top:has(.sh-admin) .sh-brand .wm { font-size: 13px; letter-spacing: 1.6px; }
  .sh-top:has(.sh-admin) .sh-brand img { width: 28px; height: 28px; }
  .ad-panel { padding: 16px 14px; border-radius: 22px; }
  .ad-head { flex-direction: column; }
  .ad-head-acts { align-self: stretch; }
  .ad-head-acts .sbtn:last-child { flex: 1; }
  .ad-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ad-stat { padding: 10px 12px; }
  .ad-stat b { font-size: 16px; }
  .ad-grid { grid-template-columns: 1fr; }
  .ad-quick-grid { grid-template-columns: 1fr 1fr; }
  .ad-ann-form .ed-row { flex-wrap: wrap; }
  .ad-ann-form .ed-field.ad-hours, .ad-ann-form .ed-field.ad-ver { flex: 1 1 100px; }
  .ad-login-card { padding: 66px 22px 22px; border-radius: 24px; }
  .ad-login-card h3 { font-size: 21px; }
  .ed-templates { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) { .sh-top:has(.sh-admin) .sh-brand .studio-tag { display: none; } .sh-top:has(.sh-admin) .sh-brand { gap: 5px; } }
@media (max-width: 380px) { .ad-quick-grid { grid-template-columns: 1fr; } .ad-stats { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { .al-ring, .sh-admin::before, .sa-dot.on, .ad-stat.live::after, .ad-live-lbl .dot { animation: none; } }

/* ── PRO editor tools (admin) ── */
.ed-pro-tag { margin-inline-start: auto; font-size: 9px; font-weight: 900; letter-spacing: .18em; padding: 2px 7px; border-radius: 999px; background: linear-gradient(90deg, #f0abfc, #fbbf24); color: #1a1030; }
.ed-sub-h { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .5); margin-top: 4px; }
.ed-sliders { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
.ed-sliders label, .ed-slider-one { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; gap: 0 6px; font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, .7); }
.ed-sliders label span, .ed-slider-one span { grid-column: 1; }
.ed-sliders label b, .ed-slider-one b { grid-column: 2; grid-row: 1; font-size: 10.5px; font-weight: 800; color: var(--ad-2); font-variant-numeric: tabular-nums; direction: ltr; }
.ed-sliders label input, .ed-slider-one input { grid-column: 1 / -1; width: 100%; accent-color: #f0abfc; height: 22px; margin: 0; }
.ed-shapes { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.ed-shapes button { height: 40px; border-radius: 10px; border: 1px solid var(--ad-line); background: rgba(255, 255, 255, .04); display: grid; place-items: center; cursor: pointer; }
.ed-shapes button.on { border-color: #f0abfc; background: rgba(240, 171, 252, .14); }
.ed-shapes .shp { display: block; width: 20px; height: 20px; background: linear-gradient(135deg, #f0abfc, #22d3ee); border-radius: 5px; }
.ed-shapes .shp.circle { border-radius: 50%; } .ed-shapes .shp.squircle { border-radius: 35%; } .ed-shapes .shp.none { border-radius: 0; } .ed-shapes .shp.tilt { transform: rotate(-8deg); }
.ed-shapes .shp.hexagon { clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%); border-radius: 0; } .ed-shapes .shp.diamond { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); border-radius: 0; }
.ed-toggle-group.wrap { flex-wrap: wrap; }
.ed-toggle-group button.disp { font-family: 'Montserrat', sans-serif; letter-spacing: .1em; } .ed-toggle-group button.serif { font-family: Georgia, serif; } .ed-toggle-group button.mono { font-family: 'Courier New', monospace; }
#edTitleColor button { width: 34px; padding: 0; display: grid; place-items: center; position: relative; }
#edTitleColor i { display: block; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .3); }
#edTitleColor i.grad { background: linear-gradient(135deg, #a855f7, #22d3ee); }
#edTitleColor input[type=color] { width: 20px; height: 20px; padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; }
#edTitleColor button.on { outline: 2px solid #f0abfc; outline-offset: -2px; background: rgba(240, 171, 252, .15); }
.ed-color { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; color: rgba(255, 255, 255, .6); }
.ed-color input[type=color] { width: 34px; height: 34px; padding: 0; border: 2px solid var(--ad-line); border-radius: 10px; background: transparent; cursor: pointer; }
.ed-check { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: rgba(255, 255, 255, .7); }
.ed-check input { accent-color: #f0abfc; width: 16px; height: 16px; }
.ed-patterns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ed-patterns button { display: grid; gap: 4px; place-items: center; padding: 6px 4px; border-radius: 10px; border: 1px solid var(--ad-line); background: rgba(255, 255, 255, .04); color: rgba(255, 255, 255, .75); font-size: 10px; font-weight: 700; cursor: pointer; }
.ed-patterns button.on { border-color: #f0abfc; background: rgba(240, 171, 252, .14); color: #fff; }
.ed-patterns .pat { display: block; width: 100%; height: 22px; border-radius: 6px; background: #0b0b17; border: 1px solid rgba(255, 255, 255, .08); }
.ed-patterns .pat.dots { background-image: radial-gradient(rgba(255, 255, 255, .5) 1px, transparent 1.2px); background-size: 6px 6px; }
.ed-patterns .pat.grid { background-image: linear-gradient(rgba(255, 255, 255, .25) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .25) 1px, transparent 1px); background-size: 7px 7px; }
.ed-patterns .pat.beams { background-image: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .4) 40%, transparent 50%, transparent 65%, rgba(255, 255, 255, .3) 72%, transparent 80%); }
.ed-patterns .pat.rings { background-image: repeating-radial-gradient(circle at 85% 30%, transparent 0 4px, rgba(255, 255, 255, .35) 4px 5px); }
.ed-patterns .pat.waves { background-image: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, .3) 3px 4px); }
.ed-patterns .pat.stars { background-image: radial-gradient(#fff 0.6px, transparent 1px), radial-gradient(#fff 0.5px, transparent 1px); background-size: 11px 9px, 7px 13px; background-position: 0 0, 4px 3px; }
.ed-patterns .pat.noise { background-image: repeating-conic-gradient(rgba(255, 255, 255, .18) 0 25%, transparent 0 50%); background-size: 3px 3px; }
.ed-stickers { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; }
.ed-stickers button { height: 36px; border-radius: 9px; border: 1px solid var(--ad-line); background: rgba(255, 255, 255, .04); font-size: 17px; cursor: pointer; display: grid; place-items: center; color: #fff; }
.ed-stickers button b { font-size: 9px; font-weight: 900; letter-spacing: .06em; padding: 2px 5px; border-radius: 5px; background: linear-gradient(90deg, #fde047, #f97316); color: #1a1030; }
.ed-stickers button.on { border-color: #f0abfc; background: rgba(240, 171, 252, .16); }
.ed-texts { display: grid; gap: 8px; }
.ed-text-row { display: grid; gap: 5px; padding: 8px; border-radius: 12px; background: rgba(0, 0, 0, .28); border: 1px solid var(--ad-line); }
.ed-text-row .tx { height: 36px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--ad-line); background: rgba(0, 0, 0, .3); color: #fff; font: 700 13px/1 var(--font-ui, inherit); outline: 0; }
.ed-text-row .tx:focus { border-color: #f0abfc; }
.ed-text-opts { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.ed-text-opts select { height: 28px; border-radius: 7px; border: 1px solid var(--ad-line); background: rgba(255, 255, 255, .06); color: #fff; font: 700 11px/1 var(--font-ui, inherit); padding: 0 6px; max-width: 92px; }
.ed-text-opts .tgl, .ed-text-opts .del { width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--ad-line); background: rgba(255, 255, 255, .05); color: #fff; font-weight: 900; cursor: pointer; }
.ed-text-opts .tgl.on { background: linear-gradient(90deg, #f0abfc, #22d3ee); color: #0b0a17; border-color: transparent; }
.ed-text-opts .del { margin-inline-start: auto; color: #fda4af; }
.ed-presets { display: grid; gap: 6px; max-height: 190px; overflow: auto; }
.ed-preset { display: flex; align-items: center; gap: 6px; }
.ed-preset .apply { flex: 1; display: flex; align-items: center; gap: 9px; height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--ad-line); background: rgba(255, 255, 255, .04); color: #fff; font: 700 12.5px/1 var(--font-ui, inherit); cursor: pointer; text-align: start; min-width: 0; }
.ed-preset .apply i { width: 18px; height: 18px; border-radius: 6px; background: linear-gradient(135deg, var(--p1), var(--p2)); flex: none; }
.ed-preset .apply span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-preset .del { width: 30px; height: 36px; border-radius: 10px; border: 1px solid var(--ad-line); background: rgba(255, 255, 255, .04); color: #fda4af; font-weight: 900; cursor: pointer; }
.ed-empty { padding: 10px; text-align: center; font-size: 12px; color: rgba(255, 255, 255, .45); }
.ed-field.grow { flex: 1; }
.i.flip { transform: scaleX(-1); }
#edCompare.on { background: linear-gradient(90deg, #f0abfc, #22d3ee); color: #0b0a17; }
.al-help { margin: -8px 0 12px; padding: 9px 12px; border-radius: 12px; background: rgba(34, 211, 238, .08); border: 1px dashed rgba(34, 211, 238, .35); color: rgba(255, 255, 255, .7); font-size: 11.5px; line-height: 1.55; text-align: start; }
.al-caps { display: none; margin: -6px 0 10px; color: #fbbf24; font-size: 11.5px; font-weight: 800; }
.al-caps.on { display: block; }
@media (max-width: 767px) { .ed-sliders { grid-template-columns: 1fr 1fr; } .ed-shapes { grid-template-columns: repeat(7, 1fr); } .ed-stickers { grid-template-columns: repeat(6, 1fr); } .ed-patterns { grid-template-columns: repeat(4, 1fr); } }

/* server status on the login card */
#adSrv.ok { color: #86efac; } #adSrv.bad { color: #fda4af; }
.al-err small { display: block; margin-top: 4px; font-size: 10.5px; font-weight: 500; opacity: .75; word-break: break-all; }
#adSrv.dim { color: rgba(255, 255, 255, .45); }
.ad-net { margin: 8px 0 0; padding: 8px 12px; border-radius: 12px; background: rgba(251, 191, 36, .1); border: 1px dashed rgba(251, 191, 36, .45); color: #fde68a; font-size: 12px; font-weight: 600; line-height: 1.5; }
.ad-panel.offline .ad-stats, .ad-panel.offline .ad-top { opacity: .55; }
.ad-net-btn { margin-inline-start: 8px; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(251, 191, 36, .6); background: rgba(251, 191, 36, .18); color: #fff; font: 700 11.5px/1 inherit; cursor: pointer; }
.ad-net-btn:hover { background: rgba(251, 191, 36, .32); }
.ad-stat.ph b { opacity: .35; }
