/* Personnel portal: an agency HR roster. Dense, desktop first, light theme on the shared app.css tokens. */
body.portal { --ink: #14201a; --pine: #1b6b43; --pine-bg: #e4f0e8; --amber-t: #8a5800; --amber-bg: #fbf1d8; --amber-l: #d9b25a;
  --grey-bg: #eceae4; --blurple: #5865f2; --blurple-h: #4752c4; --row: #ffffff; --row-h: #f3f6f0; --row-sel: #e3efe6;
  font: 400 13.5px/1.45 var(--font-body); min-width: 1280px; overflow: hidden; }
.portal a { color: inherit; }
.pt-grow { flex: 1; }
.pt-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--pine); animation: pt-spin .8s linear infinite; flex: none; }
@keyframes pt-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pt-spin { animation-duration: 3s; } }

/* boot and gate */
.pt-boot { height: 100vh; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font: 500 13px var(--font-mono); }
.pt-gate { height: 100vh; overflow: auto; display: grid; place-items: center; padding: 32px 16px;
  background: linear-gradient(180deg, rgba(27,107,67,.06), transparent 40%), var(--bg); }
.pt-card-gate { width: min(460px, 100%); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--pine); border-radius: 8px;
  padding: 28px 30px 20px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 10px 30px rgba(20,32,26,.08); }
.pt-gate-head { display: flex; align-items: center; gap: 14px; }
.pt-gate-head h1 { margin: 0; font: 900 34px/1 var(--font-display); text-transform: uppercase; letter-spacing: .01em; color: var(--ink); }
.pt-gate-k { font: 600 11px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--clay); }
.pt-gate-p { margin: 0; color: var(--fg-2); }
.pt-gate-list { margin: 0; padding: 12px 14px 12px 30px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; color: var(--fg-2); font-size: 13px; display: flex; flex-direction: column; gap: 3px; }
.pt-gate-row { display: flex; gap: 8px; justify-content: flex-end; }
.pt-gate-foot { border-top: 1px solid var(--line); padding-top: 12px; font: 500 11px var(--font-mono); color: var(--muted); letter-spacing: .02em; }
.pt-discord { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; border-radius: 6px; border: 0;
  background: var(--blurple); color: #fff !important; font: 600 15px var(--font-body); text-decoration: none; }
.pt-discord:hover { background: var(--blurple-h); }
.pt-discord:disabled { background: #b9bdf0; cursor: not-allowed; }
.pt-btn-link { display: inline-flex; align-items: center; text-decoration: none; }

.pt-notice { padding: 10px 12px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg-2); font-size: 13px; }
.pt-notice.warn { background: var(--amber-bg); border-color: var(--amber-l); color: #5e4100; }
.pt-notice.bad { background: var(--bad-bg); border-color: var(--bad); color: #7a1a14; }
.pt-notice b { color: inherit; }
.pt-inline { margin: 10px 0; }

/* top bar */
.pt-top { height: 52px; display: flex; align-items: stretch; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(20,32,26,.03); position: relative; z-index: 5; }
.pt-brand { display: flex; align-items: center; gap: 10px; padding: 0 18px 0 14px; text-decoration: none; border-right: 1px solid var(--line); min-width: 248px; }
.pt-mark { width: 30px; height: 30px; border-radius: 6px; background: var(--pine); color: #f4fbf6; display: grid; place-items: center;
  font: 900 20px/1 var(--font-display); box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); flex: none; }
.pt-mark-lg { width: 48px; height: 48px; font-size: 32px; border-radius: 8px; }
.pt-brand-t { display: flex; flex-direction: column; line-height: 1.1; }
.pt-brand-t b { font: 900 19px/1 var(--font-display); text-transform: uppercase; letter-spacing: .03em; color: var(--ink); }
.pt-brand-t span { font: 600 10.5px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.pt-tabs { display: flex; padding-left: 10px; }
.pt-tabs a { display: flex; align-items: center; padding: 0 14px; text-decoration: none; font-weight: 600; color: var(--fg-2); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.pt-tabs a:hover { color: var(--ink); background: var(--surface-2); }
.pt-tabs a.sel { color: var(--pine); border-bottom-color: var(--pine); }
.pt-top-r { margin-left: auto; display: flex; align-items: center; }
.pt-apps { display: flex; gap: 6px; padding: 0 12px; }
.pt-app { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 5px; text-decoration: none; font: 600 12px var(--font-body); color: var(--fg-2); background: var(--surface); }
.pt-app b { font: 700 10px var(--font-mono); letter-spacing: .08em; color: #f4fbf6; background: var(--ink); padding: 3px 5px; border-radius: 3px; }
.pt-app:hover { border-color: var(--pine); color: var(--pine); }
.pt-clock { padding: 0 14px; height: 100%; display: flex; align-items: center; border-left: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--term); }
.pt-me { display: flex; align-items: center; gap: 9px; padding: 0 12px; height: 100%; border-left: 1px solid var(--line); max-width: 300px; }
.pt-me-t { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.pt-me-t b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-me-t span { font: 500 11px var(--font-mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-logout { height: 100%; border: 0; border-left: 1px solid var(--line); background: none; padding: 0 14px; font: 600 11px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pt-logout:hover { color: var(--bad); background: var(--bad-bg); }

/* avatars */
.pt-av { border-radius: 50%; object-fit: cover; flex: none; background: var(--bg-2); }
.pt-av-xs { width: 22px; height: 22px; } .pt-av-sm { width: 30px; height: 30px; } .pt-av-md { width: 40px; height: 40px; } .pt-av-lg { width: 56px; height: 56px; }
.pt-av-x { display: inline-grid; place-items: center; background: #dfe7e0; color: var(--pine); font: 700 10px var(--font-mono); letter-spacing: .02em; }
.pt-av-sm.pt-av-x { font-size: 11px; } .pt-av-lg.pt-av-x { font-size: 18px; }

/* layout */
.pt-body { height: calc(100vh - 52px); display: grid; grid-template-columns: 248px minmax(0, 1fr); }
#app.with-panel .pt-body { grid-template-columns: 248px minmax(0, 1fr) 460px; }
.pt-side { background: #f0eee7; border-right: 1px solid var(--line); overflow: auto; padding: 14px 0 18px; display: flex; flex-direction: column; }
.pt-side-h { font: 700 10.5px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 6px 16px; }
.pt-depts { list-style: none; margin: 0 0 16px; padding: 0 8px; display: flex; flex-direction: column; gap: 2px; }
.pt-dept { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 6px; text-decoration: none; color: var(--fg-2); border: 1px solid transparent; }
.pt-dept:hover { background: var(--surface); border-color: var(--line); }
.pt-dept.sel { background: var(--surface); border-color: var(--line); box-shadow: inset 3px 0 0 var(--pine); color: var(--ink); }
.pt-dept-s { font-weight: 700; font-size: 11px; letter-spacing: .06em; color: var(--pine); background: var(--pine-bg); border-radius: 4px; padding: 3px 0; text-align: center; }
.pt-dept-n { font-size: 12.5px; font-weight: 600; line-height: 1.2; }
.pt-yours { display: inline-block; margin-left: 5px; font: 700 9px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--clay); vertical-align: 1px; }
.pt-dept-c { font-size: 12px; font-weight: 700; color: var(--ink); text-align: right; }
.pt-dept-c small { display: block; font-size: 10px; font-weight: 500; color: var(--muted); }
.pt-dept-none { padding: 6px 10px; font-size: 13px; }
.pt-access { padding: 2px 16px 0; display: flex; flex-direction: column; gap: 8px; }
.pt-acc { font: 700 10.5px/1 var(--font-mono); letter-spacing: .06em; padding: 5px 7px; border-radius: 4px; border: 1px solid var(--line); background: var(--surface); color: var(--fg-2); }
.pt-acc.hi { background: var(--ink); color: #f4fbf6; border-color: var(--ink); }
.pt-acc.mg { background: var(--pine-bg); color: var(--pine); border-color: #b5d3bf; }
.pt-acc-sub { font-size: 12px; }
.pt-side-foot { margin-top: auto; padding: 16px 16px 0; font-size: 11.5px; line-height: 1.4; }
.pt-chips { display: flex; flex-wrap: wrap; gap: 4px; }

.pt-main { overflow: auto; padding: 18px 22px 40px; min-width: 0; }

/* department header */
.pt-dh { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.pt-dh-k { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--clay); }
.pt-dh h1 { margin: 4px 0 0; font: 800 30px/1 var(--font-display); text-transform: uppercase; letter-spacing: .01em; color: var(--ink); }
.pt-stats { display: flex; margin: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); overflow: hidden; }
.pt-stat { padding: 6px 14px; border-left: 1px solid var(--line); min-width: 84px; }
.pt-stat:first-child { border-left: 0; }
.pt-stat dt { font: 600 10px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pt-stat dd { margin: 0; font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.pt-stat.ok dd { color: var(--pine); } .pt-stat.amb dd { color: var(--amber-t); } .pt-stat.mut dd { color: var(--muted); }
.pt-stats.sm .pt-stat { padding: 4px 12px; min-width: 70px; } .pt-stats.sm dd { font-size: 16px; }

/* toolbar */
.pt-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.pt-bar input, .pt-bar select { min-height: 34px; padding: 5px 10px; font-size: 13px; background: var(--surface); }
.pt-sel { width: auto !important; }
.portal .pt-bar .pt-sel { width: 150px !important; }
.pt-shown { font-size: 12px; color: var(--muted); padding-left: 4px; white-space: nowrap; }
.portal .btn { border-radius: 5px; }
.portal .btn.small { min-height: 32px; }
.portal .btn.go:hover { background: #155a37; }

/* sync indicator */
.pt-sync-w { position: relative; }
.pt-sync { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: 600 11.5px var(--font-mono); color: var(--fg-2); white-space: nowrap; }
.pt-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.pt-sync.ok { border-color: #b5d3bf; color: var(--pine); background: #f3f9f5; } .pt-sync.ok .pt-dot { background: var(--ok); box-shadow: 0 0 0 3px rgba(27,122,74,.15); }
.pt-sync.warn { border-color: var(--amber-l); color: #6e4c00; background: var(--amber-bg); } .pt-sync.warn .pt-dot { background: #c88a00; }
.pt-sync-pop { position: absolute; right: 0; top: 38px; z-index: 20; width: 380px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 12px 28px rgba(20,32,26,.14);
  padding: 10px 12px; font: 500 12px/1.45 var(--font-mono); color: var(--fg-2); display: flex; flex-direction: column; gap: 4px; max-height: 320px; overflow: auto; }
.pt-sync-pop-h { font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 10.5px; color: var(--muted); }
.pt-sync-pop .err { color: var(--bad); padding-left: 10px; border-left: 2px solid var(--bad); }

/* roster table */
.pt-tw { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; overflow: clip; }
.pt-t { width: 100%; border-collapse: collapse; table-layout: fixed; }
.pt-t col.c-cs { width: 92px; } .pt-t col.c-nm { width: auto; } .pt-t col.c-rk { width: 15%; } .pt-t col.c-bd { width: 76px; }
.pt-t col.c-dv { width: 21%; } .pt-t col.c-st { width: 104px; } .pt-t col.c-tr { width: 104px; } .pt-t col.c-jn { width: 108px; }
.pt-t thead th { position: sticky; top: -18px; z-index: 2; background: #f1efe8; text-align: left; font: 700 10.5px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.pt-rk th { text-align: left; padding: 6px 10px; background: #e9ece4; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-weight: 400; }
.pt-grp:first-of-type .pt-rk th { border-top: 0; }
.pt-rk-n { font: 700 12px var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.pt-rk-a { margin-left: 8px; font-size: 11px; color: var(--muted); }
.pt-rk-f { margin-left: 10px; font: 700 9.5px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; padding: 3px 6px; border-radius: 3px; vertical-align: 1px; }
.pt-rk-f.cmd { background: var(--ink); color: #f4fbf6; } .pt-rk-f.sup { background: var(--pine-bg); color: var(--pine); border: 1px solid #b5d3bf; }
.pt-rk-c { float: right; font-size: 11px; font-weight: 700; color: var(--fg-2); }
.pt-grp:has(.pt-row) .pt-rk-c { color: var(--pine); }
.pt-row td { padding: 6px 10px; border-bottom: 1px solid #ebe9e2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; height: 38px; }
.pt-row { cursor: pointer; background: var(--row); }
.pt-row:hover td { background: var(--row-h); }
.pt-row.sel td { background: var(--row-sel); }
.pt-row.sel td:first-child { box-shadow: inset 3px 0 0 var(--pine); }
.pt-row:focus-visible { outline: 2px solid var(--pine); outline-offset: -2px; }
.pt-row.dim td { color: var(--muted); }
.pt-row.dim .pt-nm-t b { color: var(--muted); }
.pt-cs { font-weight: 700; font-size: 13px; color: var(--ink); }
.pt-nm { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pt-nm-t { display: flex; align-items: baseline; gap: 6px; min-width: 0; overflow: hidden; }
.pt-nm-t b { font-weight: 600; color: var(--ink); white-space: nowrap; }
.pt-nm-t small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-you { font: 700 9px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--clay); border: 1px solid #e1b9a8; padding: 2px 4px; border-radius: 3px; }
.pt-div { font: 600 10.5px/1 var(--font-mono); letter-spacing: .03em; padding: 3px 6px; border-radius: 3px; background: var(--surface-2); border: 1px solid var(--line); color: var(--fg-2); white-space: nowrap; }
.pt-row .pt-chips { flex-wrap: nowrap; overflow: hidden; }
.pt-empty { padding: 26px; text-align: center; color: var(--muted); font-size: 13px; }
.pt-empty.sm { padding: 14px 4px; text-align: left; }
.pt-empty-big { max-width: 520px; margin: 80px auto; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 28px; }
.pt-empty-big h2 { margin: 0 0 8px; font: 800 24px var(--font-display); text-transform: uppercase; }
.pt-empty-big p { color: var(--fg-2); margin: 0 0 16px; }
.pt-empty-big .btn { display: inline-flex; align-items: center; text-decoration: none; }

/* status pills */
.pt-pill { display: inline-flex; align-items: center; gap: 5px; font: 700 10.5px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px 4px 7px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.pt-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pt-pill.s-active { color: var(--pine); background: var(--pine-bg); border-color: #b5d3bf; }
.pt-pill.s-loa { color: var(--amber-t); background: var(--amber-bg); border-color: var(--amber-l); }
.pt-pill.s-inactive { color: #5d6b61; background: var(--grey-bg); border-color: #cfd2c8; }
.pt-pill.s-void { color: var(--bad); background: var(--bad-bg); border-color: #e3a49c; }
.pt-pill.s-pay { color: var(--fg-2); background: var(--surface-2); border-color: var(--line); }

/* member panel */
.pt-panel { border-left: 1px solid var(--line); background: var(--surface); overflow: auto; display: flex; flex-direction: column; box-shadow: -8px 0 20px rgba(20,32,26,.05); }
.pt-p-head { position: sticky; top: 0; z-index: 3; display: flex; gap: 14px; align-items: center; padding: 16px 18px; background: var(--surface); border-bottom: 1px solid var(--line); }
.pt-p-head .pt-x { position: absolute; right: 10px; top: 10px; }
.pt-p-id { min-width: 0; }
.pt-p-k { font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--clay); text-transform: uppercase; }
.pt-p-id h2, .pt-rec h2 { margin: 2px 0 4px; font: 700 21px/1.15 var(--font-body); color: var(--ink); }
.pt-p-r { display: flex; align-items: center; gap: 8px; color: var(--fg-2); font-weight: 600; font-size: 13px; }
.pt-x { width: 30px; height: 30px; border-radius: 5px; border: 1px solid transparent; background: none; font-size: 20px; line-height: 1; color: var(--muted); }
.pt-x:hover { border-color: var(--line); color: var(--ink); background: var(--surface-2); }
.pt-p-load { display: flex; align-items: center; gap: 10px; padding: 20px 18px; color: var(--muted); font: 500 12px var(--font-mono); }
.pt-p-body { padding: 4px 18px 30px; }
.pt-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; margin: 12px 0 4px; }
.pt-fact { padding: 7px 0; border-bottom: 1px dashed #e2e0d8; min-width: 0; }
.pt-fact.wide { grid-column: span 2; }
.pt-fact dt { font: 600 10px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pt-fact dd { margin: 2px 0 0; font-size: 13px; color: var(--ink); overflow-wrap: anywhere; }
.pt-fact.mono dd { font-family: var(--font-mono); font-weight: 600; }
.pt-p-sec { margin-top: 18px; }
.pt-p-sec h3, .pt-card h3 { margin: 0 0 8px; font: 700 11px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); }
.pt-notes { margin: 0; white-space: pre-wrap; background: var(--amber-bg); border: 1px solid var(--amber-l); border-radius: 5px; padding: 8px 10px; font-size: 13px; }
.pt-actions { border: 1px solid var(--line); border-radius: 6px; background: #fbfaf6; padding: 12px 12px 4px; }
.pt-act { padding: 10px 0; border-top: 1px solid #e7e5dd; display: flex; flex-direction: column; gap: 7px; }
.pt-act:first-of-type { border-top: 0; padding-top: 2px; }
.pt-act h4 { margin: 0; font: 600 12.5px var(--font-body); color: var(--ink); }
.pt-act input, .pt-act select, .pt-act textarea { min-height: 34px; padding: 5px 9px; font-size: 13px; background: var(--surface); }
.pt-act textarea { min-height: 64px; }
.pt-act .field > span { font-size: 10px; }
.pt-row2 { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.pt-row2 .btn { min-width: 96px; }
.pt-row2.r { grid-template-columns: minmax(0, 1fr) auto; }
.pt-row3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.pt-row3.t { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; align-items: center; }
.pt-hint { font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.pt-act-r { display: flex; justify-content: flex-end; }
.pt-sugg { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: 11.5px; }
.pt-sg { border: 1px dashed #b5d3bf; background: #f3f9f5; color: var(--pine); border-radius: 4px; padding: 3px 7px; font-size: 11.5px; font-weight: 600; }
.pt-sg:hover { border-style: solid; }
.pt-checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 10px; }
.pt-check { display: flex; align-items: center; gap: 6px; font-size: 13px; padding: 3px 0; cursor: pointer; }
.pt-check input { width: 15px; height: 15px; accent-color: var(--pine); margin: 0; }
.pt-seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.pt-seg button { border: 0; border-left: 1px solid var(--line); background: var(--surface); padding: 7px 0; font: 700 11px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-2); }
.pt-seg button:first-child { border-left: 0; }
.pt-seg button:hover { background: var(--surface-2); }
.pt-seg .s-active.on { background: var(--pine); color: #f4fbf6; }
.pt-seg .s-loa.on { background: #c88a00; color: #fff; }
.pt-seg .s-inactive.on { background: #6b7770; color: #fff; }

/* history timeline */
.pt-tl { list-style: none; margin: 0; padding: 0 0 0 4px; position: relative; }
.pt-tl::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: #e2e0d8; }
.pt-tl-i { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 6px; padding: 0 0 12px; }
.pt-tl-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--muted); margin-top: 3px; position: relative; z-index: 1; }
.a-hired .pt-tl-dot { border-color: var(--pine); background: var(--pine); }
.a-promoted .pt-tl-dot { border-color: var(--pine); }
.a-demoted .pt-tl-dot, .a-removed .pt-tl-dot { border-color: var(--bad); }
.a-transferred .pt-tl-dot { border-color: var(--blue); }
.a-status .pt-tl-dot { border-color: #c88a00; }
.pt-tl-h { display: flex; justify-content: space-between; gap: 8px; }
.pt-tl-h b { font-size: 12.5px; color: var(--ink); }
.a-promoted .pt-tl-h b { color: var(--pine); } .a-demoted .pt-tl-h b, .a-removed .pt-tl-h b { color: var(--bad); }
.pt-tl-h time { font-size: 11px; color: var(--muted); white-space: nowrap; }
.pt-tl-d { font-size: 13px; color: var(--fg-2); }
.pt-tl-q { font-size: 12.5px; color: var(--fg-2); font-style: italic; border-left: 2px solid var(--line); padding-left: 8px; margin-top: 3px; }
.pt-tl-a { font-size: 11.5px; margin-top: 1px; }

/* dialogs */
.pt-dlg { border: 1px solid var(--line); border-radius: 8px; padding: 0; width: 620px; max-width: calc(100vw - 40px); background: var(--surface); color: var(--fg); box-shadow: 0 24px 60px rgba(20,32,26,.25); }
.pt-dlg::backdrop { background: rgba(20,32,26,.45); }
.pt-form { display: flex; flex-direction: column; gap: 12px; padding: 0 20px 18px; }
.pt-dlg-h { display: flex; align-items: center; gap: 10px; padding: 14px 0 10px; border-bottom: 1px solid var(--line); margin: 0; }
.pt-dlg > .pt-dlg-h { padding: 12px 16px; }
.pt-dlg-h h2 { margin: 0; font: 800 22px/1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; flex: 1; }
.pt-dlg-p { margin: 0; font-size: 13px; }
.pt-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.pt-form input, .pt-form select, .pt-form textarea { min-height: 36px; padding: 6px 10px; font-size: 13.5px; background: var(--surface); }
.pt-form-err { color: var(--bad); font-size: 13px; min-height: 1em; }
.pt-form-err:empty { display: none; }
.pt-dlg-f { display: flex; justify-content: flex-end; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.pt-dlg-ticket { width: auto; max-width: min(1000px, calc(100vw - 40px)); }
.pt-ticket-b { max-height: calc(100vh - 140px); overflow: auto; background: #dcd9cf; padding: 16px; display: flex; justify-content: center; }
.pt-ticket-b img, .pt-ticket-b canvas { display: block; width: 640px; height: auto; box-shadow: 0 6px 20px rgba(0,0,0,.2); background: #fff; }

/* my profile */
.pt-prof { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 16px; align-items: start; }
.pt-prof-l { display: flex; flex-direction: column; gap: 16px; }
.pt-card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; }
.pt-rec-h { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding-bottom: 6px; }
.pt-rec-cs { font-size: 20px; font-weight: 700; color: var(--pine); border: 2px solid var(--pine); padding: 4px 8px; border-radius: 4px; }
.pt-link { display: inline-block; margin-top: 10px; color: var(--pine) !important; font-weight: 600; font-size: 13px; text-decoration: none; }
.pt-link:hover { text-decoration: underline; }
.pt-card-acts { display: flex; gap: 8px; margin-top: 12px; }
.pt-cites-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.pt-cites-h h3 { margin: 0; }
.pt-cite-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 10px; }
.pt-cite { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: #fdfcf9; }
.pt-cite.void { opacity: .7; }
.pt-cite.void .pt-cite-n { text-decoration: line-through; }
.pt-thumb { width: 96px; height: 140px; padding: 0; border: 1px solid var(--line); border-radius: 3px; background: #f3f0e6; overflow: hidden; cursor: zoom-in; display: grid; place-items: center; }
.pt-thumb img, .pt-thumb canvas { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.pt-thumb:hover { border-color: var(--pine); box-shadow: 0 0 0 2px rgba(27,107,67,.2); }
.pt-thumb.noimg { cursor: default; }
.pt-thumb-x { font: 600 10px var(--font-mono); color: var(--muted); text-align: center; padding: 6px; letter-spacing: .04em; text-transform: uppercase; }
.pt-cite-b { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pt-cite-top { display: flex; align-items: baseline; gap: 8px; }
.pt-cite-top time { margin-left: auto; font-size: 11px; white-space: nowrap; }
.pt-cite-n { color: var(--bad); font-weight: 700; font-size: 13px; letter-spacing: .02em; white-space: nowrap; }
.pt-cite-p { font-size: 13.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-cite-l { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-cite-v { list-style: none; margin: 2px 0 0; padding: 0; font-size: 12px; color: var(--fg-2); }
.pt-cite-v li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-cite-v .mono { font-size: 11px; color: var(--muted); }
.pt-cite-f { margin-top: auto; padding-top: 4px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pt-cite-t { font-weight: 700; font-size: 13px; color: var(--ink); white-space: nowrap; }
.pt-bar .btn { white-space: nowrap; }

#app.with-panel .pt-t col.c-dv { width: 26%; } #app.with-panel .pt-t col.c-cs { width: 78px; } #app.with-panel .pt-t col.c-st { width: 96px; } #app.with-panel .pt-t col.c-tr { width: 90px; }
@media (max-width: 1439px) { #app.with-panel .pt-body { grid-template-columns: 236px minmax(0, 1fr) 410px; } .pt-brand { min-width: 236px; } #app.with-panel .pt-nm-t small { display: none; } }
.pt-dh { flex-wrap: wrap; }
.pt-bar { flex-wrap: wrap; }
.pt-search { flex: 1 1 220px !important; width: auto !important; max-width: 340px; }
.pt-more { border: 1px dashed var(--line); background: var(--surface-2); color: var(--pine); font: 600 12px var(--font-body); border-radius: 5px; padding: 6px 10px; width: 100%; }
.pt-more:hover { border-style: solid; }
