/* ==========================================================================
   Planner Studio — platform layer in the app: splash · banners · account menu · project bar ·
   sign-in dialogs · plans / paywall · "My planners" · "My account" · layout-policy visuals
   ========================================================================== */
body { --ps-top: 0px; }
#builder, #viewer, #listing { height: calc(100vh - var(--ps-top)); height: calc(100dvh - var(--ps-top)); }
@media (max-width: 960px) { #builder { height: auto; min-height: calc(100dvh - var(--ps-top)); } }
body[data-view="projects"] #builder, body[data-view="projects"] #viewer, body[data-view="projects"] #listing,
body[data-view="account"] #builder, body[data-view="account"] #viewer, body[data-view="account"] #listing { display: none !important; }
body[data-view="projects"], body[data-view="account"] { overflow: hidden; }

/* ---------- splash ---------- */
.ps-splash { position: fixed; inset: 0; z-index: 500; background: var(--bg); display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; transition: opacity .25s; }
.ps-splash.out { opacity: 0; pointer-events: none; }
.ps-splash-in { display: flex; flex-direction: column; align-items: center; gap: 18px; max-width: 420px; }
.ps-splash .logo { width: 56px; height: 56px; gap: 5px; } .ps-splash .logo i { border-radius: 8px; }
.ps-splash h1 { margin: 0; font-size: 22px; } .ps-splash p { margin: 0; color: var(--mut); line-height: 1.55; }
.ps-splash code { background: var(--hover); padding: 1px 6px; border-radius: 5px; font-size: 12px; }
.small { font-size: 12px; }

/* ---------- banners ---------- */
.ps-top:empty { display: none; }
.ps-topbar { display: flex; align-items: center; gap: 10px; padding: 8px calc(14px + var(--sar)) 8px calc(14px + var(--sal)); font-size: 13px; line-height: 1.4; background: var(--hover); border-bottom: 1px solid var(--line); }
.ps-topbar-t { flex: 1; min-width: 0; }
.ps-topbar.warn { background: color-mix(in srgb, var(--warn) 14%, var(--panel)); color: var(--ink); }
.ps-topbar.info { background: color-mix(in srgb, var(--info) 11%, var(--panel)); }
.ps-topbar.ann.success { background: color-mix(in srgb, var(--good) 13%, var(--panel)); } .ps-topbar.ann.warning { background: color-mix(in srgb, var(--warn) 15%, var(--panel)); } .ps-topbar.ann.info { background: color-mix(in srgb, var(--acc) 12%, var(--panel)); }
.ps-topbar a { color: var(--acc); font-weight: 600; }
.ps-topbar-b { border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); background: transparent; color: inherit; font: inherit; font-weight: 600; font-size: 12.5px; padding: 3px 11px; border-radius: 8px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.ps-topbar-b:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.ps-topbar-x { border: 0; background: none; color: inherit; font-size: 20px; line-height: 1; width: 28px; height: 28px; border-radius: 7px; cursor: pointer; opacity: .6; } .ps-topbar-x:hover { opacity: 1; background: color-mix(in srgb, var(--ink) 8%, transparent); }

/* ---------- account chip ---------- */
.ps-account-host { display: flex; align-items: center; gap: 6px; flex: none; }
.ps-acct { display: flex; align-items: center; gap: 9px; border: 1px solid transparent; background: transparent; color: var(--ink); padding: 3px 6px 3px 3px; border-radius: 99px; cursor: pointer; font: inherit; max-width: 280px; }
.ps-acct:hover, .ps-acct[aria-expanded="true"] { background: var(--hover); border-color: var(--line); }
.ps-acct:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.ps-acct-t { display: flex; flex-direction: column; text-align: left; line-height: 1.2; min-width: 0; } .ps-acct-t b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ps-acct-t small { color: var(--mut); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-acct-c { color: var(--mut); display: flex; }
.ps-acct.compact { padding: 2px 4px 2px 2px; gap: 2px; }
.brand { gap: 10px; }
.brand .vb-btn.ghost { flex: none; }

/* ---------- project bar (above the controls) ---------- */
.ps-bar { display: flex; align-items: center; gap: 8px; padding: 0 16px 12px 20px; border-bottom: 1px solid var(--line); min-width: 0; flex-wrap: nowrap; }
.ps-bar.guest { flex-wrap: wrap; align-items: center; background: color-mix(in srgb, var(--info) 8%, var(--panel)); padding: 10px 16px 10px 20px; gap: 8px 10px; }
.ps-guest { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.45; flex: 1 1 240px; } .ps-guest > span:first-child { margin-top: 2px; color: var(--info); flex: none; }
.ps-guest-b { display: flex; gap: 6px; }
.ps-back { flex: none; }
.ps-bar-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; line-height: 1.25; }
.ps-bar-t > b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-save { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; color: var(--mut); font: inherit; font-size: 11.5px; cursor: pointer; text-align: left; }
.ps-save i { width: 7px; height: 7px; border-radius: 50%; background: var(--mut); flex: none; }
.ps-save[data-state="saved"] i { background: var(--good); } .ps-save[data-state="saving"] i { background: var(--info); animation: ps-pulse 1s infinite; } .ps-save[data-state="dirty"] i { background: var(--warn); }
.ps-save[data-state="offline"] i, .ps-save[data-state="error"] i, .ps-save[data-state="conflict"] i, .ps-save[data-state="paused"] i { background: var(--bad); }
.ps-save[data-state="conflict"], .ps-save[data-state="paused"], .ps-save[data-state="error"] { color: var(--bad); font-weight: 600; }
.ps-save.v { border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; background: var(--field); font-size: 12px; }
@keyframes ps-pulse { 50% { opacity: .35; } }
@media (max-width: 760px) { .ps-save.v .ps-save-t { display: none; } }

/* ---------- auth dialog ---------- */
dialog.ps-dlg.auth .ps-dlg-body { padding-top: 0; }
.ps-auth { display: flex; flex-direction: column; gap: 14px; }
.ps-auth-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 4px; }
.ps-auth-head .logo { width: 40px; height: 40px; margin-bottom: 6px; } .ps-auth-head h2 { margin: 0; font-size: 20px; letter-spacing: -.01em; } .ps-auth-head p { margin: 0; color: var(--mut); font-size: 13.5px; line-height: 1.45; max-width: 320px; }
.ps-auth-sw { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--hover); border: 1px solid var(--line); border-radius: 11px; padding: 3px; gap: 3px; }
.ps-auth-sw button { border: 0; background: transparent; padding: 8px; border-radius: 8px; font: inherit; font-weight: 600; font-size: 13px; color: var(--mut); cursor: pointer; } .ps-auth-sw button.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.14); }
.ps-auth-go { margin-top: 2px; } .ps-auth-links { text-align: center; font-size: 13px; }
button.link { border: 0; background: none; color: var(--acc); font: inherit; font-weight: 600; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 2px; }
.ps-alert.inline { margin: 0; }
.ps-sent { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 8px 0; }
.ps-sent-ic { width: 56px; height: 56px; border-radius: 50%; background: var(--acc2); color: var(--acc); display: flex; align-items: center; justify-content: center; } .ps-sent-ic.good { background: color-mix(in srgb, var(--good) 15%, var(--panel)); color: var(--good); }

/* ---------- plans · paywall ---------- */
.ps-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.ps-plan { border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 9px; background: var(--panel); }
.ps-plan.cur { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc2); }
.ps-plan.dim { opacity: .75; }
.ps-plan-h { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; } .ps-plan-h b { font-size: 15px; } .ps-plan-h span:not(.ps-badge) { color: var(--mut); font-size: 12.5px; }
.ps-plan p { margin: 0; color: var(--mut); font-size: 12.5px; line-height: 1.4; }
.ps-plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; flex: 1; }
.ps-plan li { display: flex; gap: 7px; align-items: flex-start; line-height: 1.35; } .ps-plan li > span { color: var(--good); margin-top: 1px; flex: none; } .ps-plan li.no { color: var(--mut); } .ps-plan li.no > span { color: var(--mut); }
.ps-paywall-code { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--hover); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.ps-paywall-code p { margin: 2px 0 0; }
.ps-choices { display: flex; flex-direction: column; gap: 8px; }
.ps-choice { text-align: left; border: 1.5px solid var(--line); background: var(--field); border-radius: 12px; padding: 11px 14px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; font: inherit; color: var(--ink); }
.ps-choice:hover { border-color: var(--acc); background: var(--acc2); } .ps-choice b { font-size: 14px; } .ps-choice small { color: var(--mut); font-size: 12.5px; line-height: 1.4; }
.ps-busyveil { position: fixed; inset: 0; z-index: 180; background: rgba(15,17,20,.35); display: flex; align-items: center; justify-content: center; }
.ps-busybox { background: var(--panel); border-radius: 14px; padding: 16px 22px; display: flex; align-items: center; gap: 14px; box-shadow: var(--sh); font-size: 14px; }

/* ---------- My planners ---------- */
.pj, .ac { height: calc(100dvh - var(--ps-top)); overflow: auto; background: var(--bg); -webkit-overflow-scrolling: touch; }
.pj[hidden], .ac[hidden] { display: none; }
.pj-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(10px + var(--sat)) calc(22px + var(--sar)) 10px calc(22px + var(--sal)); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.pj-brand { display: flex; align-items: center; gap: 10px; font-size: 15px; min-width: 0; } .pj-brand .logo { width: 30px; height: 30px; }
.pj-top-r { display: flex; align-items: center; gap: 8px; }
.pj-main { max-width: 1240px; margin: 0 auto; padding: 26px 22px 90px; display: flex; flex-direction: column; gap: 20px; }
.pj-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.pj-hero h1 { margin: 0; font-size: 28px; letter-spacing: -.02em; } .pj-hero p { margin: 4px 0 0; color: var(--mut); font-size: 14px; max-width: 520px; line-height: 1.5; }
.pj-hero-r { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pj-search { position: relative; } .pj-search > span { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--mut); pointer-events: none; display: flex; }
.pj-search input { padding: 9px 12px 9px 34px; border: 1px solid var(--line); border-radius: 10px; background: var(--field); color: var(--ink); font: inherit; font-size: 13.5px; width: 230px; outline: none; max-width: 100%; } .pj-search input:focus { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc2); }
.pj-sort { width: auto; }
.pj-usage { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.pj-stat { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 9px; }
.pj-stat-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; color: var(--mut); } .pj-stat-h b { color: var(--ink); font-size: 17px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.pj-stat small { color: var(--mut); font-size: 12px; }
.pj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.pj-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; text-align: left; transition: transform .12s, box-shadow .12s, border-color .12s; color: var(--ink); font: inherit; }
.pj-card:hover { transform: translateY(-2px); box-shadow: var(--sh); border-color: color-mix(in srgb, var(--mut) 60%, var(--line)); }
.pj-card:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.pj-card.new { border: 2px dashed var(--line); background: transparent; align-items: center; justify-content: center; gap: 6px; min-height: 250px; color: var(--mut); } .pj-card.new:hover { border-color: var(--acc); color: var(--acc); background: var(--acc2); transform: none; box-shadow: none; }
.pj-card.new b { color: var(--ink); font-size: 14.5px; } .pj-card.new small { font-size: 12px; max-width: 170px; text-align: center; }
.pj-new-ic { width: 54px; height: 54px; border-radius: 50%; background: var(--hover); display: flex; align-items: center; justify-content: center; }
.pj-card.trashed { cursor: default; opacity: .85; } .pj-card.trashed:hover { transform: none; box-shadow: none; }
.pj-card-art { position: relative; background: linear-gradient(160deg, var(--hover), color-mix(in srgb, var(--hover) 60%, var(--line))); display: flex; align-items: center; justify-content: center; padding: 14px 10px 8px; border-bottom: 1px solid var(--line); }
.pj-card-art .ps-badge { position: absolute; top: 9px; left: 9px; }
.pj-exported { position: absolute; top: 9px; right: 9px; width: 24px; height: 24px; border-radius: 50%; background: var(--panel); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--good); }
.pj-thumb { display: block; line-height: 0; } .pj-thumb svg { max-width: 100%; height: auto; filter: drop-shadow(0 3px 6px rgba(0,0,0,.14)); }
.pj-card-body { padding: 12px 14px 8px; display: flex; flex-direction: column; gap: 2px; min-height: 96px; }
.pj-title { font-size: 14.5px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pj-card-body small { color: var(--mut); font-size: 12px; line-height: 1.4; } .pj-sub:empty { display: none; }
.pj-card-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 11.5px; color: var(--mut); } .pj-more { margin-right: -8px; }
.pj-templates { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.pj-tpl { display: flex; gap: 11px; align-items: center; text-align: left; border: 1.5px solid var(--line); background: var(--field); border-radius: 13px; padding: 9px 11px; cursor: pointer; font: inherit; color: var(--ink); }
.pj-tpl:hover { border-color: var(--mut); } .pj-tpl.on { border-color: var(--acc); background: var(--acc2); box-shadow: 0 0 0 3px var(--acc2); }
.pj-tpl-art { flex: none; width: 58px; display: flex; justify-content: center; } .pj-tpl-art svg { width: 58px; height: auto; } .pj-tpl-ic { width: 48px; height: 48px; border-radius: 12px; background: var(--hover); display: flex; align-items: center; justify-content: center; color: var(--mut); }
.pj-tpl-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; } .pj-tpl-t b { font-size: 13px; } .pj-tpl-t small { color: var(--mut); font-size: 11.5px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pj-copy { margin-top: 8px; }
.pj-vers { display: flex; flex-direction: column; } .pj-ver { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--line); } .pj-ver:last-child { border-bottom: 0; } .pj-ver small { display: block; color: var(--mut); font-size: 12px; margin-top: 2px; }
@media (max-width: 640px) {
  .pj-top { padding-left: calc(14px + var(--sal)); padding-right: calc(14px + var(--sar)); } .pj-main { padding: 18px 14px 80px; } .pj-hero h1 { font-size: 23px; }
  .pj-hero-r { width: 100%; } .pj-search { flex: 1 1 100%; } .pj-search input { width: 100%; } .pj-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; } .pj-card.new { min-height: 200px; }
}

/* ---------- My account ---------- */
.ac-main { max-width: 1040px; margin: 0 auto; padding: 26px 22px 90px; display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 28px; align-items: start; }
.ac-nav { display: flex; flex-direction: column; gap: 3px; position: sticky; top: 76px; }
.ac-nav button { display: flex; align-items: center; gap: 11px; border: 0; background: none; padding: 10px 12px; border-radius: 10px; font: inherit; font-size: 14px; font-weight: 500; color: var(--mut); cursor: pointer; text-align: left; }
.ac-nav button:hover { background: var(--hover); color: var(--ink); } .ac-nav button.on { background: var(--acc2); color: var(--acc); font-weight: 600; }
.ac-body { display: flex; flex-direction: column; gap: 16px; min-width: 0; } .ac-body h2 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.ac-plan { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; } .ac-plan-n { display: flex; align-items: center; gap: 10px; font-size: 18px; } .ac-plan-b { display: flex; gap: 8px; flex-wrap: wrap; }
.ac-meters { display: flex; flex-direction: column; gap: 16px; } .ac-meter { display: flex; flex-direction: column; gap: 7px; } .ac-meter-h { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; } .ac-meter-h span { color: var(--mut); font-size: 12.5px; } .ac-meter small { color: var(--mut); font-size: 12px; }
.ac-sess { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); } .ac-sess:last-child { border-bottom: 0; } .ac-sess > div { flex: 1; min-width: 0; } .ac-sess b { display: flex; align-items: center; gap: 8px; font-size: 13.5px; } .ac-sess small { display: block; color: var(--mut); font-size: 12px; margin-top: 2px; } .ac-sess > span:first-child { color: var(--mut); }
@media (max-width: 760px) {
  .ac-main { grid-template-columns: 1fr; padding: 16px 14px 80px; gap: 14px; }
  .ac-nav { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 6px; padding-bottom: 2px; } .ac-nav::-webkit-scrollbar { display: none; } .ac-nav button { white-space: nowrap; flex: none; border: 1px solid var(--line); border-radius: 99px; padding: 8px 14px; }
}

/* ---------- layout policy in the builder ---------- */
[data-ps-hide] { display: none !important; }
.ps-lockbadge { display: inline-flex; margin-left: 6px; color: var(--mut); vertical-align: -2px; cursor: help; }
[data-ps-lock] input:disabled, [data-ps-lock] select:disabled, [data-ps-lock] button:disabled { cursor: not-allowed; }
[data-ps-lock] .chip:disabled:not(.on), [data-ps-lock] .sw:disabled:not(.on), [data-ps-lock] .fn:disabled:not(.on), [data-ps-lock] .dev:disabled:not(.on) { opacity: .42; }
[data-ps-lock] input[type=range]:disabled { opacity: .55; }
.tg:has(input:disabled) { opacity: .75; }

/* ---------- print watermark (trial footer) ---------- */
.pl-watermark { position: absolute; left: 0; right: 0; bottom: 5px; text-align: center; font: 500 10px 'Inter', sans-serif; color: #6b6e75; pointer-events: none; }

/* ---------- layout editor (administrators) ---------- */
.ps-edbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 8px calc(14px + var(--sar)) 8px calc(14px + var(--sal)); background: var(--ink); color: var(--bg); font-size: 13px; }
.ps-edbar-l, .ps-edbar-r { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; min-width: 0; }
.ps-ed-title { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; }
.ps-edbar .ps-input { background: color-mix(in srgb, currentColor 10%, transparent); border-color: color-mix(in srgb, currentColor 30%, transparent); color: inherit; padding: 5px 9px; font-size: 13px; width: auto; max-width: 250px; min-height: 0; }
.ps-edbar .ps-input option, .ps-edbar .ps-input optgroup { color: #111; background: #fff; }
.ps-edbar .ps-btn { background: color-mix(in srgb, currentColor 12%, transparent); color: inherit; border-color: color-mix(in srgb, currentColor 28%, transparent); }
.ps-edbar .ps-btn:hover { background: color-mix(in srgb, currentColor 22%, transparent); }
.ps-edbar .ps-btn.primary { background: var(--acc); border-color: var(--acc); color: #fff; } .ps-edbar .ps-btn.primary:hover { background: var(--acc-h); }
.ps-ed-status { font-size: 12px; padding: 2px 10px; border-radius: 99px; background: color-mix(in srgb, currentColor 14%, transparent); white-space: nowrap; }
.ps-ed-status.warn { background: #f2c077; color: #3a2600; } .ps-ed-status.good { background: #9bd9b3; color: #0f3a22; } .ps-ed-status.info { background: #a9cdf5; color: #0d2f55; }
body.ps-editing .ps-lockbadge { display: none; }
.ps-ed-gear { display: inline-flex; align-items: center; gap: 3px; border: 0; background: transparent; color: var(--mut); padding: 2px 5px; margin-left: 6px; border-radius: 7px; cursor: pointer; vertical-align: middle; opacity: .5; font: inherit; font-size: 11px; font-weight: 700; line-height: 1; }
.ps-ed-gear:hover, .ps-ed-gear:focus-visible, .ps-ed-gear.has { opacity: 1; } .ps-ed-gear.has { color: var(--acc); background: var(--acc2); } .ps-ed-gear:focus-visible { outline: 2px solid var(--acc); }
.ps-ed-row0 { display: flex; align-items: center; font-size: 12px; font-weight: 600; color: var(--mut); margin: 4px 0 2px; }
[data-ed~="hidden"] { opacity: .5; }
[data-ed~="hidden"] .ps-ed-gear { opacity: 1; }
.ps-ed-off { opacity: .3 !important; text-decoration: line-through; }
@media (pointer: coarse) { .ps-ed-gear { opacity: .85; padding: 6px 9px; } }
.ps-pop { position: fixed; z-index: 170; width: 340px; max-width: calc(100vw - 16px); max-height: min(78vh, 640px); overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.34); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; animation: ps-pop .12s ease-out; }
.ps-pop.sheet { left: 0; right: 0; bottom: 0; top: auto; width: auto; max-width: none; border-radius: 16px 16px 0 0; max-height: 74vh; padding-bottom: calc(14px + var(--sab)); }
.ps-pop-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; } .ps-pop-h b { font-size: 14px; display: block; } .ps-pop-h small { color: var(--mut); font-size: 11.5px; }
.ps-pop-x { border: 0; background: none; color: var(--mut); font-size: 20px; line-height: 1; width: 28px; height: 28px; border-radius: 8px; cursor: pointer; } .ps-pop-x:hover { background: var(--hover); }
.ps-pop-sw small { font-size: 12px; line-height: 1.4; }
.ps-pop .ps-note { margin: -4px 0 0 49px; }
.ps-pop-sec { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; }
.ps-pop-acts { display: flex; align-items: center; gap: 8px; font-size: 12.5px; } .ps-pop-acts .sp { flex: 1; } .ps-pop-count { color: var(--mut); }
.ps-pop-list { max-height: 250px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 4px; background: var(--field); }
.ps-pop-it { display: flex; gap: 9px; align-items: center; padding: 6px 7px; border-radius: 7px; font-size: 13px; cursor: pointer; } .ps-pop-it:hover { background: var(--hover); } .ps-pop-it input { accent-color: var(--acc); width: 16px; height: 16px; flex: none; }
.ps-pop-grp { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--mut); padding: 9px 7px 3px; }
.ps-pop-foot { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.ps-ed-sums { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ps-ed-sum { display: flex; align-items: baseline; gap: 8px; background: var(--hover); border: 1px solid var(--line); border-radius: 11px; padding: 9px 12px; flex-wrap: wrap; } .ps-ed-sum b { font-size: 20px; font-variant-numeric: tabular-nums; } .ps-ed-sum span { font-size: 12.5px; flex: 1; } .ps-ed-sum em { font-style: normal; font-size: 11.5px; color: var(--acc); font-weight: 600; } .ps-ed-sum em.same { color: var(--mut); font-weight: 400; }
.ps-ed-hist { display: flex; flex-direction: column; } .ps-ed-hv { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--line); flex-wrap: wrap; } .ps-ed-hv:last-child { border-bottom: 0; } .ps-ed-hv b { display: flex; align-items: center; gap: 8px; font-size: 13.5px; } .ps-ed-hv small { color: var(--mut); font-size: 12px; } .ps-ed-hv-b { display: flex; gap: 6px; }
@media (max-width: 560px) { .ps-ed-sums { grid-template-columns: 1fr; } }

body.ps-editing #psBar { display: none; }

/* the main navigation (every screen) */
.ps-appnav { display:inline-flex; align-items:center; gap:2px; padding:3px; border-radius:12px; background:rgba(127,127,140,.14); box-shadow:inset 0 0 0 1px rgba(127,127,140,.18); flex:none; }
.ps-appnav button { display:inline-flex; align-items:center; gap:6px; height:30px; padding:0 11px; border:0; border-radius:9px; background:none; color:inherit; opacity:.72; font:600 13px/1 inherit; font-family:inherit; cursor:pointer; white-space:nowrap; }
.ps-appnav button:hover { opacity:1; background:rgba(127,127,140,.14); }
.ps-appnav button.on { opacity:1; background:var(--ps-surface, rgba(255,255,255,.16)); box-shadow:0 1px 3px rgba(0,0,0,.18); }
.ps-appnav .ps-i { flex:none; }
.ps-appnav.compact button { padding:0 8px; } .ps-appnav.compact button:not(.on) .l { display:none; }
.ps-navhost { padding:0 14px 8px; } .ps-navhost .ps-appnav { width:100%; justify-content:space-between; }
.pj-top { gap:16px; } .pj-top .ps-appnav { margin:0 auto; }
@media (max-width:760px) { .pj-top .ps-appnav button:not(.on) .l { display:none; } }

/* My planners: the path to Etsy (administrators) */
.pj-flow { margin:0 0 22px; padding:16px 18px; border-radius:18px; background:rgba(127,127,140,.08); box-shadow:inset 0 0 0 1px rgba(127,127,140,.18); }
.pj-flow-h { display:flex; align-items:center; gap:12px; } .pj-flow-h small { opacity:.7; } .pj-flow-h button { margin-left:auto; }
.pj-steps { list-style:none; margin:14px 0 0; padding:0; display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:10px; }
.pj-steps li { display:flex; flex-direction:column; gap:8px; padding:12px; border-radius:14px; background:rgba(127,127,140,.08); }
.pj-steps li > div { display:flex; flex-direction:column; gap:3px; flex:1; } .pj-steps li small { opacity:.7; line-height:1.4; }
.pj-steps li .pj-si { width:28px; height:28px; border-radius:50%; display:grid; place-items:center; background:rgba(127,127,140,.18); }
.pj-steps li.done .pj-si { background:#1f9d55; color:#fff; } .pj-steps li.next { box-shadow:inset 0 0 0 2px var(--ps-accent, #3b82f6); }
.pj-steps li button { align-self:flex-start; }
@media (max-width:900px) { .pj-steps { grid-template-columns:1fr 1fr; } } @media (max-width:560px) { .pj-steps { grid-template-columns:1fr; } }
@media (max-width:700px) { .ps-wide { display:none; } }

/* builder access (the link sold on Etsy): the order number, typed once */
.ps-order .ps-order-in { width:100%; box-sizing:border-box; font-size:18px; letter-spacing:.06em; font-variant-numeric:tabular-nums; margin:4px 0 10px; }
.ps-order-help { font-size:13px; margin:2px 0 8px; } .ps-order-help summary { cursor:pointer; font-weight:600; }
.ps-order-help ul { margin:6px 0 0; padding-left:18px; } .ps-order-help li { margin:3px 0; }
