/* Project workspace (v1.16): left panel + graphical steps. Light theme first; uses the app's colour variables. */
.ws { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; align-items: start; }
.ws.collapsed { grid-template-columns: 56px minmax(0, 1fr); }
.ws-nav { position: sticky; top: 8px; display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 8px; }
.ws-nav button { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; border: 0; background: none; border-radius: 10px; font: inherit; font-weight: 600; color: var(--text-2); cursor: pointer; text-align: left; }
.ws-nav button:hover { background: var(--accent-soft); color: var(--text); }
.ws-nav button.on { background: var(--accent); color: var(--on-accent, #fff); }
.ws-nav .pj-count { margin-left: auto; }
.ws-nav .ws-toggle { min-height: 30px; justify-content: center; font-size: 15px; }
.ws.collapsed .ws-lbl, .ws.collapsed .ws-nav .pj-count { display: none; }
.ws.collapsed .ws-toggle { transform: scaleX(-1); }
.ws-main { min-width: 0; }
.ws-card { padding: 16px; margin-bottom: 14px; }
.ws-card h3, .ws-card h4 { margin: 0; }
.ws-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ws-row .grow { flex: 1 1 140px; min-width: 0; }
.ws-main > .ws-row { margin-bottom: 12px; }
.ws-small { font-size: 14px !important; line-height: 1.3; }
.ws-pct { font-size: 20px; }
.ws-flow { display: flex; gap: 22px; overflow-x: auto; padding: 6px 4px 12px; -webkit-overflow-scrolling: touch; }
.ws-step { position: relative; flex: 0 0 220px; background: var(--surface-2, var(--surface)); border: 1px solid var(--border); border-radius: 14px; padding: 12px 12px 36px; cursor: pointer; }
.ws-step:not(:last-child)::after { content: '→'; position: absolute; right: -19px; top: 34px; color: var(--muted); font-size: 18px; }
.ws-step:hover, .ws-step:focus { border-color: var(--accent); outline: none; }
.ws-step.drag { opacity: .45; }
.ws-step h4 { margin: 8px 0 4px; font-size: 15px; overflow-wrap: anywhere; }
.ws-step p { margin: 0 0 8px; font-size: 13px; color: var(--text-2); overflow-wrap: anywhere; }
.ws-step-top { display: flex; align-items: center; justify-content: space-between; color: var(--accent); }
.ws-num { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--on-accent, #fff); display: inline-grid; place-items: center; font-size: 13px; font-weight: 700; }
.ws-step-foot { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ws-step-move { position: absolute; left: 8px; bottom: 6px; display: flex; gap: 4px; }
.ws-step-move button { width: 32px; height: 28px; border: 1px solid var(--border); background: var(--surface); border-radius: 8px; cursor: pointer; font-size: 11px; color: var(--text-2); }
.ws-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.ws-chip { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--accent-soft); color: var(--text); border: 1px solid var(--border); }
.ws-chip.link { background: transparent; }
.ws-chip.role { background: rgba(240,170,40,.16); }
.ws-pill { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 650; border: 1px solid var(--border); }
.ws-s-idea, .ws-s-planned { color: #7a4b00; background: rgba(240,170,40,.16); }
.ws-s-agreed, .ws-s-in_test { color: #1b4fa6; background: rgba(60,120,240,.12); }
.ws-s-building { color: #6a2fa6; background: rgba(140,80,220,.12); }
.ws-s-done, .ws-s-released { color: var(--ok); background: rgba(40,160,100,.12); }
.ws-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ws-roles { display: flex; flex-direction: column; gap: 8px; }
.ws-role { display: flex; gap: 12px; align-items: center; text-align: left; min-height: 48px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; font: inherit; color: var(--text); }
.ws-role small { display: block; color: var(--text-2); }
.ws-role .ws-ico { color: var(--accent); flex: none; }
.ws-qs { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ws-qs li { border: 1px solid var(--border); border-radius: 12px; padding: 8px 10px; }
.ws-qs li.ans { opacity: .8; }
.ws-ans { margin-top: 4px; padding: 6px 8px; border-radius: 8px; background: rgba(40,160,100,.1); }
.ws-qa { display: flex; gap: 6px; margin-top: 6px; }
.ws-row input[type=text] { flex: 1 1 200px; min-height: 40px; }
.ws-inl { display: inline-flex; gap: 6px; align-items: center; }
.ws-acts { list-style: none; margin: 8px 0 0; padding: 0; font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.ws-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.ws-app, .ws-int, .ws-rel { cursor: pointer; margin-bottom: 0; }
.ws-app:hover, .ws-int:hover, .ws-rel:hover { border-color: var(--accent); }
.ws-screens { margin: 6px 0; padding-left: 18px; font-size: 13px; color: var(--text-2); }
.ws-ver { display: inline-block; padding: 0 8px; border-radius: 8px; background: var(--accent); color: var(--on-accent, #fff); font-size: 13px; }
.ws-logo { width: 36px; height: 36px; border-radius: 10px; display: inline-grid; place-items: center; font-weight: 800; background: var(--accent-soft); color: var(--accent); flex: none; }
.ws-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.ws-gallery button { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 80px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; font: inherit; font-weight: 600; color: var(--text); }
.ws-gallery button:hover { border-color: var(--accent); }
.ws-form label { display: block; margin: 12px 0 4px; font-weight: 600; font-size: 13px; }
.ws-form input[type=text], .ws-form input:not([type]), .ws-form input[type=date], .ws-form select, .ws-form textarea { width: 100%; box-sizing: border-box; min-height: 40px; }
.ws-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.ws-icons button { height: 44px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text-2); cursor: pointer; display: grid; place-items: center; }
.ws-icons button.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.ws-checks { display: flex; flex-wrap: wrap; gap: 6px 14px; max-height: 180px; overflow-y: auto; }
.ws-checks label { display: inline-flex; gap: 6px; align-items: center; margin: 0; font-weight: 400; min-height: 32px; }
.ap-bar { height: 8px; background: var(--border); border-radius: 99px; overflow: hidden; margin: 6px 0; } .ap-bar i { display: block; height: 100%; background: var(--accent); }
@media (max-width: 760px) {
  .ws, .ws.collapsed { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ws-nav { position: sticky; top: 0; z-index: 5; flex-direction: row; overflow-x: auto; padding: 6px; }
  .ws-nav button { flex: 0 0 auto; padding: 0 12px; }
  .ws.collapsed .ws-lbl { display: inline; } .ws-nav .ws-toggle { display: none; }
  .ws-two { grid-template-columns: minmax(0, 1fr); }
  .ws-step { flex-basis: 200px; }
}

/* ── app shell (v1.18): one single-line top bar + slide-in drawer (pinnable on wide screens) ─────────────── */
.sh [hidden] { display: none !important; }
.sh-top { position: sticky; top: 0; z-index: 30; height: 52px; display: flex; align-items: center; gap: 6px; padding: 0 8px; background: var(--surface); border-bottom: 1px solid var(--border); box-sizing: border-box; }
.sh-burger, .sh-ibtn, .sh-avatar { width: 44px; height: 44px; flex: none; border: 0; background: none; border-radius: 10px; color: var(--icon); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.sh-burger:hover, .sh-ibtn:hover { background: var(--accent-soft); }
.sh-avatar { border-radius: 50%; }
.sh-line { flex: 1 1 auto; min-width: 0; display: flex; align-items: baseline; gap: 6px; overflow: hidden; white-space: nowrap; }
.sh-brand { font-weight: 800; letter-spacing: -.01em; flex: none; }
.sh-dot { color: var(--muted); flex: none; }
.sh-title { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }
.sh-chip { min-height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent-soft); color: var(--accent); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.sh-demo { position: relative; flex: none; }
.sh-demopop { right: 0; top: 36px; width: 240px; padding: 10px 12px; } .sh-demopop p { margin: 0 0 8px; font-size: 13px; }
.sh-user { position: relative; flex: none; }
.sh-pop { position: absolute; z-index: 60; min-width: 220px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.18); padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.sh-user .sh-pop { right: 0; top: 48px; }
.sh-pop button { min-height: 44px; display: flex; flex-direction: column; justify-content: center; gap: 0; text-align: left; border: 0; background: none; border-radius: 8px; padding: 0 12px; font: inherit; font-weight: 600; color: var(--text); cursor: pointer; }
.sh-pop button:hover, .sh-pop button.on { background: var(--accent-soft); }
.sh-pop small { font-weight: 400; color: var(--text-2); }
.sh-who { padding: 8px 12px; display: flex; flex-direction: column; } .sh-who span { color: var(--text-2); font-size: 12.5px; overflow-wrap: anywhere; }
/* search: the single line turns into one full-width field */
.sh-search { position: absolute; left: 0; right: 0; top: 0; height: 52px; display: flex; align-items: center; gap: 4px; padding: 0 8px; background: var(--surface); z-index: 5; }
.sh-search input { flex: 1; min-width: 0; height: 44px; box-sizing: border-box; font-size: 16px; border: 1px solid var(--border); border-radius: 10px; padding: 0 12px; background: var(--bg, var(--surface)); color: var(--text); }
.sh-results { position: absolute; left: 8px; right: 8px; top: 52px; z-index: 70; max-height: min(70vh, 520px); overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 34px rgba(0,0,0,.2); padding: 6px; }
.sh-rh { padding: 6px 10px 2px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); }
.sh-results button { display: flex; flex-direction: column; width: 100%; min-height: 44px; justify-content: center; text-align: left; border: 0; background: none; border-radius: 8px; padding: 2px 10px; font: inherit; color: var(--text); cursor: pointer; }
.sh-results button:hover, .sh-results button:focus { background: var(--accent-soft); outline: none; }
.sh-results b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sh-results small { color: var(--text-2); }
@media (min-width: 901px) { .sh-search { left: 50%; transform: translateX(-50%); width: min(640px, 70vw); right: auto; } .sh-results { left: 50%; transform: translateX(-50%); width: min(640px, 70vw); right: auto; } }
/* drawer */
.sh-body { display: flex; align-items: flex-start; }
.sh-menu { position: fixed; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); z-index: 50; transform: translateX(-102%); transition: transform .2s ease; box-shadow: 0 0 30px rgba(0,0,0,.25); overflow-y: auto; padding: 10px; box-sizing: border-box; background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; }
.sh.open .sh-menu { transform: none; }
.sh-menuhead { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.sh-menutitle { font-weight: 700; padding-left: 4px; }
.sh-pin { color: var(--icon); width: 44px; height: 44px; border: 0; background: none; border-radius: 10px; cursor: pointer; font-size: 16px; opacity: .55; } .sh-pin[aria-pressed=true] { opacity: 1; background: var(--accent-soft); }
.sh-main { flex: 1 1 auto; min-width: 0; padding: 16px; box-sizing: border-box; }
.sh-picker { position: relative; margin-bottom: 8px; }
.sh-pick { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2, var(--surface)); padding: 6px 12px; font: inherit; color: var(--text); cursor: pointer; text-align: left; }
.sh-pick-t { min-width: 0; display: flex; flex-direction: column; } .sh-pick-t b, .sh-pick-t small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sh-pick-t small { color: var(--text-2); }
.sh-picklist { left: 0; right: 0; top: 56px; max-height: 50vh; overflow-y: auto; }
.sh-picklist button { align-items: flex-start; }
.sh-menu nav { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; }
.sh-menu nav button { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border: 0; background: none; border-radius: 10px; font: inherit; font-weight: 600; color: var(--text-2); cursor: pointer; text-align: left; }
.sh-menu nav button:hover { background: var(--accent-soft); color: var(--text); }
.sh-menu nav button.on { background: var(--accent); color: var(--on-accent, #fff); }
.sh-div { height: 1px; background: var(--border); margin: 8px 4px; }
.sh-foot { border-top: 1px solid var(--border); margin-top: 10px; padding-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.sh-theme, .sh-lang { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 0 8px; font-weight: 600; font-size: 13px; }
.sh-lang select { min-height: 40px; max-width: 150px; }
.sh-empty { padding: 10px 12px; color: var(--text-2); }
.sh-emptypage { max-width: 480px; margin: 60px auto; text-align: center; }
.sh-backdrop { position: fixed; inset: 0; background: rgba(8, 6, 20, .5); z-index: 40; }
@media (min-width: 901px) {
  .sh.pinned .sh-menu { position: sticky; top: 52px; bottom: auto; height: calc(100vh - 52px); width: 264px; flex: none; transform: none; box-shadow: none; z-index: 5; }
}
@media (max-width: 900px) { .sh-main { padding: 12px; } .sh-pin { display: none; } }
@media (prefers-reduced-motion: reduce) { .sh-menu { transition: none; } }

/* ── workstream circles (v1.19) ───────────────────────────────────────────────────── */
.ws-overall { font-size: 18px; margin-bottom: 2px; }
.ws-legend { gap: 12px; }
.ws-lg { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.ws-sw { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 1px solid #b4aec8; }
.ws-circles { display: grid; grid-template-columns: repeat(6, minmax(0, 130px)); justify-content: space-between; gap: 18px 26px; margin: 12px 0; }
.ws-ballw { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.ws-ballw:not(:last-child)::after { content: ''; position: absolute; top: 65px; left: calc(100% + 4px); width: 18px; height: 2px; background: var(--border-strong, #b4aec8); }
.ws-ballw:not(:last-child)::before { content: ''; position: absolute; top: 61px; left: calc(100% + 17px); border: 5px solid transparent; border-left: 7px solid var(--border-strong, #b4aec8); border-right: 0; }
.ws-circle { position: relative; width: 130px; height: 130px; max-width: 100%; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; color: var(--text); font: inherit; }
.ws-circle:hover .ws-ring, .ws-circle:focus-visible .ws-ring { filter: drop-shadow(0 2px 6px rgba(60,40,120,.35)); }
.ws-circle:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.ws-circle.cur { box-shadow: 0 0 0 4px var(--accent-soft, rgba(80,60,200,.18)), 0 0 0 6px var(--accent); }
.ws-ring { width: 100%; height: 100%; display: block; }
.ws-cc { position: absolute; inset: 21%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 0; overflow: hidden; line-height: 1.15; }
.ws-cc em { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--muted, #6b6585); }
.ws-cc b { font-size: 10.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: break-word; max-width: 100%; }
.ws-cc i { font-style: normal; font-size: 12px; font-weight: 700; color: var(--accent); }
/* assignees: small round initials */
.as-av { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft, #e9e5fb); color: var(--accent); font-size: 10.5px; font-weight: 700; border: 1px solid var(--border); flex: none; }
.as-av.ag { background: var(--text); color: var(--surface); }
.as-av.sm { width: 18px; height: 18px; font-size: 8.5px; margin-left: -4px; box-shadow: 0 0 0 1.5px var(--surface); } .as-av.sm:first-child { margin-left: 0; }
.as-row { display: inline-flex; align-items: center; padding-left: 4px; }
.as-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.as-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 4px 2px 3px; border: 1px solid var(--border); border-radius: 999px; font-size: 12.5px; background: var(--surface); }
.as-x { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0 4px; font-size: 11px; line-height: 1; }
.as-add { border: 1px dashed var(--border-strong, #b4aec8); background: none; border-radius: 999px; padding: 3px 10px; font: inherit; font-size: 12.5px; color: var(--accent); cursor: pointer; }
.as-panel { margin-top: 6px; border: 1px solid var(--border); border-radius: 10px; padding: 6px; background: var(--surface); }
.as-search { width: 100%; box-sizing: border-box; }
.as-list { list-style: none; margin: 6px 0 0; padding: 0; max-height: 170px; overflow-y: auto; }
.as-opt { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; border: 0; background: none; padding: 6px 4px; border-radius: 8px; cursor: pointer; font: inherit; font-size: 13px; color: var(--text); }
.as-opt:hover, .as-opt:focus-visible { background: var(--accent-soft, #eee9fb); }
.as-opt small { margin-left: auto; }
.ws-asg { margin: 6px 0 4px; }
.ws-ini { font-size: 11px; color: var(--text-2); font-weight: 600; letter-spacing: .02em; }
.ws-step-who { margin: 4px 0 2px; }
.ws-ssteps li.focus { border-color: var(--accent); }
@media (max-width: 1000px) { .ws-circles { grid-template-columns: repeat(3, minmax(0, 130px)); } .ws-ballw:nth-child(3n)::after, .ws-ballw:nth-child(3n)::before { display: none; } }
.ws-steplegend { font-size: 12.5px; margin-top: 6px; }
.ws-cell { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 650; border: 1px solid #b4aec8; }
.ws-cell.c-white { background: #fff; color: #4a4560; } .ws-cell.c-red { background: #d64545; color: #fff; border-color: #d64545; } .ws-cell.c-yellow { background: #f2c230; color: #3a2d00; border-color: #d9aa14; } .ws-cell.c-green { background: #2fa863; color: #fff; border-color: #2fa863; }
.ws-sheetback { position: fixed; inset: 0; background: rgba(8,6,20,.45); z-index: 80; }
.ws-sheet { position: fixed; right: 0; top: 0; bottom: 0; width: min(440px, 100vw); background: var(--surface); z-index: 90; display: flex; flex-direction: column; box-shadow: -8px 0 30px rgba(0,0,0,.25); }
.ws-sheet header { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.ws-sheet h3 { margin: 0; font-size: 17px; min-width: 0; overflow-wrap: anywhere; } .ws-sico { color: var(--accent); }
.ws-sbody { padding: 12px 14px 24px; overflow-y: auto; flex: 1; }
.ws-ssteps { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ws-ssteps li { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.ws-sl { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.ws-dots { display: flex; gap: 10px; margin-bottom: 8px; }
.ws-dot { width: 48px; height: 48px; border-radius: 50%; border: 2px solid #b4aec8; cursor: pointer; font-size: 20px; line-height: 1; display: grid; place-items: center; padding: 0; }
.ws-dot.c-white { background: #fff; color: #4a4560; } .ws-dot.c-red { background: #d64545; color: #fff; border-color: #d64545; } .ws-dot.c-yellow { background: #f2c230; color: #3a2d00; border-color: #d9aa14; } .ws-dot.c-green { background: #2fa863; color: #fff; border-color: #2fa863; }
.ws-dot { opacity: .45; } .ws-dot.on { opacity: 1; box-shadow: 0 0 0 3px var(--accent); } .ws-dot[aria-disabled=true] { opacity: .25; cursor: not-allowed; }
.ws-snote { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; } .ws-snote input[type=text] { flex: 1 1 160px; min-height: 40px; } .ws-snote input[type=date] { min-height: 40px; }
@media (max-width: 760px) {
  .ws-circles { grid-template-columns: repeat(2, minmax(0, 120px)); justify-content: space-around; gap: 14px 10px; }
  .ws-ballw:nth-child(3n)::after, .ws-ballw:nth-child(3n)::before { display: block; } .ws-ballw:nth-child(2n)::after, .ws-ballw:nth-child(2n)::before { display: none; }
  .ws-ballw:not(:last-child)::after { top: 60px; left: calc(100% + 0px); width: 10px; } .ws-ballw:not(:last-child)::before { top: 56px; left: calc(100% + 5px); }
  .ws-circle { width: min(120px, 100%); height: auto; aspect-ratio: 1; }
  .ws-cc b { font-size: 9.5px; }
  .ws-sheet { top: auto; left: 0; right: 0; width: 100%; max-height: 88vh; border-radius: 16px 16px 0 0; }
}

/* ── Specification page (v1.22): documents + photos ─────────────────────────────────── */
.ws-sec { margin: 22px 0 6px; }
.ws-sec.drag { outline: 2px dashed var(--accent); outline-offset: 6px; border-radius: 12px; }
.sp-upl { display: flex; flex-direction: column; gap: 6px; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 10px; }
.doc-card { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); min-width: 0; }
.doc-ico { flex: none; width: 54px; height: 64px; border-radius: 10px; display: grid; place-items: center; color: #fff; text-decoration: none; font-weight: 800; font-size: 12.5px; letter-spacing: .04em; box-shadow: inset 0 -14px 0 rgba(0,0,0,.14); }
.doc-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; font-size: 12px; }
.doc-info b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 10px; }
.ph-card { margin: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
.ph-card img { display: block; width: 100%; height: 120px; object-fit: cover; cursor: zoom-in; background: var(--sunken, #eee); }
.ph-card figcaption { display: flex; align-items: center; gap: 4px; padding: 4px 6px 4px 8px; font-size: 12px; } .ph-card figcaption span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Integration flow (v1.22) ───────────────────────────────────────────────────────── */
.fl-card { background: linear-gradient(135deg, #2a1d4d 0%, #3b2680 55%, #2b1b5e 100%); color: #ece8ff; border: 1px solid rgba(160,140,255,.35); border-radius: 18px; padding: 0; overflow: hidden; margin-top: 8px; }
.fl-head { display: flex; align-items: baseline; gap: 10px; padding: 12px 18px; background: rgba(20,12,45,.45); border-bottom: 1px solid rgba(160,140,255,.25); }
.fl-head b { font-size: 17px; } .fl-count { font-family: var(--mono, monospace); font-size: 12px; color: #b9aee8; }
.fl-body { padding: 20px 18px 16px; }
.fl-grid { display: grid; grid-template-columns: auto auto auto 120px auto auto auto; gap: 8px 0; justify-content: center; align-items: center; }
.fl-cell { display: flex; align-items: center; justify-content: center; padding: 0 2px; }
.fl-chips { display: flex; flex-direction: column; gap: 6px; }
.fl-chip { border: 1px solid rgba(180,160,255,.35); background: rgba(150,125,255,.2); color: #ece8ff; border-radius: 8px; padding: 4px 10px; font: inherit; font-size: 12.5px; cursor: pointer; text-align: left; white-space: nowrap; }
.fl-chip.exp { border-color: rgba(70,210,210,.55); background: rgba(40,160,170,.18); }
.fl-chip:hover, .fl-chip:focus-visible { background: rgba(190,170,255,.38); outline: none; } .fl-chip.more { opacity: .8; }
.fl-pill { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(15,8,40,.7); border: 1px solid rgba(180,160,255,.4); font-weight: 700; font-size: 12.5px; position: relative; margin: 0 12px; white-space: nowrap; }
.fl-pill::before, .fl-pill::after { content: ''; position: absolute; top: 50%; height: 2px; width: 12px; background: rgba(180,160,255,.5); }
.fl-pill::before { right: 100%; } .fl-pill::after { left: 100%; }
.fl-centre { align-self: center; justify-self: center; width: 96px; height: 96px; border-radius: 24px; background: linear-gradient(145deg, #b79cff, #6c4be0); display: grid; place-items: center; text-align: center; padding: 8px; box-shadow: 0 8px 28px rgba(80,50,200,.5); }
.fl-centre span { font-weight: 800; font-size: 14px; line-height: 1.15; color: #fff; overflow-wrap: anywhere; }
.fl-sys { display: grid; grid-template-columns: auto 1fr; gap: 0 8px; align-items: center; min-width: 130px; padding: 10px 14px; border-radius: 14px; border: 1px solid rgba(180,160,255,.3); background: rgba(20,12,45,.55); color: #ece8ff; font: inherit; text-align: left; cursor: pointer; }
.fl-sys small { grid-column: 1 / -1; color: #a99ed6; margin-top: 3px; } .fl-sys:hover, .fl-sys:focus-visible { border-color: #b79cff; outline: none; }
.fl-flag, .fl-lg { display: inline-grid; place-items: center; width: 22px; height: 22px; } .fl-lg { background: rgba(180,160,255,.3); border-radius: 6px; font-weight: 800; font-size: 12px; }
.fl-cap { color: #a99ed6; font-size: 13px; margin: 18px 0 12px; }
.fl-add { display: flex; align-items: center; gap: 12px; width: min(100%, 340px); padding: 12px 16px; border: 2px dashed rgba(180,160,255,.55); border-radius: 16px; background: transparent; color: #ddd5ff; cursor: pointer; font: inherit; }
.fl-add span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2px dashed rgba(180,160,255,.7); font-size: 22px; line-height: 1; } .fl-add:hover, .fl-add:focus-visible { background: rgba(180,160,255,.14); outline: none; }
@media (max-width: 760px) {
  .fl-grid { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
  .fl-grid > * { grid-column: auto !important; grid-row: auto !important; }
  .fl-centre { order: -1; width: 100%; height: 64px; border-radius: 18px; margin-bottom: 6px; }
  .fl-cell { justify-content: flex-start; } .fl-chips { flex-direction: row; flex-wrap: wrap; } .fl-pill { margin: 0; } .fl-pill::before, .fl-pill::after { display: none; }
  .fl-sys { width: 100%; box-sizing: border-box; }
}

/* ── Connection wizard ──────────────────────────────────────────────────────────────── */
.wz-dlg .dialog-head { gap: 10px; } .wz-head { display: flex; align-items: baseline; gap: 8px; min-width: 0; } .wz-head .dim { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wz-steps { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.wz-step { padding: 3px 11px; border-radius: 999px; border: 1px solid var(--border); font-size: 12px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.wz-step.on { background: var(--accent); color: var(--on-accent, #fff); border-color: var(--accent); }
.wz-search input { width: 100%; box-sizing: border-box; }
.wz-gh { margin: 12px 0 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.wz-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.wz-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; text-align: center; min-height: 64px; }
.wz-tile:hover { border-color: var(--accent); } .wz-tile.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent); }
.wz-tile.more { border-style: dashed; } .wz-plus { font-size: 20px; line-height: 1; color: var(--accent); }
.wz-tile .fl-lg { background: var(--accent-soft); color: var(--accent); }
.wz-form { margin-top: 12px; } .wz-cred { font-size: 12px; margin: 8px 0 0; }
.wz-ent { display: grid; grid-template-columns: minmax(96px, 1fr) auto minmax(150px, 1.2fr) minmax(118px, .9fr); gap: 6px 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.wz-ent.off > :not(.wz-chk) { opacity: .4; }
.wz-chk { display: flex; align-items: center; gap: 8px; margin: 0; } .wz-chk b { font-size: 13.5px; }
.wz-seg { display: inline-flex; gap: 4px; } .wz-seg button { height: 28px; padding: 0 7px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.wz-seg button.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #fff); }
.wz-hint { grid-column: 1 / -1; margin: 0; font-size: 12px; }
.wz-addrow { margin-top: 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } #wzAddBox { display: inline-flex; gap: 6px; }
.wz-rev { display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; margin: 0; } .wz-rev dt { color: var(--muted); font-size: 12px; } .wz-rev dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 600px) { .wz-ent { grid-template-columns: 1fr 1fr; } .wz-chk { grid-column: 1 / -1; } .wz-seg { grid-column: 1 / -1; } .wz-rev { grid-template-columns: 1fr; } }
.sh-brand .pp-word small { display: none; } .sh-brand .pp-word b { font-size: 12px; letter-spacing: .12em; } .sh-brand .pp-svg { border-radius: 8px; }
@media (min-width: 900px) { .sh-brand .pp-word small { display: block; font-size: 9px; } }
@media (max-width: 480px) { .sh-brand .pp-word { display: none; } }

.doc-grid > .empty, .ph-grid > .empty { grid-column: 1 / -1; }

/* ══ v1.23: icon contrast, select/delete paths, default solution, Bright (monday) theme ═══════════════════════════ */
.sh-theme { flex-wrap: wrap; }
.sh-theme .theme-pick { flex: 1 1 100%; justify-content: flex-start; padding-bottom: 4px; }
.sh-theme .tp-opt { flex: 1 1 0; justify-content: center; padding: 0 6px; min-width: 0; }
.fl-card { --icon: #ffffff; }
.fl-lg, .fl-flag { color: var(--icon-on-dark); }
.fl-lg { background: #6c4be0; }
.wz-tile .fl-lg { background: #6c4be0; color: #fff; }
.doc-ico { color: #fff; }
.fl-head { align-items: center; flex-wrap: wrap; } .fl-head .spacer { flex: 1; }
.fl-head .fl-sel { border: 1px solid rgba(180,160,255,.55); background: rgba(150,125,255,.2); color: #fff; border-radius: 8px; padding: 4px 12px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.fl-head .fl-sel:hover, .fl-head .fl-sel:focus-visible { background: rgba(190,170,255,.38); outline: none; }
.fl-head .fl-sel.on { background: #fff; color: #323338; }
.fl-back { font-size: 11.5px; color: #a99ed6; white-space: nowrap; margin-right: 6px; }
/* select mode: every path (system card + its chips) gets a selection ring */
.fl-grid.selecting .fl-sys, .fl-grid.selecting .fl-chip, .fl-grid.selecting .fl-centre { cursor: pointer; }
.fl-grid.selecting .fl-chip { pointer-events: none; }
.fl-sys { position: relative; }
.fl-tick { display: none; position: absolute; top: -7px; left: -7px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff; background: rgba(20,12,45,.85); color: transparent; place-items: center; font-size: 12px; font-weight: 800; line-height: 1; }
.fl-grid.selecting .fl-tick { display: grid; }
.fl-grid.selecting [data-path].sel .fl-tick, .fl-grid.selecting .fl-sys.sel .fl-tick { background: #00c875; color: #fff; border-color: #fff; }
.fl-sys.sel { box-shadow: 0 0 0 3px #00c875; border-color: #00c875; }
.fl-chip.selp { box-shadow: 0 0 0 2px #00c875; }
.fl-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0; padding: 8px 12px; border-radius: 12px; background: rgba(15,8,40,.7); border: 1px solid rgba(180,160,255,.4); }
.fl-bar b { font-size: 13px; } .fl-bar .spacer { flex: 1; }
.fl-bar button { font: inherit; font-size: 12.5px; font-weight: 650; border-radius: 8px; padding: 5px 12px; cursor: pointer; border: 1px solid rgba(180,160,255,.5); background: rgba(150,125,255,.2); color: #fff; }
.fl-bar button.del { background: #df2f4a; border-color: #df2f4a; } .fl-bar button:disabled { opacity: .45; cursor: default; }
.fl-centre { cursor: pointer; border: 0; font: inherit; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.fl-centre b { font-weight: 800; font-size: 15px; line-height: 1.1; overflow-wrap: anywhere; } .fl-centre small { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.fl-centre:hover, .fl-centre:focus-visible { filter: brightness(1.08); outline: 2px solid rgba(255,255,255,.6); outline-offset: 2px; }
.sol-line { font-size: 13px; color: var(--text-2); margin: 4px 0 8px; } .sol-line b { color: var(--text); }
.wz-del { color: #df2f4a; background: none; border: 0; font: inherit; font-weight: 600; cursor: pointer; padding: 6px 4px; text-decoration: underline; }
.wz-sol { font-size: 12px; color: var(--muted); margin: 0 0 6px; }

/* ── Bright theme (monday.com look) ─────────────────────────────────────────────────── */
:root[data-theme="bright"] body, :root[data-theme="bright"] input, :root[data-theme="bright"] select, :root[data-theme="bright"] textarea, :root[data-theme="bright"] button { font-family: var(--font-bright); }
:root[data-theme="bright"] body { background: #f6f7fb; color: #323338; }
:root[data-theme="bright"] .sh-top { background: #fff; border-bottom: 1px solid #d0d4e4; box-shadow: none; }
:root[data-theme="bright"] h1, :root[data-theme="bright"] h2, :root[data-theme="bright"] h3 { color: #323338; font-weight: 700; }
:root[data-theme="bright"] .card, :root[data-theme="bright"] .ws-card, :root[data-theme="bright"] .kpi { border-radius: 8px; border-color: #d0d4e4; box-shadow: 0 1px 3px rgba(0,0,0,.08); background: #fff; }
:root[data-theme="bright"] .btn, :root[data-theme="bright"] .tp-opt { border-radius: 8px; }
:root[data-theme="bright"] .btn { background: #fff; border-color: #c3c6d4; color: #323338; }
:root[data-theme="bright"] .btn:hover { background: #e6f1fd; border-color: #0073ea; }
:root[data-theme="bright"] .btn.primary { background: #0073ea; border-color: #0073ea; color: #fff; } :root[data-theme="bright"] .btn.primary:hover { background: #0060b9; }
:root[data-theme="bright"] .btn.danger { color: #df2f4a; }
:root[data-theme="bright"] input, :root[data-theme="bright"] select, :root[data-theme="bright"] textarea { border-color: #c3c6d4; border-radius: 4px; background: #fff; color: #323338; }
:root[data-theme="bright"] .sh-menu { background: #fff; }
/* boards: coloured group bar on the left of every card, coloured group title */
:root[data-theme="bright"] .ws-card, :root[data-theme="bright"] .doc-card, :root[data-theme="bright"] .ph-card { border-left: 5px solid #579bfc; }
:root[data-theme="bright"] .ws-grid > :nth-child(6n+1) { border-left-color: #0073ea; } :root[data-theme="bright"] .ws-grid > :nth-child(6n+2) { border-left-color: #00c875; }
:root[data-theme="bright"] .ws-grid > :nth-child(6n+3) { border-left-color: #fdab3d; } :root[data-theme="bright"] .ws-grid > :nth-child(6n+4) { border-left-color: #9d50dd; }
:root[data-theme="bright"] .ws-grid > :nth-child(6n+5) { border-left-color: #df2f4a; } :root[data-theme="bright"] .ws-grid > :nth-child(6n+6) { border-left-color: #ffcb00; }
:root[data-theme="bright"] .ws-sec:nth-of-type(6n+1) > .ws-row h3, :root[data-theme="bright"] .ws-sec > .ws-row h3 { color: #0073ea; }
:root[data-theme="bright"] table { background: #fff; }
:root[data-theme="bright"] th { background: #fff; color: #676879; text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 600; border-bottom: 1px solid #d0d4e4; }
:root[data-theme="bright"] td { border-bottom: 1px solid #e6e9ef; }
:root[data-theme="bright"] tbody tr:first-child td:first-child, :root[data-theme="bright"] tbody tr td:first-child { box-shadow: inset 5px 0 0 #579bfc; }
:root[data-theme="bright"] tbody tr:hover { background: #f5f7ff; }
/* status = full-width coloured cell with white text */
:root[data-theme="bright"] .pj-pill, :root[data-theme="bright"] .ws-pill, :root[data-theme="bright"] .pill { border-radius: 4px; border: 0; color: #fff; font-weight: 600; padding: 3px 12px; min-width: 84px; text-align: center; background: #c4c4c4; }
:root[data-theme="bright"] .pj-st-draft, :root[data-theme="bright"] .pj-t-todo, :root[data-theme="bright"] .pj-m-wont, :root[data-theme="bright"] .pj-st-closed { background: #c4c4c4; color: #323338; }
:root[data-theme="bright"] .pj-st-specifying, :root[data-theme="bright"] .pj-r-proposed, :root[data-theme="bright"] .pj-m-could, :root[data-theme="bright"] .ws-s-agreed, :root[data-theme="bright"] .ws-s-in_test { background: #579bfc; color: #fff; }
:root[data-theme="bright"] .pj-st-approved, :root[data-theme="bright"] .pj-t-review, :root[data-theme="bright"] .pj-r-done, :root[data-theme="bright"] .ws-s-building { background: #9d50dd; color: #fff; }
:root[data-theme="bright"] .pj-st-in_progress, :root[data-theme="bright"] .pj-t-doing, :root[data-theme="bright"] .pj-m-should, :root[data-theme="bright"] .pj-cr-open, :root[data-theme="bright"] .ws-s-idea, :root[data-theme="bright"] .ws-s-planned { background: #fdab3d; color: #fff; }
:root[data-theme="bright"] .pj-st-delivered, :root[data-theme="bright"] .pj-t-done, :root[data-theme="bright"] .pj-r-accepted, :root[data-theme="bright"] .pj-cr-accepted, :root[data-theme="bright"] .ws-s-done, :root[data-theme="bright"] .ws-s-released, :root[data-theme="bright"] .pill.ok { background: #00c875; color: #fff; }
/* circles keep their meaning in monday colours: Not started light gray (outlined), In progress red, Done yellow, Approved green */
:root[data-theme="bright"] .ws-seg[data-s="white"] { fill: #c4c4c4; stroke: #8d8fa0; } :root[data-theme="bright"] .ws-seg[data-s="red"] { fill: #df2f4a; }
:root[data-theme="bright"] .ws-seg[data-s="yellow"] { fill: #ffcb00; } :root[data-theme="bright"] .ws-seg[data-s="green"] { fill: #00c875; }
:root[data-theme="bright"] .ws-cell.c-white, :root[data-theme="bright"] .ws-dot.c-white { background: #c4c4c4; color: #323338; border-color: #8d8fa0; }
:root[data-theme="bright"] .ws-cell.c-red, :root[data-theme="bright"] .ws-dot.c-red { background: #df2f4a; border-color: #df2f4a; color: #fff; }
:root[data-theme="bright"] .ws-cell.c-yellow, :root[data-theme="bright"] .ws-dot.c-yellow { background: #ffcb00; border-color: #e0b200; color: #323338; }
:root[data-theme="bright"] .ws-cell.c-green, :root[data-theme="bright"] .ws-dot.c-green { background: #00c875; border-color: #00c875; color: #fff; }
/* integration flow in Bright: white board, blue gradient centre tile with white text */
:root[data-theme="bright"] .fl-card { --icon: #323338; background: #fff; color: #323338; border: 1px solid #d0d4e4; border-left: 5px solid #0073ea; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
:root[data-theme="bright"] .fl-head { background: #fff; border-bottom: 1px solid #d0d4e4; } :root[data-theme="bright"] .fl-count, :root[data-theme="bright"] .fl-cap, :root[data-theme="bright"] .fl-back, :root[data-theme="bright"] .fl-sys small { color: #676879; }
:root[data-theme="bright"] .fl-chip { background: #e6f1fd; border-color: #b5d7fb; color: #323338; } :root[data-theme="bright"] .fl-chip.exp { background: #e5f9f0; border-color: #a8e8cc; }
:root[data-theme="bright"] .fl-chip:hover, :root[data-theme="bright"] .fl-chip:focus-visible { background: #cce5ff; }
:root[data-theme="bright"] .fl-pill { background: #fff; border-color: #c3c6d4; color: #323338; } :root[data-theme="bright"] .fl-pill::before, :root[data-theme="bright"] .fl-pill::after { background: #c3c6d4; }
:root[data-theme="bright"] .fl-sys { background: #fff; border-color: #d0d4e4; color: #323338; box-shadow: 0 1px 3px rgba(0,0,0,.08); } :root[data-theme="bright"] .fl-sys:hover { border-color: #0073ea; }
:root[data-theme="bright"] .fl-centre { background: linear-gradient(145deg, #0073ea, #579bfc); box-shadow: 0 6px 18px rgba(0,115,234,.35); color: #fff; }
:root[data-theme="bright"] .fl-add { border-color: #0073ea; color: #0073ea; } :root[data-theme="bright"] .fl-add span { border-color: #0073ea; } :root[data-theme="bright"] .fl-add:hover { background: #e6f1fd; }
:root[data-theme="bright"] .fl-head .fl-sel { background: #fff; color: #323338; border-color: #c3c6d4; } :root[data-theme="bright"] .fl-head .fl-sel.on { background: #0073ea; color: #fff; border-color: #0073ea; }
:root[data-theme="bright"] .fl-bar { background: #e6f1fd; border-color: #b5d7fb; } :root[data-theme="bright"] .fl-bar button { background: #fff; color: #323338; border-color: #c3c6d4; } :root[data-theme="bright"] .fl-bar button.del { background: #df2f4a; color: #fff; border-color: #df2f4a; }
:root[data-theme="bright"] .fl-tick { background: #fff; border-color: #0073ea; } :root[data-theme="bright"] .fl-sys.sel { box-shadow: 0 0 0 3px #00c875; }
:root[data-theme="bright"] .wz-step.on { background: #0073ea; border-color: #0073ea; }
@media (max-width: 760px) { .fl-centre { flex-direction: column; } .fl-back { display: none; } }
/* icon colour follows the surface: white on dark, #323338 on light (v1.23) */
.ws-ico, .ws-sico, .ws-role .ws-ico, .ws-icons button, .ws-icons button.on, .sh-menu nav button svg, .btn svg, .x { color: var(--icon); }
.sh-menu nav button.on svg { color: var(--on-accent, #fff); }
.wz-plus { color: var(--icon); }

/* ══ v1.24: approvals, change-request notepad, APPROVE SPECIFICATION ═══════════════════════════════════════════ */
.ap-ctl { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.ap-bar { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border); width: 100%; box-sizing: border-box; }
.doc-card { flex-wrap: wrap; } .doc-card .ap-bar { flex: 1 1 100%; }
.ap-ticks { display: inline-flex; gap: 3px; }
.ap-t { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--border-strong); color: var(--muted); background: var(--surface); font-family: var(--mono, monospace); }
.ap-t.on { color: #0b6b3a; border-color: #00c875; background: rgba(0,200,117,.14); }
:root[data-theme="dark"] .ap-t.on { color: #5de3a5; }
.ap-btn { font: inherit; font-size: 12.5px; font-weight: 650; padding: 3px 10px; border-radius: 8px; cursor: pointer; background: transparent; line-height: 1.4; }
.ap-btn.ok { border: 1.5px solid #00a35c; color: #00804a; } .ap-btn.ok.on { background: #00a35c; color: #fff; }
.ap-btn.chg { border: 1.5px solid #e08a00; color: #a85f00; } .ap-btn.chg:hover { background: rgba(253,171,61,.18); }
:root[data-theme="dark"] .ap-btn.ok { color: #5de3a5; border-color: #2fa863; } :root[data-theme="dark"] .ap-btn.ok.on { background: #2fa863; color: #04210f; }
:root[data-theme="dark"] .ap-btn.chg { color: #ffb84d; border-color: #e08a00; }
.ap-btn:disabled { opacity: .5; cursor: default; } .ap-btn:focus-visible, .ap-badge:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ap-badge { font: inherit; font-size: 12px; font-weight: 600; border: 1px solid var(--border-strong); border-radius: 999px; padding: 2px 9px; background: var(--surface); color: var(--text-2); cursor: pointer; }
.ap-badge.ok { color: #0b6b3a; border-color: #00c875; background: rgba(0,200,117,.12); } .ap-badge.warn { color: #a85f00; border-color: #e08a00; background: rgba(253,171,61,.16); } .ap-badge.chg { color: #8a2f00; border-color: #df2f4a; background: rgba(223,47,74,.10); }
:root[data-theme="dark"] .ap-badge.ok { color: #5de3a5; } :root[data-theme="dark"] .ap-badge.warn { color: #ffb84d; } :root[data-theme="dark"] .ap-badge.chg { color: #ff8d80; }
.ap-flash { animation: apflash 2.2s ease; } @keyframes apflash { 0%, 60% { box-shadow: 0 0 0 4px #fdab3d; } 100% { box-shadow: 0 0 0 0 transparent; } }
.ap-rows { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); margin-top: 8px; }
.ap-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--border); flex-wrap: wrap; } .ap-row:last-child { border-bottom: 0; }
.ap-kind { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); min-width: 92px; } .ap-name { flex: 1 1 200px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.ph-card .ap-bar { padding: 6px 8px 8px; margin: 0; } .ph-card .ap-ctl { gap: 4px; } .ph-card .ap-btn { font-size: 11.5px; padding: 2px 7px; }
.bug-lb { flex-direction: column; gap: 12px; } .bug-lb-ctl { background: var(--surface); border-radius: 12px; padding: 8px 12px; max-width: calc(100vw - 32px); }
/* the big sticky summary card */
.ap-sum { padding: 12px 14px; margin-bottom: 14px; position: sticky; top: 56px; z-index: 20; overflow: visible; }
.ap-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 14px; } .ap-line progress { flex: 1 1 160px; height: 10px; accent-color: #00c875; min-width: 120px; }
.ap-slots { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 8px 0 10px; font-size: 13px; color: var(--text-2); } .ap-slots b.ok { color: #0b6b3a; } .ap-slots b.pend { color: #a85f00; }
:root[data-theme="dark"] .ap-slots b.ok { color: #5de3a5; } :root[data-theme="dark"] .ap-slots b.pend { color: #ffb84d; }
.ap-big { display: block; width: 100%; height: 56px; border: 0; border-radius: 10px; background: #00a35c; color: #fff; font: inherit; font-size: 18px; font-weight: 800; letter-spacing: .05em; cursor: pointer; padding: 0 12px; box-shadow: 0 2px 0 rgba(0,0,0,.18); }
.ap-big:hover { background: #008f50; } .ap-big.off { background: #6b7385; color: #fff; cursor: pointer; box-shadow: none; } :root[data-theme="dark"] .ap-big.off { background: #3b455a; color: #cfd6e6; }
.ap-big:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.ap-done { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 8px; border-radius: 10px; background: rgba(0,200,117,.14); border: 1px solid #00c875; color: #0b6b3a; font-size: 15px; } :root[data-theme="dark"] .ap-done { color: #5de3a5; }
.ap-miss { padding-left: 18px; line-height: 1.9; } .ap-miss a { color: var(--accent); font-weight: 600; }
@media (max-width: 760px) { .ap-sum { position: static; } .ap-big { font-size: 15px; height: 56px; } .ap-name { flex-basis: 100%; white-space: normal; } .ap-kind { min-width: 0; } }
/* the notepad */
.np-pad { display: block; width: 100%; box-sizing: border-box; min-height: 224px; resize: vertical; font: inherit; font-size: 15px; line-height: 28px; color: #3b3300 !important; padding: 0 14px 0 18px; border: 1px solid #e2d57a !important; border-left: 3px solid #e89a9a !important; border-radius: 4px !important;
  background: #fff9b8 repeating-linear-gradient(to bottom, transparent 0, transparent 27px, #e0d36f 27px, #e0d36f 28px) !important; background-attachment: local !important; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.np-pad::placeholder { color: #8a7d2a; } .np-att { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; } .np-file { cursor: pointer; }
.th-req { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; } .th-req.open { border-left: 4px solid #e08a00; } .th-req.resolved { border-left: 4px solid #00c875; }
.th-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .th-body { white-space: pre-wrap; margin: 6px 0; overflow-wrap: anywhere; } .th-photo { max-width: 100%; max-height: 180px; border-radius: 8px; cursor: zoom-in; display: block; margin: 6px 0; }
.th-reply { border-left: 3px solid var(--border-strong); padding: 2px 0 2px 10px; margin: 6px 0; font-size: 13px; } .th-reply p { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.th-act { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; } .th-in { flex: 1 1 160px; min-width: 0; }
.fl-ap { position: absolute; right: 6px; top: 6px; font-size: 10px; font-weight: 700; }
/* Bright */
:root[data-theme="bright"] .ap-sum { border-left: 5px solid #00c875; } :root[data-theme="bright"] .ap-big { background: #037f4c; border-radius: 8px; color: #fff; } :root[data-theme="bright"] .ap-big:hover { background: #026b40; } :root[data-theme="bright"] .ap-big.off { background: #c4c4c4; color: #323338; }
:root[data-theme="bright"] .ap-btn { border-radius: 8px; } :root[data-theme="bright"] .ap-btn.ok.on { background: #00c875; border-color: #00c875; color: #fff; } :root[data-theme="bright"] .ap-btn.chg { border-color: #fdab3d; color: #8a5300; }
:root[data-theme="bright"] .ap-rows { border-radius: 8px; border-left: 5px solid #579bfc; }
.ws-tip { position: fixed; z-index: 200; pointer-events: none; background: #323338; color: #fff; font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 6px; box-shadow: 0 4px 14px rgba(0,0,0,.3); max-width: min(280px, 90vw); }
.ws-slg i { font-style: normal; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-soft); color: var(--text); font-size: 10px; font-weight: 700; margin-right: 2px; } .ws-slg { white-space: nowrap; }

/* ══ v1.6.0 ═════════════════════════════════════════════════════════════════════════════════════════════════════ */
/* Specification text and requirements: monday-style table */
.bd-cnt { font-size: 13px; color: var(--text-2); }
.sp-grp { margin-bottom: 20px; }
.sp-gh { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; } .sp-gh .spacer { flex: 1; }
.sp-gh h2 { margin: 0; font-size: 18px; font-weight: 700; color: var(--gc); } .sp-gh .chv { color: var(--gc); display: inline-flex; }
.sp-gh .btn.sm { margin-left: 6px; }
.sp-grp .sp-card { display: block; padding: 0; margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.08); overflow-x: auto; }
.sp-grid { min-width: 760px; }
.sp-hd, .sp-grp .sp-row { display: grid; grid-template-columns: 6px minmax(220px, 2.6fr) 120px 70px 70px 270px; gap: 0; margin: 0; align-items: stretch; }
.sp-hd .bar, .sp-grp .sp-row .bar { background: var(--gc); display: block; }
.sp-hd .sp-th { font-size: 13px; color: var(--text-2); font-weight: 500; padding: 8px 10px; text-align: center; border-left: 1px solid var(--border); }
.sp-hd .sp-th:nth-child(2) { border-left: 0; }
.sp-grp .sp-c { font-size: 14px; padding: 0 10px; min-height: 44px; display: flex; align-items: center; justify-content: center; border-left: 1px solid var(--border); border-top: 1px solid var(--border); box-sizing: border-box; min-width: 0; }
.sp-grp .sp-item { justify-content: flex-start; border-left: 0; gap: 10px; padding-top: 4px; padding-bottom: 4px; }
.sp-tag { flex: none; width: 34px; height: 34px; border-radius: 6px; color: #fff; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sp-t { min-width: 0; display: flex; flex-direction: column; }
.sp-nm { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); background: none; border: 0; padding: 0; font: inherit; font-weight: 500; text-align: left; cursor: pointer; } .sp-nm:hover { color: var(--accent); }
.sp-meta { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-grp button.sp-rq { padding: 0; font: inherit; font-size: 13px; font-weight: 600; background: transparent; color: var(--text-2); border-radius: 0; border: 0; border-left: 1px solid var(--border); border-top: 1px solid var(--border); cursor: pointer; width: 100%; }
.sp-grp button.sp-rq.on { background: #fdab3d; color: #323338; border-left-color: transparent; border-top: 1px solid #fff; }
.sp-tk { width: 24px; height: 24px; border-radius: 50%; padding: 0; display: inline-flex; align-items: center; justify-content: center; background: #e6e9ef; color: #9699a6; font-weight: 800; border: 0; }
.sp-tk.on { background: #00c875; color: #0b2e1f; } .sp-tk.stale { background: #fdab3d; color: #323338; }
.sp-tk svg.bdi { width: 14px; height: 14px; margin: 0; }
.sp-rev { gap: 6px; flex-wrap: nowrap; }
.sp-rev .ap-ctl { flex-wrap: nowrap; }
.sp-rev .ap-btn { display: inline-flex; align-items: center; gap: 4px; height: 32px; min-height: 32px; padding: 0 10px; border-radius: 6px; background: var(--surface); font-size: 13px; font-weight: 600; white-space: nowrap; }
.sp-rev .ap-btn.ok.on { background: #00c875; color: #0b2e1f; border-color: #00c875; }
.sp-rev .sp-del { width: 32px; height: 32px; min-height: 32px; padding: 0; display: inline-grid; place-items: center; }
.sp-row.ap-flash, .ap-row2.ap-flash { outline: 3px solid #fdab3d; outline-offset: -3px; }
.txt-pop p { margin: 0 0 10px; } .txt-pop p:last-child { margin-bottom: 0; }
/* ONE Approve button: same place and width everywhere */
.ap-btns { display: inline-flex; }
.ap-btn.ok { min-width: 116px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.ph-card .ap-btn.ok, .doc-card .ap-btn.ok { min-width: 0; }
/* app cards: footer row (Edit app + Approve) sits at the card bottom, no dashed line */
.ws-grid > .ws-app { display: flex; flex-direction: column; }
.ws-app-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ws-app-foot > .ap-ctl { margin-left: auto; }
/* integration flow: one Approve per integration under the caption */
.wf-ap { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 14px; }
.wf-ap-i { display: flex; align-items: center; gap: 8px; }
.wf-ap-n { font-weight: 600; color: #ece8ff; }
:root[data-theme="bright"] .wf-ap-n { color: #323338; }
.fl-card .ap-btn.ok { color: #5de3a5; border-color: #2fa863; background: transparent; } .fl-card .ap-btn.ok.on { background: #2fa863; color: #04210f; }
:root[data-theme="bright"] .fl-card .ap-btn.ok { color: #00804a; border-color: #00a35c; } :root[data-theme="bright"] .fl-card .ap-btn.ok.on { background: #00c875; border-color: #00c875; color: #fff; }
/* approval sign card: scrolls with the page, compact */
.ap-sum { position: static; padding: 8px 12px; margin-bottom: 10px; }
.ap-sum .ap-line { font-size: 13px; }
.ap-sum .ap-slots { margin: 6px 0; gap: 4px 16px; font-size: 12px; }
.ap-sum .ap-big { height: 40px; font-size: 14px; border-radius: 8px; }
.ap-done { padding: 6px 10px; margin-bottom: 6px; font-size: 14px; }
/* Prototype page */
.pt-head { margin-bottom: 14px; } .pt-head h1 { font-size: 24px; } .pt-step { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.pt-app { margin-bottom: 16px; padding: 14px 16px; }
.pt-ah { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; } .pt-ah h2 { margin: 0; font-size: 18px; } .pt-ah .spacer { flex: 1; }
.pt-grid { display: grid; grid-template-columns: minmax(0, auto) minmax(260px, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .pt-grid { grid-template-columns: 1fr; } }
.pt-demo { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.pt-dev { border: 10px solid #1d2230; background: #fff; overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,.25); max-width: 100%; box-sizing: border-box; }
.pt-dev.phone { width: 300px; height: 560px; border-radius: 34px; }
.pt-dev.desk { width: 560px; height: 360px; border-radius: 10px; border-top-width: 22px; }
.pt-if { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.pt-empty { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #676879; background: #f6f7fb; text-align: center; padding: 20px; box-sizing: border-box; font-size: 13px; }
.pt-dbar { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pt-side h3 { margin: 0 0 6px; font-size: 14px; } .pt-inst { white-space: pre-wrap; font-size: 14px; line-height: 1.55; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-bottom: 16px; }
.pt-fbh { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; } .pt-fbh h3 { margin: 0; flex: 1; }
.pt-fbl { display: flex; flex-direction: column; gap: 8px; }
.pt-fb { border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; font-size: 13px; } .pt-fb.done { opacity: .6; }
.pt-fbt { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .pt-fbt .spacer { flex: 1; }
.pt-k { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; } .pt-k.change { background: #fdab3d; color: #323338; } .pt-k.note { background: #579bfc; color: #fff; }
.pt-fbx { white-space: pre-wrap; margin: 6px 0; } .pt-ph { max-width: 160px; max-height: 120px; border-radius: 6px; cursor: zoom-in; display: block; margin-bottom: 6px; }
.pt-rp { border-left: 3px solid var(--border-strong); padding: 2px 0 2px 8px; margin: 6px 0; }
.pt-rin { display: flex; gap: 6px; margin-top: 6px; } .pt-rin input { flex: 1; min-width: 0; }
.pt-full .pt-full-in { width: min(1100px, 96vw); height: 92vh; background: var(--surface); border-radius: 12px; display: flex; flex-direction: column; overflow: hidden; } .pt-full-bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; } .pt-full-bar .spacer { flex: 1; } .pt-full .pt-if { flex: 1; height: auto; }
.np-prev { max-width: 100%; max-height: 160px; border-radius: 8px; margin-top: 6px; display: block; }
/* big popups (text, section / requirement editors, history, prototype dialogs) */
.overlay .dialog.pj-big:not(.dlg-wide) { max-width: min(980px, calc(100vw - 32px)); min-height: min(78vh, 900px); max-height: 92vh; display: flex; flex-direction: column; }
.dialog.pj-big .dialog-body { flex: 1 1 auto; overflow: auto; font-size: 16px; line-height: 1.6; padding: 20px 26px; }
.dialog.pj-big .dialog-head { height: 52px; min-height: 52px; } .dialog.pj-big .dialog-head h2 { font-size: 20px; }
.dialog.pj-big .pj-rte-body, .dialog.pj-big [contenteditable="true"] { min-height: 46vh; }
.dialog.pj-big textarea { min-height: 30vh; font-size: 15px; }

/* ══ v1.7.0: demo versions per app (Prototype page) ═══════════════════════════════════════════════════════ */
.pt-demo { max-width: 100%; }
.pt-vers { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; width: min(560px, 100%); box-sizing: border-box; scroll-snap-type: x proximity; }
.pt-vc { flex: 0 0 168px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; text-align: left; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); color: var(--text); cursor: pointer; position: relative; }
.pt-vc:hover { border-color: var(--accent); } .pt-vc:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.pt-vc.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft), inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.pt-vc.chosen { border-color: var(--ok); } .pt-vc.chosen.on { box-shadow: 0 0 0 2px color-mix(in srgb, var(--ok) 25%, transparent), inset 0 0 0 1px var(--ok); }
.pt-vt { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .pt-vt b { font-size: 13.5px; }
.pt-vc small { color: var(--text-2); font-size: 12px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pt-vbadge { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--ok); color: #fff; }
.pt-vact { display: flex; gap: 2px; margin-top: auto; } .pt-vact .btn { padding: 0 6px; min-height: 26px; }
.pt-chosen { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--ok); }
.pt-chip-ok { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--ok); color: var(--ok); }
.pt-chip-ok b { color: var(--text); }
.pt-vl { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text-2); background: var(--surface-2); }
.ws-chosen { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 13px; color: var(--ok); font-weight: 600; } .ws-chosen b { color: var(--text); }
@media (max-width: 640px) { .pt-vc { flex-basis: 150px; } .pt-dev.desk { width: 100%; max-width: 560px; } }

/* v1.7.1 ball 1: centre turns green when everything added is approved */
.ws-cc.ws-cc-ok { background: #2fa863; border-radius: 50%; color: #fff; } .ws-cc.ws-cc-ok em, .ws-cc.ws-cc-ok b, .ws-cc.ws-cc-ok i { color: #fff; }

/* v1.7.5 heading above the design alternatives */
.pt-vhd { margin: 0 0 8px; font-size: 15px; font-weight: 700; }
/* v1.7.6 simplified bug reporter on the Prototype page */
.fb-seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 10px; overflow: hidden; }
.fb-seg button { border: 0; background: var(--surface); color: var(--text); padding: 8px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.fb-seg button + button { border-left: 1px solid var(--border-strong); }
.fb-seg button.on { background: var(--accent, #0073ea); color: #fff; }
.fb-photos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.fb-photos .ph { position: relative; width: 96px; height: 96px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.fb-photos .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fb-photos .ph button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.pt-vl.pt-bug { color: #c4314b; border-color: #f0b8c2; background: #fdecef; display: inline-flex; align-items: center; gap: 3px; }
/* v1.7.8 photo viewer: fits the screen, close button, zoom */
.bug-lb.pj-lb { display: flex; flex-direction: column; align-items: stretch; padding: 0; gap: 0; cursor: default; }
.pj-lb-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: rgba(0,0,0,.55); color: #fff; flex: none; }
.pj-lb-nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; font-size: 14px; }
.pj-lb-b { min-width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.1); color: #fff; font: 600 18px/1 inherit; cursor: pointer; display: inline-grid; place-items: center; padding: 0 8px; }
.pj-lb-b.w { font-size: 13px; } .pj-lb-b:hover { background: rgba(255,255,255,.22); }
.pj-lb-x { margin-left: 8px; background: #fff; color: #111; border-color: #fff; } .pj-lb-x:hover { background: #e9e9e9; }
.pj-lb-pct { min-width: 48px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.pj-lb-stage { flex: 1 1 auto; min-height: 0; overflow: auto; display: flex; padding: 16px; }
.pj-lb-stage img { margin: auto; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 8px; cursor: zoom-in; display: block; }
.pj-lb.zoomed .pj-lb-stage img { max-width: none; max-height: none; cursor: zoom-out; }
.pj-lb .bug-lb-ctl { flex: none; align-self: center; margin: 0 0 14px; }
@media (max-width: 600px) { .pj-lb-b.w { display: none; } }
/* v1.7.9 small step circles in the project header */
.pj-steps { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 2px 4px 0 0; }
.pj-mc { position: relative; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; flex: none; }
.pj-mc svg.ws-ring { width: 100%; height: 100%; display: block; }
.pj-mc > span { position: absolute; inset: 9px; border-radius: 50%; display: grid; place-items: center; font: 700 12px/1 inherit; color: var(--text); background: var(--surface); }
.pj-mc.ok > span { background: #2fa863; color: #fff; }
.pj-mc.cur { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent, #0073ea); }
.pj-mc:hover { transform: scale(1.08); } .pj-mc:focus-visible { outline: 2px solid var(--accent, #0073ea); outline-offset: 3px; }
.pj-mc + .pj-mc::before { content: ""; position: absolute; left: -6px; top: 50%; width: 6px; height: 2px; background: var(--border-strong, #c9c9d4); }
@media (max-width: 700px) { .pj-steps { order: 5; width: 100%; } .pj-mc { width: 34px; height: 34px; } .pj-mc > span { inset: 8px; font-size: 11px; } }
/* v1.7.10: the APPROVE SPECIFICATION button is small (about 1/8 of the old full-width bar), right-aligned */
.ap-sum .ap-big, .ap-big { width: fit-content; max-width: 100%; height: 30px; font-size: 12px; letter-spacing: .04em; padding: 0 14px; border-radius: 8px; margin: 6px 0 0 auto; box-shadow: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) { .ap-sum .ap-big, .ap-big { height: 32px; font-size: 12px; } }
/* v1.8.0 "Unity" look (theme choice): Light theme + these colours, dark left menu (pinned open on desktop), no top bar on desktop. Circles untouched. */
:root[data-theme="light"][data-look="unity"] {
  --bg: #f1f1f3; --surface: #ffffff; --surface-2: #f7f7f8; --sunken: #f1f1f3;
  --border: #ececef; --border-strong: #dcdce1;
  --text: #17171c; --text-2: #6b6b76; --muted: #8a8a94;
  --accent: #ff7a1a; --accent-hover: #f06a0a; --accent-soft: rgba(255,122,26,.12);
  --primary-bg: #17171c; --primary-bg-hover: #2b2b33; --primary-bd: #17171c; --primary-fg: #fff; --on-accent: #fff;
  --body-grad: #f1f1f3;
  --shadow-sm: 0 1px 2px rgba(23,23,28,.04); --shadow-md: 0 12px 32px -10px rgba(23,23,28,.18);
  font-family: Figtree, system-ui, sans-serif;
}
html[data-look="unity"] body { background: #e9e9ec; }
/* top bar: light, no hard line */
[data-look="unity"] .sh-top { background: #f1f1f3; border-bottom: 0; }
[data-look="unity"] .sh-brand { color: #17171c; }
/* LEFT MENU: dark rounded panel like the reference */
[data-look="unity"] .sh-menu { background: #1c1c21 !important; color: #e9e9ee; border-radius: 0 22px 22px 0; box-sizing: border-box; border: 0; }
[data-look="unity"] .sh.pinned .sh-menu { border-radius: 22px; margin: 8px 0 8px 8px; }
[data-look="unity"] .sh.pinned .sh-menu { height: calc(100vh - 16px); top: 8px; }
[data-look="unity"] .sh-menutitle { color: #8c8c96; font-weight: 600; font-size: 13px; }
[data-look="unity"] .sh-pin { color: #8c8c96; }
[data-look="unity"] .sh-pick { background: #26262d; border-color: #2f2f37; color: #fff; }
[data-look="unity"] .sh-pick-t small { color: #9a9aa4; }
[data-look="unity"] .sh-menu nav button { color: #d6d6dc; font-weight: 500; }
[data-look="unity"] .sh-menu nav button svg { color: #fff; }
[data-look="unity"] .sh-menu nav button:hover { background: #26262d; color: #fff; }
[data-look="unity"] .sh-menu nav button.on { background: #2e2e36; color: #fff; box-shadow: inset 3px 0 0 #ff7a1a; }
[data-look="unity"] .sh-foot { border-top-color: #2f2f37; color: #d6d6dc; }
[data-look="unity"] .sh-foot select, [data-look="unity"] .sh-foot .tp-opt { background: #26262d; color: #e9e9ee; border-color: #34343d; }
[data-look="unity"] .sh-foot .tp-opt.on { background: #ff7a1a; border-color: #ff7a1a; color: #fff; }
/* cards: white, rounded, hairline */
[data-look="unity"] .card, [data-look="unity"] .ws-card { background: #fff; border: 1px solid #ececef; border-radius: 16px; box-shadow: none; }
/* buttons: pills; primary = black pill, accent actions orange */
[data-look="unity"] .btn { border-radius: 999px; background: #fff; border: 1px solid #e4e4e8; color: #17171c; font-weight: 600; }
[data-look="unity"] .btn:hover { background: #f6f6f8; }
[data-look="unity"] .btn.primary { background: #ff7a1a; border-color: #ff7a1a; color: #fff; }
[data-look="unity"] .btn.primary:hover { background: #f06a0a; }
[data-look="unity"] .seg button.on, [data-look="unity"] #wsViewSeg button.on { background: #17171c !important; color: #fff !important; border-color: #17171c !important; }
[data-look="unity"] .seg { border-radius: 999px; overflow: hidden; }
/* pills / chips: pastel tags like Dribbble/Design/Dev */
[data-look="unity"] .ws-chip { border: 0; border-radius: 8px; background: #fdebdd; color: #c2611f; font-weight: 600; }
[data-look="unity"] .pill { border-radius: 8px; }
[data-look="unity"] .ws-step .ws-chip:nth-of-type(1) { background: #fce7f3; color: #b0367a; }
[data-look="unity"] .ws-step .ws-chip:nth-of-type(2) { background: #e0edff; color: #2d62c8; }
/* the step cards under the circles: board-card look */
[data-look="unity"] .ws-step { background: #fff; border: 1px solid #ececef; border-radius: 16px; box-shadow: 0 1px 2px rgba(23,23,28,.04); }
[data-look="unity"] .ws-step:hover { border-color: #ff7a1a; box-shadow: 0 10px 24px -12px rgba(23,23,28,.25); }
[data-look="unity"] .ws-step-top { color: #17171c; }
[data-look="unity"] .ws-step-top > :first-child { background: #ff7a1a !important; color: #fff !important; }
/* counters (5 open questions etc.) */
[data-look="unity"] .kpi, [data-look="unity"] .ws-kpi { border-radius: 16px; }
[data-look="unity"] .ws-pct { color: #ff7a1a; }
/* circles stay exactly as today (blue current-step ring and blue %) */
[data-look="unity"] .ws-circle.cur { box-shadow: 0 0 0 4px rgba(26,95,201,.10), 0 0 0 6px #1a5fc9; }
[data-look="unity"] .ws-cc i { color: #1a5fc9; }
[data-look="unity"] .pj-mc.cur { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1a5fc9; }
[data-look="unity"] #bugdashVersion { color: #8a8a94; }

/* Unity, desktop with the menu pinned: no top bar - Demo / search / account move into the project header row, small circles move next to the title, company + dates line removed */
@media (min-width: 901px) {
  [data-look="unity"] .sh.pinned .sh-top { position: absolute; top: 18px; right: 18px; height: 44px; width: auto; padding: 0; background: transparent; border: 0; z-index: 40; }
  [data-look="unity"] .sh.pinned .sh-burger, [data-look="unity"] .sh.pinned .sh-line { display: none; }
  [data-look="unity"] .sh.pinned .sh-main { padding-top: 22px; }
  [data-look="unity"] .sh.pinned .pj-head { padding-right: 200px; align-items: center; }
}
[data-look="unity"] .pj-meta > :not(:first-child) { display: none; }
[data-look="unity"] .sh-avatar .avatar { background: #17171c; color: #fff; width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; }

@media (min-width: 901px) {
  [data-look="unity"] .sh.pinned .sh-search { position: fixed; top: 14px; right: 18px; left: auto; transform: none; width: min(560px, 60vw); height: 52px; border-radius: 14px; box-shadow: 0 12px 32px -10px rgba(23,23,28,.25); }
  [data-look="unity"] .sh.pinned .sh-results { position: fixed; top: 72px; right: 18px; left: auto; transform: none; width: min(560px, 60vw); }
  [data-look="unity"] .sh.pinned .pj-head .pj-steps { order: 1; margin: 6px 0 0 14px; }
  [data-look="unity"] .sh.pinned .pj-head .pj-title { order: 0; } [data-look="unity"] .sh.pinned .pj-head > :not(.pj-title):not(.pj-steps) { order: 2; }
}
[data-look="unity"] .theme-pick { flex-wrap: wrap; justify-content: flex-end; }
[data-look="unity"] .sh-theme { align-items: flex-start; padding-top: 6px; } [data-look="unity"] .sh-theme .theme-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
[data-look="unity"] .sh-theme .tp-opt { background: #26262d; border: 1px solid #34343d; color: #e9e9ee; border-radius: 999px; min-height: 34px; padding: 0 12px; justify-content: center; }
[data-look="unity"] .sh-theme .tp-opt.on { background: #ff7a1a; border-color: #ff7a1a; color: #fff; }

/* ═══ v1.8.1 Unity = the "Kanban Mono" style from the Raptool Style Design Studio (tokens + floating sidebar), overrides the 1.8.0 rules above ═══ */
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 400; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 500; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 600; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 700; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-800-normal.woff2) format('woff2'); }
:root[data-theme="light"][data-look="unity"] {
  --km-accent: #ff7a1a; --km-bg: #f3f3f4; --km-card: #fff; --km-alt: #ececee; --km-text: #141414; --km-muted: #5f6368; --km-line: #e4e4e7; --km-side: #141414; --km-side2: #242424;
  --km-btn: color-mix(in srgb, var(--km-accent) 74%, #000); --km-acc-t: color-mix(in srgb, var(--km-accent) 70%, #000); --km-tint: color-mix(in srgb, var(--km-accent) 14%, #fff); --km-sh: 0 2px 10px rgba(20,20,20,.05);
  --bg: var(--km-bg); --surface: var(--km-card); --surface-2: var(--km-alt); --sunken: var(--km-bg); --border: var(--km-line); --border-strong: #d4d4d8;
  --text: var(--km-text); --text-2: var(--km-muted); --muted: var(--km-muted);
  --accent: var(--km-btn); --accent-hover: color-mix(in srgb, var(--km-accent) 64%, #000); --accent-soft: var(--km-tint);
  --primary-bg: var(--km-btn); --primary-bg-hover: color-mix(in srgb, var(--km-accent) 64%, #000); --primary-bd: var(--km-btn); --primary-fg: #fff; --on-accent: #fff;
  --body-grad: var(--km-bg); --shadow-sm: var(--km-sh);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}
html[data-look="unity"] body { background: var(--km-bg); font-family: "Plus Jakarta Sans", system-ui, sans-serif; word-spacing: .06em; }
[data-look="unity"] h1, [data-look="unity"] h2, [data-look="unity"] h3 { letter-spacing: -.02em; font-weight: 700; color: var(--km-text); }
[data-look="unity"] .sh-top { background: var(--km-bg); border: 0; box-shadow: none; }
/* floating sidebar: near-black, radius 20 on all corners, 12px gap top/left/bottom */
[data-look="unity"] .sh-menu { background: var(--km-side) !important; color: #fff; border-radius: 0 20px 20px 0; border: 0; padding: 16px 12px; box-shadow: none; }
[data-look="unity"] .sh.pinned .sh-menu { margin: 12px 0 12px 12px; top: 12px; height: calc(100dvh - 24px); border-radius: 20px; }
[data-look="unity"] .sh-mbrand { display: flex; align-items: center; padding: 4px 8px 14px; color: #fff; }
[data-look="unity"] .sh-mbrand, [data-look="unity"] .sh-mbrand * { color: #fff !important; }
[data-look="unity"] .sh-menuhead { min-height: 32px; }
[data-look="unity"] .sh-menutitle { color: #8c8c93; font-size: 12px; font-weight: 600; letter-spacing: 0; }
[data-look="unity"] .sh-pin { color: #8c8c93; background: transparent !important; width: 32px; height: 32px; }
[data-look="unity"] .sh-pick { background: var(--km-side2); border: 0; border-radius: 12px; color: #fff; }
[data-look="unity"] .sh-pick-t small { color: #9a9aa2; }
[data-look="unity"] .sh-menu nav { gap: 4px; }
[data-look="unity"] .sh-menu nav button { border-radius: 12px; font-weight: 600; color: #b9b9bf; min-height: 42px; box-shadow: none !important; }
[data-look="unity"] .sh-menu nav button svg, [data-look="unity"] .sh-menu nav button .bdi { color: inherit; }
[data-look="unity"] .sh-menu nav button:hover { background: #1f1f1f; color: #fff; }
[data-look="unity"] .sh-menu nav button.on { background: var(--km-side2); color: #fff; box-shadow: none !important; }
[data-look="unity"] .sh-foot { border-top: 1px solid #262628; }
[data-look="unity"] .sh-theme, [data-look="unity"] .sh-lang { color: #8c8c93; font-weight: 600; font-size: 12px; }
[data-look="unity"] .sh-theme .tp-opt { background: var(--km-side2); border: 0; color: #d4d4d8; }
[data-look="unity"] .sh-theme .tp-opt.on { background: #fff; color: #141414; box-shadow: none; }
[data-look="unity"] .sh-lang select { background: var(--km-side2); color: #fff; border: 0; border-radius: 12px; }
/* cards: white, no border, radius 16, soft shadow */
[data-look="unity"] .card, [data-look="unity"] .ws-card, [data-look="unity"] .ws-step { background: var(--km-card); border: 0; border-radius: 16px; box-shadow: var(--km-sh); }
[data-look="unity"] .ws-step:hover { border: 0; box-shadow: 0 8px 22px -10px rgba(20,20,20,.25); }
/* buttons: pills; primary = darker orange (white text 4.5:1); active switch = black */
[data-look="unity"] .btn { border-radius: 999px; background: #fff; border: 1px solid var(--km-line); color: var(--km-text); font-weight: 600; box-shadow: none; }
[data-look="unity"] .btn.primary { background: var(--km-btn); border-color: var(--km-btn); color: #fff; }
[data-look="unity"] .seg { border-radius: 999px; border: 1px solid var(--km-line); background: #fff; }
[data-look="unity"] .seg button.on, [data-look="unity"] #wsViewSeg button.on { background: #141414 !important; color: #fff !important; border-color: #141414 !important; border-radius: 999px; }
/* tags: pastel chips */
[data-look="unity"] .ws-chip { border: 0; border-radius: 8px; padding: 2px 8px; font-weight: 700; background: #ffe8d6; color: #a34408; }
[data-look="unity"] .ws-step .ws-chip:nth-of-type(1) { background: #fde2ec; color: #c2185b; }
[data-look="unity"] .ws-step .ws-chip:nth-of-type(2) { background: #ece6ff; color: #6b4fd3; }
[data-look="unity"] .ws-step .ws-chip:nth-of-type(3) { background: #def7ec; color: #12805c; }
[data-look="unity"] .ws-step-top > :first-child { background: var(--km-btn) !important; color: #fff !important; }
[data-look="unity"] .ws-pct { color: var(--km-acc-t); }
[data-look="unity"] .sh-chip { background: #ffe8d6; border-color: #ffe8d6; color: #a34408; }
[data-look="unity"] .sh-avatar .avatar { background: #141414; color: #fff; }
[data-look="unity"] input:not([type=checkbox]):not([type=radio]), [data-look="unity"] textarea, [data-look="unity"] select { border-radius: 12px; border-color: var(--km-line); box-shadow: none; }
@media (max-width: 900px) { [data-look="unity"] .sh-menu { border-radius: 0 20px 20px 0; margin: 0; } }
.sh-mbrand { display: none; } [data-look="unity"] .sh-mbrand { display: flex; }
[data-look="unity"] button, [data-look="unity"] input, [data-look="unity"] select, [data-look="unity"] textarea { word-spacing: inherit; }
/* v1.8.4 Unity: collapsible menu (icon rail) */
.sh-minibtn { display: none; }
@media (min-width: 901px) {
  [data-look="unity"] .sh.pinned .sh-minibtn { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 10px; background: transparent; color: #8c8c93; cursor: pointer; margin-left: 2px; }
  [data-look="unity"] .sh.pinned .sh-minibtn:hover { background: #1f1f1f; color: #fff; }
  [data-look="unity"] .sh-menuhead { gap: 2px; } [data-look="unity"] .sh-menuhead .sh-menutitle { flex: 1; }
  [data-look="unity"] .sh.pinned.mini .sh-menu { width: 76px; padding: 14px 10px; overflow-x: hidden; }
  [data-look="unity"] .sh.pinned.mini .sh-minibtn svg { transform: rotate(180deg); }
  [data-look="unity"] .sh.pinned.mini .sh-mbrand { justify-content: center; padding: 2px 0 12px; }
  [data-look="unity"] .sh.pinned.mini .sh-mbrand .pp-word,
  [data-look="unity"] .sh.pinned.mini .sh-menutitle, [data-look="unity"] .sh.pinned.mini .sh-pin,
  [data-look="unity"] .sh.pinned.mini .sh-picker, [data-look="unity"] .sh.pinned.mini .sh-foot,
  [data-look="unity"] .sh.pinned.mini .sh-menu nav button > span { display: none !important; }
  [data-look="unity"] .sh.pinned.mini .sh-menuhead { justify-content: center; margin-bottom: 6px; }
  [data-look="unity"] .sh.pinned.mini .sh-menu nav button { justify-content: center; padding: 0; width: 56px; min-height: 48px; }
}
/* v1.8.4 Unity: the integration flow card keeps its purple design */
[data-look="unity"] .card.fl-card { background: linear-gradient(135deg, #2a1d4d 0%, #3b2680 55%, #2b1b5e 100%); color: #ece8ff; border: 1px solid rgba(160,140,255,.35); border-radius: 18px; box-shadow: none; }
/* v1.8.6 report popup: Type and Priority on one aligned row */
.fb-row2 { display: flex; gap: 28px; flex-wrap: wrap; align-items: flex-start; }
.fb-col { display: flex; flex-direction: column; gap: 6px; }
.fb-lbl { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.fb-pics { display: flex; gap: 8px; flex-wrap: wrap; } .fb-pics .btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; font-size: 13px; font-weight: 600; line-height: 1; box-sizing: border-box; }
/* v1.8.7: design selector uses the full width - all alternatives visible, no sideways scrolling */
.pt-vers { width: 100%; flex-wrap: wrap; overflow: visible; scroll-snap-type: none; padding: 2px 0 10px; }
.pt-vc { flex: 1 1 170px; max-width: 320px; }
.pt-vc small { -webkit-line-clamp: 4; }
.pt-vhd { width: 100%; }
/* v1.8.7: design switch in the full-screen demo */
.pt-full-bar { gap: 12px; flex-wrap: wrap; }
.pt-full-vs { display: flex; gap: 6px; flex-wrap: wrap; margin-left: 12px; }
.pt-full-v { border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.pt-full-v:hover { border-color: var(--accent); }
.pt-full-v.on { background: var(--text); color: var(--surface); border-color: var(--text); }
/* v1.8.7: every app card has the same layout - demo column takes the free width (frame centred in it), notes column fixed - so phone and desktop demos line up the same way */
@media (min-width: 901px) { .pt-grid { grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); } }
/* v1.8.8: app cards collapse to head + purpose, with a Show more button */
.ws-app-head { flex-wrap: nowrap; align-items: flex-start; } .ws-app-head .grow { min-width: 0; } .ws-app-head .ws-pill, .ws-app-head > :last-child { flex: none; }
.ws-app.collapsed .ws-app-more { display: none; }
.ws-more svg { transition: transform .15s; } .ws-app:not(.collapsed) .ws-more svg { transform: rotate(180deg); }
/* v1.9.0: change request / note cards stand out - off-white centre and a visible frame; edit + delete icon buttons */
.pt-fb { background: var(--surface-2, #f6f7f9); border: 1px solid var(--border-strong); border-radius: 12px; padding: 10px 12px; box-shadow: 0 1px 2px rgba(20,20,20,.05); }

.pt-fb .pt-rin input { background: var(--surface); }
[data-look="unity"] .pt-fb { background: #f6f6f7; border-color: #dcdce1; }
.pt-fbi { padding: 4px 6px; min-width: 0; } .pt-fbi svg { opacity: .75; } .pt-fbi:hover svg { opacity: 1; }
.pt-fbbtns { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
/* v1.9.2 step cards (board-card look) + people checkbox list + photos */
.ws-step.st-card { display: flex; flex-direction: column; gap: 8px; padding: 14px 14px 10px; flex-basis: 260px; }
.st-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .st-tags .ws-num { margin-right: 2px; } .st-ico { margin-left: auto; color: var(--text-2); display: inline-flex; }
.st-card h4 { margin: 2px 0 0; font-size: 15px; font-weight: 700; } .st-card p { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.45; }
.st-prio { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 8px; background: #ececee; color: #44444b; }
.st-prio.p1 { background: #fde2ec; color: #c2185b; } .st-prio.p3 { background: #def7ec; color: #12805c; }
.st-date { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 4px 9px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); }
.st-date.late { border-color: #e2a3b0; color: #c62828; background: #fdecef; }
.st-foot { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--border); padding-top: 9px; margin-top: auto; }
.st-foot .ws-step-move { position: static; margin-left: auto; display: inline-flex; gap: 4px; }
.st-who { display: inline-flex; } .st-nobody { font-size: 12px; }
.as-av.md { width: 28px; height: 28px; font-size: 10.5px; margin-left: -7px; box-shadow: 0 0 0 2px var(--surface); } .as-av.md:first-child { margin-left: 0; }
.as-av.more { background: #ff7a1a; color: #fff; }
.as-av.ph { overflow: hidden; padding: 0; } .as-av img, .sh-avatar .avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.sh-avatar .avatar { overflow: hidden; }
.st-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 12px; max-height: 220px; overflow: auto; padding: 4px; border: 1px solid var(--border); border-radius: 10px; }
.st-person { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 8px; cursor: pointer; font-weight: 500; } .st-person:hover { background: var(--surface-2); }
.st-person small { margin-left: auto; font-size: 11px; }
.ac-photo { display: flex; align-items: center; gap: 14px; } .ac-av { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; font-weight: 700; font-size: 20px; flex: none; }
.ac-av img { width: 100%; height: 100%; object-fit: cover; } .ac-pbtn { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* v1.9.2: phone apps in the full-screen demo get a phone-sized frame */
.pt-full .pt-full-stage { flex: 1; min-height: 0; display: flex; }
.pt-full .pt-full-stage .pt-if { flex: 1; width: 100%; height: auto; border: 0; }
.pt-full .pt-full-stage.phone { justify-content: center; align-items: center; padding: 12px; background: var(--bg, #0b0b0b); }
.pt-full .pt-full-stage.phone .pt-if { flex: 0 0 auto; width: 390px; max-width: 100%; height: min(844px, 100%); border: 10px solid #111; border-radius: 36px; box-shadow: 0 10px 40px rgba(0,0,0,.35); background: #fff; }

/* v1.9.3: numbered picture items to the left of the picture on a change request */
.pt-fbm { display: flex; gap: 12px; align-items: flex-start; margin-top: 6px; }
.pt-fbm .pt-mk { flex: 1; min-width: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pt-fbm .pt-mk li { display: flex; gap: 8px; align-items: flex-start; }
.pt-fbm .pt-mk b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.pt-fbm .pt-mk small { display: block; color: var(--text-dim, #666); overflow-wrap: anywhere; }
.pt-mkn { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: #e5484d; color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.pt-fbm .pt-ph { flex: 0 0 auto; margin: 0; }
