/* Admin additions on top of the client platform's app.css (dark mode always). Same radius, shadow and spacing language. */
.card { padding: 22px; }
.tab { width: 100%; cursor: pointer; }
.btn--sm { min-height: 40px; padding: 6px 16px; font-size: 14px; }
.side__name, .tab, .side__out, .bar__title { color: #fff; }
.tab:hover { background: rgba(255, 255, 255, .1); }
.btn--ghost { color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
.ad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.ad-client { all: unset; box-sizing: border-box; cursor: pointer; display: block; }
.ad-client b { display: block; font-weight: 800; font-size: 18px; color: var(--ink); margin-bottom: 4px; }
.ad-client small { color: var(--crm-mute); }
.ad-client:focus-visible { outline: 3px solid var(--main); }
.ad-meter { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .16); overflow: hidden; margin: 12px 0 8px; }
.ad-meter i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--sky); transition: width .3s; }
.ad-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; align-items: end; margin-bottom: 20px; color: var(--ink); }
.ad-form label { margin-bottom: 6px; font-size: 14px; }
.ad-form input { height: 46px; font-size: 16px; }
.ad-back { margin-bottom: 14px; }
.ad-list { display: flex; flex-direction: column; gap: 14px; }
.ad-stage h3 { font-weight: 800; font-size: 18px; color: var(--ink); }
.ad-stage__top { display: flex; align-items: center; gap: 12px; }
.ad-stage__top input, .ad-row input { width: 24px; height: 24px; flex: none; accent-color: var(--sky); }
.ad-stage p { color: var(--crm-mute); line-height: 1.6; margin-top: 8px; }
.ad-stage.is-done h3 { color: var(--crm-mute); }
.ad-prompt { white-space: pre-wrap; background: var(--panel); color: var(--ink); border-radius: 12px; padding: 12px 14px; margin: 10px 0; line-height: 1.6; font-size: 14.5px; }
.ad-acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.ad-acts a { text-decoration: none; }
.ad-marks { display: flex; gap: 8px 18px; flex-wrap: wrap; margin-top: 12px; color: var(--ink); font-weight: 700; }
.ad-ta { width: 100%; min-height: 90px; resize: vertical; margin-top: 10px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--ink); font-size: 16px; line-height: 1.5; }
.ad-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 18px; }
.ad-kpis b { display: block; font-family: "Poppins", sans-serif; font-size: 32px; color: var(--ink); }
.ad-kpis span { color: var(--crm-mute); }
.ad-tbl { width: 100%; border-collapse: collapse; color: var(--ink); }
.ad-tbl th, .ad-tbl td { text-align: right; padding: 10px 6px; border-top: 1px solid var(--crm-line); }
.pg { background: var(--sky); }
.pg__in { width: min(100%, 680px); margin-inline: auto; padding: 40px 16px; }
.pg__pct { color: #fff; font-weight: 700; margin-bottom: 20px; }
.ad-row { display: flex; align-items: center; gap: 14px; margin: 0; cursor: pointer; }
.ad-row b { display: block; font-weight: 800; }
.ad-row small { color: var(--crm-mute); font-weight: 400; }
/* login: the client platform screen, dark */
.login { background: radial-gradient(ellipse at 30% 40%, #14264f 0%, #0e1830 35%, #0b1020 70%, #080c18 100%); }
.lg-card { background: rgba(18, 26, 48, .88); border-color: rgba(120, 170, 255, .14); box-shadow: 0 10px 28px rgba(0, 0, 0, .35), 0 28px 64px rgba(0, 0, 0, .4), 0 0 0 1px rgba(255, 255, 255, .05) inset; }
.lg-text h1, .lg-sub { background: none; -webkit-text-fill-color: #fff; color: #fff; }
.lg-field label { color: #fff; }
.lg-field input, .lg-field input:focus { background: #0b1020; color: #fff; }
.lg-field input::placeholder { color: #a3b1cc; }
.lg-err { color: #ffb4ab; }
/* client management */
.ad-kpis .is-active { color: #4ade80; } .ad-kpis .is-paused { color: #fbbf24; }
.ad-cm { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--ink); }
.ad-cm.is-frozen { opacity: .7; }
.ad-av { width: 48px; height: 48px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--sky); color: #fff; font-weight: 800; }
.ad-cm__info { flex: 1 1 240px; min-width: 0; }
.ad-cm__info b { font-size: 18px; font-weight: 800; }
.ad-cm__sub { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--crm-mute); margin-top: 4px; }
.ad-badge { padding: 4px 12px; border-radius: 99px; font-weight: 700; font-size: 14px; }
.ad-badge.is-active { background: rgba(74, 222, 128, .15); color: #4ade80; }
.ad-badge.is-paused { background: rgba(251, 191, 36, .15); color: #fbbf24; }
.ad-cm .ad-acts { margin-top: 0; }
@media (max-width: 900px) { .lg-card { max-width: 448px; flex-direction: column; gap: 32px; padding: 56px 24px; } .lg-text { padding-left: 0; } .lg-div { width: 100%; height: 3px; margin: 0; transform: none; } }
@media (max-width: 900px) { .main { min-height: 100vh; } }
/* client management: the old admin screen's look */
.ad-cm { padding: 20px 22px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px; box-shadow: none; }
.ad-cm:hover { border-color: rgba(255, 255, 255, .14); }
.ad-cm.is-frozen { opacity: .6; border-color: rgba(251, 191, 36, .22); }
.ad-av { width: 46px; height: 46px; font-size: 16px; letter-spacing: 1px; }
.ad-cm__info b { font-size: 15px; font-weight: 700; color: #f0f6ff; }
.ad-cm__sub { align-items: center; gap: 8px; font-size: 12.5px; color: #a3b1cc; }
.ad-pill { padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 500; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .09); }
.ad-pill--niche { background: rgba(99, 102, 241, .12); border-color: rgba(99, 102, 241, .25); color: #a5b4fc; }
.ad-badge { font-size: 12px; }
.ad-badge.is-active { background: rgba(16, 185, 129, .14); border: 1px solid rgba(16, 185, 129, .3); color: #34d399; }
.ad-badge.is-paused { background: rgba(251, 191, 36, .14); border: 1px solid rgba(251, 191, 36, .3); }
.ad-cbtn { padding: 8px 16px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); color: #d7e0f5; font-size: 13px; font-weight: 600; white-space: nowrap; }
.ad-cbtn--link { border-color: rgba(0, 112, 243, .3); background: rgba(0, 112, 243, .08); color: #60a5fa; }
.ad-cbtn--freeze { border-color: rgba(251, 191, 36, .2); color: #fbbf24; }
.ad-cbtn--on { border-color: rgba(52, 211, 153, .2); color: #34d399; }
.ad-kpis .card { padding: 26px 22px; text-align: center; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; box-shadow: none; }
.ad-kpis .is-active { color: #34d399; }
.ad-over { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px; background: rgba(0, 8, 30, .7); backdrop-filter: blur(6px); }
.ad-conf { width: min(100%, 380px); padding: 32px 28px; text-align: center; color: #f0f6ff; background: rgba(14, 20, 38, .97); border: 1px solid rgba(255, 255, 255, .12); border-radius: 20px; }
.ad-conf h2 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.ad-conf p { font-size: 13px; line-height: 1.6; color: #a3b1cc; margin-bottom: 20px; }
.ad-conf .ad-acts { justify-content: center; }
/* old admin look: top navigation and project rows */
html, body.dark { background: #0a0e17; }
.topnav { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 36px; }
.topnav::after { content: ""; position: absolute; bottom: 0; left: 20%; right: 20%; height: 2px; background: linear-gradient(90deg, transparent, #fff, transparent); }
.topnav__logo { font-family: "Poppins", sans-serif; font-weight: 700; letter-spacing: .14em; color: #fff; font-size: 18px; white-space: nowrap; }
.topnav__tabs { display: flex; gap: 52px; }
.topnav__tab { background: none; border: 0; padding: 6px 0; color: #6f7a90; font-weight: 800; font-size: 18px; letter-spacing: .06em; white-space: nowrap; }
.topnav__tab[aria-current=page], .topnav__tab:hover { color: #fff; }
.topnav__out { background: none; border: 0; color: #a3b1cc; font-size: 15px; }
.ad-view { width: 100%; max-width: none; padding: 60px 36px 60px; }
.ad-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.ad-h { font-size: 28px; font-weight: 800; color: #f0f6ff; }
.ad-sub { color: #7f9fe0; margin-top: 8px; font-size: 16px; }
.ad-head__side { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ad-mini { min-width: 100px; padding: 16px 22px; text-align: center; border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; background: rgba(255, 255, 255, .03); }
.ad-mini b { display: block; font-family: "Poppins", sans-serif; font-size: 26px; color: #fff; }
.ad-mini span { color: #a3b1cc; font-size: 13px; }
.is-money, .ad-mini b.is-money { color: #4ade80; font-family: "Poppins", sans-serif; }
.ad-newf { padding: 18px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; }
.ad-rows { display: flex; flex-direction: column; gap: 16px; }
.ad-prow { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 20px 26px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .09); border-radius: 18px; color: #f0f6ff; }
.ad-av--blue { background: linear-gradient(135deg, #0070f3, #38a1ff); }
.ad-prow__who { min-width: 150px; }
.ad-prow__who b { display: block; font-size: 17px; font-weight: 800; }
.ad-prow__who span { color: #7f8db0; font-size: 14px; font-weight: 400; }
.ad-prog { flex: 1 1 220px; min-width: 0; margin-inline-start: 60px; }
.ad-prog__t { display: block; color: #7f9fe0; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.ad-dots { display: flex; align-items: center; gap: 7px; }
.ad-dots i { width: 10px; height: 10px; border-radius: 50%; background: #2c3346; }
.ad-dots i.is-done { background: #4ade80; }
.ad-dots i.is-cur { background: #0070f3; }
.ad-dots span { color: #a3b1cc; font-size: 13px; margin-inline-start: 6px; }
.ad-prow__val { font-size: 22px; }
.ad-prow__acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ad-prow__acts a { text-decoration: none; }
.ad-cbtn--del { border-color: rgba(239, 68, 68, .3); background: rgba(239, 68, 68, .08); color: #f87171; }
.clm-none { padding: 48px 0; text-align: center; color: #a3b1cc; }
.ad-view .card:not(.ad-cm) { background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .09); border-radius: 18px; box-shadow: none; }
.btn--out.ad-back { min-height: 40px; }
@media (max-width: 900px) {
  .topnav { flex-wrap: wrap; padding: 16px; }
  .topnav__tabs { order: 3; width: 100%; gap: 22px; overflow-x: auto; }
  .topnav__tab { font-size: 15px; }
  .ad-view { padding: 28px 16px 40px; }
  .ad-prow { padding: 16px; }
  .ad-prog { flex-basis: 100%; margin-inline-start: 0; }
  .ad-prow__acts { width: 100%; }
}

/* exact old row controls */
.ad-prow__acts { gap: 12px; }
.ad-go { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 22px; border: 0; border-radius: 12px; background: #0070f3; color: #fff; font-weight: 800; font-size: 15px; box-shadow: 0 4px 16px rgba(0, 112, 243, .35); }
.ad-go span { font-size: 20px; line-height: 1; }
.ad-pbtn { display: inline-flex; align-items: center; min-height: 50px; padding: 0 18px; border-radius: 12px; background: rgba(255, 255, 255, .05); color: #a9b8d8; font-size: 15px; }
.ad-cbtn--del { display: inline-grid; place-items: center; width: 46px; height: 46px; padding: 0; border-radius: 12px; }
.ad-cbtn--del .ic { width: 18px; height: 18px; }
.ad-conf input { margin-bottom: 18px; background: #0b1020; color: #fff; border-color: rgba(255, 255, 255, .15); }
.btn { background: #0070f3; }

/* project workspace: stations on top, one stage in the centre */
.ws { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; background: #0a0e17; color: #f0f6ff; }
.ws__top { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 30px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.ws__who { display: flex; align-items: center; gap: 14px; min-width: 170px; }
.ws__who b { display: block; font-weight: 800; }
.ws__who span { color: #7f8db0; font-size: 14px; }
.ws__line { display: flex; align-items: flex-start; gap: 8px; overflow-x: auto; padding: 4px; }
.ws__stn { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ws__stn button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .03); color: #8a97b5; font-family: "Poppins", sans-serif; font-weight: 700; font-size: 14px; }
.ws__stn.is-done button { background: rgba(74, 222, 128, .14); border-color: rgba(74, 222, 128, .5); color: #4ade80; }
.ws__stn.is-cur button { width: 54px; height: 54px; border: 0; background: linear-gradient(135deg, #0070f3, #38a1ff); color: #fff; box-shadow: 0 0 22px rgba(0, 112, 243, .6); }
.ws__stn small { color: #7f9fe0; font-size: 12px; font-weight: 700; white-space: nowrap; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.ws__x { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; background: none; color: #d7e0f5; }
.ws__body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 56px 20px; text-align: center; }
.ws__body > * { width: min(100%, 640px); flex: none; }
.ws__body > .btn, .ws__body > .ws__done, .ws__body > .ad-cbtn { width: auto; }
.ws__num { color: #5f7199; font-weight: 800; letter-spacing: .08em; }
.ws__body h1 { font-size: 34px; font-weight: 800; }
.ws__desc { color: #7f9fe0; font-size: 18px; line-height: 1.6; }
.ws__box { padding: 16px 18px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; background: rgba(255, 255, 255, .03); }
.ws__box small { display: block; color: #7f9fe0; font-weight: 700; margin-bottom: 6px; }
.ws__box.ad-prompt { margin: 0; text-align: right; }
.ws__box .ad-acts, .ws__box .ad-marks { justify-content: center; }
.ws__done { min-height: 50px; padding: 0 24px; border: 0; border-radius: 12px; background: linear-gradient(135deg, #15803d, #16a34a); color: #fff; font-weight: 800; font-size: 15px; }
.ws__more { text-align: right; color: #d7e0f5; }
.ws__more summary { cursor: pointer; font-weight: 700; margin-bottom: 14px; text-align: center; }
.ws__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 30px; border-top: 1px solid rgba(255, 255, 255, .08); color: #7f8db0; }
.ws__foot button:disabled { opacity: .35; cursor: default; }
@media (max-width: 900px) {
  .ws__top { flex-wrap: wrap; padding: 12px 16px; }
  .ws__line { order: 3; width: 100%; }
  .ws__stn button { width: 40px; height: 40px; flex: none; }
  .ws__body { padding: 28px 16px; }
  .ws__body h1 { font-size: 26px; }
  .ws__foot { padding: 12px 16px; }
}

.topnav__out { display: inline-flex; align-items: center; gap: 10px; color: #fff; white-space: nowrap; } .topnav__out i { display: grid; place-items: center; width: 34px; height: 34px; border: 1.5px solid #fff; border-radius: 50%; background: transparent; font-style: normal; font-size: 17px; line-height: 1; }
.ws__nav { min-width: 150px; justify-content: center; gap: 12px; font-size: 16px; } .ws__nav .ws__arr { font-size: 26px; line-height: 1; }
.topnav__out { min-height: 44px; padding: 0 18px; border: 1.5px solid #fff; border-radius: 12px; font-weight: 700; } .topnav__out:hover { background: rgba(255, 255, 255, .1); }
.ad-plus { font-size: 24px; font-weight: 800; line-height: 1; }
.ws__warn { padding: 18px 20px; border: 1.5px solid rgba(251, 191, 36, .55); border-radius: 14px; background: rgba(251, 191, 36, .1); color: #fde68a; font-size: 18px; font-weight: 700; line-height: 1.6; } .ws__wa { background: #15803d; text-decoration: none; } .ws__box .btn:disabled, .ws__wa:disabled { opacity: .5; cursor: default; } .ws__box label { display: block; color: #7f9fe0; font-size: 14px; } .ws__box input { background: #0b1020; color: #fff; border-color: rgba(255, 255, 255, .15); } .ws__box .ad-prompt { margin-top: 0; } .ws__stn button { width: 40px; height: 40px; } .ws__stn.is-cur button { width: 50px; height: 50px; }

/* what the client gave */
.cb { margin-top: 16px; text-align: right; }
.cb summary { cursor: pointer; font-weight: 800; color: #fff; text-align: center; padding: 10px; }
.cb__h { margin: 22px 0 10px; font-size: 17px; font-weight: 800; color: #f0f6ff; }
.cb__k { color: #a3b1cc; }
.cb__g { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.cb__t { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.cb__t img, .cb__t video { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: #0b1020; }
.cb__doc { display: grid; place-items: center; aspect-ratio: 1; padding: 10px; border-radius: 12px; background: #0b1020; color: #a3b1cc; font-size: 14px; overflow-wrap: anywhere; text-align: center; }
.cb__d { text-align: center; text-decoration: none; }
.cb__q { margin-top: 14px; font-weight: 700; color: #f0f6ff; }
.cb__a { margin-top: 4px; color: #c9d3ea; white-space: pre-wrap; line-height: 1.6; }
.ws, html { color-scheme: dark; }

/* what the client finished: a card per task, green circle with a green V */
.ad-marks { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.mk { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; background: rgba(255, 255, 255, .03); color: #a3b1cc; font-weight: 700; text-align: start; }
.mk i { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .3); }
.mk.is-ok { border-color: rgba(74, 222, 128, .35); color: #f0f6ff; }
.mk.is-ok i { border-color: #4ade80; background: rgba(74, 222, 128, .16); }
.mk.is-ok i::after { content: ""; position: absolute; inset: 4px; background: #4ade80; -webkit-mask: url(icons/ph-check-bold.svg) center / contain no-repeat; mask: url(icons/ph-check-bold.svg) center / contain no-repeat; }

.ad-choice { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; } .ad-choice__b { min-height: 52px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; background: rgba(255, 255, 255, .05); color: #f0f6ff; font-size: 16px; font-weight: 700; } .ad-choice__b:hover, .ad-choice__b.is-on { border-color: #0070f3; background: rgba(0, 112, 243, .2); } .ad-form select { width: 100%; height: 46px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--ink); font-size: 16px; }

/* search status of a client */
.sr { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 8px 16px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .08); }
.sr__p { display: inline-flex; align-items: center; gap: 8px; color: #a3b1cc; font-size: 14px; font-weight: 700; }
.sr__p i { position: relative; width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .3); }
.sr__p.is-ok { color: #f0f6ff; }
.sr__p.is-ok i { border-color: #4ade80; background: rgba(74, 222, 128, .16); }
.sr__p.is-ok i::after { content: ""; position: absolute; inset: 2px; background: #4ade80; -webkit-mask: url(icons/ph-check-bold.svg) center / contain no-repeat; mask: url(icons/ph-check-bold.svg) center / contain no-repeat; }
.sr__p.is-bad i { border-color: #f87171; background: rgba(248, 113, 113, .16); }
