/* MagicWish Partners — black & pink */
:root {
  color-scheme: dark;
  --bg: #050406;
  --ink: #fbf2f7;
  --ink-2: rgba(251, 242, 247, .72);
  --muted: rgba(251, 242, 247, .5);
  --faint: rgba(251, 242, 247, .32);
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --glass: rgba(14, 9, 13, .62);
  --glass-2: rgba(24, 14, 21, .72);
  --pink: #7c3aed;
  --pink-2: #a78bfa;
  --blush: #ddd6fe;
  --plum: #3a0a26;
  --good: #5ee6a8;
  --warn: #ffc56b;
  --bad: #ff6b81;
  --radius: 22px;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --grad: linear-gradient(120deg, #ddd6fe 0%, #a78bfa 35%, #7c3aed 60%, #5b21b6 100%);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  /* static backdrop under the WebGL layer (and the fallback without it) */
  background-image:
    radial-gradient(60% 50% at 85% 100%, rgba(124, 58, 237, .38), transparent 70%),
    radial-gradient(45% 40% at 10% 0%, rgba(120, 10, 70, .45), transparent 70%),
    radial-gradient(30% 30% at 60% 40%, rgba(167, 139, 250, .12), transparent 70%);
  background-attachment: fixed;
  color: var(--ink);
  font: 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}
a { color: var(--pink-2); text-decoration: none; }
a:hover { color: var(--blush); }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--pink); color: #fff; }

.melt-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; opacity: 0; transition: opacity 1.6s ease; pointer-events: none; }
.melt-canvas.on { opacity: 1; }
/* soft veil + grain above the liquid, below the content */
.veil { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 30% 30%, rgba(5, 4, 6, .55), rgba(5, 4, 6, .2) 60%, rgba(5, 4, 6, .05)); }
body[data-melt="0.55"] .veil { background: linear-gradient(180deg, rgba(5, 4, 6, .5), rgba(5, 4, 6, .74)); }
.btn.want { color: var(--blush); border-color: rgba(167, 139, 250, .45); background: rgba(124, 58, 237, .1); }
.btn.want:hover { color: #fff; background: linear-gradient(135deg, #8b5cf6, #7c3aed 50%, #d01a78); border-color: transparent; box-shadow: 0 10px 30px rgba(124, 58, 237, .38); }
.wrap { position: relative; z-index: 2; }

/* ---------- type */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 12px var(--pink); }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; }

/* ---------- brand */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.brand .mark { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 15px; color: #fff;
  background: radial-gradient(120% 120% at 30% 20%, #a78bfa, #7c3aed 45%, #7a0b45); box-shadow: 0 6px 24px rgba(124, 58, 237, .45), inset 0 1px 0 rgba(255, 255, 255, .4); }
.brand small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- glass surfaces */
.glass { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06); }
.edge { position: relative; }
.edge::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(167, 139, 250, .55), rgba(255, 255, 255, .05) 35%, rgba(255, 255, 255, .02) 65%, rgba(124, 58, 237, .35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }

/* ---------- forms */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.field .hint { font-size: 12px; color: var(--muted); }
.input { width: 100%; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); border-radius: 14px; padding: 13px 15px; outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s; }
.input::placeholder { color: var(--faint); }
.input:focus { border-color: rgba(167, 139, 250, .7); box-shadow: 0 0 0 4px rgba(124, 58, 237, .18); background: rgba(255, 255, 255, .06); }
textarea.input { min-height: 90px; resize: vertical; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
select.input option { background: #140c11; }
.pw { position: relative; }
.pw .input { padding-right: 84px; }
.pw .show { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: rgba(255, 255, 255, .06); color: var(--ink-2); border-radius: 9px; padding: 6px 10px; font-size: 12px; cursor: pointer; }
.pw .show:hover { background: rgba(255, 255, 255, .12); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05);
  color: var(--ink); border-radius: 999px; padding: 10px 18px; font-weight: 500; cursor: pointer; transition: transform .15s, background .2s, border-color .2s, box-shadow .2s; white-space: nowrap; }
.btn:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .26); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { border: 0; color: #fff; background: linear-gradient(135deg, #8b5cf6, #7c3aed 50%, #d01a78); box-shadow: 0 10px 30px rgba(124, 58, 237, .38), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn.primary:hover { box-shadow: 0 14px 40px rgba(124, 58, 237, .55), inset 0 1px 0 rgba(255, 255, 255, .35); filter: brightness(1.06); }
.btn.block { width: 100%; padding: 14px 18px; font-size: 15px; }
.btn.ghost { background: none; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: rgba(255, 255, 255, .06); color: var(--ink); }
.btn.danger { color: var(--bad); border-color: rgba(255, 107, 129, .35); }
.btn.danger:hover { background: rgba(255, 107, 129, .12); }
.btn.sm { padding: 7px 13px; font-size: 13px; }

.msg { font-size: 13px; padding: 11px 14px; border-radius: 12px; margin-bottom: 14px; display: none; }
.msg.on { display: block; }
.msg.err { background: rgba(255, 107, 129, .12); color: #ffb3c0; border: 1px solid rgba(255, 107, 129, .28); }
.msg.ok { background: rgba(94, 230, 168, .1); color: #a9f5d1; border: 1px solid rgba(94, 230, 168, .25); }

.meter { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-top: 2px; }
.meter i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--grad); transition: width .3s; }

/* ---------- auth pages (login / invite) */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 48px; padding: 40px clamp(20px, 6vw, 88px); }
.auth .pitch { max-width: 560px; }
.auth .pitch h1 { font-size: clamp(44px, 6.4vw, 84px); line-height: .98; margin: 22px 0 22px; font-weight: 600; letter-spacing: -.04em; }
.auth .pitch h1 .serif { font-style: italic; font-weight: 400; letter-spacing: -.02em; }
.auth .pitch p { color: var(--ink-2); font-size: 17px; max-width: 460px; margin: 0; }
.auth .pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--ink-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pill b { color: var(--ink); font-weight: 600; }
.auth .card { padding: 36px; width: 100%; max-width: 440px; justify-self: center; }
.auth .card h2 { font-size: 26px; font-weight: 600; margin-bottom: 6px; }
.auth .card .sub { color: var(--muted); margin: 0 0 26px; font-size: 14px; }
.auth .fine { margin-top: 18px; font-size: 12.5px; color: var(--muted); text-align: center; }
.top { position: fixed; top: 24px; left: clamp(20px, 6vw, 88px); z-index: 3; }
@media (max-width: 900px) {
  .auth { grid-template-columns: minmax(0, 1fr); padding-top: 96px; gap: 32px; }
  .auth .pitch h1 { font-size: clamp(36px, 10vw, 48px); }
  .auth .card { padding: 26px 22px; }
}

/* ---------- app shell (portal + admin) */
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px; padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(5, 4, 6, .55); backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%); border-bottom: 1px solid var(--line); }
.nav .spacer { flex: 1; }
.nav .who { font-size: 13px; color: var(--muted); text-align: right; line-height: 1.3; }
.nav .who b { color: var(--ink); font-weight: 600; display: block; }
.page { max-width: 1180px; margin: 0 auto; padding: 44px clamp(16px, 4vw, 48px) 80px; }
.hero { padding: 26px 0 40px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 68px); line-height: 1; font-weight: 600; letter-spacing: -.04em; margin: 16px 0 14px; }
.hero h1 .serif { font-style: italic; font-weight: 400; }
.hero p { color: var(--ink-2); font-size: 17px; max-width: 620px; margin: 0; }
.section { margin-top: 56px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { font-size: 26px; font-weight: 600; }
.section-head h2 .serif { font-style: italic; font-weight: 400; color: var(--pink-2); }
.section-head p { color: var(--muted); margin: 6px 0 0; font-size: 14px; }

.grid { display: grid; gap: 16px; }
.g3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* connection cards */
.conn { padding: 22px; display: flex; flex-direction: column; gap: 14px; transition: transform .25s, border-color .25s; min-height: 220px; }
.conn:hover { transform: translateY(-3px); border-color: rgba(167, 139, 250, .3); }
.conn .head { display: flex; align-items: center; gap: 12px; }
.conn .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 700; font-size: 15px;
  background: linear-gradient(145deg, rgba(167, 139, 250, .25), rgba(124, 58, 237, .05)); border: 1px solid rgba(167, 139, 250, .3); color: var(--blush); }
.conn h3 { font-size: 17px; font-weight: 600; }
.conn .kind { font-size: 12px; color: var(--muted); }
.conn p { margin: 0; color: var(--ink-2); font-size: 14px; flex: 1; }
.conn .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.conn.active { border-color: rgba(94, 230, 168, .35); }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--ink-2); }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.requested { color: var(--pink-2); background: rgba(124, 58, 237, .12); }
.status.preparing { color: var(--warn); background: rgba(255, 197, 107, .12); }
.status.active { color: var(--good); background: rgba(94, 230, 168, .12); }
.status.invited { color: var(--warn); background: rgba(255, 197, 107, .12); }
.status.disabled { color: var(--bad); background: rgba(255, 107, 129, .12); }

/* tools */
.tool { padding: 22px; }
.tool .ico { font-size: 22px; color: var(--pink-2); width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(124, 58, 237, .1); margin-bottom: 14px; }
.tool h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.tool p { margin: 0; color: var(--muted); font-size: 14px; }
.soon { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--pink-2); margin-top: 14px; display: inline-block; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 22px; }
.step { display: flex; gap: 12px; align-items: flex-start; }
.step .n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; border: 1px solid var(--line-2); color: var(--muted); }
.step.done .n { border: 0; color: #fff; background: linear-gradient(135deg, #8b5cf6, #7c3aed); box-shadow: 0 0 18px rgba(124, 58, 237, .5); }
.step.now .n { border-color: var(--pink); color: var(--pink-2); }
.step b { display: block; font-size: 14px; font-weight: 600; }
.step span { font-size: 12.5px; color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- admin */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.kpi { padding: 18px 20px; }
.kpi .l { font-size: 12.5px; color: var(--muted); }
.kpi .v { font-size: 34px; font-weight: 600; letter-spacing: -.03em; margin-top: 4px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 28px 0 14px; }
.toolbar .input { max-width: 320px; padding: 10px 14px; border-radius: 999px; }
.toolbar select.input { max-width: 200px; }
.toolbar .spacer { flex: 1; }
.list { overflow: hidden; }
.row { display: grid; grid-template-columns: minmax(200px, 1.5fr) minmax(170px, 1.2fr) 110px minmax(150px, 1fr) 130px; gap: 14px; align-items: center;
  padding: 16px 20px; border-top: 1px solid var(--line); cursor: pointer; transition: background .15s; }
.row:first-child { border-top: 0; }
.row:hover { background: rgba(124, 58, 237, .06); }
.row.head { cursor: default; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; padding-top: 14px; padding-bottom: 12px; }
.row.head:hover { background: none; }
.row .co { display: flex; align-items: center; gap: 12px; min-width: 0; }
.row .av { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 600; font-size: 14px; color: #fff;
  background: linear-gradient(145deg, #a78bfa, #a3125e); }
.row .t { min-width: 0; }
.row .t b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .t span, .row .dim { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { font-size: 11.5px; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--ink-2); }
.chip.requested { background: rgba(124, 58, 237, .15); color: var(--pink-2); }
.chip.preparing { background: rgba(255, 197, 107, .14); color: var(--warn); }
.chip.active { background: rgba(94, 230, 168, .14); color: var(--good); }
@media (max-width: 860px) {
  .row { grid-template-columns: 1fr auto; }
  .row > :nth-child(2), .row > :nth-child(4), .row > :nth-child(5) { display: none; }
  .row.head { display: none; }
}
.empty { text-align: center; padding: 64px 20px; }
.empty .big { font-family: var(--serif); font-style: italic; font-size: 36px; margin-bottom: 8px; }
.empty p { color: var(--muted); margin: 0 0 22px; }

/* drawer + modal */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .25s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; width: min(560px, 100vw); overflow-y: auto; padding: 28px;
  background: rgba(12, 8, 11, .92); border-left: 1px solid var(--line); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  transform: translateX(100%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.drawer.on { transform: none; }
.modal { position: fixed; z-index: 41; left: 50%; top: 50%; width: min(540px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow-y: auto; padding: 30px;
  transform: translate(-50%, -46%) scale(.98); opacity: 0; pointer-events: none; transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .25s; }
.modal.on { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; }
.modal h2, .drawer h2 { font-size: 24px; font-weight: 600; }
.modal .sub, .drawer .sub { color: var(--muted); margin: 6px 0 22px; font-size: 14px; }
.x { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); cursor: pointer; color: var(--ink-2); }
.x:hover { background: rgba(255, 255, 255, .1); color: var(--ink); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 520px) { .two { grid-template-columns: 1fr; } }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.block-title { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 30px 0 12px; }
.linkbox { padding: 18px; border-radius: 16px; background: rgba(124, 58, 237, .08); border: 1px solid rgba(124, 58, 237, .3); }
.linkbox code { display: block; font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--blush); word-break: break-all; margin: 8px 0 14px; user-select: all; }
.linkbox .note { font-size: 12.5px; color: var(--muted); }
.connrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.connrow:first-child { border-top: 0; }
.connrow b { font-weight: 600; font-size: 14px; }
.connrow span { display: block; font-size: 12px; color: var(--muted); }
.connrow select.input { width: 170px; padding: 8px 32px 8px 12px; font-size: 13px; border-radius: 10px; }
.events { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.events li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.events li:first-child { border-top: 0; }
.events time { color: var(--muted); white-space: nowrap; }
.dtabs { display: flex; gap: 2px; padding: 3px; margin: 0 0 22px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.dtabs button { flex: 1; height: 32px; border: 0; border-radius: 9px; background: none; color: var(--muted); font: 500 13px var(--sans); cursor: pointer; white-space: nowrap; }
.dtabs button:hover { color: var(--ink); }
.dtabs button.on { background: rgba(255, 255, 255, .1); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
#dbody .block-title { margin-top: 26px; }
#dbody textarea.input { min-height: 72px; }
.pager { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; font-size: 13px; color: var(--muted); }
.mstep { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.mfoot { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; }
@media (max-width: 520px) { .dtabs { overflow-x: auto; } .dtabs button { flex: none; padding: 0 12px; } }
.meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 13.5px; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; }

.toast { position: fixed; z-index: 60; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; transition: all .3s; padding: 12px 18px; border-radius: 999px;
  background: rgba(20, 12, 18, .92); border: 1px solid rgba(167, 139, 250, .35); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); font-size: 14px; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.loading { color: var(--muted); padding: 60px 0; text-align: center; }
.fade-in { animation: fade .6s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- bow lockup (replaces the ✦ logo) */
.lockup { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); text-decoration: none; }
.lockup:hover { color: var(--ink); }
.lockup .bow { display: block; width: 132px; aspect-ratio: 400 / 330; margin: -18px -6px -26px -14px; flex: none; }
.lockup .bow svg { width: 100%; height: 100%; overflow: visible; display: block; }
.lockup .wm { font-family: var(--serif); font-style: italic; font-size: 38px; line-height: 1; letter-spacing: -.01em;
  background: linear-gradient(120deg, #fff 0%, #ede9fe 45%, #a78bfa 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 4px; }
.lockup .tag { margin-left: 12px; padding-left: 14px; border-left: 1px solid var(--line-2); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lockup.sm .bow { width: 78px; margin: -12px -4px -16px -10px; }
.lockup.sm .wm { font-size: 26px; }
.lockup.hero { margin: 0 0 34px -18px; gap: 8px; }
.lockup.hero .bow { width: clamp(150px, 15vw, 220px); margin: -20px -10px -26px 0; filter: drop-shadow(0 18px 40px rgba(124, 58, 237, .25)); }
.lockup.hero .wm { font-size: clamp(42px, 4.6vw, 64px); }

/* big "Partners" title instead of the small dotted label */
.kicker { font-size: clamp(30px, 3.4vw, 44px); font-weight: 600; letter-spacing: -.03em; line-height: 1;
  background: linear-gradient(120deg, #ddd6fe, #a78bfa 55%, #7c3aed); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth .pitch h1 { margin-top: 18px; }
@media (max-width: 900px) {
  .auth { padding-top: 40px; }
  .lockup.hero { margin-bottom: 24px; }
}
@media (max-width: 560px) {
  .lockup .tag { display: none; }
  .lockup.sm .bow { width: 64px; }
  .lockup.sm .wm { font-size: 22px; }
  .nav .who { display: none; }
}

/* ---------- the page as a gift: ribbon + bow wrap the top-left corner */
.gift { position: absolute; top: 0; left: 0; width: clamp(460px, 66vmin, 820px); aspect-ratio: 1; z-index: 3; pointer-events: none; }
.gift canvas { display: block; }
/* the pitch starts below the gift ribbon, whose size follows the viewport */
@media (min-width: 901px) {
  .auth { align-items: end; padding-bottom: 56px; }
  .auth .card { align-self: center; }
  .auth .pitch { padding-top: calc(clamp(460px, 66vmin, 820px) * .56); }
}
@media (min-width: 901px) and (max-height: 900px) {
  .auth .pitch h1 { font-size: clamp(48px, 5.4vw, 68px); margin: 12px 0 16px; }
  .auth .pitch p { font-size: 16px; }
  .platforms { margin-top: 24px; }
}
@media (max-width: 900px) { .gift { width: min(340px, 88vw); } .auth { padding-top: 250px; } .auth .card { max-width: 100%; } }

/* ---------- Apple-style glass, pushed to the max */
.glass {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .035) 38%, rgba(255, 255, 255, .02) 70%, rgba(255, 140, 200, .05)),
    rgba(22, 11, 18, .62);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 28px;
  /* "baked" glass: a live backdrop blur on every card is what made pages stutter
     (re-blurred each frame over the moving background). The liquid behind is
     already soft, so gradient + edge light + grain read as glass at no cost. */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow:
    0 50px 120px -30px rgba(0, 0, 0, .8),
    0 18px 40px -18px rgba(124, 58, 237, .18),
    inset 0 1px 0 rgba(255, 255, 255, .24),
    inset 0 -1px 0 rgba(255, 255, 255, .05),
    inset 0 0 60px rgba(167, 139, 250, .05);
}
/* glass grain + the soft specular arc light leaves on thick glass */
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background:
    radial-gradient(420px circle at var(--mx, 15%) var(--my, -10%), rgba(255, 255, 255, .13), transparent 60%),
    radial-gradient(130% 70% at 18% -18%, rgba(255, 255, 255, .15), transparent 52%),
    radial-gradient(90% 60% at 100% 110%, rgba(124, 58, 237, .12), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.edge::before {
  background: linear-gradient(140deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .08) 26%, rgba(255, 255, 255, .02) 55%, rgba(167, 139, 250, .14) 80%, rgba(255, 160, 210, .45));
}
.input {
  background: rgba(0, 0, 0, .28);
  border-color: rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35), inset 0 0 0 .5px rgba(255, 255, 255, .03);
}
.input:focus { background: rgba(0, 0, 0, .34); }
.btn { backdrop-filter: none; -webkit-backdrop-filter: none; }
.btn.primary {
  background: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 48%), linear-gradient(135deg, #a78bfa, #7c3aed 50%, #cc1673);
  box-shadow: 0 14px 34px -8px rgba(124, 58, 237, .6), inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(0, 0, 0, .15);
}
.nav { background: rgba(10, 6, 9, .32); backdrop-filter: blur(var(--gb-lg)) saturate(190%); -webkit-backdrop-filter: blur(var(--gb-lg)) saturate(190%);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .06), 0 10px 40px -20px rgba(0, 0, 0, .6); }
.auth .card { border-radius: 32px; padding: 40px; }
.drawer { background: rgba(14, 8, 12, .55); backdrop-filter: blur(var(--gb-lg)) saturate(190%); -webkit-backdrop-filter: blur(var(--gb-lg)) saturate(190%);
  box-shadow: -30px 0 80px rgba(0, 0, 0, .5), inset 1px 0 0 rgba(255, 255, 255, .1); }
.toast { background: rgba(20, 12, 18, .5); backdrop-filter: blur(var(--gb-sm)) saturate(180%); -webkit-backdrop-filter: blur(var(--gb-sm)) saturate(180%); }

/* thick glass: a bright lip on the top edge, a pink glow caught in the bottom */
.glass { box-shadow:
    0 50px 120px -30px rgba(0, 0, 0, .8),
    0 18px 40px -18px rgba(124, 58, 237, .18),
    inset 0 1px 0 rgba(255, 255, 255, .26),
    inset 1px 0 0 rgba(255, 255, 255, .06),
    inset 0 -1px 0 rgba(255, 255, 255, .05),
    inset 0 -30px 60px -30px rgba(124, 58, 237, .16),
    inset 0 0 0 1px rgba(255, 255, 255, .02); }
.glass > * { position: relative; }
.glass > .x { position: absolute; }
.glass:hover { border-color: rgba(255, 255, 255, .16); }
/* devices without backdrop blur get a richer solid glass instead of a see-through one */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .nav, .drawer, .toast { background: linear-gradient(135deg, rgba(48, 22, 38, .96), rgba(22, 12, 19, .97)); }
}

/* glass blur follows the performance level (perf.js); the look stays, the cost drops */
:root { --gb: 34px; --gb-lg: 36px; --gb-sm: 18px; }
:root[data-q="1"] { --gb: 24px; --gb-lg: 26px; --gb-sm: 14px; }
:root[data-q="2"] { --gb: 16px; --gb-lg: 18px; --gb-sm: 10px; }
/* weakest devices: no live blur at all — rich solid glass that still catches the light */
:root[data-q="3"] .glass, :root[data-q="3"] .nav, :root[data-q="3"] .drawer, :root[data-q="3"] .toast, :root[data-q="3"] .btn {
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
}
:root[data-q="3"] .glass { background: linear-gradient(135deg, rgba(62, 28, 48, .94), rgba(24, 12, 20, .96) 55%, rgba(40, 14, 30, .95)); }
:root[data-q="3"] .nav, :root[data-q="3"] .drawer, :root[data-q="3"] .toast { background: rgba(16, 9, 14, .96); }

/* ---------- e-commerce platforms: Custom now, the rest coming soon */
.platforms { margin-top: 34px; }
/* one glass capsule: Custom (available now) | the platforms (coming soon) */
.plat { display: inline-flex; align-items: center; gap: 22px; padding: 12px 22px 12px 12px; border-radius: 26px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03) 45%, rgba(255, 140, 200, .05)), rgba(22, 11, 18, .5);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 -18px 30px -24px rgba(124, 58, 237, .25), 0 24px 60px -30px rgba(0, 0, 0, .8); }
.plat-now { display: flex; align-items: center; gap: 14px; }
.plat-custom { display: inline-grid; place-items: center; width: 62px; height: 62px; border-radius: 18px; font-size: 12.5px; font-weight: 600; color: #fff;
  background: linear-gradient(160deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .04) 55%), rgba(124, 58, 237, .32);
  border: 1px solid rgba(255, 255, 255, .24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -10px 20px -10px rgba(124, 58, 237, .5), 0 10px 26px -10px rgba(124, 58, 237, .55); }
.plat-cap { display: flex; flex-direction: column; gap: 2px; line-height: 1.25; }
.plat-cap b { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.plat-cap small, .plat-soon small { font-size: 12px; color: var(--muted); }
.plat-div { width: 1px; align-self: stretch; margin: 6px 0; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .18), transparent); }
.plat-soon { display: flex; flex-direction: column; gap: 6px; }
.plat-marks { display: flex; align-items: center; gap: 16px; }
.plat-mark svg { width: 22px; height: 22px; display: block; fill: rgba(251, 242, 247, .32); transition: fill .3s; }
.plat-mark:hover svg { fill: rgba(251, 242, 247, .62); }
.plat-more { font-size: 12.5px; color: var(--faint); font-weight: 500; }
.plat-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.plat-tile { aspect-ratio: 1; padding: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.plat-tile svg { width: 38px; height: 38px; fill: rgba(251, 242, 247, .32); margin-bottom: 6px; transition: fill .3s, transform .3s; }
.plat-tile:hover svg { fill: rgba(251, 242, 247, .6); transform: translateY(-2px); }
.plat-tile b { font-size: 14px; font-weight: 600; color: var(--muted); }
.plat-tile span { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.plat-tile.custom { grid-column: span 2; aspect-ratio: auto; align-items: flex-start; text-align: left; padding: 24px; border-color: rgba(167, 139, 250, .45);
  background: linear-gradient(135deg, rgba(124, 58, 237, .26), rgba(124, 58, 237, .05)), rgba(20, 10, 17, .34); }
.plat-tile.custom .badge-now { font-size: 11.5px; font-weight: 600; color: #fff; padding: 5px 11px; border-radius: 999px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .04)), rgba(124, 58, 237, .25);
  border: 1px solid rgba(255, 255, 255, .22); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4); }
.plat-tile.custom .cmark { font-family: var(--serif); font-style: italic; font-size: 44px; line-height: 1; margin: 4px 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plat-tile.custom b { color: var(--ink); font-size: 16px; }
.plat-tile.custom .desc { text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--ink-2); }
@media (max-width: 900px) { .platforms { margin-top: 24px; } .plat { flex-wrap: wrap; padding-right: 16px; } .plat-mark svg { width: 20px; height: 20px; } }
@media (max-width: 520px) { .plat-div { display: none; } .plat-marks { gap: 12px; } }
@media (max-width: 380px) { .plat-tile.custom { grid-column: auto; } }

/* browser autofill keeps the glass look instead of a pale blue field */
.input:-webkit-autofill, .input:-webkit-autofill:hover, .input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink); caret-color: var(--ink);
  box-shadow: 0 0 0 1000px #160c13 inset, inset 0 1px 2px rgba(0, 0, 0, .35);
  transition: background-color 99999s ease-out;
}
.plat-tile svg.wide { width: 92px; height: 20px; margin: 9px 0 15px; }

/* live blur only where it shows most: the sign-in card and dialogs (one at a time) */
.glass.live {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .035) 38%, rgba(255, 255, 255, .02) 70%, rgba(255, 140, 200, .05)),
    rgba(20, 10, 17, .34);
  backdrop-filter: blur(var(--gb)) saturate(190%) brightness(1.04);
  -webkit-backdrop-filter: blur(var(--gb)) saturate(190%) brightness(1.04);
}
.plat-tile.custom { background: linear-gradient(135deg, rgba(124, 58, 237, .28), rgba(124, 58, 237, .06)), rgba(22, 11, 18, .6); }

/* status pills: glass, no dots; colour only as a soft tint */
.status { gap: 0; padding: 5px 11px; color: var(--ink-2); background: linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); }
.status::before { display: none; }
.status.requested { color: #fff; background: linear-gradient(160deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .03)), rgba(124, 58, 237, .24); border-color: rgba(255, 255, 255, .2); }
.status.preparing, .status.invited { color: #ffe3c2; background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03)), rgba(255, 170, 90, .14); }
.status.active { color: #fff; background: linear-gradient(160deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, .05)), rgba(124, 58, 237, .38); border-color: rgba(255, 255, 255, .26); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 8px 20px -8px rgba(124, 58, 237, .6); }
.status.disabled { color: #ddd6fe; background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .02)), rgba(255, 80, 100, .14); }
.chip { border: 1px solid rgba(255, 255, 255, .1); background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .02)); }
.chip.active { color: #fff; background: linear-gradient(160deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .03)), rgba(124, 58, 237, .3); }
.conn.active { border-color: rgba(167, 139, 250, .45); }
/* drawer forms: compact enough that each tab fits on a laptop screen */
#dbody .field { margin-bottom: 12px; }
#dbody .input { padding: 10px 13px; }
.meta dd.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }

/* Corporate look (owner 2026-10-28): no bow, ribbon or animated liquid; the
   MagicWish logo top-left, solid dark background, violet instead of pink. */
:root { --bg: #0e0c13; --pink: #7c3aed; --pink-2: #a78bfa; --blush: #ddd6fe; --plum: #2e1065;
  --grad: linear-gradient(120deg, #ddd6fe 0%, #a78bfa 45%, #7c3aed 100%);
  --serif: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif; }
body { background: #0e0c13 !important; }
.veil, .gift { display: none !important; }
.serif { font-style: normal !important; font-weight: 600 !important; }
.glass { background: #17151e !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.brandbar { position: absolute; top: 24px; left: 28px; z-index: 5; display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 15px var(--sans); }
.brandbar img, .lockup .mwlogo { width: 32px; height: 32px; border-radius: 8px; background: #fff; padding: 4px; }
.brandbar b { font-weight: 400; color: var(--ink-2); }
.lockup .wm { font-family: var(--sans) !important; font-style: normal !important; font-size: 16px !important; font-weight: 600; }
@media (min-width: 901px) { .auth .pitch { padding-top: 0 !important; } .auth { align-items: center !important; padding-bottom: 0 !important; } }
@media (max-width: 900px) { .auth { padding-top: 88px !important; } }
.dchips { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.dchips .btn { min-width: 40px; padding: 0 10px; }

/* Team: network tabs, Statistics and Products */
.ntabs { display: flex; gap: 4px; margin: -18px 0 28px; padding: 4px; width: max-content; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .03); }
.ntabs a { padding: 8px 18px; border-radius: 999px; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.ntabs a:hover { color: var(--ink); }
.ntabs a.on { background: rgba(255, 255, 255, .1); color: var(--ink); }
.nhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.nhead h2 { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.nhead p { margin: 6px 0 0; font-size: 13px; }
.dim { color: var(--muted); }
.seg { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.seg button { border: 0; background: none; color: var(--ink-2); font: 500 13px Inter, system-ui, sans-serif; padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.seg button.on { background: rgba(255, 255, 255, .1); color: var(--ink); }
.nkpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.nk { padding: 16px 18px; border-radius: 16px; }
.nk .l { font-size: 12px; color: var(--ink-2); font-weight: 500; }
.nk .v { font-size: 26px; font-weight: 600; letter-spacing: -.02em; margin: 6px 0 4px; font-feature-settings: "tnum" 1; }
.nk .s { font-size: 12px; color: var(--muted); }
.up { color: #34d399; } .dn { color: var(--bad); }
.ngrid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
.npanel { border-radius: 18px; margin-bottom: 14px; overflow: hidden; }
.ngrid .npanel { margin-bottom: 0; }
.npanel .ph { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.npanel .ph .dim { font-size: 12px; }
.nchart { height: 300px; margin: 12px 14px; }
.ninsights { list-style: none; margin: 0; padding: 6px 0; }
.ninsights li { display: grid; grid-template-columns: 10px 150px 1fr; align-items: baseline; gap: 12px; padding: 9px 18px; font-size: 13.5px; cursor: pointer; }
.ninsights li:hover { background: rgba(255, 255, 255, .03); }
.ninsights li i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.ninsights li.good i { background: #34d399; } .ninsights li.warn i { background: var(--warn); } .ninsights li.bad i { background: var(--bad); } .ninsights li.info i { background: var(--pink-2); }
.ninsights li span { color: var(--ink-2); }
.nscroll { overflow-x: auto; }
.ntable { width: 100%; border-collapse: collapse; font-size: 13px; }
.ntable th { text-align: right; font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; cursor: pointer; user-select: none; }
.ntable th.on { color: var(--ink); }
.ntable td { text-align: right; padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, .05); white-space: nowrap; font-feature-settings: "tnum" 1; vertical-align: middle; }
.ntable th:first-child, .ntable td:first-child, .ntable th:nth-child(2), .ntable td:nth-child(2) { text-align: left; }
.ntable td small { display: block; font-size: 11px; color: var(--muted); }
.ntable td small.warn { color: var(--warn); }
.ntable tbody tr { cursor: pointer; }
.ntable tbody tr:hover { background: rgba(255, 255, 255, .03); }
.ntable tr.test { opacity: .55; }
.ntable td.z { color: var(--muted); }
.ntable.prod tbody tr { cursor: default; }
.ntable.prod th:nth-child(3), .ntable.prod td:nth-child(3), .ntable.prod th:nth-child(4), .ntable.prod td:nth-child(4) { text-align: left; }
.ntable.prod td:nth-child(2) { max-width: 360px; overflow: hidden; text-overflow: ellipsis; }
.ntable.prod td:nth-child(2) a { color: var(--ink); }
.ntable.prod img, .ntable.prod .noimg { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; background: #fff; display: block; }
.tag { display: inline-block; font-size: 11px; font-weight: 500; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--ink-2); }
.tag.ok { color: #34d399; background: rgba(52, 211, 153, .1); } .tag.warn { color: var(--warn); background: rgba(255, 197, 107, .1); } .tag.bad { color: var(--bad); background: rgba(255, 107, 129, .1); } .tag.dim { color: var(--muted); }
.chk { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
@media (max-width: 900px) { .nkpis { grid-template-columns: 1fr 1fr; } .ngrid { grid-template-columns: 1fr; } .ninsights li { grid-template-columns: 10px 1fr; } .ninsights li span { grid-column: 2; } }
body.wide .page { max-width: 1480px; }
.shopcell { display: flex; align-items: center; gap: 10px; }
.shopcell img, .shopcell > i { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: #f3f2f4; flex: none; display: block; }
.ntable tr.noacc { cursor: default; }
/* team list: shop logos, shops in the app without an account */
.row img.av.logo { object-fit: cover; background: #f3f2f4; padding: 0; border-radius: 50%; }
.section-head.appshops { margin: 44px 0 16px; }
.section-head.appshops h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.appgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.appshop { padding: 18px; border-radius: 18px; display: flex; flex-direction: column; gap: 12px; }
.appshop .ah { display: flex; align-items: center; gap: 12px; min-width: 0; }
.appshop .ah img, .appshop .ah .av { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #f3f2f4; flex: none; display: grid; place-items: center; font-weight: 600; color: #fff; }
.appshop .ah .av { background: linear-gradient(135deg, #7c3aed, #db2777); }
.appshop .ah b { display: block; font-size: 15px; }
.appshop .ah span { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appshop .am { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink-2); }
.appshop .am b { color: var(--ink); font-feature-settings: "tnum" 1; }
.appshop .am i { color: var(--muted); font-style: normal; }
.appshop .ad { font-size: 11.5px; color: var(--muted); }
.appshop .btn { align-self: flex-start; margin-top: auto; }
/* six numbers on one line on a laptop */
body[data-page="team"] .kpis { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
body[data-page="team"] .kpis .kpi .v { font-size: clamp(22px, 2vw, 30px); white-space: nowrap; }
.appshop .tag { align-self: flex-start; margin-top: auto; }
/* partner drawer: Edit tab */
.estate { display: grid; gap: 8px; margin: 4px 0 18px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.estate b { display: block; font-size: 13.5px; }
.estate span { display: block; font-size: 12px; color: var(--muted); }
#eform .field { margin-bottom: 14px; }
.locked { display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px dashed var(--line-2); }
.locked b { font-size: 16px; }
.locked span { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
/* Partners CRM: stages, next steps, profile */
.hactions { display: flex; gap: 10px; align-items: center; }
.stagebar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.stagebar button { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--ink-2); font: 500 13px Inter, system-ui, sans-serif; padding: 7px 12px; border-radius: 999px; cursor: pointer; }
.stagebar button b { font-weight: 600; color: var(--ink); font-feature-settings: "tnum" 1; }
.stagebar button.on { background: rgba(139, 92, 246, .18); border-color: rgba(139, 92, 246, .45); color: var(--ink); }
.stagebar .st-attention b { color: var(--warn); }
.stage { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--ink-2); white-space: nowrap; }
.stage::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.stage.st-working { color: #34d399; background: rgba(52, 211, 153, .1); }
.stage.st-attention { color: var(--warn); background: rgba(255, 197, 107, .1); }
.stage.st-active { color: var(--pink-2); background: rgba(167, 139, 250, .1); }
.stage.st-invited { color: #93c5fd; background: rgba(147, 197, 253, .1); }
.stage.st-app, .stage.st-test, .stage.st-disabled { color: var(--muted); }
.ntable.plist tbody tr { cursor: pointer; }
.ntable.plist th:nth-child(3), .ntable.plist td:nth-child(3) { text-align: left; }
.ntable.plist td:last-child { text-align: right; }
.shopcell .ini, .ini { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11.5px; font-weight: 600; color: #fff; background: linear-gradient(135deg, #7c3aed, #db2777); flex: none; }
.ini.big { width: 64px; height: 64px; font-size: 20px; }
.back { display: inline-block; margin: -8px 0 14px; font-size: 13.5px; color: var(--ink-2); }
.back:hover { color: var(--ink); }
.phero { display: flex; align-items: center; gap: 20px; padding: 22px 24px; border-radius: 20px; flex-wrap: wrap; }
.phero > img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: #f3f2f4; flex: none; }
.phero .grow { flex: 1; min-width: 240px; }
.phero .pt { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.phero h2 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.phero p { margin: 6px 0 0; font-size: 13px; }
.pacts { display: flex; gap: 8px; flex-wrap: wrap; }
.pconn { padding: 14px 18px; }
.pconn .pc { display: grid; gap: 4px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.pconn .pc span { font-size: 12px; color: var(--muted); }
.pev-h { margin: 14px 0 6px; font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
/* orders watch on a shop's profile: same dots as "What to look at", no name column, not clickable */
.ninsights.pwatch { padding: 0; }
.ninsights.pwatch li { grid-template-columns: 10px 1fr; padding: 6px 0; cursor: default; font-size: 13px; }
.ninsights.pwatch li:hover { background: none; }
.pev { list-style: none; margin: 0; padding: 0; }
.pev li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, .04); font-size: 12.5px; }
.pev li span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pev li time { color: var(--muted); font-size: 11.5px; }
.pev.hist { padding: 6px 18px 12px; }
.pev.hist li { grid-template-columns: 1fr auto; }
@media (max-width: 700px) { .phero { padding: 18px; } .pacts { width: 100%; } }
.pconn .pc .tag { justify-self: start; }
.ntable.ptop th:nth-child(3), .ntable.ptop td:nth-child(3), .ntable.ptop th:nth-child(4), .ntable.ptop td:nth-child(4) { text-align: right; }
.ntable.ptop td:nth-child(2) { width: 100%; }

/* ---- Docs tab (team page) ---- */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; }
.dtoc { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 2px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .02); }
.dtoc a { padding: 8px 12px; border-radius: 9px; color: var(--ink-2); font-size: 13.5px; }
.dtoc a:hover { color: var(--ink); background: rgba(255, 255, 255, .04); }
.dtoc a.on { color: var(--ink); background: rgba(255, 255, 255, .07); }
.dbody { max-width: 980px; min-width: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.65; }
.dbody section { padding: 4px 0 36px; margin-bottom: 36px; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.dbody section:last-child { border-bottom: 0; }
.dbody h3 { color: var(--ink); font-size: 22px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 14px; }
.dbody h4 { color: var(--ink); font-size: 15px; font-weight: 600; margin: 26px 0 8px; }
.dbody p, .dbody ol { margin: 0 0 12px; }
.dbody ol { padding-left: 22px; }
.dbody b { color: var(--ink); font-weight: 600; }
.dbody a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.dbody code { font: 12.5px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); color: var(--ink); }
.dcode { font: 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); background: rgba(0, 0, 0, .35); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; overflow-x: auto; white-space: pre; margin: 8px 0 16px; }
.dnote { font-size: 13px; color: var(--muted); }
.dtable { overflow-x: auto; margin: 8px 0 18px; border: 1px solid var(--line); border-radius: 12px; }
.dtable table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.dtable th { text-align: left; font-weight: 600; color: var(--ink); background: rgba(255, 255, 255, .04); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.dtable td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.dtable tr:last-child td { border-bottom: 0; }
@media (max-width: 860px) { .docs { grid-template-columns: 1fr; gap: 16px; } .dtoc { position: static; flex-direction: row; flex-wrap: wrap; } }
.wallow { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(139, 92, 246, .06); }
.wallow b { display: block; color: var(--ink); font-weight: 600; font-size: 14px; }
.wallow span { display: block; color: var(--ink-2); font-size: 12.5px; margin-top: 3px; line-height: 1.45; }
.dbody ul { margin: 0 0 12px; padding-left: 22px; }

/* ---------------------------------------------------------------- commission report (commission.js) */
.cmcell { all: unset; cursor: pointer; display: block; text-align: right; padding: 4px 8px; margin: -4px -8px; border-radius: 10px; transition: background .15s; }
.cmcell:hover { background: rgba(124, 58, 237, .16); }
.cmcell b { color: var(--blush); }
.cmcell.z { color: var(--muted); }
.cmcell:focus-visible { outline: 2px solid rgba(167, 139, 250, .8); }
.cm-root .cm-scrim { z-index: 44; }
.cm-root .cm-modal { z-index: 45; width: min(560px, calc(100vw - 32px)); }
.cm-root .cm-wide { width: min(1240px, calc(100vw - 32px)); height: calc(100vh - 40px); max-height: none; overflow: hidden; display: flex; flex-direction: column; padding: 26px 28px 0; }
.cm-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.cm-quick .btn.on, .cm-tools .btn.on { border-color: rgba(167, 139, 250, .7); background: rgba(124, 58, 237, .22); color: #fff; }
.cm-cal { border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin-bottom: 16px; background: rgba(255, 255, 255, .02); }
.cm-year { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cm-year b { font-size: 15px; font-weight: 600; }
.cm-months { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.cm-m { position: relative; padding: 11px 0; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--ink-2); font: 500 13px var(--sans); cursor: pointer; transition: all .15s; }
.cm-m:hover:not(:disabled) { background: rgba(255, 255, 255, .08); color: var(--ink); }
.cm-m.now { border-color: rgba(167, 139, 250, .45); }
.cm-m.on { background: linear-gradient(135deg, #8b5cf6, #7c3aed); border-color: transparent; color: #fff; box-shadow: 0 6px 18px rgba(124, 58, 237, .35); }
.cm-m:disabled { opacity: .3; cursor: default; }
.cm-m i { position: absolute; top: 6px; right: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--good); }
.cm-dates .field { margin-bottom: 12px; }
.cm-dates input[type=date] { color-scheme: dark; }
.cm-types { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 18px; }
.cm-types > .dim { font-size: 13px; }
.cm-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.cm-check:hover { background: rgba(255, 255, 255, .03); }
.cm-check input { margin-top: 3px; accent-color: #7c3aed; }
.cm-check b { display: block; font-weight: 500; font-size: 13.5px; }
.cm-check small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.cm-go { padding-bottom: 4px; }
.cm-only { font-size: 12.5px; color: var(--muted); margin: 0 0 16px; }
.cm-head { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; padding-right: 44px; }
.cm-head .sub { margin-bottom: 14px; }
.cm-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cm-lang { width: auto; padding: 8px 12px; font-size: 13px; border-radius: 12px; }
.cm-save { font-size: 12.5px; color: var(--good); min-width: 120px; text-align: right; }
.cm-save.busy { color: var(--muted); }
.cm-save.bad { color: var(--bad); }
.cm-body { flex: 1; overflow: auto; margin: 0 -28px; padding: 0 28px 16px; }
.cm-sec { border: 1px solid var(--line); border-radius: 18px; margin-bottom: 16px; background: rgba(0, 0, 0, .18); overflow: hidden; }
.cm-sech { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.cm-sech > b { font-size: 15px; font-weight: 600; margin-right: 6px; }
.cm-sech .spacer { flex: 1; }
.cm-set { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.cm-set .input { width: auto; padding: 6px 9px; font-size: 13px; border-radius: 10px; }
.cm-set input.input { width: 56px; text-align: right; }
.cm-pt { font-weight: 600; color: var(--blush); font-feature-settings: "tnum" 1; }
.cm-table th { cursor: default; text-align: left; }
.cm-table th.r, .cm-table td.r { text-align: right; }
.cm-table td { text-align: left; vertical-align: top; }
.cm-table td.wrap { white-space: normal; min-width: 180px; max-width: 360px; line-height: 1.4; }
.cm-table td.n { color: var(--faint); width: 28px; }
.cm-table td.b { font-weight: 600; color: var(--blush); }
.cm-table tbody tr { cursor: default; }
.cm-table tbody tr.sel { background: rgba(124, 58, 237, .1); }
.cm-table td.ed { cursor: text; border-radius: 6px; }
.cm-table td.ed:hover { box-shadow: inset 0 0 0 1px rgba(167, 139, 250, .35); }
.cm-table td.chg { position: relative; }
.cm-table td.chg::after { content: ""; position: absolute; top: 6px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); }
.cm-table td.editing { padding: 4px 6px; box-shadow: none; }
.cm-in { width: 100%; min-width: 90px; font: inherit; color: var(--ink); background: rgba(0, 0, 0, .4); border: 1px solid rgba(167, 139, 250, .8); border-radius: 8px; padding: 6px 8px; outline: none; box-shadow: 0 0 0 3px rgba(124, 58, 237, .22); resize: vertical; color-scheme: dark; }
td.r .cm-in { text-align: right; }
.cm-pending { opacity: .55; }
.cm-table tr.del td { opacity: .4; text-decoration: line-through; }
.cm-table tr.del td.act { opacity: 1; text-decoration: none; }
.cm-table td.act { width: 40px; text-align: right; }
.cm-x { width: 28px; height: 28px; border-radius: 50%; border: 1px solid transparent; background: none; color: var(--faint); font-size: 18px; line-height: 1; cursor: pointer; opacity: 0; transition: all .15s; }
.cm-table tr:hover .cm-x, .cm-x:focus-visible { opacity: 1; }
.cm-x:hover { color: var(--bad); border-color: rgba(255, 107, 129, .35); background: rgba(255, 107, 129, .1); }
@media (hover: none) { .cm-x { opacity: 1; } }
.cm-kind { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--ink-2); }
.cm-kind.k-mw { background: rgba(124, 58, 237, .22); color: #ddd6fe; }
.cm-kind.k-wished { background: rgba(244, 114, 182, .16); color: #fbcfe8; }
.cm-kind.k-manual { background: rgba(255, 197, 107, .14); color: #ffe1ad; }
.cm-none { text-align: center !important; padding: 26px !important; }
.cm-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 60px 20px; text-align: center; }
.cm-empty span { color: var(--muted); font-size: 13.5px; max-width: 420px; }
.cm-empty .btn { margin-top: 8px; }
.cm-foot { display: flex; gap: 14px; justify-content: flex-end; flex-wrap: wrap; padding: 14px 0 18px; border-top: 1px solid var(--line); }
.cm-tot { display: grid; grid-template-columns: auto auto; column-gap: 14px; align-items: baseline; text-align: right; }
.cm-tot span { color: var(--muted); font-size: 13px; }
.cm-tot b { font-size: 22px; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-feature-settings: "tnum" 1; }
.cm-tot small { grid-column: 2; color: var(--muted); font-size: 11.5px; }
.cm-undo { position: absolute; left: 50%; bottom: 84px; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; transition: all .25s; display: flex; gap: 12px; align-items: center;
  padding: 8px 8px 8px 16px; border-radius: 999px; background: rgba(20, 12, 24, .96); border: 1px solid var(--line-2); font-size: 13px; box-shadow: 0 12px 40px rgba(0, 0, 0, .5); }
.cm-undo.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
@media (max-width: 720px) {
  .cm-root .cm-wide { padding: 20px 16px 0; height: calc(100vh - 24px); }
  .cm-body { margin: 0 -16px; padding: 0 16px 16px; }
  .cm-months { grid-template-columns: repeat(4, 1fr); }
  .cm-head { padding-right: 36px; }
}
.cm-table { table-layout: fixed; min-width: 1000px; }
.cm-table col.c-n { width: 36px; } .cm-table col.c-d { width: 108px; } .cm-table col.c-o { width: 104px; } .cm-table col.c-s { width: 104px; }
.cm-table col.c-v { width: 132px; } .cm-table col.c-p { width: 64px; } .cm-table col.c-c { width: 118px; } .cm-table col.c-note { width: 190px; } .cm-table col.c-a { width: 48px; }
.cm-table td.wrap { min-width: 0; max-width: none; overflow-wrap: anywhere; }
.cm-table td.nw { overflow: hidden; text-overflow: ellipsis; }
