/* Template skin over the partner's components (ui-port.css): rounded cards with the Webzi gradient, pill controls,
   Parkinsans weights, yellow accent. Loaded after ui-port.css on every app page. */
.ui { padding-bottom: 60px; }
.ui .eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ui .eyebrow a { color: inherit; }
.ui .eyebrow a:hover { color: var(--accent); }
.ui h2, .ui h3 { font-weight: 600; letter-spacing: -.03em; }

/* surfaces */
.ui :is(.pane, .dhead, .mcard, .post, .stage-wrap, .board, .tblwrap) { border: 0 !important; border-radius: 10px; background: var(--card); position: relative; }
.ui :is(.pane, .dhead, .mcard, .post)::before { content: ''; position: absolute; inset: 0; border: 1px solid var(--line); border-radius: inherit; pointer-events: none; z-index: 0; }
.ui .pane > *, .ui .dhead > *, .ui .mcard > * { position: relative; z-index: 1; }
.ui .mcard .mcover { position: absolute; z-index: 2; }
.ui .mcard .mca { z-index: 3; }
.ui .mcard:hover::before { border-color: var(--accent); }
.ui .mcard:hover { transform: translateY(-4px); }
.ui .phead { border-bottom-color: #262626; padding: 16px 20px; }
.ui .phead .eyebrow { color: #fff; font-size: 13px; }
.ui .pbody { padding: 18px 20px; }
.ui .dhead { overflow: hidden; }
.ui .dstat { border-left-color: #262626; }
.ui .dstat b { font-weight: 600; letter-spacing: -.03em; }
.ui .dstat.big b { color: var(--accent); }
.ui .did h2 { font-size: clamp(28px, 2.6vw, 40px); }
.ui .eyewin { border-radius: 10px; border-color: var(--line); background: #121212; }
.ui .ebar { background: #1b1b1c; border-bottom-color: #262626; }
.ui .ebar .url { border-radius: 30px; background: #121212; border-color: #2a2a2a; padding: 6px 14px; }
.ui .cap { background: linear-gradient(transparent, #121212 42%); }
.ui .post { padding: 12px 16px; }
.ui .frames button, .ui .frames > * { border-radius: 8px; }

/* controls */
.ui .seg { border: 0; border-radius: 30px; background: #1b1b1c; padding: 4px; gap: 2px; position: relative; }
.ui .seg::after { content: ''; position: absolute; inset: 0; border: 1px solid var(--line); border-radius: inherit; pointer-events: none; }
.ui .seg button { border-radius: 30px; font-size: 13px; font-weight: 600; text-transform: uppercase; padding: 9px 14px; position: relative; z-index: 1; }
.ui .seg button + button { border-left: 0; }
.ui .seg button[aria-pressed='true'] { background: var(--accent); color: var(--ink); }
.ui :is(.mtools input, .mtools select, input.in, select.in, textarea.in) { border-radius: 30px; background: #1b1b1c; border-color: var(--line); padding: 12px 18px; font-size: 14px; }
.ui select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 3.5 5 7l3.5-3.5' fill='none' stroke='%23888' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 10px; padding-right: 38px !important; }
.ui .copychip { border-radius: 30px; padding: 8px 14px; font-family: var(--font); font-size: 13px; }
.ui .copychip::after { font-family: var(--font); }
.ui .badge { border-radius: 30px; padding: 6px 12px; }
.ui .btn.sm { padding: 12px 18px; font-size: 13px; }
.ui .dlinks .btn.sm { padding: 12px 18px; font-size: 13px; }

/* lists */
.ui .mcard { padding: 22px; gap: 14px; }
.ui .mcard .mprice b { font-weight: 600; letter-spacing: -.03em; color: #fff; }
.ui .mcard dl { border-top-color: #262626; }
.ui .mrow { border-bottom-color: #222; border-radius: 10px; padding: 14px 10px; }
.ui .mh { border-bottom-color: var(--line); padding: 12px 10px; }
.ui .mtable { border-radius: 10px; }
.ui .te { border-bottom-color: #222; }
.ui .te .k { color: var(--muted); }
.ui .te .k.buyback, .ui .te .k.funded, .ui .te .k.reward { color: var(--accent); }
.ui .te p { color: #cfcfcf; }
.ui .moved, .ui a.receipt { color: var(--accent); font-size: 13px; }
.ui .mv { border-bottom-color: #222; }
.ui .kv > div, .ui .hold { border-bottom-color: #222; }
.ui .bar { background: #222325; border-radius: 10px; }
.ui .bar::after { display: none; }
.ui .bar i { border-radius: 10px; }
.ui .ladder { border-radius: 6px; overflow: visible; }
.ui .ladder span { border-radius: 4px; background: #222325; }
.ui .ladder span.on { background: #555; }
.ui .ladder em { background: #fff; border-radius: 2px; }
.ui .empty { border-bottom: 0; padding: 22px 0; }
.ui .empty a { color: var(--accent); }
.ui .mcount { margin: 4px 0 18px; }
.ui #mlist .stack { display: none; }

/* mind page */
.mind-hero { padding-top: 160px; }
.mind-hero .phero-in { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; padding: 40px 0 30px; }
.mind-hero .phero-in .lead { max-width: 640px; }
.mind-hero .ui { position: relative; z-index: 2; text-align: left; }
.ui .mtools { justify-content: center; }
.ui #dash { padding-top: 0; }
.ui .live::before { display: none; }

/* pills (chips, intents) like the template's outline buttons */
.ui :is(.chips, .intents) button { border: 0; border-radius: 30px; padding: 12px 18px; font-size: 13px; font-weight: 600; text-transform: uppercase; color: var(--muted); background: var(--glow); position: relative; }
.ui :is(.chips, .intents) button::after { content: ''; position: absolute; inset: 0; border: 1px solid var(--line); border-radius: inherit; pointer-events: none; transition: border-color .25s; }
.ui :is(.chips, .intents) button:hover { color: #fff; }
.ui :is(.chips, .intents) button[aria-pressed='true'] { background: var(--accent); color: var(--ink); }
.ui :is(.chips, .intents) button[aria-pressed='true']::after { border-color: var(--accent); }

/* launch */
.launch-ui .block.first { padding-top: 20px; }
.launch-ui .cols { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.launch-ui #lform { gap: 30px; }
.launch-ui .fsec { padding: 34px 34px 30px; border-radius: 10px; background: var(--card); position: relative; gap: 24px; }
.launch-ui .fsec::before { content: ''; position: absolute; inset: 0; border: 1px solid var(--line); border-radius: inherit; pointer-events: none; }
.launch-ui .fsec > * { position: relative; }
.launch-ui .fsec > legend { float: left; width: 100%; margin: 0 0 4px; font-size: 24px; font-weight: 600; letter-spacing: -.03em; text-transform: none; color: #fff; }
.launch-ui .fsec > legend + * { clear: both; }
.launch-ui .field label, .launch-ui .field legend, .launch-ui .pic .lab { font-size: 13px; font-weight: 600; text-transform: uppercase; color: #fff; }
.launch-ui .field legend .muted { text-transform: none; }
.launch-ui .field input, .launch-ui .field textarea { border: 1px solid var(--line); border-radius: 30px; background: #1b1b1c; padding: 13px 18px; font-size: 16px; }
.launch-ui .field textarea { border-radius: 16px; resize: vertical; }
.launch-ui .affix { border: 1px solid var(--line); border-radius: 30px; background: #1b1b1c; padding: 0 18px; align-items: center; }
.launch-ui .affix span { color: var(--accent); font-weight: 600; }
.launch-ui .field .affix input { border: 0; background: none; padding: 13px 0 13px 4px; border-radius: 0; }
.launch-ui .field input:focus, .launch-ui .field textarea:focus, .launch-ui .affix:focus-within { border-color: var(--accent); }
.launch-ui .idrow { grid-template-columns: 76px 1fr 170px; gap: 20px; }
.launch-ui .drop, .launch-ui .drop .sig { width: 76px; height: 76px; }
.launch-ui .unpic { top: 30px; right: -6px; }
.launch-ui .go { padding: 6px 4px 0; gap: 18px; }
.launch-ui .facts { font-size: 15px; gap: 8px; }
.launch-ui .msg { font-size: 15px; }
.lpreview { position: sticky; top: 130px; padding: 34px; border-radius: 10px; background: var(--card); display: grid; gap: 22px; }
.lpreview::before { content: ''; position: absolute; inset: 0; border: 1px solid var(--line); border-radius: inherit; pointer-events: none; }
.lpreview > * { position: relative; }
.lpreview .id { display: flex; gap: 18px; align-items: center; }
.lpreview .sig { width: 84px !important; height: 84px !important; }
.lpreview h3 { font-size: 32px; line-height: 1.1; }
.lpreview #pt { color: var(--accent); font-weight: 600; font-size: 16px; }
.lpreview .rule { border: 0; border-top: 1px solid #262626; margin: 0; width: 100%; }
.lpreview .pv dt { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.lpreview .pv dd { font-size: 16px; color: #ddd; margin: 4px 0 18px; }
.ui .born { background: rgba(21, 21, 21, .94); }
.ui .bornsteps li.now::before, .ui .bornsteps li.done::before { border-color: var(--accent); color: var(--accent); }
.ui .borntext h2 { font-weight: 600; letter-spacing: -.03em; }
.ui .born .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.ui .link { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.ui .link:hover { color: #fff; }
@media (max-width: 900px) { .launch-ui .cols { grid-template-columns: 1fr; } .lpreview { display: none; } .launch-ui .fsec { padding: 26px 20px; } }
@media (max-width: 520px) { .launch-ui .idrow { grid-template-columns: 56px 1fr 110px; gap: 12px; } .launch-ui .drop, .launch-ui .drop .sig { width: 56px; height: 56px; } }

/* section heads inside app pages: the template's heading scale */
.ui .block > .head, .ui .block .stack > .head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.ui .block h3, .ui .block .head h3 { font-size: 30px; line-height: 1.15; letter-spacing: -.03em; font-weight: 600; }
.ui .block h3.sub { font-size: 22px; margin-top: 40px; }
.ui .block .two h3 { margin-bottom: 18px; }
.ui .block { padding: 50px 0; }
.ui .block + .block { border-top: 1px solid #222; }
.ui .figs b, .ui .kpis b { font-weight: 600; letter-spacing: -.03em; }
.ui .kpis b { color: #fff; }
.ui .kpis > div:first-child b { color: var(--accent); }
.ui .plain li { color: #cfcfcf; }
.ui .plain li b { color: #fff; }
.ui code { font-family: var(--mono); font-size: .9em; color: var(--accent); }
.ui a:not(.btn):not(.mcover):not(.mv):not(.go) { color: var(--accent); }
.ui .tw, .ui .flowwrap, .ui .stage, .ui .lanes, .ui .addr { border-radius: 10px; }
.ui .note { border-left-color: var(--accent); }

/* KPI tiles (analytics) as template cards */
.ui .kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; margin-top: 10px; }
.ui .kpis > div { position: relative; display: grid; gap: 10px; align-content: start; padding: 26px 22px; border-radius: 10px; background: var(--card); }
.ui .kpis > div::before { content: ''; position: absolute; inset: 0; border: 1px solid var(--line); border-radius: inherit; pointer-events: none; }
.ui .kpis b { position: relative; font-size: clamp(22px, 1.95vw, 28px); line-height: 1.05; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui .kpis span { position: relative; font-size: 14px; line-height: 1.4; color: var(--muted); }
@media (max-width: 1100px) { .ui .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ui .kpis { grid-template-columns: 1fr 1fr; gap: 12px; } .ui .kpis > div { padding: 20px 18px; } .ui .kpis b { font-size: 24px; } }
@media (max-width: 640px) { .ui .mtools select { flex: 1 1 40%; min-width: 0; } .ui .mtools .vtog { margin-left: auto; } }
