/* Project tracker — Channel13 look: black, off-white, one accent. */
:root {
  --ink: #020202;
  --ink-2: #232726;
  --muted: #6b6f6d;
  --line: #e3e2dc;
  --bg: #fafaf7;
  --col: #f0efea;
  --card: #fff;
  --accent: #ff695d;
  --focus: #2f6fed;
  --crit: #d92d20; --high: #e8590c; --med: #2f6fed; --low: #8a8f8c;
  --s-backlog: #9a9d9b; --s-todo: #f2c94c; --s-progress: #2f80ed; --s-review: #ff79d6; --s-done: #27ae60;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(2,2,2,.06), 0 1px 1px rgba(2,2,2,.04);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 15px/1.45 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }

.pt-btn { border: 1px solid var(--ink); background: #fff; color: var(--ink); border-radius: 999px; padding: .45em 1.1em; cursor: pointer; font-weight: 600; white-space: nowrap; }
.pt-btn:hover { background: var(--col); }
.pt-btn--primary { background: var(--ink); color: #fff; }
.pt-btn--primary:hover { background: var(--ink-2); }
.pt-btn--danger { border-color: var(--crit); color: var(--crit); }
.pt-btn--danger:hover { background: #fdecea; }
.pt-btn:disabled { opacity: .5; cursor: default; }
.pt-link { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; }
.pt-icon-btn { background: none; border: 0; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; display: inline-grid; place-items: center; color: var(--muted); }
.pt-icon-btn:hover { background: var(--col); color: var(--ink); }
.pt-icon-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

/* ---------- login ---------- */
.pt-login-page { display: grid; place-items: center; min-height: 100%; background: var(--ink); padding: 24px; }
.pt-login { width: 100%; max-width: 380px; background: #fff; border-radius: 16px; padding: 36px 32px; }
.pt-login__logo { width: 150px; color: var(--ink); margin-bottom: 22px; }
.pt-login__logo svg { display: block; width: 100%; height: auto; }
.pt-login h1 { font-size: 20px; margin: 0 0 22px; font-weight: 600; }
.pt-login__form { display: grid; gap: 14px; }
.pt-login__form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.pt-login__form input { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 15px; font-weight: 400; }
.pt-login__error { margin: 0; color: var(--crit); font-size: 14px; }
.pt-login .pt-btn { padding: 11px; margin-top: 6px; }

/* ---------- top bar ---------- */
.pt-app { display: flex; flex-direction: column; height: 100%; }
.pt-top { display: flex; align-items: center; gap: 18px; padding: 12px 24px; background: var(--ink); color: #fff; flex: none; }
.pt-top__logo { color: #fff; width: 112px; flex: none; display: block; }
.pt-top__logo svg { display: block; width: 100%; height: auto; }
.pt-top__title { font-size: 17px; font-weight: 400; padding-left: 18px; border-left: 1px solid #444; white-space: nowrap; }
.pt-top__title span { font-weight: 700; }
.pt-search { margin-left: auto; position: relative; display: flex; align-items: center; }
.pt-search svg { position: absolute; left: 11px; width: 16px; height: 16px; stroke: #999; fill: none; stroke-width: 2; }
.pt-search input { background: #1a1d1c; border: 1px solid #333; color: #fff; border-radius: 999px; padding: 7px 14px 7px 34px; width: 240px; }
.pt-search input::placeholder { color: #999; }
.pt-top .pt-btn--primary { background: #fff; color: var(--ink); border-color: #fff; }
.pt-top .pt-btn--primary:hover { background: #e9e9e4; }
.pt-top__user { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.pt-top__user .pt-link { color: #bbb; }

.pt-avatar { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; text-transform: uppercase; background: var(--accent); color: #fff; flex: none; }
.pt-avatar[data-role="dev"] { background: var(--ink-2); }
.pt-top .pt-avatar[data-role="dev"] { background: #fff; color: var(--ink); }

/* ---------- board ---------- */
.pt-board { flex: 1; display: flex; gap: 16px; padding: 20px 24px; overflow-x: auto; overflow-y: hidden; align-items: stretch; }
.pt-col { flex: 0 0 300px; background: var(--col); border-radius: 14px; display: flex; flex-direction: column; max-height: 100%; min-height: 0; }
.pt-col__head { display: flex; align-items: center; gap: 8px; padding: 12px 10px 8px 14px; }
.pt-col__name { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; background: #fff; padding: 4px 12px 4px 10px; border-radius: 999px; }
.pt-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--s-backlog); flex: none; }
.pt-col[data-status="todo"] .pt-dot { background: var(--s-todo); }
.pt-col[data-status="progress"] .pt-dot { background: var(--s-progress); }
.pt-col[data-status="review"] .pt-dot { background: var(--s-review); }
.pt-col[data-status="done"] .pt-dot { background: var(--s-done); }
.pt-col__count { color: var(--muted); font-size: 13px; }
.pt-col__head .pt-icon-btn { margin-left: auto; }
.pt-col__add { margin: 0 10px 8px; background: none; border: 1px dashed transparent; border-radius: 8px; padding: 8px; color: var(--muted); cursor: pointer; text-align: center; }
.pt-col__add:hover { border-color: #c9c8c1; color: var(--ink); background: rgba(255,255,255,.5); }
.pt-col__list { flex: 1; overflow-y: auto; padding: 2px 10px 12px; display: flex; flex-direction: column; gap: 10px; min-height: 60px; }
.pt-col__empty { color: var(--muted); font-size: 13px; text-align: center; padding: 18px 0; }
.pt-col.is-over { box-shadow: inset 0 0 0 2px rgba(47,111,237,.35); }
.pt-col.is-locked { opacity: .4; }
.pt-col__hint { display: flex; align-items: center; gap: 4px; margin: -2px 14px 4px; font-size: 12px; color: var(--muted); }
.pt-col__hint svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; flex: none; }
.pt-col__hint svg:last-of-type { stroke-width: 3.2; }

.pt-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px 10px 6px; box-shadow: var(--shadow); cursor: pointer; text-align: left; width: 100%; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 6px; user-select: none; -webkit-user-select: none; }
.pt-card__grip { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 1px; color: #b9b8b1; cursor: grab; touch-action: none; -webkit-touch-callout: none; border-radius: 6px; }
.pt-card__grip svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 3.2; stroke-linecap: round; }
.pt-card:hover .pt-card__grip, .pt-card:focus-visible .pt-card__grip { color: var(--ink); }
.pt-card__grip:hover { background: var(--col); }
.pt-card__rank { min-width: 22px; height: 22px; padding: 0 4px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.pt-card__body { min-width: 0; }
.pt-card:hover { border-color: #c9c8c1; }
.pt-ghost { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; margin: 0; box-shadow: 0 14px 34px rgba(2,2,2,.22); border-color: var(--ink); }
.pt-placeholder { flex: none; border: 2px dashed var(--focus); background: rgba(47,111,237,.07); border-radius: var(--radius); }
.pt-col__list:has(.pt-placeholder) .pt-col__empty { display: none; }
body.is-dragging, body.is-dragging * { cursor: grabbing !important; }
.pt-card.is-unread::after { content: ""; position: absolute; top: 12px; right: 12px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px #fff; }
.pt-card__meta { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; padding-right: 16px; }
.pt-card__num { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pt-card__title { font-weight: 600; font-size: 15px; line-height: 1.35; margin: 0 0 4px; overflow-wrap: anywhere; }
.pt-card.is-compact { padding-top: 8px; padding-bottom: 8px; align-items: center; }
.pt-card.is-compact .pt-card__title { margin: 0; padding-right: 16px; }
.pt-card.is-compact.is-unread::after { top: 50%; margin-top: -4.5px; }
.pt-card__summary { font-size: 13px; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.pt-card__foot { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding-top: 8px; border-top: 1px solid #f0efea; font-size: 12px; color: var(--muted); }
.pt-card__foot .pt-avatar { width: 24px; height: 24px; font-size: 10px; margin-left: auto; }
.pt-card__stat { display: inline-flex; align-items: center; gap: 4px; }
.pt-card__stat svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.pt-card__due.is-late { color: var(--crit); font-weight: 600; }
@media (pointer: coarse) { .pt-card { grid-template-columns: 34px minmax(0, 1fr); } .pt-card__grip svg { width: 22px; height: 22px; } }

.pt-pri { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; color: #fff; background: var(--med); }
.pt-pri[data-p="Critical"] { background: var(--crit); }
.pt-pri[data-p="High"] { background: var(--high); }
.pt-pri[data-p="Low"] { background: #e7e7e2; color: #555; }

/* ---------- side panel ---------- */
.pt-scrim { position: fixed; inset: 0; background: rgba(2,2,2,.25); z-index: 20; }
.pt-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(640px, 100%); background: #fff; z-index: 21; box-shadow: -8px 0 30px rgba(2,2,2,.15); transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; visibility: hidden; }
.pt-panel.is-open { transform: none; visibility: visible; }
.pt-panel__head { display: flex; align-items: center; gap: 10px; padding: 14px 18px 14px 24px; border-bottom: 1px solid var(--line); flex: none; }
.pt-panel__head .pt-card__num { font-size: 14px; }
.pt-panel__head .pt-icon-btn:last-child { margin-left: auto; }
.pt-panel__body { flex: 1; overflow-y: auto; padding: 20px 24px 40px; }
.pt-panel h2 { font-size: 22px; line-height: 1.3; margin: 0 0 14px; overflow-wrap: anywhere; }
.pt-panel h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 28px 0 10px; }
.pt-fields { display: grid; grid-template-columns: 110px 1fr; gap: 8px 14px; align-items: center; font-size: 14px; margin-bottom: 8px; }
.pt-fields dt { color: var(--muted); }
.pt-fields dd { margin: 0; display: flex; align-items: center; gap: 8px; }
.pt-order .pt-icon-btn { width: 28px; height: 28px; border: 1px solid var(--line); }
.pt-order .pt-icon-btn:disabled { opacity: .35; cursor: default; background: none; }
.pt-fields select, .pt-fields input[type="date"] { border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; background: #fff; }
.pt-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.pt-text a { color: var(--focus); }
.pt-text--empty { color: var(--muted); font-style: italic; }
.pt-summary { color: var(--ink-2); font-size: 15px; margin-bottom: 18px; }

.pt-form { display: grid; gap: 12px; }
.pt-form label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; }
.pt-form input, .pt-form textarea, .pt-form select { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-weight: 400; font-size: 15px; background: #fff; width: 100%; }
.pt-form textarea { resize: vertical; min-height: 80px; }
.pt-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pt-form__actions { display: flex; gap: 10px; justify-content: flex-end; }
.pt-form__hint { font-weight: 400; color: var(--muted); font-size: 12px; }

.pt-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.pt-file { position: relative; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; font-size: 12px; }
.pt-file a { display: block; color: inherit; text-decoration: none; }
.pt-file__thumb { height: 84px; background: var(--col) center/cover no-repeat; display: grid; place-items: center; font-weight: 700; color: var(--muted); font-size: 13px; text-transform: uppercase; }
.pt-file__name { padding: 6px 8px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-file__size { padding: 0 8px 6px; color: var(--muted); }
.pt-file__del { position: absolute; top: 4px; right: 4px; background: rgba(255,255,255,.92); width: 26px; height: 26px; }
.pt-drop { margin-top: 10px; border: 1.5px dashed #c9c8c1; border-radius: 10px; padding: 14px; text-align: center; color: var(--muted); font-size: 13px; cursor: pointer; }
.pt-drop.is-over, .pt-drop:hover { border-color: var(--ink); color: var(--ink); background: var(--bg); }

.pt-comments { display: grid; gap: 16px; }
.pt-comment { display: grid; grid-template-columns: 28px 1fr; gap: 10px; }
.pt-comment__head { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.pt-comment__head strong { font-size: 14px; }
.pt-comment__head time { color: var(--muted); }
.pt-comment__head .pt-link { margin-left: auto; color: var(--muted); font-size: 12px; }
.pt-comment .pt-text { font-size: 14px; margin-top: 2px; }
.pt-comment .pt-files { margin-top: 8px; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
.pt-composer { margin-top: 18px; border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.pt-composer.is-over { border-color: var(--ink); background: var(--bg); }
.pt-composer textarea { width: 100%; border: 0; resize: vertical; min-height: 64px; padding: 4px; outline: none; }
.pt-composer__bar { display: flex; align-items: center; gap: 10px; }
.pt-composer__bar .pt-btn { margin-left: auto; }
.pt-composer__hint { font-size: 12px; color: var(--muted); }
.pt-pending { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.pt-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--col); border-radius: 999px; padding: 3px 4px 3px 10px; font-size: 12px; max-width: 100%; }
.pt-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }
.pt-chip button { border: 0; background: none; cursor: pointer; width: 20px; height: 20px; border-radius: 50%; }
.pt-chip button:hover { background: #ddd; }

.pt-activity { list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--muted); display: grid; gap: 6px; }
.pt-activity strong { color: var(--ink-2); font-weight: 600; }
.pt-danger-zone { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); }

.pt-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; z-index: 40; font-size: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.2); max-width: calc(100% - 32px); }
.pt-toast.is-error { background: var(--crit); }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .pt-top { flex-wrap: wrap; gap: 10px 14px; padding: 10px 14px; }
  .pt-top__title { font-size: 15px; padding-left: 12px; }
  .pt-top__name { display: none; }
  .pt-search { order: 5; margin-left: 0; flex: 1 1 100%; }
  .pt-search input { width: 100%; }
  .pt-top .pt-btn--primary { margin-left: auto; }
  .pt-board { padding: 14px; gap: 12px; scroll-snap-type: x mandatory; }
  .pt-col { flex-basis: 86vw; scroll-snap-align: center; }
}
@media (max-width: 560px) {
  .pt-top__logo { width: 92px; }
  .pt-top__title { display: none; }
  .pt-panel__body { padding: 16px 16px 40px; }
  .pt-fields { grid-template-columns: 90px 1fr; }
  .pt-form__row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .pt-panel { transition: none; } }

/* ---------- confirm popup ---------- */
.pt-dialog { border: 0; border-radius: 14px; padding: 24px; width: min(440px, calc(100% - 32px)); box-shadow: 0 20px 60px rgba(2,2,2,.3); }
.pt-dialog::backdrop { background: rgba(2,2,2,.45); }
.pt-dialog h2 { font-size: 18px; margin: 0 0 10px; }
.pt-dialog p { margin: 0 0 22px; color: var(--ink-2); overflow-wrap: anywhere; }

/* ---------- drag over a list you can't drop into ---------- */
.pt-col { position: relative; }
.pt-col.is-locked.is-denied { opacity: 1; background: #fdecea; box-shadow: inset 0 0 0 2px var(--crit); }
.pt-col.is-denied > :not(.pt-col__head) { opacity: .3; }
.pt-col.is-denied::after {
  content: "⛔  " attr(data-deny); position: absolute; left: 12px; right: 12px; top: 58px; z-index: 2;
  background: var(--crit); color: #fff; font-weight: 600; font-size: 14px; line-height: 1.35;
  padding: 12px 14px; border-radius: 10px; text-align: center; box-shadow: 0 8px 20px rgba(217,45,32,.3);
}
.pt-ghost.is-denied { border-color: var(--crit); box-shadow: 0 0 0 3px rgba(217,45,32,.35), 0 14px 34px rgba(2,2,2,.22); }
.pt-ghost.is-denied::before {
  content: "×"; position: absolute; top: -10px; left: -10px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--crit); color: #fff; font: 700 20px/26px var(--font); text-align: center; box-shadow: 0 0 0 2px #fff;
}
body.is-dragging.is-denied, body.is-dragging.is-denied * { cursor: not-allowed !important; }
.pt-top__stats { color: #bbb; font-size: 14px; white-space: nowrap; }
.pt-top__client { display: inline-flex; align-items: center; margin-right: 6px; vertical-align: middle; }
.pt-top__client svg { height: 18px; width: auto; display: block; color: #fff; }
/* Header brand: 15% smaller, more air, everything on one centre line (Gianluca, 21 Oct). */
.pt-top { gap: 24px; }
.pt-top__logo { width: 95px; }
.pt-top__title { display: flex; align-items: center; gap: 14px; font-size: 14.5px; line-height: 1; padding-left: 24px; }
.pt-top__client { margin-right: 0; }
.pt-top__client svg { height: 15px; }
@media (max-width: 900px) { .pt-top__title { font-size: 13px; padding-left: 16px; gap: 12px; } }
@media (max-width: 560px) { .pt-top__logo { width: 78px; } .pt-top__title { display: none; } }
/* Settings → Users (dev only) */
.pt-settings-page { overflow: auto; }
.pt-top__back { margin-left: auto; }
.pt-settings { max-width: 980px; margin: 0 auto; padding: 28px 24px 80px; }
.pt-settings h1 { font-size: 26px; margin: 0 0 18px; }
.pt-scard { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; margin-bottom: 20px; }
.pt-scard h2 { font-size: 17px; margin: 0 0 16px; }
.pt-uform { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; align-items: end; }
.pt-uform label, .pt-roles { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.pt-uform small, .pt-roles small { font-weight: 400; color: var(--muted); }
.pt-uform input[type=email], .pt-uform input[name=name], .pt-pass input { font: inherit; font-size: 15px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; width: 100%; }
.pt-roles { border: 0; padding: 0; margin: 0; flex-direction: row; gap: 18px; align-items: center; }
.pt-roles legend { float: left; margin-right: 6px; }
.pt-roles label { flex-direction: row; align-items: center; gap: 6px; font-weight: 500; }
.pt-pass { display: flex; gap: 8px; }
.pt-pass input { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; }
.pt-uform > .pt-btn--primary { justify-self: start; }
.pt-urow { display: grid; grid-template-columns: minmax(220px, 1.2fr) 2fr auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.pt-urow:first-child { border-top: 0; }
.pt-urow__who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pt-urow__who code { font-size: 12px; color: var(--muted); word-break: break-all; }
.pt-urow__pass { display: flex; gap: 8px; }
.pt-urow__pass .pt-pass { flex: 1; }
.pt-urow__del { text-align: right; font-size: 12px; }
.pt-role { margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); }
.pt-role--dev { background: var(--ink); color: #fff; border-color: var(--ink); }
.pt-btn--danger { border-color: #b3261e; color: #b3261e; }
.pt-btn--danger:hover { background: #b3261e; color: #fff; }
.pt-note { padding: 10px 14px; border-radius: 8px; margin: 0 0 16px; }
.pt-note--ok { background: #e8f3ec; color: #1e6b3a; }
.pt-note--err { background: #fbecea; color: #9b2c22; }
.pt-muted { color: var(--muted); font-size: 13px; }
@media (max-width: 760px) {
  .pt-uform { grid-template-columns: 1fr; }
  .pt-urow { grid-template-columns: 1fr; }
  .pt-urow__pass { flex-wrap: wrap; }
  .pt-urow__del { text-align: left; }
}

/* Custom fields (26 Oct 2026) */
.pt-card__cf { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.pt-cf-tag { display: inline-flex; gap: 5px; max-width: 100%; font-size: 12px; line-height: 1.3; padding: 2px 8px; border-radius: 999px; background: #f1f3f5; color: var(--ink, #1a1a1a); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-cf-tag__k { color: var(--muted); }
.pt-cf-dd.is-long { display: block; }
.pt-cf-dd .pt-text { margin: 0; }
.pt-cf-checks { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.pt-check { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 6px; font-weight: 500 !important; }
.pt-form .pt-check input { width: auto; }
.pt-form__group { display: grid; gap: 6px; }
.pt-form__label { font-size: 13px; font-weight: 600; }
.pt-snav { font-size: 14px; margin: 0 0 14px; color: var(--muted); }
.pt-snav a { color: inherit; }
.pt-sintro { margin: -8px 0 16px; max-width: 70ch; }
.pt-settings h1 + .pt-scard, .pt-settings h1 { scroll-margin-top: 20px; }
.pt-settings h1#fields { margin-top: 36px; }
.pt-fform { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; align-items: start; }
.pt-fform label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.pt-fform small, .pt-frow small { font-weight: 400; color: var(--muted); }
.pt-fform input[name=label], .pt-fform select, .pt-fform textarea, .pt-frow input[name=label], .pt-frow textarea { font: inherit; font-size: 15px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; width: 100%; background: #fff; }
.pt-fform__opts { grid-column: 1 / -1; }
.pt-fform > .pt-btn--primary { justify-self: start; grid-column: 1; }
.pt-frow { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); scroll-margin-top: 20px; }
.pt-frow:first-child { border-top: 0; }
.pt-frow__edit { display: grid; gap: 10px; }
.pt-frow__edit > .pt-btn { justify-self: start; }
.pt-frow__head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pt-frow__head input[name=label] { flex: 1; min-width: 180px; width: auto; }
.pt-frow__opts { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.pt-frow__side { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.pt-frow__side form { display: flex; gap: 6px; }
@media (max-width: 720px) {
  .pt-fform { grid-template-columns: 1fr; }
  .pt-frow { grid-template-columns: 1fr; }
  .pt-frow__side { flex-direction: row; align-items: center; }
}
.pt-frow__head .pt-role { margin-left: 0; }
.pt-fields .pt-cf-edit { border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; background: #fff; font: inherit; font-size: 14px; }
.pt-fields input.pt-cf-edit, .pt-fields textarea.pt-cf-edit { width: 100%; }
.pt-fields textarea.pt-cf-edit { min-height: 70px; resize: vertical; }
.pt-fields .pt-cf-checks.pt-cf-edit { border: 0; padding: 0; background: none; }
.pt-frow__head select { font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }

/* ---------- filters (custom Checkboxes / Dropdown fields) ---------- */
.pt-filters { display: flex; flex-direction: column; gap: 6px; padding: 12px 24px 0; }
.pt-filter { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.pt-filter__label { flex: none; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-right: 4px; }
.pt-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 1px solid #d9d8d2; background: #fff; color: var(--ink); border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.pt-chip:hover { border-color: var(--ink); }
.pt-chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pt-chip__n { font-size: 11px; color: var(--muted); }
.pt-chip.is-on .pt-chip__n { color: #bbb; }
.pt-filter__clear { align-self: flex-start; font-size: 13px; }
@media (max-width: 900px) { .pt-filters { padding: 10px 14px 0; } }

/* Central users (30 Oct 2026): My password page, Settings people list */
.pt-uform--one { grid-template-columns: minmax(0, 420px); }
.pt-top__user a.pt-link { text-decoration: none; }
.pt-people { display: grid; gap: 0; }
