/* Portals and self-service (module 83-portals): portal hub pages and staff portal management. */
.pt-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.pt-brandname { font-weight: 700; color: var(--brand-primary); font-size: 13px; letter-spacing: .02em; }
.pt-lite { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; background: var(--infoBg); color: var(--infoFg); border-radius: 12px; padding: 2px 10px; }
.pt-small { font-size: 12px; }
.pt-intro { color: var(--text2); margin-bottom: 12px; }

/* activity feed and suggestions */
.pt-feed { list-style: none; margin: 0; padding: 0; }
.pt-feed li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 14px; border-bottom: 1px solid var(--line2); }
.pt-feed li:last-child { border-bottom: 0; }
.pt-feed li > i { font-size: 16px; color: var(--brand-primary); margin-top: 2px; }
.pt-feed li .sub { display: block; }
.pt-feed.sm li { padding: 7px 0; grid-template-columns: 22px minmax(0, 1fr); }
.pt-rec { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; padding: 9px 10px; border: 1px solid var(--line2); border-left: 4px solid var(--brand-primary); border-radius: 4px; margin-bottom: 8px; color: var(--text); }
.pt-rec:hover { color: var(--text); box-shadow: var(--shadow); }
.pt-rec b { display: block; } .pt-rec span { font-size: 12.5px; color: var(--text2); }
.pt-rec i { font-size: 17px; color: var(--brand-primary); }
.pt-rec.warn { border-left-color: #d99a06; } .pt-rec.warn i { color: #d99a06; }
.pt-rec.bad { border-left-color: var(--badFg); } .pt-rec.bad i { color: var(--badFg); }
.pt-rec.neutral { border-left-color: var(--line); }
.pt-links { display: grid; gap: 6px; }
.pt-links a { display: flex; gap: 8px; align-items: center; padding: 6px 2px; min-height: 40px; }
.ct-tbl tr.pt-unread td:first-child b { color: var(--brand-primary); }
.portal-lite-note { display: none !important; }

/* forms */
.pt-choices { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.pt-choices .ct-check { min-height: 36px; }
.pt-rating { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pt-rating label { position: relative; }
.pt-rating input { position: absolute; opacity: 0; }
.pt-rating span { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; font-weight: 700; cursor: pointer; background: #fff; }
.pt-rating input:checked + span { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }
.pt-rating input:focus-visible + span { outline: 2px solid #4ea1ff; outline-offset: 2px; }
.pt-rating em { font-size: 12px; color: var(--muted); font-style: normal; margin-left: 6px; }
.pt-consent { align-items: flex-start; }
.pt-answers summary { cursor: pointer; font-size: 12px; color: var(--blue); margin-top: 4px; }
.pt-answers .ct-dl { margin-top: 6px; }
.pt-qtbl td { vertical-align: top; }
.pt-qtbl .ct-input { width: 100%; min-width: 120px; }
.pt-qtbl td input + input { margin-top: 4px; }

/* delegations, prefs */
.pt-scopes { border: 0; margin: 0; padding: 0; display: grid; gap: 4px; }
.pt-scopes legend { font-weight: 600; font-size: 12px; color: var(--text2); margin-bottom: 4px; padding: 0; }
.pt-prefs .ct-check { align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line2); }
.pt-prefs .ct-check span { color: var(--text2); }
.pt-prefs .ct-check b { color: var(--text); }

/* help and community */
.pt-search .ct-input[type=search] { min-width: 260px; flex: 1 1 260px; }
.pt-faq { border-bottom: 1px solid var(--line2); padding: 8px 0; }
.pt-faq summary { cursor: pointer; font-weight: 600; min-height: 32px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.pt-faq summary .sub { font-weight: 400; }
.pt-answer { padding: 8px 0 4px; color: var(--text2); line-height: 1.55; }
.pt-helpful { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; margin-top: 6px; }
.pt-post { line-height: 1.6; overflow-wrap: anywhere; }
.pt-reply { background: var(--panel); border: 1px solid var(--line2); border-left: 4px solid var(--line); border-radius: 4px; padding: 10px 14px; }
.pt-reply.staff { border-left-color: var(--brand-primary); }
.pt-reply.answer { border-left-color: var(--okFg); background: color-mix(in srgb, var(--okBg) 45%, #fff); }
.pt-reply.hidden { opacity: .6; }
.pt-who { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin-bottom: 6px; }
.pt-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* staff: portal types */
.pt-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.pt-type { position: relative; display: grid; gap: 2px; padding: 10px 12px 12px; background: var(--panel); border: 1px solid var(--line2); border-radius: 4px; color: var(--text); overflow: hidden; }
.pt-type:hover, .pt-type.on { border-color: var(--brand-primary); color: var(--text); box-shadow: var(--shadow); }
.pt-type .num { font-size: 22px; font-weight: 700; }
.pt-type small { color: var(--muted); font-size: 11.5px; }
.pt-type i { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; }

@media (max-width: 760px) {
    .pt-feed li { grid-template-columns: 22px minmax(0, 1fr); }
    .pt-feed li .r { grid-column: 2; }
    .pt-search .ct-input[type=search] { min-width: 0; }
}
