/* Mini-E portal: sign-in, invitation, reset and change-password pages, and the signed-in portal.
   Copied from es-shoppable-widget public/partner/partner.css (v1.12.3, same look); the portal part is at the end. */
:root{ --navy:#00114A; --gold:#FFCC00; --gray:#5b6270; --bg:#f6f7fb; --surface:#fff; --text:#00114A; --line:#e7e9f2; --red:#c0392b; --green:#2ea043; color-scheme:light; }
:root[data-theme="dark"]{ --bg:#0d1420; --surface:#17202f; --text:#eef1fa; --line:#2a3548; --gray:#8b93a8; --red:#ff6b5e; --green:#3ecf6a; color-scheme:dark; }
*{ box-sizing:border-box; }
body{ margin:0; min-height:100vh; display:flex; flex-direction:column; background:var(--bg); color:var(--text); font-family:'Outfit',-apple-system,BlinkMacSystemFont,sans-serif; }
.topbar{ background:var(--navy); padding:12px 24px; display:flex; align-items:center; gap:12px; }
.topbar img{ height:28px; width:auto; }
.topbar .tag{ font-size:11px; color:rgba(255,255,255,.65); }
.topbar select{ margin-left:auto; background:rgba(255,255,255,.08); color:#fff; border:1px solid rgba(255,255,255,.25); border-radius:6px; font:inherit; font-size:12px; padding:4px 8px; }
.topbar select option{ color:#000; }
main{ flex:1; display:flex; align-items:flex-start; justify-content:center; padding:48px 16px; }
.card{ width:100%; max-width:400px; background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:28px 28px 24px; box-shadow:0 8px 30px rgba(0,17,74,.07); }
h1{ font-family:'Fraunces',Georgia,serif; font-size:24px; font-weight:600; margin:0 0 6px; }
.lead{ margin:0 0 20px; font-size:14px; color:var(--gray); line-height:1.5; }
label{ display:block; font-size:12px; font-weight:600; margin:14px 0 5px; }
input{ width:100%; font:inherit; font-size:15px; padding:10px 12px; border:1px solid var(--line); border-radius:8px; background:var(--bg); color:var(--text); }
input:focus{ outline:2px solid var(--gold); outline-offset:1px; border-color:transparent; }
input[readonly]{ opacity:.75; }
button.primary{ width:100%; margin-top:20px; padding:11px 14px; font:inherit; font-size:15px; font-weight:600; background:var(--navy); color:#fff; border:0; border-radius:8px; cursor:pointer; }
:root[data-theme="dark"] button.primary{ background:var(--gold); color:#00114A; }
button.primary:disabled{ opacity:.55; cursor:default; }
.msg{ margin-top:14px; font-size:13px; line-height:1.45; padding:9px 12px; border-radius:8px; display:none; }
.msg.err{ display:block; color:var(--red); background:rgba(192,57,43,.08); border:1px solid rgba(192,57,43,.25); }
.msg.ok{ display:block; color:var(--green); background:rgba(46,160,67,.08); border:1px solid rgba(46,160,67,.25); }
.msg.info{ display:block; color:var(--text); background:var(--bg); border:1px solid var(--line); }
.links{ margin-top:16px; font-size:13px; text-align:center; }
.links a{ color:var(--navy); font-weight:600; cursor:pointer; text-decoration:underline; }
:root[data-theme="dark"] .links a{ color:var(--gold); }
.hint{ font-size:12px; color:var(--gray); margin-top:5px; }
.hidden{ display:none !important; }

/* ── v1.6.2 — header: same structure and look as the Shoppable admin (.platform-header) ── */
.platform-header{ background:var(--navy); padding:22px 0; }
.platform-header-inner{ max-width:var(--hdr-w,1400px); margin:0 auto; padding:0 20px; display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.platform-header-inner img{ height:38px; width:auto; flex-shrink:0; }
.platform-title{ display:flex; flex-direction:column; }
.platform-title span.name{ font-family:'Fraunces',serif; font-size:19px; font-weight:600; color:#fff; }
.platform-title span.sub{ font-family:'EB Garamond',serif; font-style:italic; font-size:13px; color:var(--gold); margin-top:2px; }
.platform-header-inner .divider{ width:1px; height:32px; background:rgba(255,255,255,.2); margin-left:4px; }
.tool-label{ font-size:11px; text-transform:uppercase; letter-spacing:.08em; color:rgba(255,255,255,.6); margin-left:auto; text-align:right; line-height:1.5; }
.tool-label strong{ display:block; color:#fff; font-size:12px; letter-spacing:.04em; }
.tool-label .pnav a{ color:rgba(255,255,255,.7); text-decoration:none; }
.tool-label .pnav a:hover{ color:#fff; text-decoration:underline; }
.tool-label .pnav a.on{ color:var(--gold); }
.platform-header .analytics-link{ font-family:'Outfit',sans-serif; font-size:12.5px; font-weight:600; color:#fff; text-decoration:none; opacity:.85; margin-left:16px; white-space:nowrap; background:none; border:0; padding:0; cursor:pointer; }
.platform-header .analytics-link:hover{ opacity:1; text-decoration:underline; }
.platform-header select{ margin-left:8px; background:rgba(255,255,255,.08); color:#fff; border:1px solid rgba(255,255,255,.25); border-radius:6px; font-family:'Outfit',sans-serif; font-size:12px; padding:4px 8px; }
.platform-header select option{ color:#000; }
.platform-header .theme-toggle{ display:flex; align-items:center; justify-content:center; width:30px; height:30px; margin-left:6px; background:none; border:1px solid rgba(255,255,255,.25); border-radius:50%; cursor:pointer; color:rgba(255,255,255,.85); flex-shrink:0; text-decoration:none; }
.platform-header .theme-toggle:hover{ border-color:rgba(255,255,255,.5); color:#fff; }
.platform-header .theme-toggle svg{ width:15px; height:15px; }
.platform-header .theme-toggle .icon-moon{ display:none; }
:root[data-theme="dark"] .platform-header .theme-toggle .icon-sun{ display:none; }
:root[data-theme="dark"] .platform-header .theme-toggle .icon-moon{ display:block; }
@media (max-width:640px){ .platform-header{ padding:14px 0; } .platform-header-inner{ gap:10px; padding:0 14px; } .platform-header-inner .divider{ display:none; } .tool-label{ margin-left:0; text-align:left; width:100%; } .platform-header .analytics-link, .platform-header select{ margin-left:0; } }

/* ── v1.4.3 — "Propose products" full page (propose.html) ── */
.topbar .pp-back{ color:#fff; font-size:12.5px; font-weight:600; text-decoration:none; margin-left:14px; padding:5px 10px; border:1px solid rgba(255,255,255,.25); border-radius:6px; }
.topbar .pp-back:hover{ background:rgba(255,255,255,.1); }
main.pp-main{ display:block; width:100%; max-width:1400px; margin:0 auto; padding:24px 20px 64px; }
.pp-main h1{ margin-bottom:8px; }
.pp-main .lead{ max-width:820px; margin-bottom:6px; }
.pp-guide{ display:inline-block; font-size:13px; font-weight:600; color:var(--navy); margin-bottom:16px; }
:root[data-theme="dark"] .pp-guide{ color:var(--gold); }
.pp-bar{ position:sticky; top:0; z-index:20; display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:10px 14px; margin:0 0 14px; box-shadow:0 6px 18px rgba(0,17,74,.08); }
.pp-bar-info{ flex:1 1 360px; min-width:0; }
.pp-summary{ font-size:13.5px; font-weight:600; line-height:1.4; }
.pp-summary.ok{ color:var(--green); }
.pp-summary.bad{ color:var(--red); }
.pp-summary.idle{ color:var(--gray); font-weight:500; }
.pp-filters{ display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
.pp-filters button{ font:inherit; font-size:12px; font-weight:600; color:var(--text); background:var(--surface); border:1px solid var(--line); border-radius:999px; padding:4px 12px; cursor:pointer; }
.pp-filters button:hover{ border-color:var(--gold); }
.pp-filters button.on{ background:var(--navy); border-color:var(--navy); color:#fff; }
:root[data-theme="dark"] .pp-filters button.on{ background:var(--gold); border-color:var(--gold); color:#00114A; }
.pp-filters button[disabled]{ opacity:.4; cursor:default; }
.pp-actions{ display:flex; flex-wrap:wrap; gap:8px; margin-left:auto; }
.pp-btn{ font:inherit; font-size:13.5px; font-weight:600; color:var(--text); background:var(--surface); border:1px solid var(--line); border-radius:8px; padding:9px 14px; cursor:pointer; text-decoration:none; display:inline-flex; align-items:center; justify-content:center; line-height:1.2; margin:0; position:relative; vertical-align:middle; white-space:nowrap; }
.pp-btn:hover{ border-color:var(--gold); }
.pp-btn:disabled{ opacity:.5; cursor:default; }
.pp-btn.main{ background:var(--navy); border-color:var(--navy); color:#fff; }
:root[data-theme="dark"] .pp-btn.main{ background:var(--gold); border-color:var(--gold); color:#00114A; }
.pp-btn.small{ font-size:12px; padding:0 12px; min-height:34px; }
.pp-card{ background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:16px 18px; margin:0 0 14px; }
.pp-card label{ margin-top:0; }
.pp-card textarea{ width:100%; min-height:260px; height:38vh; resize:vertical; font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:12.5px; line-height:1.5; color:var(--text); border:1px solid var(--line); border-radius:8px; padding:10px 12px; background:var(--bg); }
.pp-card textarea:focus{ outline:2px solid var(--gold); outline-offset:1px; border-color:transparent; }
.pp-card.drag{ border-color:var(--gold); box-shadow:0 0 0 3px rgba(255,204,0,.35); }
.pp-tools{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-top:10px; }
.pp-tools .pp-btn{ height:34px; }
.pp-tools input[type="file"]{ position:absolute; width:1px; height:1px; opacity:0; overflow:hidden; }
.pp-tools .hint{ margin:0 0 0 4px; }
.pp-collapsed{ display:flex; flex-wrap:wrap; align-items:center; gap:10px; background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:10px 14px; margin:0 0 14px; font-size:13px; }
.pp-collapsed span{ flex:1; min-width:0; color:var(--gray); font-weight:600; }
.pp-frame{ display:block; width:100%; height:300px; border:1px solid var(--line); border-radius:12px; background:#172c3c; }
.pp-note{ font-size:12.5px; color:var(--gray); margin:0 0 8px; }
.pp-done{ text-align:center; padding:36px 18px; }
.pp-done h2{ font-family:'Fraunces',Georgia,serif; font-size:22px; margin:0 0 8px; }
.pp-done p{ max-width:560px; margin:0 auto 18px; line-height:1.5; color:var(--gray); }
.pp-done .pp-actions{ justify-content:center; margin-left:0; }
@media (max-width:640px){
  main.pp-main{ padding:16px 12px 56px; }
  .topbar{ flex-wrap:wrap; padding:10px 14px; }
  .topbar .pp-back{ margin-left:0; }
  .pp-actions{ width:100%; margin-left:0; }
  .pp-actions .pp-btn{ flex:1; text-align:center; }
}

/* ── v1.4.4 — sign-in pages: same wallpaper and card as the Ad Serving admin login ── */
body.auth{ background-color:#00114a; background-image:linear-gradient(90deg,rgba(0,17,74,.16),rgba(0,17,74,.52) 42%,rgba(0,17,74,.52) 58%,rgba(0,17,74,.16)),url('/assets/login-wallpaper.webp'); background-size:cover; background-position:center; background-attachment:fixed; }
body.auth .topbar{ position:absolute; top:0; left:0; right:0; background:transparent; }
body.auth .topbar img, body.auth .topbar .tag{ display:none; }
body.auth main{ align-items:center; padding:24px 16px; }
body.auth .card{ max-width:430px; padding:0; overflow:hidden; background:rgba(255,255,255,.96); border:1px solid rgba(255,255,255,.48); border-radius:18px; box-shadow:0 28px 80px rgba(0,8,35,.42); -webkit-backdrop-filter:blur(16px); backdrop-filter:blur(16px); color:#172033; }
:root[data-theme="dark"] body.auth .card{ background:rgba(23,32,47,.94); border-color:rgba(255,255,255,.14); color:var(--text); }
body.auth .card > :not(.auth-head){ padding:22px 26px 26px; }
.auth-head{ background:var(--navy); padding:20px 26px; }
.auth-head img{ height:38px; max-width:180px; object-fit:contain; display:block; }
.auth-head p{ margin:14px 0 0; color:var(--gold); font-size:13px; }
body.auth h1{ margin-top:0; }
@media (max-width:600px){ body.auth{ background-position:38% center; } body.auth .card{ border-radius:15px; } body.auth .card > :not(.auth-head){ padding:20px 20px 24px; } .auth-head{ padding:20px; } }
@media (prefers-reduced-data:reduce){ body.auth{ background-image:linear-gradient(145deg,#00114a,#082d68 55%,#00114a); } }

/* v1.4.5 — choose which previewed products to submit */
.pp-sel{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:8px; }
.pp-sel span{ font-size:12.5px; font-weight:600; color:var(--gray); }

/* ── v1.5.0 — "My products" (products.html) and the edit page (product-edit.html) ── */
.pr-head{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px 16px; }
.pr-head h1{ margin:0; }
.pr-bar{ position:static; box-shadow:none; }
.pr-search{ flex:1 1 220px; min-width:180px; max-width:360px; width:auto; padding:7px 12px; font-size:13.5px; }
.pr-count{ font-size:12.5px; font-weight:600; color:var(--gray); margin-left:auto; }
.pr-list{ display:flex; flex-direction:column; gap:10px; }
.pr-flash{ margin:0 0 4px; padding:10px 14px; border-radius:10px; font-size:13.5px; color:var(--green); background:rgba(46,160,67,.08); border:1px solid rgba(46,160,67,.25); }
.pr-row{ display:flex; align-items:center; gap:14px; background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:12px 14px; }
.pr-row.pr-paused{ border-style:dashed; }
.pr-thumb{ flex:0 0 96px; width:96px; aspect-ratio:16/9; border-radius:8px; background:var(--bg); border:1px solid var(--line); overflow:hidden; }
.pr-thumb img{ display:block; width:100%; height:100%; object-fit:cover; }
.pr-main{ flex:1; min-width:0; }
.pr-title{ font-weight:600; font-size:15px; overflow-wrap:anywhere; }
.pr-meta{ font-size:12.5px; color:var(--gray); margin-top:3px; overflow-wrap:anywhere; }
.pr-pages{ margin-top:4px; font-size:12.5px; color:var(--gray); }
.pr-pages summary{ cursor:pointer; width:fit-content; }
.pr-pages summary:hover{ color:var(--text); }
.pr-pages-list{ list-style:none; margin:6px 0 2px; padding:0 0 0 2px; display:flex; flex-direction:column; gap:3px; }
.pr-pages-list li{ overflow-wrap:anywhere; }
.pr-pages-list a{ color:var(--text); text-decoration:underline; text-decoration-color:var(--line); text-underline-offset:3px; }
.pr-pages-list a:hover{ text-decoration-color:var(--gold); }
.pr-pages-more{ font-style:italic; }
.pr-note{ font-size:12.5px; margin-top:6px; padding:6px 10px; border-radius:8px; background:var(--bg); border:1px solid var(--line); overflow-wrap:anywhere; }
.pr-badge{ flex:none; font-size:11.5px; font-weight:700; padding:4px 10px; border-radius:999px; white-space:nowrap; border:1px solid var(--line); background:var(--bg); color:var(--gray); }
.pr-badge.active{ color:var(--green); background:rgba(46,160,67,.1); border-color:rgba(46,160,67,.3); }
.pr-badge.paused{ color:#8a6d00; background:rgba(255,204,0,.18); border-color:rgba(255,204,0,.55); }
:root[data-theme="dark"] .pr-badge.paused{ color:var(--gold); }
.pr-badge.pending{ color:#1d4ed8; background:rgba(37,99,235,.1); border-color:rgba(37,99,235,.3); }
:root[data-theme="dark"] .pr-badge.pending{ color:#8fb4ff; }
.pr-badge.rejected{ color:var(--red); background:rgba(192,57,43,.08); border-color:rgba(192,57,43,.3); }
.pr-actions{ flex:none; display:flex; gap:8px; align-items:center; }
.pr-actions .pp-btn.small{ height:34px; padding:0 12px; }
.pr-disabled{ opacity:.45; cursor:not-allowed; }
.pr-disabled:hover{ border-color:var(--line); }
@media (max-width:760px){
  .pr-row{ flex-wrap:wrap; }
  .pr-thumb{ flex-basis:72px; width:72px; }
  .pr-main{ flex-basis:calc(100% - 100px); }
  .pr-badge{ order:3; }
  .pr-actions{ order:4; margin-left:auto; }
}
.pe-grid{ display:grid; grid-template-columns:minmax(320px,520px) minmax(0,1fr); gap:18px; align-items:start; }
.pe-form label{ display:block; margin-top:12px; font-size:13px; font-weight:600; }
.pe-form > label:first-child{ margin-top:0; }
.pe-form input[type=text], .pe-form input[type=url], .pe-form select, .pe-form textarea{ width:100%; font:inherit; font-size:14.5px; padding:9px 11px; border:1px solid var(--line); border-radius:8px; background:var(--bg); color:var(--text); margin-top:5px; box-sizing:border-box; }
.pp-card.pe-form textarea{ resize:vertical; min-height:70px; height:96px; font-family:inherit; font-size:14.5px; line-height:1.4; }
.pe-form input:focus, .pe-form select:focus, .pe-form textarea:focus{ outline:2px solid var(--gold); outline-offset:1px; border-color:transparent; }
.pe-form input[readonly]{ opacity:.7; cursor:not-allowed; }
.pe-row{ display:grid; grid-template-columns:1fr 1fr; gap:0 12px; }
.pe-row3{ grid-template-columns:1fr 1fr 1fr; }
.pe-form .pe-check{ display:flex; align-items:center; gap:8px; margin-top:16px; cursor:pointer; }
.pe-form .pe-check input{ width:17px; height:17px; margin:0; accent-color:#ffcc00; }
.pe-actions{ margin:20px 0 0; flex-wrap:wrap; }
.pe-side{ position:sticky; top:12px; }
.pe-side-title{ font-family:'Fraunces',Georgia,serif; font-size:17px; margin:0 0 8px; }
@media (max-width:900px){ .pe-grid{ grid-template-columns:1fr; } .pe-side{ position:static; } }
@media (max-width:480px){ .pe-row, .pe-row3{ grid-template-columns:1fr; } }
#blocked .pp-actions{ margin:14px 0 0; }

/* v1.8.2 — one look for every select: native arrow removed, a chevron with room on the right (it used to touch the edge) */
.pe-form select, select:not([multiple]):not([size]){ -webkit-appearance:none; -moz-appearance:none; appearance:none; padding-right:34px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.75 6 6.25l4.5-4.5' fill='none' stroke='%236b7280' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 12px center; background-size:12px 8px; cursor:pointer; text-overflow:ellipsis; }
.topbar select:not([multiple]):not([size]), .platform-header select:not([multiple]):not([size]){ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.75 6 6.25l4.5-4.5' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); padding-right:28px; background-position:right 9px center; }

/* ── es-entrepreneurs — the signed-in portal (app.html). Built from the classes above (pp-*, pr-*) and the
      admin's look: white cards on --bg, navy text, gold for the one main action. ── */
body.pt{ display:block; }
body.pt main.pt-main{ display:block; width:100%; }
.pt-main{ max-width:1100px; margin:0 auto; padding:24px 24px 64px; }
.pt-main h1{ font-family:'Fraunces',Georgia,serif; font-size:24px; font-weight:600; margin:0 0 4px; }
.pt-main .sub{ font-size:13.5px; color:var(--gray); margin:0; line-height:1.5; }
.pt-head{ display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:12px 18px; margin:0 0 18px; }
.pt-head select{ font:inherit; font-size:14px; padding:8px 12px; border:1px solid var(--line); border-radius:8px; background:var(--surface); color:var(--text); min-width:220px; }
.pt-card{ background:var(--surface); border:1px solid var(--line); border-radius:12px; }
.pt-agree{ padding:18px 20px; margin:0 0 18px; border-color:var(--gold); }
.pt-agree h2{ font-family:'Fraunces',Georgia,serif; font-size:18px; margin:0 0 2px; }
.pt-check{ display:flex; gap:10px; align-items:flex-start; font-size:14px; font-weight:500; margin:12px 0 0; line-height:1.45; }
.pt-check input{ width:17px; height:17px; margin:2px 0 0; flex-shrink:0; accent-color:#ffcc00; }
.pt-agree .pp-btn{ margin-top:16px; }
.pt-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(320px, 1fr)); gap:16px; }
.pt-box{ display:flex; flex-direction:column; overflow:hidden; }
.pt-cover{ width:100%; aspect-ratio:16/7; object-fit:cover; display:block; }
.pt-cover-empty{ background:var(--navy); background-image:linear-gradient(135deg, rgba(255,204,0,.18), rgba(255,204,0,0) 60%); }
.pt-box-body{ padding:16px 18px 18px; display:flex; flex-direction:column; gap:8px; flex:1; }
.pt-box h2{ font-family:'Fraunces',Georgia,serif; font-size:19px; margin:0; }
.pt-box p{ margin:0; font-size:14px; line-height:1.5; }
.pt-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.pt-dim{ color:var(--gray); font-size:12.5px; }
.pt-counts{ font-weight:600; font-size:13px !important; }
.pt-list{ list-style:none; margin:2px 0 0; padding:0; display:flex; flex-direction:column; gap:5px; font-size:13.5px; }
.pt-foot{ margin-top:auto; padding-top:10px; border-top:1px solid var(--line); }
.pt-price{ font-size:13px; font-weight:600; color:var(--gray); }
.pt-kind{ display:inline-block; font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:.03em; padding:2px 8px; border-radius:6px; flex:none; }
.pt-kind.video{ background:rgba(214,51,108,.12); color:#a8204f; }
.pt-kind.offer{ background:rgba(59,111,214,.12); color:#2c58b5; }
.pt-kind.post{ background:rgba(14,148,136,.12); color:#0b6f66; }
:root[data-theme="dark"] .pt-kind.video{ color:#ff8fb4; } :root[data-theme="dark"] .pt-kind.offer{ color:#8fb4ff; } :root[data-theme="dark"] .pt-kind.post{ color:#6fd6cb; }
.pt-empty{ background:var(--surface); border:1px dashed var(--line); border-radius:12px; padding:28px; text-align:center; color:var(--gray); }
.pt-empty a{ color:var(--text); font-weight:600; }
.pt-pageurl{ display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; }
.pt-url{ font-family:'Fraunces',Georgia,serif; font-size:18px; font-weight:600; color:var(--text); overflow-wrap:anywhere; }
.pt-h2{ font-family:'Fraunces',Georgia,serif; font-size:19px; margin:22px 0 4px; }
.pt-label{ font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--gray); margin:22px 0 10px; }
.pt-post textarea{ min-height:0; height:auto; margin-top:10px; font-family:inherit; font-size:14px; }
.pt-unsub{ margin:26px 0 0; text-align:right; }
.pt-link{ background:none; border:0; padding:0; font:inherit; font-size:13px; color:var(--red); text-decoration:underline; cursor:pointer; }
.pt-kpis{ display:grid; grid-template-columns:repeat(auto-fit, minmax(160px, 1fr)); gap:12px; margin:0 0 14px; }
.pt-kpi{ background:var(--surface); border:1px solid var(--line); border-radius:10px; padding:14px 16px; }
.pt-kpi-l{ font-size:10.5px; text-transform:uppercase; letter-spacing:.05em; color:var(--gray); }
.pt-kpi-v{ font-family:'Fraunces',Georgia,serif; font-size:24px; font-weight:600; margin-top:4px; }
.pt-kpi-h{ font-size:12px; color:var(--gray); margin-top:3px; }
.pt-bars{ display:flex; align-items:flex-end; gap:3px; height:110px; }
.pt-bar{ flex:1; height:100%; display:flex; align-items:flex-end; }
.pt-bar span{ display:block; width:100%; min-height:2px; background:var(--navy); border-radius:3px 3px 0 0; }
:root[data-theme="dark"] .pt-bar span{ background:var(--gold); }
.pt-table{ width:100%; border-collapse:collapse; background:var(--surface); border:1px solid var(--line); border-radius:10px; overflow:hidden; font-size:13.5px; }
.pt-table th{ text-align:left; font-size:10.5px; text-transform:uppercase; letter-spacing:.05em; color:var(--gray); font-weight:600; padding:10px 14px; border-bottom:1px solid var(--line); }
.pt-table td{ padding:10px 14px; border-bottom:1px solid var(--line); vertical-align:top; }
.pt-table tr:last-child td{ border-bottom:none; }
.pt-table .n{ text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
.pt-defs{ margin-top:16px; line-height:1.5; }
.pt-profile{ max-width:720px; }
#flash{ margin:0 0 14px; }
@media (max-width:640px){ .pt-main{ padding:16px 14px 56px; } .pt-grid{ grid-template-columns:1fr; } .pt-table{ display:block; overflow-x:auto; } }

/* Eye button on password fields (v0.2.1) */
.pw-wrap{ position:relative; }
.pw-wrap input{ padding-right:44px; }
.pw-eye{ position:absolute; top:50%; right:6px; transform:translateY(-50%); width:34px; height:34px; display:flex; align-items:center; justify-content:center; padding:0; margin:0; border:0; border-radius:6px; background:transparent; color:var(--muted, #6b7280); cursor:pointer; box-shadow:none; }
.pw-eye:hover{ color:var(--text); background:rgba(127,127,127,.12); }
.pw-eye:focus-visible{ outline:2px solid var(--gold); outline-offset:1px; }

/* v0.2.2 — the signed-in portal uses the whole width of the window. */
.platform-header-inner{ max-width:none; padding:0 28px; }
main.pp-main{ max-width:none; padding:24px 28px 64px; }
.pt-main{ max-width:none; padding:24px 28px 64px; }
.pt-profile{ max-width:none; }
@media (max-width:640px){ .platform-header-inner{ padding:0 14px; } .pt-main, main.pp-main{ padding:16px 14px 56px; } }

/* v0.2.2 — thumbnails */
.pt-thumb{ flex:none; width:44px; aspect-ratio:16/9; border-radius:5px; overflow:hidden; background:var(--navy); display:inline-flex; align-items:center; justify-content:center; color:#FFCC00; font-size:11px; font-weight:700; vertical-align:middle; }
.pt-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.pt-thumb.ph.o{ background:linear-gradient(135deg, #00114A, #24366e); font-family:'Fraunces',Georgia,serif; font-size:13px; }
.pt-thumb.lg{ width:96px; border-radius:7px; font-size:16px; }
.pt-list li{ display:flex; align-items:center; gap:9px; }
.pt-li-text{ min-width:0; }
