/* Base: Design Tokens & Global Styles */
:root {
  --navy: #14284b;
  --navy-2: #1d3766;
  --teal: #0b7676;
  --teal-soft: #e3f3f2;
  --bg: #f4f6f9;
  --card: #ffffff;
  --text: #1a2233;
  --muted: #5d6779;
  --line: #dde2ea;
  --warn: #8a4512;
  --danger: #b3261e;
  --radius: 14px;
  --tab-h: 64px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 16px);
  -webkit-text-size-adjust: 100%;
}
.hidden, [hidden] { display: none !important; }
a { color: var(--teal); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 6px; }
h1 { font-size: 1.45rem; }
h2 { font-size: 1.15rem; margin-top: 8px; }
h3 { font-size: 1rem; }
p { margin: 0 0 8px; }
code { font-size: .85em; background: #eef1f5; padding: 1px 5px; border-radius: 5px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.spacer { flex: 1; }

/* Shared Components: Cards */
.card {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 10px; color: inherit; text-decoration: none;
}
a.card:active { background: #f8fafc; }
.eyebrow { display: inline-block; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); font-weight: 700; margin-bottom: 2px; }
.eyebrow.light { color: #9fe0dc; }
.badge {
  display: inline-block; font-size: .75rem; font-weight: 600; padding: 2px 9px; border-radius: 999px;
  background: var(--teal-soft); color: #075e5e; text-decoration: none;
}
.badge.full { background: #fde8e6; color: var(--danger); }
.link { display: inline-block; font-size: .9rem; font-weight: 500; text-decoration: none; margin-bottom: 10px; }
.link.light { color: #fff; }
.notice { background: #fff4d6; border-radius: 10px; padding: 10px 12px; font-size: .9rem; }
.empty { color: var(--muted); text-align: center; padding: 24px 0; }
.error { color: var(--danger); font-size: .9rem; }
.hint { color: var(--muted); font-size: .85rem; margin: 6px 0 0; display: block; font-weight: 400; }

/* Shared Components: Avatars */
.avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--teal-soft); color: var(--navy); font-weight: 700; font-size: .9rem;
}
.avatar.xs { width: 26px; height: 26px; font-size: .62rem; }
.avatar.sm { width: 36px; height: 36px; font-size: .78rem; }
.avatar.lg { width: 64px; height: 64px; font-size: 1.25rem; }

/* Shared Components: Forms */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--teal); color: #fff; border: 0; border-radius: 10px;
  padding: 12px 18px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; min-height: 44px;
}
.btn.secondary { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.btn.small { padding: 6px 12px; min-height: 36px; font-size: .875rem; }
.btn.wide { width: 100%; margin-top: 10px; }
.btn:disabled { opacity: .55; }
.btn.is-busy { cursor: progress; }
.form label { display: block; font-size: .9rem; font-weight: 500; margin-bottom: 12px; }
.form .btn[type=submit] { width: 100%; }
.form .actions .btn { flex: 1; }
input, select, textarea {
  display: block; width: 100%; margin-top: 4px; font: inherit; font-size: 16px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); min-height: 44px;
}
textarea { resize: vertical; line-height: 1.45; }
input:disabled, textarea:disabled { background: #f2f4f7; color: var(--muted); }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid rgba(11,118,118,.35); outline-offset: 1px; }
input[type=checkbox] { display: inline-block; width: 20px; height: 20px; min-height: 0; margin: 0; flex: 0 0 auto; accent-color: var(--teal); }
fieldset { border: 0; padding: 0; margin: 0 0 14px; }
legend { font-size: .9rem; font-weight: 500; margin-bottom: 6px; padding: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checks { display: flex; flex-wrap: wrap; gap: 6px; }
.check { margin: 0 !important; cursor: pointer; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check span,.profile-language-tag,.profile-language-result {
  display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
  font-size: .85rem; font-weight: 400; background: #fff; min-height: 34px;
}
.check input:checked + span,.profile-language-tag,.profile-language-result[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.check input:focus-visible + span { outline: 3px solid rgba(11,118,118,.35); }
.check-line { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: .875rem !important; }
.check-line input { margin-top: 2px; }
label.inline { display: inline-flex; gap: 6px; align-items: center; font-size: .85rem; margin-left: 6px; }
label.inline select { margin: 0; padding: 4px 8px; min-height: 32px; width: auto; font-size: .85rem; }
.sub { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; font-size: .9rem; }
.table-wrap { overflow-x: auto; padding: 4px 12px; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
td { padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }

/* Shared Components: Loading */
.loading { display: flex; justify-content: center; gap: 6px; padding: 32px 0; }
.loading span { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); animation: pulse 1s infinite ease-in-out; }
.loading span:nth-child(2) { animation-delay: .15s; }
.loading span:nth-child(3) { animation-delay: .3s; }
@keyframes pulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

@media (max-width: 380px) {
  .row2 { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .loading span { animation: none; opacity: .7; }
}

/* Navigation: Header */
.topbar {
  --topbar-control-border: rgba(255,255,255,.25);
  --topbar-control-active-bg: #fff;
  --topbar-control-active-text: var(--navy);
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: var(--navy); color: #fff;
}
.topbar .brand { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; color: #fff; text-decoration: none; cursor: pointer; }
.topbar .brand > * { pointer-events: none; }
.topbar .brand:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
/* HPA wordmark: preserve artwork proportions, including on narrow screens. */
.hpa-brand-wordmark { display: block; width: auto; height: 42px; max-width: 110px; object-fit: contain; flex: 0 0 auto; }
.hpa-brand-label { white-space: nowrap; }
@media (max-width: 420px) {
  .hpa-brand-label { display: none; }
  .hpa-brand-wordmark { height: 38px; }
}
.topbar-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
#lang-switch { display: inline-flex; border: 1px solid var(--topbar-control-border); border-radius: 999px; }
#lang-switch:empty { display: none; }
.chip {
  background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px; padding: 4px 11px; font: inherit; font-size: .8rem; cursor: pointer; min-height: 34px;
}
.chip.on { background: #fff; color: var(--navy); font-weight: 600; }
#lang-switch .chip {
  min-width: 40px; min-height: 42px; padding: 4px 9px;
  border: 1px solid transparent; background: transparent; color: inherit;
}
#lang-switch .chip.on, .topbar-profile.active {
  border-color: var(--topbar-control-active-text);
  background: var(--topbar-control-active-bg);
  color: var(--topbar-control-active-text);
}
.topbar-profile {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; min-height: 44px; padding: 0 9px;
  border: 1px solid var(--topbar-control-border); border-radius: 999px;
  color: inherit; text-decoration: none; font-size: .85rem; font-weight: 600;
}
.topbar-profile .ico { font-size: 1.2rem; line-height: 1; }
@media (max-width: 420px) {
  .topbar-profile-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

.demo-banner { background: #fff4d6; color: #6b4e00; text-align: center; font-size: .85rem; padding: 6px 16px; }
.install-banner {
  display: flex; align-items: center; gap: 10px; background: var(--teal-soft);
  padding: 10px 16px; font-size: .9rem; border-bottom: 1px solid var(--line);
}
.install-banner span { flex: 1; min-width: 0; }
[data-pwa-installed] [data-install-open] { display: none; }
.hpa-home-install { margin: 2px 0 14px; }
.install-dialog {
  width: min(460px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: clamp(16px, 4vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
}
.install-dialog::backdrop { background: rgb(0 0 0 / .5); }
.install-dialog ol { padding-inline-start: 24px; }
.install-dialog li + li { margin-top: 8px; }
.install-dialog .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.icon-btn { background: none; border: 0; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--muted); min-width: 36px; min-height: 36px; }
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 20;
  bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 14px);
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: .9rem;
  max-width: calc(100% - 32px); box-shadow: 0 6px 20px rgba(0,0,0,.18);
}

main { max-width: 720px; margin: 0 auto; padding: 16px; outline: none; }
section { margin-bottom: 22px; }

/* Navigation: Tab Bar */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; background: #fff; border-top: 1px solid var(--line);
  height: calc(var(--tab-h) + env(safe-area-inset-bottom));
}
.tabbar a {
  flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  /* Extend each tab to the screen edge while keeping its contents above the home indicator. */
  padding-bottom: env(safe-area-inset-bottom);
  color: var(--muted); text-decoration: none; font-size: .7rem; text-align: center; line-height: 1.15;
}
.tabbar a > span:last-child { max-width:100%; padding-inline:2px; overflow-wrap:anywhere; }
@media (max-width:380px) { .tabbar a { font-size:clamp(.59rem, 2.9vw, .7rem); } }
.tabbar .ico { font-size: 1.2rem; line-height: 1; }
.tab-message-icon { display: block; width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.tabbar a.active { color: var(--teal); font-weight: 600; }

/* Authentication & Registration */
.captcha-panel { margin: 4px 0 16px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: #f8fafb; }
.form .captcha-label { display: flex; gap: 12px; align-items: center; cursor: pointer; margin: 0 0 4px; font-weight: 600; }
.captcha-label input { margin: 0; }
.captcha-panel .hint { margin-left: 32px; }
.login { max-width: 420px; margin: 16px auto 0; text-align: center; }
.login .card { text-align: left; margin-top: 16px; }
/* Full alliance logo on a dark panel so the supplied inverted variant stays legible. */
.hpa-login-brand {
  display: flex; align-items: center; justify-content: center;
  max-width: 354px; padding: 14px 20px; margin: 0 auto 14px;
  background: var(--navy); border-radius: 14px;
}
.hpa-login-wordmark { display: block; width: min(100%, 270px); height: auto; object-fit: contain; }
.reg-head { display: flex; justify-content: space-between; align-items: baseline; }
.pick { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; font: inherit; cursor: pointer; }
.pick.full { opacity: .5; cursor: not-allowed; }
.room-pick { border-color: var(--teal); }
.places { color: #075e5e; font-weight: 600; margin: 4px 0 0; }
.welcome { text-align: center; max-width: 440px; margin: 24px auto 0; }
.welcome .card { text-align: left; }
.big-check { width: 64px; height: 64px; border-radius: 50%; background: var(--teal); color: #fff; font-size: 2rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }

/* Rooms */
.room-card.mine { border-color: var(--teal); box-shadow: inset 4px 0 0 var(--teal); }
.room-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.room-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.faces { display: flex; }
.faces .avatar { border: 2px solid #fff; margin-left: -6px; }
.faces .avatar:first-child { margin-left: 0; }
.room-head { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.room-head .eyebrow { color: #9fe0dc; }
.room-head h1 { color: #fff; }
.question { font-style: italic; color: #d6deeb; }
.members { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.member { display: flex; flex-direction: column; align-items: center; gap: 2px; color: #fff; text-decoration: none; font-size: .75rem; }

/* Posts & Comments */
.post-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.author { font-weight: 600; color: var(--text); text-decoration: none; }
.post-text { margin-bottom: 8px; overflow-wrap: anywhere; }
.post-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; border-top: 1px solid var(--line); padding-top: 8px; }
.post-actions .link { margin: 0; }
.react { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font: inherit; font-size: .85rem; color: var(--muted); cursor: pointer; min-height: 34px; }
.react.on { color: #075e5e; background: var(--teal-soft); border-color: transparent; }
.react:disabled { cursor: default; }
.gallery { display: grid; gap: 4px; margin-bottom: 8px; border-radius: 10px; overflow: hidden; }
.gallery.g2 { grid-template-columns: 1fr 1fr; }
.gallery.g3 { grid-template-columns: 1fr 1fr 1fr; }
.gallery img { width: 100%; height: 100%; max-height: 320px; object-fit: cover; display: block; background: #eef1f5; }
.gallery.g2 img, .gallery.g3 img { aspect-ratio: 1; }
.doc {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin-bottom: 6px;
  border: 1px solid var(--line); border-radius: 10px; color: var(--text); text-decoration: none;
}
.doc-ico { flex: 0 0 auto; font-size: .65rem; font-weight: 700; background: var(--navy); color: #fff; border-radius: 5px; padding: 4px 5px; }
.doc-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }

.composer textarea { margin-top: 0; }
.composer-bar { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.file-btn { cursor: pointer; }
.picked { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.picked button { background: none; border: 0; cursor: pointer; font-size: 1rem; line-height: 1; padding: 0 0 0 4px; }

.comment { display: flex; gap: 10px; margin-bottom: 12px; }
.comment > div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; flex: 1; overflow-wrap: anywhere; }
.comment-form { display: flex; gap: 8px; align-items: flex-end; }
.comment-form textarea { margin: 0; }

/* Events & GIC */
.segmented { display: flex; background: #e7ebf1; border-radius: 10px; padding: 3px; margin: 8px 0 12px; }
.segmented button { flex: 1; border: 0; background: none; padding: 8px; font: inherit; font-size: .9rem; border-radius: 8px; cursor: pointer; color: var(--muted); min-height: 38px; }
.segmented button.on { background: #fff; color: var(--navy); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.event { display: flex; gap: 14px; }
.event-date {
  flex: 0 0 56px; height: 60px; border-radius: 10px; background: var(--navy); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.event-date span { font-size: 1.4rem; font-weight: 700; line-height: 1; }
.event-date small { text-transform: uppercase; font-size: .7rem; letter-spacing: .05em; }
.event-body { flex: 1; min-width: 0; }
.gic-card { background: linear-gradient(135deg, var(--navy), var(--navy-2) 60%, var(--teal)); color: #fff; border: 0; }
.gic-card h1, .gic-card h2 { color: #fff; }
.gic-card h2 a{color:inherit;text-decoration:none}.gic-card h2 a:hover,.gic-card h2 a:focus-visible{text-decoration:underline;text-underline-offset:4px}
.gic-facts { display: flex; gap: 24px; margin: 10px 0; }
.gic-facts small { display: block; color: #c9d4e6; font-size: .75rem; }
.gic-facts b { font-size: 1.15rem; }
.gic-card-links { display:flex; flex-wrap:wrap; gap:0 16px; }
.gic-card-links .link { display:inline-flex; align-items:center; gap:5px; min-height:44px; margin:0; font-weight:600; }
.gic-card-links .link span:first-child { text-decoration:underline; text-underline-offset:3px; }
.btn.light { background: #fff; color: var(--navy); }
.timeline { display: flex; list-style: none; padding: 0; margin: 8px 0 14px; gap: 4px; }
.timeline li { flex: 1; font-size: .72rem; text-align: center; padding-top: 8px; border-top: 4px solid var(--line); color: var(--muted); }
.timeline li.done { border-color: var(--teal); }
.timeline li.now { border-color: var(--teal); color: var(--navy); font-weight: 700; }
.count { display: block; text-align: right; font-size: .75rem; color: var(--muted); font-weight: 400; }

/* People & Profiles */
.person { display: flex; gap: 12px; align-items: flex-start; }
.person-body { flex: 1; min-width: 0; }
.person-body p { margin-bottom: 2px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag { font-size: .78rem; padding: 3px 9px; border-radius: 999px; background: #eef1f5; color: var(--text); }
.tag.accent { background: var(--teal-soft); color: #075e5e; }
.reasons { margin: 6px 0 0; padding-left: 18px; font-size: .85rem; }
.reasons li.warn { color: var(--warn); }
.filters input { margin-bottom: 8px; }
.profile-head { display: flex; gap: 14px; align-items: center; margin-bottom: 6px; }
dl { margin: 8px 0; }
dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-top: 12px; }
dd { margin: 4px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.admin-link { border-color: var(--navy); }

/* Profile: Email Preferences */
.switch-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .92rem; cursor: pointer; }
.switch-line:first-of-type { border-top: 0; }
.switch-line input { width: 22px; height: 22px; }

/* Authentication: Honeypot Protection */
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Posts & Comments: Mentions */
.mention-suggestions {
  position: relative;
  z-index: 5;
  max-height: 220px;
  overflow-y: auto;
  margin-top: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

.mention-suggestions[hidden] {
  display: none;
}

.mention-option {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  background: #fff;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.mention-option:hover,
.mention-option[aria-selected="true"] {
  background: #e7ebf1;
}


/* Mentions: Input Highlighting */
.mention-field {
  position: relative;
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
}

.mention-field textarea {
  position: relative;
  z-index: 1;
  margin-top: 0;
  background: transparent;
}

.mention-field-active textarea {
  color: transparent;
  -webkit-text-fill-color: transparent;
  caret-color: var(--text);
}

.mention-field-active textarea::placeholder {
  -webkit-text-fill-color: var(--muted);
}

.mention-highlight-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: auto;
  pointer-events: none;
  box-sizing: border-box;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 16px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  color: var(--text);
  scrollbar-width: none;
}

.mention-highlight-layer::-webkit-scrollbar {
  display: none;
}

.mention-highlight {
  background: rgba(11, 118, 118, .16);
  color: #086767;
  border-radius: 4px;
  font-weight: 600;
}

.mention-field .mention-suggestions {
  position: relative;
  z-index: 5;
}

.comment-form .mention-field {
  min-width: 0;
}

/* Mentions: Text Alignment */
.mention-field textarea,
.mention-highlight-layer {
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  font-style: normal;
  letter-spacing: normal;
  line-height: 1.45;
  padding: 10px 12px;
  box-sizing: border-box;
  tab-size: 8;
}

.mention-field .mention-highlight {
  font-weight: inherit;
}

/* Ideas: Cards & Dialogs */
:is(.p1-ideas,.p1-recommendations){max-width:580px;margin:0 auto}.p1-search{margin-bottom:18px}.p1-search input{width:100%;padding:13px 16px;border-radius:18px;border:1px solid var(--line);font:inherit;background:#fff}.p1-filters{display:flex;gap:8px;overflow-x:auto;padding:12px 0;scrollbar-width:thin}.p1-filter{white-space:nowrap;border:1px solid var(--line);border-radius:999px;background:#fff;padding:9px 14px;font:inherit;font-size:.85rem;cursor:pointer}.p1-filter.active{background:var(--navy);color:white}.p1-idea{border:1px solid var(--line);border-radius:22px;overflow:hidden;background:#fff;margin:0 0 16px;box-shadow:0 5px 20px rgba(20,40,75,.05)}.p1-card-main{display:block;width:100%;text-align:left;border:0;background:none;padding:28px 24px 20px;min-height:220px;font:inherit;color:inherit;cursor:pointer}.p1-card-main h2{font-size:1.25rem}.p1-card-main p{color:var(--muted);margin:16px 0}.p1-read{display:block;margin-top:16px;font-size:.85rem;color:var(--teal)}.p1-actions{border-top:1px solid var(--line);display:flex;flex-wrap:wrap;gap:8px;padding:12px 20px}.p1-actions button{border:1px solid var(--line);border-radius:999px;background:#fff;padding:10px 12px;font:inherit;font-size:.85rem;cursor:pointer}.p1-actions [aria-pressed=true]{color:#087d7d;background:var(--teal-soft);border-color:#66c6bf}.p1-backdrop{position:fixed;z-index:1000;inset:0;background:rgba(8,16,32,.65);display:grid;place-items:center;padding:18px}.p1-modal{background:#fff;max-width:530px;width:100%;max-height:85vh;overflow:auto;padding:25px;border-radius:24px;position:relative;box-shadow:0 20px 50px #0004}.p1-modal h3{margin-top:18px}.p1-modal .p1-close{position:absolute;top:10px;right:12px}.p1-modal .notice{margin:15px 0}.p1-check{display:flex;gap:10px;margin:18px 0}.p1-modal .btn{margin-top:12px}.p1-modal .btn:disabled{opacity:.4;cursor:not-allowed}

/* Ideas: Composer & Tag Selection */
.p1-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.p1-filters select{width:auto;max-width:68%;margin:0;border-radius:999px;font-size:.85rem;min-height:40px}
.p1-form label{display:block;font-weight:600;font-size:.9rem;margin:14px 0 8px}
.p1-form textarea{display:block;resize:vertical;width:100%;margin-top:6px;padding:10px;border:1px solid var(--line);border-radius:10px;font:inherit;font-size:16px}
.p1-tag-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;max-height:210px;overflow-y:auto;border:1px solid var(--line);padding:8px;border-radius:10px}
.p1-tag-picker label{display:flex;align-items:center;gap:7px;margin:0;padding:6px;font-weight:400;font-size:.86rem}
.p1-tag-picker input{width:17px;min-height:17px;margin:0;flex-shrink:0}
.p1-tag-picker label[hidden]{display:none}

.p1-drafts{margin:0 0 12px}.p1-draft-item{display:block;width:100%;text-align:left;background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px;margin:8px 0;font:inherit;cursor:pointer}.p1-secondary{background:#fff!important;color:var(--navy)!important;border:1px solid var(--line)!important;margin-right:9px}

/* Ideas: Topic & Filters */
.p11-topic-banner{background:linear-gradient(110deg,#14284b,#207d80);color:white;border-radius:20px;padding:22px;margin:0 0 20px}
.p11-topic-banner small{font-size:.7rem;letter-spacing:.1em;opacity:.8}.p11-topic-banner h2{color:white;margin:8px 0}.p11-topic-banner p{margin:0;opacity:.88;font-size:.9rem}
.p11-topic-field{border:1px solid var(--line);border-radius:14px;margin:20px 0;padding:12px}.p11-topic-field legend{font-weight:700}
.p11-radio{display:flex!important;align-items:center;gap:10px;margin:12px 0!important;border:1px solid var(--line);padding:12px;border-radius:10px;cursor:pointer}.p11-radio input{width:auto!important;flex-shrink:0}
.p11-filter-details{width:100%;background:white;border:1px solid var(--line);border-radius:15px;padding:12px}.p11-filter-details summary{cursor:pointer;font-weight:600}
.p11-filter-details input[type=search]{margin-top:10px;border-radius:10px}.p11-filter-options{max-height:200px;overflow-y:auto;margin:10px 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.p11-filter-options label{font-size:.84rem;display:flex;gap:8px;align-items:center;padding:5px}.p11-filter-options label[hidden]{display:none}.p11-filter-options input{flex-shrink:0}.p1-author{padding:0 24px 12px;font-size:.86rem}.p1-author a{color:var(--teal)}

/* Ideas: Horizontal Feed & Actions */
/* Keep actions consistent across desktop, tablet and phone widths. */
.p1-ideas .p1-head{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:16px}
.p1-ideas .p1-head h1{display:flex;align-items:center;margin:0 12px 0 0;min-height:48px}
.p1-ideas .p1-head .btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;height:48px;box-sizing:border-box;padding:9px 17px;line-height:1.2;text-align:center;white-space:nowrap;flex:0 0 auto}
.p1-carousel-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:6px 0 12px}
.p1-carousel-hint{font-size:.9rem;color:var(--muted)}
.p1-carousel-controls{display:flex;gap:8px;flex-shrink:0}
.p1-carousel-controls button{width:44px;height:44px;display:grid;place-items:center;border:1px solid var(--line);background:#fff;border-radius:999px;font:inherit;cursor:pointer}
.p1-carousel-controls button:focus-visible{outline:3px solid var(--teal);outline-offset:2px}
.p1-carousel-controls button:disabled{opacity:.45;cursor:default}
html:has(.p1-idea-reader[open]) { overflow: hidden; }
.p1-idea-reader[open] {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
}
.p1-reader-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding-block: calc(8px + env(safe-area-inset-top)) 8px;
  padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right));
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
.p1-reader-header .p1-carousel-controls:last-child { justify-self: end; }
.p1-reader-header [data-reader-close] { font-size: 1.5rem; }
.p1-reader-utilities{display:flex;align-items:center;justify-self:end;gap:8px}
.p1-reader-utilities [data-reader-close]{display:grid;place-items:center;width:42px;height:42px;padding:0;border:1px solid var(--line);border-radius:50%;background:#fff;color:inherit;font:inherit;font-size:1.5rem;line-height:1;cursor:pointer}
.p1-reader-utilities [data-reader-close]:hover{background:var(--teal-soft)}
.p1-reader-utilities [data-reader-close]:focus-visible{outline:3px solid var(--teal);outline-offset:2px}
.p1-reader-meta { display: grid; justify-items: center; gap: 2px; color: var(--muted); }
.p1-reader-position { font-size: .78rem; font-variant-numeric: tabular-nums; }
.p1-reader-swipe { display: inline-flex; align-items: center; gap: 5px; font-size: .75rem; font-weight: 600; }
.p1-reader-swipe span {
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--text);
  font-size: .9rem;
  line-height: 1;
}
.p1-reader-track {
  --reader-gutter: clamp(20px, 6vw, 36px);
  display: flex;
  min-height: 0;
  width: min(100%, 820px);
  justify-self: center;
  gap: 12px;
  padding: 14px var(--reader-gutter) 16px;
  overflow: auto hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--reader-gutter);
  scrollbar-width: none;
}
.p1-reader-slide {
  flex: 0 0 100%;
  display: flex;
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.p1-reader-slide:not([inert]) { z-index: 1; }
.p1-reader-content {
  flex: 1 1 auto;
  min-width: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding: clamp(16px, 5vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transform: rotate(var(--reader-tilt, 0deg));
}
@media (prefers-reduced-motion: reduce) { .p1-reader-content { transform: none; } }
.p1-reader-track.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.p1-reader-content:focus-visible { outline: 2px solid var(--teal); outline-offset: -3px; }
.p1-reader-content h2 { font-size: clamp(1.55rem, 4vw, 2.65rem); margin: 0 0 10px; overflow-wrap: anywhere; }
.p1-reader-content h3 { margin-top: 20px; }
.p1-reader-content :is(.tag, p) { overflow-wrap: anywhere; }
.p1-reader-summary {
  margin-block: 20px 16px;
  padding: 12px 14px;
  border-inline-start: 3px solid var(--teal);
  border-radius: var(--radius);
  background: var(--teal-soft);
}
.p1-reader-description { margin-block: 20px 16px; }
.p1-reader-content :is(.p1-reader-summary, .p1-reader-description) h3 {
  margin: 0 0 6px;
  font-size: .9em;
  font-weight: 700;
}
.p1-reader-content .p1-reader-summary h3 { color: var(--teal); }
.p1-reader-content :is(.p1-reader-summary, .p1-reader-description) p {
  margin: 0;
  white-space: pre-wrap;
}
.p1-idea-author { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.p1-idea-author > span:last-child { overflow-wrap: anywhere; }
.p1-welcome-idea{background:linear-gradient(145deg,#fff 72%,#fff6bf)}
.p1-system-author{color:var(--teal);font-weight:650}
.p1-system-logo{display:block;width:58px;height:36px;object-fit:contain;object-position:left center;flex:0 0 auto}
.p1-reader-actions {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  padding: 12px max(12px, calc((100% - 720px) / 2)) calc(12px + env(safe-area-inset-bottom));
  background: var(--card);
}
.p1-reader-actions button { min-width: 0; min-height: 44px; overflow-wrap: anywhere; }
.p1-own-likes { align-self: center; margin-inline-end: auto; padding-inline: 4px; font-size: .85rem; }
.p1-actions .p1-edit-idea { min-height: 44px; margin: 0; }
.p1-actions button[aria-disabled="true"] { cursor: progress; opacity: .65; }
/* Two readable cards on desktop, a broad card with a preview on smaller screens. */
.p1-ideas{width:100%;max-width:1100px;min-width:0;margin-inline:auto}
.p1-ideas #p1-cards,#p1-cards{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 16px)/2);gap:16px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-padding-inline:2px;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;padding:4px 3px 16px;scrollbar-width:thin;align-items:stretch;min-width:0}
.p1-ideas #p1-cards .p1-idea,#p1-cards .p1-idea{scroll-snap-align:start;scroll-snap-stop:always;min-width:0;margin:0;display:flex;flex-direction:column}
.p1-ideas #p1-cards .p1-card-main,#p1-cards .p1-card-main{flex:1;min-height:0;padding:22px 22px 14px;overflow:hidden}
.p1-ideas #p1-cards .p1-card-main h2,#p1-cards .p1-card-main h2{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden;overflow-wrap:normal;word-break:normal;hyphens:auto;line-height:1.3;font-size:1.18rem;margin:0}
.p1-ideas #p1-cards .p1-card-main p,#p1-cards .p1-card-main p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden;line-height:1.5;margin:14px 0}
#p1-cards .p1-card-main .tag { overflow-wrap: anywhere; }
.p1-ideas #p1-cards .p1-actions,#p1-cards .p1-actions{margin-top:auto}
@media(max-width:1024px){.p1-ideas #p1-cards,#p1-cards{grid-auto-columns:76%}}
@media(max-width:600px){.p1-ideas .p1-head .btn{min-height:44px;height:44px;padding:8px 12px;font-size:.9rem}.p1-ideas .p1-head h1{width:100%;min-height:0}.p1-ideas #p1-cards,#p1-cards{grid-auto-columns:88%;gap:12px}.p1-carousel-hint{font-size:.8rem}.p1-ideas #p1-cards .p1-card-main,#p1-cards .p1-card-main{padding:18px 16px 12px}}
@media(prefers-reduced-motion:reduce){.p1-ideas #p1-cards,#p1-cards{scroll-behavior:auto}}

/* Ideas: Responsive Tag Picker */
.p1-ideas{width:100%;max-width:1100px;min-width:0}
.p1-ideas .p1-search{min-width:0}
.p1-ideas .p12-filter-details{border:1px solid var(--line);border-radius:16px;background:#fff;padding:12px 14px;margin:12px 0 16px;max-width:100%}
.p12-filter-details>summary{cursor:pointer;font-weight:650;list-style:none;display:flex;align-items:center;gap:8px;min-height:34px}
.p12-filter-details>summary::-webkit-details-marker{display:none}
.p12-filter-details>summary::before{content:'▸';display:inline-block;transition:transform .12s ease;color:var(--teal)}
.p12-filter-details[open]>summary::before{transform:rotate(90deg)}
.p12-filter-details #p11-selected-count{font-size:.84rem;font-weight:500;color:var(--muted)}
.p12-tag-picker{width:100%;min-width:0;margin:10px 0 12px}
.p12-tag-picker .p12-search-label{display:block;margin:8px 0 10px;font-size:inherit;font-weight:400}
.p12-tag-picker .p12-search{display:block;width:100%;min-width:0;border:1px solid var(--line);border-radius:12px;background:#fff;padding:11px 14px;min-height:44px;font:inherit;font-size:16px;color:var(--text)}
.p12-tag-picker .p12-picker-head{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:.86rem;font-weight:650;margin:10px 0 8px}
.p12-tag-picker .p12-counter{color:var(--muted);font-weight:500;white-space:nowrap}
.p12-tag-picker .p12-selected,.p12-tag-picker .p12-options{display:flex;flex-wrap:wrap;align-content:flex-start;align-items:flex-start;gap:8px;min-width:0}
.p12-tag-picker .p12-selected:empty{display:none}
.p12-tag-picker .p12-selected{margin:10px 0}
.p12-tag-picker .p12-options{max-height:170px;overflow:auto;overscroll-behavior:contain;padding:3px 2px 8px;scrollbar-width:thin}
.p12-tag-picker .p12-chip{width:auto!important;min-height:38px;max-width:100%;flex:0 0 auto;display:inline-flex;justify-content:center;align-items:center;gap:6px;padding:7px 13px;margin:0!important;border:1px solid #abb8c8;border-radius:999px;background:#fff;color:var(--text);font:inherit;font-size:.9rem;font-weight:500;line-height:1.25;white-space:normal;overflow-wrap:anywhere;text-align:center;cursor:pointer;touch-action:manipulation}
.p12-tag-picker .p12-chip[aria-pressed="true"],.p12-tag-picker .p12-chip-selected{background:var(--teal-soft);border-color:var(--teal);color:#075d5f}
.p12-tag-picker .p12-chip:disabled{opacity:.4;cursor:not-allowed}
.p12-tag-picker .p12-chip:focus-visible,.p12-filter-details>summary:focus-visible{outline:3px solid #5599dd;outline-offset:2px}
.p12-tag-picker .p12-more{border:0;background:transparent;color:var(--teal);font:inherit;text-decoration:underline;cursor:pointer;padding:8px 2px;margin-top:4px;min-height:38px}
.p12-tag-picker .p12-picker-note{font-size:.78rem;color:var(--muted);margin:4px 0 0}
.p12-tag-picker .p12-picker-note:empty{display:none}
.p12-sr-only{position:absolute!important;width:1px;height:1px;clip:rect(0 0 0 0);white-space:nowrap;overflow:hidden}
.p1-form .p1-compose-tags{margin:16px 0 10px}
.p1-form .p1-compose-tags .btn{margin:0;gap:8px}
.p1-form .p1-compose-tags .tags:empty{display:none}
.p1-editor-actions { display:grid; gap:12px; margin-top:16px; }
#p1-compose-tag-count { flex:none; white-space:nowrap; }
.p1-editor-save-actions { display:flex; gap:8px; flex-wrap:wrap; align-items:stretch; }
.p1-editor-actions .btn { margin:0; min-height:44px; max-width:100%; white-space:normal; overflow-wrap:anywhere; }
.p1-editor-danger { border-top:1px solid var(--line); padding-top:8px; }
.p1-form .p1-editor-danger .p1-delete-idea {
  justify-content:flex-start;
  padding-inline:0;
  color:var(--danger);
  background:transparent;
  border-color:transparent;
}
.p1-editor-danger .p1-delete-idea:hover { text-decoration:underline; }
@media (max-width:460px) {
  .p1-editor-save-actions { display:grid; grid-template-columns:minmax(0,1fr); }
}
.p1-ideas .p11-topic-banner{padding:13px 17px;border-radius:15px;margin-bottom:18px}
.p1-ideas .p11-topic-banner h2{font-size:1.04rem;margin:3px 0 0}
.p1-ideas .p11-topic-banner p{font-size:.77rem;margin-top:3px}
.p1-ideas .p11-topic-banner small{font-size:.66rem}
.p1-ideas .p1-filters{display:block;overflow:visible;padding:0}
@media (max-width:600px){
 .p1-ideas .p11-topic-banner{padding:11px 14px;margin-bottom:14px}
 .p1-ideas .p11-topic-banner p{font-size:.75rem}
 .p1-ideas .p1-head{flex-wrap:wrap}
 .p12-tag-picker .p12-options{max-height:154px}
 .p12-tag-picker .p12-chip{min-height:42px;font-size:.86rem;padding:8px 12px}
}
@media (prefers-reduced-motion:reduce){.p12-filter-details>summary::before{transition:none}}
/* GIC: Tag Facets */
.p32-tag-group{margin:1rem 0;padding:.8rem;border:1px solid var(--border,#dce3e8);border-radius:12px;}
.p32-tag-group h3{font-size:1rem;margin:0 0 .6rem;}
.p32-tag-group h3 small{font-weight:400;opacity:.68;font-size:.75rem;}
.p32-subcategory{margin:.55rem 0;}
.p32-subcategory h4{font-size:.85rem;margin:0 0 .4rem;opacity:.8;}
.p32-tag-chips{display:flex;flex-wrap:wrap;gap:.45rem;}
@media(max-width:600px){.p32-tag-group{padding:.65rem;margin:.7rem 0;}}

/* Ideas: Structured Tag Facets */
.p12-tag-picker .p12-options{max-height:min(55vh,520px);overflow-y:auto;overflow-x:hidden;min-width:0;padding:2px 4px 12px;box-sizing:border-box}
.p321-category{border:1px solid #cfdae5;border-radius:14px;background:#fff;margin:10px 0;overflow:visible;min-width:0}
.p321-category > summary{list-style:none;display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:13px 15px;font-weight:700;cursor:pointer;overflow-wrap:anywhere}
.p321-category > summary::-webkit-details-marker,.p321-subcategory > summary::-webkit-details-marker{display:none}
.p321-category > summary:before,.p321-subcategory > summary:before{content:'▸';color:#087b7a;display:inline-block;transition:transform .15s;flex:0 0 auto}
.p321-category[open] > summary:before,.p321-subcategory[open] > summary:before{transform:rotate(90deg)}
.p321-cat-name{flex:1 1 145px;min-width:0}
.p321-category > summary small,.p321-cat-count{font-size:.76rem;font-weight:500;color:#536276;white-space:nowrap}
.p321-category-content{padding:0 12px 12px;display:grid;gap:9px;min-width:0}
.p321-subcategory{border:1px solid #dbe7e8;border-radius:11px;background:#f2f8f8;min-width:0}
.p321-subcategory > summary{list-style:none;display:flex;align-items:center;gap:9px;padding:11px 13px;cursor:pointer;font-weight:600;font-size:.9rem;overflow-wrap:anywhere}
.p321-subcategory > summary span{flex:1;min-width:0}
.p321-subcategory > summary small{font-size:.75rem;font-weight:400;color:#536276}
.p321-tag-chips{display:flex;flex-wrap:wrap;gap:8px;padding:0 12px 13px;min-width:0;align-items:flex-start}
.p321-tag-chips .p12-chip{max-width:100%;height:auto;white-space:normal;overflow-wrap:anywhere;text-align:left;line-height:1.35}
.p321-category summary:focus-visible,.p321-subcategory summary:focus-visible{outline:3px solid #087b7a;outline-offset:2px;border-radius:8px}
@media(max-width:600px){.p12-tag-picker .p12-options{max-height:min(55vh,480px)}.p321-category > summary{padding:12px}.p321-category-content{padding:0 8px 8px}.p321-subcategory > summary{padding:10px}.p321-tag-chips{gap:7px;padding:0 9px 10px}}

/* Ideas: Responsive Category Grid */
.p12-tag-picker .p12-options:has(> .p321-category){
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));
  gap:12px;
  align-items:stretch;
  align-content:start;
}
.p12-tag-picker .p12-options > .p321-category,
.p12-tag-picker .p12-options > .p321-category:nth-child(n){
  grid-column:auto;
  margin:0;
  min-width:0;
  align-self:stretch;
  border-radius:15px;
  overflow:hidden;
}
.p12-tag-picker .p12-options > .p321-category[open]{
  grid-column:1/-1;
}
.p12-tag-picker .p12-options > .p321-category > summary{
  display:grid;
  grid-template-columns:16px minmax(0,1fr) auto;
  grid-template-rows:auto auto;
  column-gap:10px;
  row-gap:8px;
  align-content:center;
  align-items:start;
  min-height:112px;
  padding:17px 18px;
  box-sizing:border-box;
}
.p12-tag-picker .p321-category > summary:before{
  grid-column:1;
  grid-row:1;
  align-self:center;
}
.p12-tag-picker .p321-category > summary .p321-cat-name{
  grid-column:2;
  grid-row:1;
  min-width:0;
  overflow-wrap:normal;
  word-break:normal;
  hyphens:none;
  font-weight:700;
  line-height:1.35;
}
.p12-tag-picker .p321-category > summary .p321-cat-count{
  grid-column:2;
  grid-row:2;
  font-size:.82rem;
  white-space:nowrap;
}
.p12-tag-picker .p321-category > summary small:not(.p321-cat-count){
  grid-column:3;
  grid-row:1;
  white-space:nowrap;
  font-size:.75rem;
}
.p12-tag-picker .p321-category[open] > summary{
  min-height:86px;
}
@media(max-width:560px){
  .p12-tag-picker .p12-options > .p321-category > summary{
    min-height:90px;
    padding:13px 14px;
  }
}

/* Projects: Rooms & Dialogs */
.p2-container{max-width:900px;margin:0 auto;padding:1.1rem .5rem 5rem}.p2-container h1{margin:1.1rem 0}
.p2-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:1rem;margin-top:1rem}
.p2-card{padding:1rem;min-width:0}.p2-card h2{font-size:1.15rem;overflow-wrap:anywhere}.p2-card p{overflow-wrap:anywhere}
.p2-section{border:1px solid var(--border,#ddd);border-radius:12px;margin:1rem 0;padding:.8rem}
.p2-section>summary{cursor:pointer;font-weight:600}.p2-item,.p2-person{display:flex;justify-content:space-between;align-items:center;gap:.8rem;border-bottom:1px solid #ddd;padding:.75rem 0}
.p2-item span,.p2-person>div{min-width:0;overflow-wrap:anywhere}.p2-person p{margin:.15rem 0;color:var(--muted,#666);font-size:.85rem}
.p2-actions{display:flex;flex-wrap:wrap;gap:.6rem;margin:1rem 0}.p2-alt{background:transparent!important;color:inherit!important;border:1px solid currentColor!important}
.p2-overlay{position:fixed;inset:0;z-index:1200;background:#0009;display:grid;place-items:center;padding:1rem}
.p2-dialog{background:var(--surface,#fff);color:var(--text,#171717);padding:1.3rem;max-width:540px;width:100%;max-height:85dvh;overflow:auto;border-radius:15px}
.p2-dialog-head{display:flex;justify-content:space-between;align-items:center}.p2-dialog-head button{border:0;background:transparent;font-size:1.5rem;cursor:pointer}
.p2-dialog input{width:100%;padding:.7rem;margin:.5rem 0;border:1px solid #aaa;border-radius:9px}
.p2-messages{border:1px solid var(--line);border-radius:12px;padding:.8rem;max-height:50vh;overflow:auto}
.p2-messages .hpa-dm-bubble{flex-shrink:0;min-width:0}
.p2-message-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px}
#p2-send textarea{width:100%;padding:.6rem;border-radius:10px;margin:.8rem 0}.p2-link{display:inline-flex;align-items:center}
@media(max-width:600px){.p2-item,.p2-person{align-items:flex-start}.p2-dialog{padding:.85rem}.p2-container{padding:.75rem .4rem 5rem}}


/* Ideas: Recommendations & Like Threshold */
.p2-threshold-info{margin:12px 0;padding:12px 14px;line-height:1.5}
.p1-recommendation-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
.p1-recommendation-head h2{margin:0;font-size:1.1rem}
.p1-recommendation-head label{display:inline-flex;align-items:center;gap:8px}
.p1-recommendation-head input[type=checkbox]{width:18px;height:18px;margin:0}
.p1-recommendation{display:flex;flex-wrap:wrap;gap:8px;align-items:baseline;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--line,#dce3e8);text-decoration:none}
.p1-recommendation small{color:var(--muted,#546978)}
/* Project Rooms: Search, Subrooms & Member Selection */
.p2-search-label,#p2-subroom-search{display:block;width:100%;max-width:100%;box-sizing:border-box;margin:12px 0}
.p2-search-label input,#p2-subroom-search{width:100%;box-sizing:border-box}
.p2-room-tabs [data-do].p2-active{background:var(--teal,#087b7a);color:white;border-color:var(--teal,#087b7a);font-weight:700}
.p2-person{display:flex;align-items:center;gap:8px;min-width:0;margin-bottom:8px}
.p2-person input[type=checkbox]{flex:none;width:18px;height:18px;margin:0}
#p2-subroom-people .p2-person{justify-content:flex-start;gap:10px;align-items:center;cursor:pointer}
#p2-subroom-people{max-height:220px;overflow-y:auto;margin:12px 0}
/* Project Rooms: Navigation, Mentions & Participant Selection */
.p2-room-navigation{margin:1.25rem 0}.p2-room-navigation h2{font-size:1.1rem;margin:0 0 .4rem}
.p2-room-tabs{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,215px),1fr));gap:.65rem;margin:.85rem 0}
.p2-room-tabs .p2-room-choice{display:flex;text-align:left;align-items:center;gap:.8rem;min-width:0;width:100%;padding:.9rem;border:1px solid var(--border,#dce3e8);border-radius:12px;background:var(--surface,#fff);color:var(--text,#172033);cursor:pointer}
.p2-room-choice span:nth-child(2){display:grid;gap:.2rem;min-width:0}.p2-room-choice strong{overflow-wrap:anywhere}
.p2-room-choice small{font-size:.8rem;color:var(--muted,#536175)}.p2-room-choice-icon{font-size:1.15rem}
.p2-room-tabs .p2-room-choice.p2-active{background:var(--teal,#087b7a);border-color:var(--teal,#087b7a);color:#fff}
.p2-room-choice.p2-active small{color:#fff}.p2-room-choice:focus-visible{outline:3px solid var(--teal,#087b7a);outline-offset:2px}
.p2-member-select{border:1px solid var(--border,#dce3e8);border-radius:12px;padding:.75rem;margin:.8rem 0}
.p2-member-select legend{font-weight:700;padding:0 .3rem}.p2-select-all{display:flex;align-items:center;gap:.7rem;padding:.6rem;border-bottom:1px solid var(--border,#dce3e8)}
.p2-member-select input[type=checkbox]{width:19px;height:19px;accent-color:var(--teal,#087b7a)}
.p2-compose{position:relative}.p2-mention-options{position:absolute;left:0;right:0;bottom:100%;z-index:3;max-height:220px;overflow-y:auto;background:var(--surface,#fff);border:1px solid var(--border,#dce3e8);border-radius:10px;box-shadow:0 6px 18px #0002}
.p2-mention-options[hidden]{display:none}.p2-mention-option{display:block;width:100%;padding:.6rem .75rem;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}
.p2-mention-option:hover,.p2-mention-option:focus-visible{background:var(--border,#ecf2f4)}
@media(max-width:600px){.p2-room-tabs{grid-template-columns:1fr}}
/* Project Rooms: Connected Discussion Panel & Actions */
.p2-room-actions{display:flex;align-items:center;flex-wrap:nowrap;gap:.65rem;max-width:100%;overflow-x:auto;padding:.15rem 0 .35rem;scrollbar-width:thin}
.p2-room-actions .p2-action-help{display:flex;align-items:center;flex:none;margin:0}
.p2-room-actions .btn,.p2-room-actions .p2-action-help button{display:inline-flex;align-items:center;justify-content:center;flex:none;min-height:44px;height:44px;box-sizing:border-box;margin:0;padding:0 14px;line-height:1.2;white-space:nowrap;font-size:.9rem}
.p2-room-navigation{margin-bottom:0}
.p2-room-filter{margin:.85rem 0 .45rem;font-size:.9rem}
.p2-room-filter summary{cursor:pointer;color:var(--teal,#087b7a);font-weight:600}
.p2-room-filter label{display:block;margin:.5rem 0 0}
.p2-room-navigation .p2-room-tabs{margin-bottom:0;gap:.6rem}
.p2-room-navigation .p2-room-choice{min-height:72px;box-sizing:border-box}
.p2-discussion-panel{border:2px solid var(--teal,#087b7a);border-radius:14px;padding:1rem;background:var(--surface,#fff);margin-top:.45rem;min-width:0}
.p2-discussion-header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: .8rem; }
.p2-discussion-header > div { flex: 2 1 23rem; min-width: 0; }
.p2-discussion-header > input { flex: 1 1 17rem; min-width: 0; margin: 0; }
.p2-discussion-header h3{margin:.1rem 0 .25rem;overflow-wrap:break-word}
.p2-discussion-header p{margin:0}
.p2-discussion-panel .p2-messages{max-height:min(50vh,460px)}
@media(max-width:600px){.p2-room-actions .btn,.p2-room-actions .p2-action-help button{font-size:.85rem;padding:0 12px}.p2-discussion-panel{padding:.75rem}.p2-room-navigation .p2-room-choice{min-height:60px}}

/* Approved GIC project-room detail design (2026-11-16) */
.p2-exact-detail{max-width:1050px;margin:0 auto}
.p2-exact-back{display:inline-flex;align-items:center;margin:0 0 12px;color:var(--muted,#5d6779);font-size:.83rem;text-decoration:none}
.p2-exact-back:hover{text-decoration:underline}
.p2-exact-hero{background:linear-gradient(120deg,#193653,#197d7a);color:#fff;border-radius:16px;padding:20px;display:grid;gap:9px;margin-bottom:14px}
.p2-exact-hero h1{color:#fff;font-size:clamp(1.3rem,2.5vw,1.65rem);margin:0;overflow-wrap:anywhere}
.p2-exact-hero p{margin:0;font-size:.9rem;color:#fff;line-height:1.5}
.p2-exact-eyebrow{display:flex;gap:9px;align-items:center;font-size:.7rem;letter-spacing:.07em;font-weight:700;color:#dceeee}
.p2-exact-meta{font-size:.83rem;color:#dcf2f0}
.p2-exact-toolbar{position:relative;display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin:14px 0 8px}
.p2-exact-toolbar .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;min-height:44px;height:44px;margin:0;padding:0 14px;font-size:.9rem;line-height:1.2;white-space:nowrap;border-radius:10px}
.p2-exact-toolbar .p2-exact-secondary{color:var(--text,#172333);background:var(--card,#fff);border:1px solid var(--line,#dae2ec)}
.p2-exact-toolbar .p2-exact-primary{background:var(--teal,#0b7676);color:#fff;border:1px solid var(--teal,#0b7676)}
.p2-exact-icon{display:inline-block;flex:none;vertical-align:middle}
.p2-exact-member-anchor{position:relative;display:inline-flex;flex:0 0 auto;min-width:0}
.p2-exact-chevron{width:16px;height:16px;flex:none;display:block;margin-left:1px;transition:transform .15s ease}
.p2-exact-member-anchor [aria-expanded="true"] .p2-exact-chevron{transform:rotate(180deg)}
.p2-exact-toolbar .btn[disabled]{opacity:.55;cursor:not-allowed}
.p2-room-permissions { margin:0 0 12px; font-size:.85rem; }
.p2-exact-more summary { cursor:pointer; list-style:none; }
.p2-exact-more summary::-webkit-details-marker { display:none; }
.p2-exact-more[open] summary span { transform:rotate(180deg); }
.p2-exact-action-list {
  position:absolute;
  z-index:12;
  inset-block-start:calc(100% + 8px);
  inset-inline-start:0;
  display:grid;
  width:min(280px,100%);
  padding:6px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--card);
  box-shadow:0 8px 24px #14263d18;
}
.p2-exact-action-list button {
  display:flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:8px 10px;
  border:0;
  border-radius:var(--radius);
  background:transparent;
  color:var(--text);
  font:inherit;
  font-size:.875rem;
  text-align:start;
  cursor:pointer;
}
.p2-exact-action-list button:is(:hover,:focus-visible) { background:var(--bg); }
.p2-exact-members{position:absolute;top:calc(100% + 8px);left:0;z-index:12;width:300px;max-width:calc(100vw - 32px);margin:0;background:var(--card,#fff);border:1px solid var(--line,#dce2e8);border-radius:12px;padding:13px;box-sizing:border-box;box-shadow:0 8px 24px #14263d18}
.p2-exact-members[hidden]{display:none}
.p2-exact-members h2{font-size:1rem;margin:0 0 8px}
.p2-exact-member-list{max-height:240px;overflow-y:auto;display:grid;gap:4px}
.p2-exact-member{display:flex;align-items:center;gap:9px;padding:7px;border-radius:8px;color:var(--text,#172333);text-decoration:none;font-size:.86rem;min-width:0}
.p2-exact-member:hover,.p2-exact-member:focus-visible{background:var(--bg,#f4f6f9)}
.p2-exact-member span:nth-child(2){flex:1;overflow-wrap:anywhere}
.p2-exact-member small{color:var(--muted,#5d6779)}
.p2-exact-avatar{width:30px;height:30px;border-radius:100%;display:flex;align-items:center;justify-content:center;flex:none;background:#e2f2f0;color:#087b7a;font-weight:700}
.p2-exact-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:4px;gap:4px;background:#e7ecf2;border-radius:12px;margin:16px 0}
.p2-exact-switch-button{min-height:44px;padding:8px;border:0;border-radius:9px;background:transparent;color:#506074;font:inherit;font-size:.9rem;font-weight:650;cursor:pointer}
.p2-exact-switch-button[aria-pressed="true"]{background:#fff;color:#18263d;box-shadow:0 1px 4px #0002}
.p2-exact-switch-button:focus-visible,.p2-exact-subroom:focus-visible{outline:3px solid #0d7f7a;outline-offset:2px}
.p2-exact-subrooms{margin:0 0 12px}
.p2-exact-subrooms[hidden]{display:none}
.p2-exact-subrooms h2{font-size:1rem;margin:0 0 3px}
.p2-exact-subrooms>p{font-size:.85rem;margin:0 0 13px}
.p2-subrooms-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 16px; margin-bottom:12px; }
.p2-subrooms-heading > div { flex:1 1 240px; }
.p2-subrooms-heading p { font-size:.85rem; margin:0; }
.p2-subrooms-heading .btn { gap:8px; text-align:start; }
.p2-exact-subroom-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.p2-exact-subroom{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;text-align:left;gap:9px;padding:12px;border:1px solid var(--line);background:var(--card);border-radius:12px;min-height:56px;min-width:0;color:var(--text);font:inherit;cursor:pointer}
.p2-exact-subroom strong{font-size:.9rem;overflow-wrap:anywhere}
.p2-exact-subroom[aria-pressed="true"]{border-color:var(--teal);background:var(--teal-soft)}
.p2-subroom-status{padding:2px 6px;border-radius:4px;background:var(--teal);color:#fff;font-size:.75rem;font-weight:650}
.p1-page-status{display:flex;align-items:center;justify-content:center;gap:12px;margin:12px 0;color:#8a2d1f}
.p1-page-status.hidden{display:none}
.p32-event-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;max-width:760px}
.p32-event-form label{display:grid;gap:6px;font-weight:650}
.p32-event-form :is(input,select,textarea){width:100%;padding:11px 12px;border:1px solid var(--line);border-radius:8px;font:inherit;background:#fff}
.p32-event-wide{grid-column:1/-1}
.p32-event-actions{display:flex;align-items:center;gap:14px}.p32-event-actions p{margin:0}
@media(max-width:620px){.p32-event-form{grid-template-columns:1fr}.p32-event-wide{grid-column:auto}.p32-event-actions{align-items:stretch;flex-direction:column}}
.p2-exact-subroom[aria-pressed="false"] .p2-subroom-status{display:none}
.p2-exact-discussion{border:2px solid #0d7f7a;border-radius:14px;padding:15px;background:var(--card,#fff);min-width:0;margin:0}
.p2-exact-discussion .p2-discussion-header h3{margin:0 0 5px}
.p2-discussion-header .p2-discussion-scope{margin:0 0 4px;color:var(--muted);font-size:.8rem;font-weight:650}
.p2-exact-mention-hint{font-size:.82rem;margin:7px 0 12px;line-height:1.4}
.p2-exact-footer{display:flex;align-items:center;flex-wrap:wrap;gap:18px;padding:16px 3px 8px}
.p2-exact-footer .p2-exact-moderation .btn{border:0;background:none;color:var(--muted,#5d6779);padding:0;margin:0;min-height:0;font-size:.85rem;box-shadow:none;text-decoration:none}
.p2-exact-leave{font:inherit;font-size:.85rem;border:0;background:none;padding:0;color:var(--muted,#5d6779);cursor:pointer}
.p2-exact-leave:hover,.p2-exact-footer .p2-exact-moderation .btn:hover{text-decoration:underline}

/* Moderation statistics */
.p32-statistics{margin:20px 0 26px;padding:18px;border:1px solid var(--line);border-radius:14px;background:var(--card)}
.p32-statistics-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:14px}
.p32-statistics-head h2,.p32-statistics-head p{margin:0}
.p32-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.p32-kpi{display:flex;min-height:132px;flex-direction:column;padding:15px;border-radius:12px;background:var(--teal-soft);border:1px solid var(--line)}
.p32-kpi>span{font-size:.82rem;font-weight:700}
.p32-kpi>strong{font-size:2rem;line-height:1.1;margin:10px 0 6px;font-variant-numeric:tabular-nums}
.p32-kpi>small{margin-top:auto;color:var(--muted);line-height:1.3}
.p32-activity{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 16px}
.p32-activity span{padding:7px 10px;border:1px solid var(--line);border-radius:999px;background:#fff;font-size:.82rem}
.p32-charts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.p32-charts section{margin:0;min-width:0}
.p32-charts h3{margin:0 0 10px}
.p32-bar-row{display:grid;grid-template-columns:minmax(90px,1fr) minmax(80px,2fr) 2.2rem;align-items:center;gap:8px;margin:7px 0;font-size:.8rem}
.p32-bar-row>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.p32-bar-row>strong{text-align:right;font-variant-numeric:tabular-nums}
.p32-bar-track{display:block;width:100%;height:9px;overflow:hidden;border:0;border-radius:999px;background:var(--line);appearance:none;-webkit-appearance:none}
.p32-bar-track::-webkit-progress-bar{border-radius:999px;background:var(--line)}
.p32-bar-track::-webkit-progress-value{border-radius:999px;background:var(--teal)}
.p32-bar-track::-moz-progress-bar{border-radius:999px;background:var(--teal)}
@media(max-width:760px){.p32-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.p32-statistics{padding:14px}.p32-statistics-head{display:block}.p32-statistics-head p{margin-top:4px}.p32-kpis,.p32-charts{grid-template-columns:1fr}.p32-kpi{min-height:112px}.p32-bar-row{grid-template-columns:minmax(86px,1fr) minmax(72px,1.5fr) 2rem}}
.p2-exact-members-only{padding:18px 2px}
@media(max-width:600px){
 .p2-exact-hero{padding:16px}.p2-exact-toolbar{gap:8px}.p2-exact-toolbar .btn{font-size:.84rem;padding:0 11px}
 .p2-exact-members{width:min(300px,calc(100vw - 32px))}.p2-exact-subroom-grid{grid-template-columns:1fr}
 .p2-exact-discussion{padding:12px}.p2-exact-switch-button{font-size:.85rem}
}

/* Home & Direct Messages */
.hpa-home { max-width: 780px; margin: 0 auto; }
.hpa-home-lead { margin: 18px 0; }
.hpa-home-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.hpa-home-moderation { grid-column: 1 / -1; }
.hpa-home-link { text-decoration:none; color:inherit; display:flex; align-items:center; gap:12px; min-height:86px; }
.hpa-dm-link { display:block; flex:1; min-width:0; text-decoration:none; color:inherit; }
.hpa-dm-row { display:flex; align-items:center; gap:12px; margin-bottom:10px; }
.hpa-dm-archive { flex:0 0 38px; width:38px; height:38px; border-radius:50%; border:1px solid var(--border,#dce3e8); background:white; color:var(--text,#172338); cursor:pointer; font-size:1.3rem; }
.hpa-dm-archive:focus-visible { outline:3px solid var(--teal,#0a7b79); outline-offset:2px; }
.hpa-dm-hidden { margin-top:24px; }
.hpa-dm-hidden h2 { margin-bottom:10px; color:var(--muted); }
.hpa-dm-row.hpa-dm-row-hidden { background:var(--bg); color:var(--muted); }
.hpa-dm-row-hidden .hpa-dm-link b { overflow-wrap:anywhere; }
.hpa-dm-restore { min-height:44px; flex-shrink:0; }
.hpa-dm-return-links { display:flex; gap:16px; flex-wrap:wrap; margin-bottom:12px; }
.hpa-dm-link p { margin:6px 0 0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
:is(.hpa-dm-chat,.p2-messages) { display:flex; flex-direction:column; gap:10px; }
.hpa-dm-chat { min-height:180px; margin:20px 0; }
.hpa-dm-bubble { max-width:85%; align-self:flex-start; padding:10px 14px; border-radius:14px; background:#edf2f6; overflow-wrap:anywhere; }
.hpa-dm-bubble.mine { align-self:flex-end; background:#d9f2ed; }
.hpa-dm-bubble p { margin:0 0 4px; white-space:pre-wrap; }
.hpa-dm-bubble small { opacity:.7; }
.hpa-dm-compose { display:flex; flex-direction:column; gap:8px; }
.hpa-dm-head a { color:inherit; text-decoration:none; }
@media(max-width:480px){ .hpa-home-grid{gap:8px;} .hpa-home-link{padding:12px; min-height:76px;} }

.p25{max-width:820px;margin:auto;padding:16px 20px 80px}.p25 h2{margin-top:26px}.p25 details{padding:14px;margin:12px 0;border:1px solid #dce3ed;border-radius:14px}.p25 form{display:grid;gap:10px;margin-top:12px}.p25 input,.p25 textarea,.p25 select{width:100%;box-sizing:border-box;border-radius:10px;border:1px solid #bdc9d6;padding:12px;font:inherit}.p25-chat{max-height:55vh;overflow-y:auto}.p25-message{padding:12px;margin:12px 0;background:#f3f6fa;border-radius:12px;overflow-wrap:anywhere}.p25-help{margin:12px 0}.p25-move{margin:10px 0;padding:12px}.p25 button{max-width:max-content}

.p25-list{max-height:360px;overflow:auto;border:1px solid #dce3ed;border-radius:12px}.p25-line{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;border-bottom:1px solid #e5eaf0;padding:10px;overflow-wrap:anywhere;font-size:.9rem}.p25-line:last-child{border:0}.p25-line>span{max-width:100%}
/* Moderation: navigation, queues and tools */
.p26 { max-width: 1050px; padding: 0; }
.p26-header { margin: 0 0 18px; }
.p26-header p { max-width: 64ch; margin-top: 6px; }
.p26-tiles { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; margin: 0 0 24px; }
.p26-tile {
  display: flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); color: var(--text); text-align: center; font-weight: 650;
  font-size: .9rem; line-height: 1.2; text-decoration: none; overflow-wrap: anywhere;
}
.p26-tile:hover, .p26-tile.p26-active { border-color: var(--teal); background: var(--teal-soft); }
.p26-workspace { border-top: 1px solid var(--line); padding-top: 16px; margin: 0; }
.p26-workspace h2 { margin: 0 0 12px; }
.p26-project-filter { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 14px; }
.p26-project-filter:empty { display: none; }
.p26 .p26-toolbar { display: flex; flex-wrap: wrap; align-items: end; margin: 0 0 12px; }
.p26-toolbar label { flex: 1 1 145px; min-width: 0; }
.p26-toolbar .p26-search-field { flex: 2 1 215px; }
.p26-toolbar label:only-child { flex: 0 1 240px; }
.p26 :is(.p26-toolbar,.p26-tool) label, .p26 .p30-global-users label { display: grid; gap: 4px; font-weight: 600; font-size: .9rem; }
.p26 :is(.p26-toolbar,.p26-tool) :is(input,select,textarea), .p26 .p30-global-users input { margin: 0; min-height: 44px; }
.p26-toolbar > button { margin: 0; min-height: 44px; }
.p26-result-count { margin-bottom: 10px; }
.p26 [data-p26-feedback]:empty, .p26 [data-tool-result]:empty, #p26-thread-form [data-tool-result]:empty, .p26 .p30-person-selected:empty,
.p26 :is(.p30-person-results,.p30-global-results):empty, .p26-dialog-error:empty { display: none; }
.p26-list { display: grid; gap: 10px; }
.p26-item {
  display: grid; gap: 6px; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); padding: 14px 16px; color: inherit; text-decoration: none; overflow-wrap: anywhere;
}
.p26-item small { color: var(--muted); }
.p26-item p { margin: 0; white-space: pre-wrap; }
.p26-item blockquote { margin: 3px 0; padding: 8px 12px; border-inline-start: 2px solid var(--line); background: var(--bg); white-space: pre-wrap; }
.p26-item-top { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; }
.p26-status { border-radius: 999px; border: 1px solid var(--line); padding: 2px 8px; background: var(--bg); color: var(--text); font-size: .8rem; }
.p26-status[data-status="open"], .p26-status[data-status="pending"] { background: #fff1a8; }
.p26-status[data-status="resolved"], .p26-status[data-status="accepted"] { background: var(--teal-soft); }
.p26-open-link { color: var(--teal); font-weight: 600; }
a.p26-item:hover { border-color: var(--teal); }
.p26-item-actions, .p26-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.p26-item-actions:empty { display: none; }
.p26-item-actions > .btn { margin: 0; }
.p26-empty { padding: 12px 0; color: var(--muted); }
.p26-pages { justify-content: space-between; margin-top: 6px; }
.p26 :is(.p26-tile,.p26-item,.p30-person-option):focus-visible, .hpa-admin-person:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.p29-tools-section .p26-tools { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.p26-tool, .p26 .p30-global-users { min-width: 0; margin: 0; }
.p26 .p30-global-users { margin-bottom: 14px; }
.p26-tool h3 { margin: 0 0 6px; }
.p26-tool button[type="submit"] { margin: 0; }
.hpa-admin-person { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.p26-dialog {
  background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; width: min(520px,calc(100% - 24px)); max-height: 90dvh; overflow: auto;
}
.p26-dialog::backdrop { background: rgb(0 0 0 / .5); }
.p26-dialog form { display: grid; gap: 8px; margin-top: 10px; }
.p26-dialog :is(select,textarea) { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; }
.p26-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
@media(min-width:860px) { .p26-tiles { grid-template-columns: repeat(6, minmax(0,1fr)); } }
@media(max-width:700px) { .p29-tools-section .p26-tools { grid-template-columns: 1fr; } }
@media(max-width:460px) {
  .p26-tiles { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .p26-toolbar .p26-search-field { flex-basis: 100%; }
}

/* Administration: Moderators & Search */
.p31-admin-search{margin:1rem 0;padding:1rem}.p31-admin-search input{width:100%;max-width:36rem}
.p31-admin-search #p31-admin-selection a{display:inline-block;margin-top:.6rem}
.p31-moderator-roster{border-top:1px solid #d5e0ea;margin-top:1rem;padding-top:.8rem}
.p31-roster-row{display:flex;align-items:center;flex-wrap:wrap;gap:.65rem;padding:.65rem 0;border-bottom:1px solid #e0e7ef}
.p31-roster-row a{flex:1;min-width:8rem}.p31-roster-row small{color:#657080}
.p31-role-status{color:#087d78;font-size:.85rem}
@media(max-width:600px){.p31-roster-row{gap:.5rem}.p31-roster-row .btn{margin-left:auto}}
.p26-tools > .p31-moderator-roster{grid-column:1/-1}

/* Profiles: Avatar Images */
.avatar {
  position: relative;
  overflow: hidden;
}

.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* People: Search & Picker */
.p30-global-users{border:1px solid #d4dfec;background:var(--card,#fff);border-radius:14px;padding:1rem;margin:1rem 0 1.25rem}
.p30-global-users h2{margin:0 0 .25rem;font-size:1.15rem}.p30-global-users p{font-size:.85rem;margin:0 0 .75rem;color:#536276}
.p30-global-users input,.p30-person-query{width:100%;min-width:0;box-sizing:border-box}
.p30-person-picker{position:relative;min-width:0;width:100%}
.p30-picker-label{display:block;font-weight:600;font-size:.9rem;margin-bottom:.35rem}
.p30-person-results,.p30-global-results{display:flex;flex-direction:column;gap:.25rem;max-height:240px;overflow-y:auto;margin-top:.5rem}
.p30-person-option{display:flex;justify-content:space-between;align-items:center;gap:1rem;width:100%;text-align:left;border:1px solid #d6e1eb;background:#fff;color:#13243e;border-radius:9px;padding:.65rem .8rem;cursor:pointer;font:inherit}
.p30-person-option:hover,.p30-person-option:focus-visible{border-color:#007a78;background:#eaf5f4}
.p30-person-option small{color:#637080;white-space:nowrap}
.p30-person-selected,.p30-profile-link{font-size:.9rem;color:#007b78;margin-top:.4rem;display:block}
.p30-empty{padding:.65rem;color:#536276}
@media(max-width:600px){.p30-global-users{padding:.8rem}.p30-person-option{padding:.8rem}}
/* Profiles: Organisation and Country Pickers */
.profile-org-type{min-width:0}
.profile-select{display:block;position:relative}
.profile-select select,.country-picker-search{
  appearance:none;
  -webkit-appearance:none;
  min-width:0;
  line-height:1.25;
}
.profile-select select{padding-inline-end:36px}
.profile-select::after{
  content:"";
  position:absolute;
  top:50%;
  inset-inline-end:15px;
  width:8px;
  height:8px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:translateY(-75%) rotate(45deg);
  pointer-events:none;
}
.profile-select select:has(option[value=""]:checked),.country-picker-search::placeholder{color:var(--muted);opacity:1}
.country-picker{position:relative;min-width:0}
.country-picker label{display:block}
.country-picker-options{position:absolute;top:100%;left:0;right:0;z-index:30;max-height:240px;overflow-y:auto;background:var(--card);border:1px solid var(--line);border-radius:10px;box-shadow:0 10px 26px rgba(20,40,75,.12);padding:4px}
.country-picker-option{display:block;width:100%;border:0;border-radius:6px;background:transparent;color:var(--text);text-align:left;font:inherit;padding:9px 12px;cursor:pointer;overflow-wrap:anywhere}
.country-picker-option:hover,.country-picker-option.country-picker-active{background:var(--teal-soft)}
.country-picker-option:focus-visible{outline:2px solid var(--teal);outline-offset:-2px}
.country-picker-empty{padding:10px;color:var(--muted)}

/* Profiles: GIC Tag Picker */
.p33-profile-editor{margin:1rem 0;min-width:0}
.p33-profile-editor h2,.p33-profile-tags h2{font-size:1.05rem;margin:.35rem 0 .75rem}
.p33-profile-tags{padding-top:.9rem;margin-top:1rem;border-top:1px solid #dbe7e8}
.p33-picker-heading input{display:block;width:100%;max-width:34rem;margin:.5rem 0}
.p33-picker-count{font-weight:600;font-size:.87rem;color:#087b7a;margin:.6rem 0}
.p33-tag-groups{max-height:min(55vh,520px);overflow-y:auto;overflow-x:hidden;padding:2px;min-width:0}
.p33-tag-choices{display:flex;flex-wrap:wrap;gap:8px;padding:0 12px 13px}
.p33-tag-choice{display:inline-flex;align-items:center;gap:7px;max-width:100%;padding:7px 10px;border:1px solid #b6cbd1;border-radius:100px;background:white;cursor:pointer;overflow-wrap:anywhere}
.p33-tag-choice:has(input:checked){background:#dbf1ef;border-color:#087b7a;color:#075e60}
.p33-tag-choice:has(input:disabled){opacity:.58;cursor:default}
.p33-tag-choice input{accent-color:#087b7a;flex:none}
.p33-tag-choice span{min-width:0}
.p33-tag-choice:focus-within{outline:2px solid #087b7a;outline-offset:2px}
@media(max-width:600px){.p33-tag-choices{padding:0 8px 10px}.p33-tag-choice{padding:6px 9px}}

.profile-photo-trigger {
  border: none;
  background: none;
  padding: 0;
  cursor: zoom-in;
}

.profile-photo-dialog {
  border: none;
  border-radius: 12px;
  padding: 12px;
  max-width: 90vw;
}

.profile-photo-dialog::backdrop {
  background: rgba(0, 0, 0, 0.8);
}

.profile-photo-dialog img {
  display: block;
  max-width: 85vw;
  max-height: 80vh;
  object-fit: contain;
}

.profile-photo-dialog button {
  display: block;
  margin-left: auto;
  margin-bottom: 8px;
  cursor: pointer;
}

/* Moderation & Notifications: Responsive Actions */
.p26-item-actions,.p26-actions,.hpa-report-actions,.p2-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.p26-item-actions .btn,.p2-actions .btn,.hpa-report-actions .btn{margin:0;min-height:40px}
.hpa-notifications-page,.hpa-bell-item,.hpa-bell-item a{min-width:0;max-width:100%;box-sizing:border-box}
.hpa-bell-item{padding-inline:14px;overflow-wrap:anywhere}
#hpa-bell-panel{max-width:min(92vw,420px);box-sizing:border-box}
@media(max-width:600px){
 #hpa-bell-panel{position:fixed;left:12px;right:12px;width:auto;max-width:none;max-height:65vh}
 .hpa-notifications-page{padding-inline:12px}
 .hpa-bell-item a{padding-inline:2px}
 .p33-tag-choice,.p12-chip{align-items:center;gap:9px;min-width:0}
 .p33-tag-choice input[type="checkbox"]{flex:0 0 18px;width:18px;height:18px;margin:0;align-self:center}
 .p321-tag-chips,.p33-tag-choices{min-width:0;max-width:100%}
 .p321-tag-chips>*{min-width:0;max-width:100%;overflow-wrap:anywhere}
}

/* Notifications & Reporting */
.hpa-bell{position:relative;z-index:30}.hpa-bell[hidden],#hpa-bell-panel[hidden],#hpa-bell-count[hidden]{display:none!important}
#hpa-bell-trigger{position:relative;border:0;background:transparent;color:inherit;font-size:1.55rem;padding:.3rem .75rem;cursor:pointer}
#hpa-bell-trigger::first-letter{font-size:1.7rem}#hpa-bell-count{position:absolute;top:-.15rem;right:.05rem;background:#ec4865;color:white;border-radius:100px;font-size:.72rem;min-width:1.3rem;padding:2px 4px}
#hpa-bell-panel{position:absolute;top:calc(100% + 10px);right:-90px;width:min(92vw,380px);max-height:min(72vh,550px);overflow:auto;background:white;color:#172338;border:1px solid #dde4eb;box-shadow:0 10px 28px #0002;border-radius:14px}
.hpa-bell-title{display:flex;justify-content:space-between;align-items:center;padding:15px;border-bottom:1px solid #dde4eb}.hpa-bell-title button{border:0;background:transparent;font-size:1.4rem;cursor:pointer}
.hpa-bell-item{display:flex;align-items:center;justify-content:space-between;padding:11px 15px;border-bottom:1px solid #e8edf2}.hpa-bell-item a{display:block;flex:1;color:inherit;text-decoration:none}.hpa-bell-item small{display:block;color:#65758a;margin-top:4px}.hpa-bell-item button{cursor:pointer;border:0;background:#eef4f5;border-radius:7px;padding:8px}.hpa-bell-unread{background:#f1fafa}.hpa-bell-footer{display:block;padding:14px;text-align:center}
.hpa-report-action{border:0;background:transparent;color:#516477;font:inherit;font-size:.83em;cursor:pointer;padding:5px 7px;white-space:nowrap}.hpa-report-action:hover{text-decoration:underline}.hpa-report-shade{position:fixed;inset:0;z-index:200;background:#0008;display:flex;align-items:center;justify-content:center;padding:16px}
.hpa-report-modal{width:min(100%,480px);max-height:90vh;overflow:auto;padding:22px;background:white;color:#172338;border-radius:16px}.hpa-report-modal label{display:block;margin:13px 0}.hpa-report-modal select,.hpa-report-modal textarea{width:100%;margin-top:6px}.hpa-report-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}.hpa-report-modal #hpa-report-error{color:#b42639}.hpa-dm-author{font-size:.8rem;margin-bottom:4px}
@media(max-width:480px){.hpa-report-modal{padding:16px}}

/* Notifications: Bell & Empty State */
#hpa-bell-trigger { display:inline-flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; padding:8px; line-height:1; }
#hpa-bell-trigger::first-letter { font-size:inherit; }
#hpa-bell-trigger .hpa-bell-icon { display:block; width:24px; height:24px; stroke:currentColor; }
#hpa-bell-trigger:focus-visible { outline:2px solid currentColor; outline-offset:3px; border-radius:8px; }
#hpa-bell-count { top:0; right:-2px; }
#hpa-bell-list .hpa-bell-empty { margin:0; padding:22px 20px; color:#65758a; line-height:1.5; }
#hpa-bell-panel { box-sizing:border-box; }

/* Layout: Legal Footer */

/* About the Hospital Partnerships Alliance */
.hpa-about .p1-section-title { margin-bottom: 16px; }
.hpa-about-photo {
  display: block; width: 100%; height: auto; margin: 0 0 20px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
}
.hpa-about-intro { margin: 0 0 20px; font-size: 1.05rem; line-height: 1.55; }
.hpa-about-section { margin: 0; padding: 14px 0; border-top: 1px solid var(--line); }
.hpa-about-section h2 { margin: 0 0 5px; font-size: clamp(1.1rem, 2.5vw, 1.35rem); }
.hpa-about-section p { margin: 0; }
.hpa-about-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* GIC: Partner Recommendations */
.p1-section-title {
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  line-height: 1.25;
  margin: 0;
}
.p1-recommendations { margin-block: 24px 14px; }
.p1-recommendations > .muted { margin: 4px 0 12px; }
.p1-recommendations .gic-partner-all {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  min-height: 44px;
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
}
.p1-recommendations .gic-partner-all:hover { text-decoration: underline; }
.gic-partner-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:10px 0}
.gic-partner-card{border:1px solid var(--line);border-radius:15px;padding:16px;display:flex;flex-direction:column;gap:12px;background:white;min-width:0}
.gic-partner-person{display:flex;align-items:center;gap:12px;min-width:0}
.gic-partner-person>div{min-width:0;overflow-wrap:break-word}
.gic-partner-person .muted{font-size:.8rem;margin:3px 0 0}
.gic-partner-avatar{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--teal-soft);color:var(--teal);font-weight:700;flex-shrink:0}
.gic-partner-page{max-width:1050px;margin:0 auto}
.gic-partner-page .gic-partner-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:18px}
/* Ideas: Purpose-based Action Layout */
.p1-ideas .p1-head{display:flex;flex-direction:column;align-items:stretch;gap:12px;margin-bottom:18px}
.p1-ideas .p1-header-main{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.p1-ideas .p1-header-main h1{margin:0;min-height:0;width:auto}
.p1-ideas .p1-head .p1-header-main #p1-create{width:auto;min-height:46px;height:46px;padding:10px 20px;white-space:nowrap;background:var(--teal);color:#fff;border-color:var(--teal)}
.p1-ideas .p1-header-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.p1-ideas .p1-head .p1-header-actions .p1-secondary-action{display:inline-flex;align-items:center;justify-content:center;width:auto;min-height:46px;height:46px;padding:10px 18px;white-space:normal;background:#fff;color:var(--teal);border:1px solid var(--teal);border-radius:12px;text-align:center;line-height:1.25}
.p1-ideas .p1-admin-navigation{display:flex;justify-content:flex-start;margin-top:0}
.p1-ideas .p1-admin-link{display:inline-flex;align-items:center;min-height:40px;color:var(--teal);font-size:.9rem;font-weight:600;text-decoration:underline;text-underline-offset:3px}
.p1-ideas .p1-head a:focus-visible,.p1-ideas .p1-head button:focus-visible{outline:3px solid var(--teal);outline-offset:2px}
@media(max-width:600px){.p1-ideas .p1-header-main{align-items:flex-start}.p1-ideas .p1-head .p1-header-main #p1-create{min-height:44px;height:44px}.p1-ideas .p1-header-actions{gap:8px}.p1-ideas .p1-head .p1-header-actions .p1-secondary-action{min-height:44px;height:auto;white-space:normal}}
/* Profile: Keep edit and moderation actions comfortably separated. */
#view .card>.actions+.btn,#view .card>.actions+a.btn{margin-top:12px;display:inline-flex}
@media(max-width:760px){.gic-partner-grid,.gic-partner-page .gic-partner-grid{grid-template-columns:1fr}}
@media(max-width:380px){.p1-ideas .p1-header-actions{flex-direction:column;align-items:stretch}.p1-ideas .p1-head .p1-header-actions .p1-secondary-action{width:100%}}

/* GIC: UI polish — compact recommendations and consistent spacing */
/* Equal-size action controls, predictable focus and breathing room. */
.p1-ideas .p1-header-actions{gap:10px;align-items:stretch}
.p1-ideas .p1-header-actions .btn{box-sizing:border-box;min-height:44px;line-height:1.25}
.p1-idea .p1-actions{gap:10px;align-items:center}
.p1-idea .p1-actions button{min-height:42px;line-height:1.25}
@media(max-width:600px){
 .p1-idea .p1-actions{gap:8px}
}


/* GIC UI corrections: exact, scoped selectors for Ideas and recommendation preview. */
.p1-ideas .p1-head{display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.p1-ideas .p1-head h1{flex:1 1 auto;min-width:0;margin:0}
.p1-ideas .p1-head #p1-create{flex:0 0 auto;min-height:44px;width:auto;white-space:nowrap;padding-inline:16px}
.p1-ideas .p1-header-actions{display:flex;align-items:stretch;gap:10px;overflow-x:auto;scrollbar-width:thin;padding:2px 0 8px;margin:0 0 10px}
.p1-ideas .p1-header-actions>.btn,.p1-ideas .p1-header-actions>button{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:44px;height:44px;width:auto;max-width:none;white-space:nowrap;line-height:1.15;margin:0;padding:0 15px;border-radius:12px;text-wrap:nowrap}
.p1-ideas .p1-header-actions>a:not(.btn){align-self:center;flex:0 0 auto;white-space:nowrap}
.p1-ideas .p2-threshold-info{margin:8px 0 12px;padding:10px 12px;font-size:.9rem;line-height:1.4}
@media(max-width:600px){
 .p1-ideas .p1-head{gap:8px}
 .p1-ideas .p1-head #p1-create{min-height:42px;padding-inline:12px;font-size:.85rem}
 .p1-ideas .p1-header-actions{gap:8px}
 .p1-ideas .p1-header-actions>.btn,.p1-ideas .p1-header-actions>button{height:42px;min-height:42px;padding-inline:12px;font-size:.82rem}
}

/* GIC Ideas: one heading, grouped navigation, drafts/create and search next to cards. */
.p1-ideas .p1-head{display:block;min-height:0;margin:10px 0 12px}
.p1-ideas .p1-head h1{display:block;margin:0;line-height:1.25}
.p1-ideas .p1-header-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;overflow:visible;margin:0 0 12px;padding:0}
.p1-ideas .p1-header-actions .btn{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;flex:0 0 auto;width:auto;min-width:0;max-width:100%;min-height:44px;height:44px;margin:0;padding:0 15px;border-radius:12px;white-space:nowrap;line-height:1.15;text-wrap:nowrap}
.p1-ideas .p1-header-actions .p1-admin-link{display:inline-flex;align-items:center;min-height:44px;white-space:nowrap}
.p1-ideas .p1-manage-actions{display:flex;align-items:stretch;flex-wrap:wrap;gap:10px;margin:0 0 14px}
.p1-ideas .p1-manage-actions #p1-create,.p1-ideas .p1-manage-actions #p1-my-drafts{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;flex:0 0 auto;min-height:44px;height:44px;width:auto;margin:0;padding:0 16px;white-space:nowrap;border-radius:12px;font-size:.9rem;line-height:1.2}
.p1-ideas .p1-manage-actions #p1-my-drafts{border:1px solid var(--teal);color:var(--teal);background:#fff;font-weight:600}
.p1-ideas .p1-idea-find{margin:0 0 14px}
.p1-ideas .p1-idea-find #p1-q{display:block;box-sizing:border-box;width:100%;max-width:100%;margin:0}
.p1-ideas .p1-idea-find .p12-filter-details{margin:10px 0 0}
.p1-ideas .p1-search>.p11-topic-banner{margin-bottom:16px}
.p1-ideas .p2-threshold-info{margin:12px 0 14px;padding:12px 14px;line-height:1.5}
/* Same dimensions and alignment across recommendation cards. */
.gic-partner-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:12px}
.gic-partner-card{display:flex;flex-direction:column;align-items:stretch;min-width:0;height:100%;box-sizing:border-box;gap:10px;padding:14px;border-radius:14px}
.gic-partner-person{align-items:flex-start;min-height:44px}
.gic-partner-person>div{min-width:0;overflow-wrap:anywhere}
.gic-partner-avatar{width:40px;height:40px;min-width:40px;min-height:40px;max-width:40px;max-height:40px;aspect-ratio:1;border-radius:50%}
@media(max-width:760px){.gic-partner-grid,.gic-partner-page .gic-partner-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:530px){.gic-partner-grid,.gic-partner-page .gic-partner-grid{grid-template-columns:1fr}.p1-ideas .p1-header-actions,.p1-ideas .p1-manage-actions{gap:8px}.p1-ideas .p1-header-actions .btn,.p1-ideas .p1-manage-actions #p1-create,.p1-ideas .p1-manage-actions #p1-my-drafts{height:42px;min-height:42px;padding-inline:12px;font-size:.82rem}}


/* HPA Ideas sketch layout v1 - scoped overrides */
.p1-sketch-layout .p1-search{display:block}
.p1-sketch-layout .p1-head{display:block!important;margin:16px 0 12px!important;padding:0!important;min-height:0!important;gap:0!important}
.p1-sketch-layout .p1-head h1{display:block!important;width:auto!important;margin:0!important;grid-column:auto!important;flex:none!important}
.p1-sketch-layout .p1-head>.p2-link,.p1-sketch-layout .p1-header-actions{display:none!important}
.p1-sketch-layout .p1-manage-actions{display:flex!important;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:10px;margin:0 0 14px!important;padding:0}
.p1-sketch-layout .p1-manage-actions #p1-my-drafts,.p1-sketch-layout .p1-manage-actions #p1-create{display:inline-flex!important;box-sizing:border-box;align-items:center;justify-content:center;flex:0 0 auto;width:auto!important;min-width:0!important;max-width:100%;height:44px!important;min-height:44px!important;padding:0 16px!important;margin:0!important;white-space:nowrap!important;line-height:1.2!important;border-radius:12px;font-size:.9rem}
.p1-sketch-layout .p1-manage-actions #p1-my-drafts{background:#fff;color:var(--teal);border:1px solid var(--teal);font-weight:600}
.p1-sketch-layout .p1-sketch-notice{display:flex;gap:12px;align-items:flex-start;margin:0 0 16px!important;padding:13px 15px!important;line-height:1.55;border-radius:12px}
/* HPA threshold notice: plain dark outline bulb aligned with the heading. */
.p1-sketch-layout .p1-sketch-notice .p1-notice-symbol{display:inline-flex;align-items:flex-start;justify-content:center;flex:none;color:#986400;width:26px;height:26px;margin-top:1px}
.p1-sketch-layout .p1-sketch-notice .p1-notice-symbol svg{display:block;flex:none;width:24px;height:24px}
.p1-sketch-layout .p1-sketch-notice .p1-notice-copy{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}
.p1-sketch-layout .p1-sketch-notice .p1-notice-title{display:block;font-size:1rem;font-weight:700;line-height:1.4;color:#513b12}
.p1-sketch-layout .p1-sketch-notice .p1-notice-detail{display:block;font-size:.9rem;line-height:1.5;color:#513b12}
@media(max-width:530px){.p1-sketch-layout .p1-sketch-notice .p1-notice-title{font-size:.95rem}.p1-sketch-layout .p1-sketch-notice .p1-notice-detail{font-size:.84rem}}
.p1-sketch-layout .p1-idea-find{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;margin:0 0 16px!important}
.p1-sketch-layout .p1-idea-find #p1-q{display:block;box-sizing:border-box;width:100%;min-width:0;min-height:46px;margin:0!important}
.p1-sketch-layout .p1-idea-find .p12-filter-details{margin:0!important}
/* Matching cards: fixed identity area keeps match counts on the same baseline. */
.gic-partner-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:stretch}
.gic-partner-card{position:relative;display:flex;flex-direction:column;min-width:0;box-sizing:border-box;height:100%;padding:14px;gap:0}
.gic-partner-person{display:flex;align-items:flex-start;min-height:52px;gap:10px;margin:0 0 8px}
.gic-partner-person>div{min-width:0;overflow-wrap:anywhere}
.gic-partner-person strong{line-height:1.35}
.gic-partner-person .muted{line-height:1.4;margin:5px 0 0;overflow-wrap:anywhere}
@media(max-width:760px){.gic-partner-grid,.gic-partner-page .gic-partner-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:530px){.gic-partner-grid,.gic-partner-page .gic-partner-grid{grid-template-columns:1fr}.p1-sketch-layout .p1-manage-actions{gap:8px}.p1-sketch-layout .p1-manage-actions #p1-create,.p1-sketch-layout .p1-manage-actions #p1-my-drafts{padding:0 12px!important;min-height:42px!important;height:42px!important;font-size:.83rem}}

/* GIC project-room overview: discover and my rooms */
.p2-overview{max-width:1050px}
.p2-overview-head h1{margin:0 0 .4rem}
.p2-overview-head .muted{margin:0 0 1.3rem;line-height:1.5}
.p2-overview-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:4px;gap:4px;border-radius:12px;background:#e7ecf2;margin-bottom:1.1rem}
.p2-overview-switch .p2-overview-tab{min-width:0;min-height:44px;border:0;border-radius:9px;padding:.65rem .8rem;background:transparent;color:#4d5d72;font:inherit;font-weight:600;cursor:pointer}
.p2-overview-switch .p2-overview-tab[aria-pressed="true"]{background:var(--surface,#fff);color:var(--text,#172333);box-shadow:0 1px 4px #0002}
.p2-overview-switch .p2-overview-tab:focus-visible{outline:3px solid #087b7a;outline-offset:2px}
.p2-overview-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 1rem}
.p2-overview-toolbar .p2-search-label{flex:1 1 250px;min-width:0;margin:0}
.p2-overview-toolbar .p2-search-label input{margin-top:.4rem}
.p2-overview-help{display:flex;align-items:center;flex:none}
.p2-overview-help .btn{margin:0;min-height:44px;white-space:nowrap}
.p2-overview-count{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:1.2rem 0 .7rem}
.p2-overview-count h2{font-size:1.1rem;margin:0}
.p2-overview .p2-grid{margin:0;align-items:stretch}
.p2-overview-card{display:flex;flex-direction:column;gap:.6rem;min-height:205px}
.p2-overview-card[hidden]{display:none!important}
.p2-card-top{display:flex;align-items:center;justify-content:space-between;gap:.6rem;flex-wrap:wrap}
.p2-card-top .p2-topic-label{display:inline-block;color:var(--navy,#14284b);font-size:.82rem;font-weight:700;letter-spacing:.01em;line-height:1.4}
.p2-member-status{font-size:.8rem;color:#087b7a;font-weight:650}
.p2-overview-card h2,.p2-overview-card p{margin:0}
.p2-overview-card .p2-card-summary{line-height:1.45;flex:1}
.p2-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;flex-wrap:wrap}
.p2-card-members{display:grid;gap:2px}
.p2-overview-card{position:relative}
.p2-shared-topic{margin:0 0 .7rem}
.p2-room-title{display:flex;align-items:flex-start;gap:12px;padding-inline-end:24px}
.p2-room-link{color:inherit;text-decoration:none}
.p2-room-link::after{content:"";position:absolute;inset:0;border-radius:inherit}
.p2-room-link:focus-visible::after{outline:3px solid var(--teal);outline-offset:2px}
.p2-room-arrow{position:absolute;inset-block-start:12px;inset-inline-end:14px;font-size:1.1rem}
.p2-room-stamp{display:grid;place-items:center;flex:none;inline-size:42px;block-size:42px;background:var(--teal-soft);color:var(--navy);border:1px solid currentColor;border-radius:4px;transform:rotate(-4deg)}
.p2-room-stamp svg{inline-size:25px;block-size:25px}
.p2-member-count{font-size:.85rem;color:var(--muted,#526479)}
.p2-card-bottom .btn{margin:0;white-space:nowrap}
.p2-overview-empty{margin:1rem 0}
.p2-overview-empty[hidden]{display:none!important}
.p2-overview-note{font-size:.85rem;margin:1.2rem 0 0}
@media(max-width:600px){.p2-overview-toolbar{align-items:stretch}.p2-overview-help{width:100%}.p2-overview-card{min-height:175px}.p2-card-bottom{align-items:center}}

/* Branding for the Terms & Conditions modal only. */
.p1-modal .hpa-terms-brand { margin: 0 40px 14px 0; }
.p1-modal .hpa-terms-brand img { display: block; width: 140px; max-width: 100%; height: auto; }

/* HPA mobile refinements: intentionally limited to phone widths. */
@media (max-width:600px) {
  /* The dropdown is positioned relative to the entire action toolbar, not the button at its right edge. */
  .p2-exact-toolbar{position:relative}
  .p2-exact-member-anchor{position:static}
  .p2-exact-member-anchor .p2-exact-members{position:absolute;left:0;right:auto;top:calc(100% + 8px);width:min(300px,100%);max-width:100%;margin:0}
  /* On phones, cards grow with their content instead of reserving desktop-height blank space. */
  .gic-partner-grid .gic-partner-card{height:auto;min-height:0;padding:12px}
  .gic-partner-card .gic-partner-person{min-height:0;margin:0 0 8px;gap:9px}
}

/* HPA Connect legal and onboarding dialogs. Scoped to avoid unrelated layout changes. */
.p1-modal .hpa-terms-brand, .p1-modal .hpa-tutorial-brand { display:flex; align-items:center; gap:9px; margin:0 40px 16px 0; }
.p1-modal .hpa-terms-brand img, .p1-modal .hpa-tutorial-brand img { display:block; width:94px; max-width:55%; height:auto; }
.p1-modal .hpa-terms-brand strong, .p1-modal .hpa-tutorial-brand strong { color:#14284b; font-size:19px; }
.p1-modal .p1-check { display:flex; align-items:flex-start; gap:10px; }
.p1-modal .p1-check input { flex:0 0 auto; margin:3px 0 0; }
.p1-modal .p1-check span { flex:1; line-height:1.4; }

/* Public legal documents linked from registration and the GIC terms dialog. */
.hpa-reg-legal-links { margin:14px 0 22px; padding-top:12px; border-top:1px solid var(--line); font-size:.88rem; line-height:1.5; color:var(--muted); }
.hpa-reg-legal-links p { margin:10px 0 0; }
.hpa-reg-legal-links p:first-child { margin-top:0; }
.hpa-reg-legal-links a,.p1-modal .hpa-gic-terms-link a { color:var(--teal); text-decoration:underline; text-underline-offset:2px; overflow-wrap:anywhere; }
.hpa-reg-legal-links a:focus-visible,.p1-modal .hpa-gic-terms-link a:focus-visible { outline:2px solid var(--teal); outline-offset:2px; }
.p1-modal .hpa-gic-terms-link { margin:12px 0 18px; line-height:1.5; }

/* GIC recommendation explanations: retain the existing score and add short reasons. */

/* Mobile notifications: fixed, viewport-bounded panel; no right-offset overflow. */
@media (max-width:600px) {
  #hpa-bell-panel {
    position:fixed;
    top:var(--hpa-bell-top, 76px);
    left:max(12px, env(safe-area-inset-left));
    right:max(12px, env(safe-area-inset-right));
    width:auto;
    min-width:0;
    max-width:none;
    max-height:calc(100vh - var(--hpa-bell-top, 76px) - var(--tab-h) - env(safe-area-inset-bottom) - 16px);
    max-height:calc(100dvh - var(--hpa-bell-top, 76px) - var(--tab-h) - env(safe-area-inset-bottom) - 16px);
    overflow-x:hidden;
    overflow-y:auto;
  }
  #hpa-bell-panel .hpa-bell-title, #hpa-bell-panel .hpa-bell-item { min-width:0; }
  #hpa-bell-panel .hpa-bell-title b { min-width:0; overflow-wrap:anywhere; }
}

/* GIC post-confirmation matching onboarding: compact, Hinge-like chip selection. */
.hpa-matching-onboarding { max-width: 700px; margin: 18px auto; padding: 24px; border-radius: 18px; }
.hpa-onboarding-title { display: flex; align-items: flex-start; gap: 10px; color: var(--navy); }
.hpa-onboarding-title svg { flex: none; margin-top: 1px; }
.hpa-onboarding-title h1 { margin: 0; font-size: clamp(1.32rem, 3vw, 1.7rem); }
.hpa-onboarding-intro { color: var(--muted); margin: 14px 0 18px; line-height: 1.5; }
.hpa-ob-divider { height: 1px; border: 0; background: var(--line); margin: 16px 0; }
.hpa-onboarding-section h2 { font-size: 1.04rem; margin: 0 0 3px; }
.hpa-onboarding-sub { color: var(--muted); font-size: .9rem; margin: 0 0 12px; }
.hpa-onboarding-chips, .hpa-ob-all-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hpa-ob-chip { max-width: 100%; border: 1px solid #cbd7da; border-radius: 999px; padding: 8px 12px; background: #fff; color: var(--text); font: inherit; font-size: .87rem; line-height: 1.25; cursor: pointer; text-align: left; overflow-wrap: anywhere; }
.hpa-ob-chip.is-selected { background: var(--teal-soft); border-color: var(--teal); color: #075e5e; font-weight: 600; }
.hpa-ob-chip.is-selected::before { content: '✓ '; }
.hpa-ob-chip:hover { border-color: var(--teal); }
.hpa-ob-chip:focus-visible, .hpa-ob-more:focus-visible, .hpa-ob-later:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.hpa-ob-more { border: 0; background: transparent; color: var(--teal); padding: 10px 0 4px; font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer; }
/* Optional UX experiment: the expand control appears as the final tag chip. */
.hpa-ob-chip.hpa-ob-more { display: inline-flex; align-items: center; border: 1px dashed var(--teal); border-radius: 999px; background: var(--teal-soft); color: #075e5e; padding: 8px 12px; font-size: .87rem; line-height: 1.25; white-space: normal; text-align: left; }
.hpa-ob-chip.hpa-ob-more:hover { background: #d2e9e8; }
.hpa-ob-chip.hpa-ob-more[aria-expanded="true"] { border-style: solid; }
.hpa-ob-all { padding: 12px 0 4px; }
.hpa-ob-search-label { color: var(--muted); font-size: .84rem; }
.hpa-ob-all input[type="search"] { width: 100%; margin: 5px 0 12px; }
.hpa-ob-all-chips { max-height: 265px; overflow: auto; padding: 2px; }
.hpa-ob-tip { display: flex; align-items: flex-start; gap: 8px; padding: 12px; margin: 20px 0 14px; border-radius: 10px; background: var(--teal-soft); color: #276466; font-size: .82rem; line-height: 1.45; }
.hpa-ob-tip > span:first-child { font-size: 1.1rem; line-height: 1.15; }
.hpa-ob-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.hpa-ob-later { border: 0; background: transparent; color: var(--muted); padding: 10px 6px; font: inherit; font-size: .88rem; cursor: pointer; }
.hpa-ob-actions .btn { display: inline-flex; gap: 9px; max-width: 100%; }
@media(max-width: 600px) {
  .hpa-matching-onboarding { margin: 10px auto 0; padding: 18px 14px; }
  .hpa-ob-actions { align-items: stretch; }
  .hpa-ob-actions .btn { flex: 1 1 190px; }
}

/* Profile editor: one GIC category needs no redundant 'Partner search' heading. */
.p33-profile-editor .hpa-profile-single-category > summary { display: none; }
.p33-profile-editor .hpa-profile-single-category > .p321-category-content { padding-top: 0; }

/* Password visibility: scoped to the input wrapper, never alters other form controls. */
.hpa-pw-field { display:block; position:relative; width:100%; margin-top:4px; }
.hpa-pw-field input { width:100%; margin-top:0; padding-right:52px; }
.hpa-pw-toggle { position:absolute; right:5px; top:50%; transform:translateY(-50%); display:grid; place-items:center; width:42px; height:42px; min-width:42px; border:0; border-radius:9px; background:transparent; color:var(--muted); cursor:pointer; }
.hpa-pw-toggle:hover { background:var(--teal-soft); color:var(--teal); }
.hpa-pw-toggle:focus-visible { outline:2px solid var(--teal); outline-offset:1px; }
.hpa-pw-eye-slash { display:none; }
.hpa-pw-field.is-visible .hpa-pw-eye-slash { display:block; }

/* Consistent content alignment inside horizontal idea cards without changing markup or carousel. */
.p1-ideas #p1-cards .p1-idea { height:100%; }
.p1-ideas #p1-cards .p1-card-main { display:flex; flex-direction:column; align-items:stretch; }
.p1-ideas #p1-cards .p1-card-main .p1-read { margin-top:auto; padding-top:12px; }
.p1-ideas #p1-cards .p1-author { min-height:38px; display:flex; align-items:center; }
.p1-ideas #p1-cards .p1-actions { min-height:72px; align-content:center; align-items:center; }

/* Matching onboarding: preserve desktop layout; keep both actions in one compact row on phones. */
@media (max-width:600px) {
  .hpa-matching-onboarding .hpa-ob-actions { flex-direction:row; flex-wrap:nowrap; align-items:center; gap:8px; }
  .hpa-matching-onboarding .hpa-ob-later { flex:0 0 auto; min-height:44px; padding:8px 2px; font-size:.82rem; white-space:nowrap; }
  .hpa-matching-onboarding .hpa-ob-actions .btn { flex:0 1 auto; width:auto; min-width:0; min-height:44px; padding:10px 9px; gap:5px; font-size:.79rem; white-space:nowrap; text-align:center; justify-content:center; line-height:1.2; }
}
@media (max-width:360px) {
  .hpa-matching-onboarding .hpa-ob-actions { gap:6px; }
  .hpa-matching-onboarding .hpa-ob-later { font-size:.75rem; }
  .hpa-matching-onboarding .hpa-ob-actions .btn { padding:9px 6px; gap:3px; font-size:.7rem; }
}

/* Unified demo UX: matching hierarchy and consistently aligned idea cards.
   Scoped to GIC components so header, registration and project-room layouts are unchanged. */
.gic-partner-card .gic-partner-score {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  margin-inline-start: auto;
  min-height: 32px;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--navy);
  font: inherit;
  font-size: .75rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.gic-partner-score:hover, .gic-partner-score[aria-expanded="true"] { border-color: currentColor; }
.gic-partner-score:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.gic-partner-score-icon {
  display: inline-grid;
  place-items: center;
  width: 13px;
  height: 13px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}
.gic-partner-score-details {
  position: relative;
  z-index: 2;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--bg);
  font-size: .85rem;
}
.gic-partner-score-details p { margin: 0; }
.gic-partner-score-details p + p { margin-top: 4px; }

.gic-submission {
  --gic-selection: var(--teal-soft);
  --gic-selection-border: var(--teal);
  --gic-preview: var(--bg);
  margin-top: 16px;
  padding: clamp(16px, 3vw, 24px);
}
.gic-submission h2 { margin: 0 0 16px; }
.gic-submission form { display: grid; gap: 16px; }
.gic-submission form > * { min-width: 0; }
.gic-submission fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.gic-submission fieldset legend { margin-bottom: 8px; padding: 0; font-weight: 700; }
.gic-subroom-search { position: relative; margin-bottom: 10px; }
.gic-subroom-search::before {
  content: '';
  position: absolute;
  inset-inline-start: 14px;
  top: calc(50% - 9px);
  box-sizing: border-box;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
  pointer-events: none;
}
.gic-subroom-search::after {
  content: '';
  position: absolute;
  inset-inline-start: 26px;
  top: calc(50% + 2px);
  width: 7px;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: left center;
  pointer-events: none;
}
.gic-subroom-search input { margin: 0; padding-inline-start: 39px; }
.gic-subroom-options {
  display: grid;
  gap: 6px;
  max-height: min(18rem, 44vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 3px;
}
.gic-submission .gic-subroom-option {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  column-gap: 10px;
  align-items: center;
  min-height: 48px;
  cursor: pointer;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow-wrap: anywhere;
}
.gic-subroom-option:has(:checked) { border-color: var(--gic-selection-border); background: var(--gic-selection); }
.gic-subroom-option:has(:focus-visible) { outline: 2px solid var(--gic-selection-border); outline-offset: 1px; }
.gic-subroom-option input[type="radio"] {
  align-self: start;
  width: 17px;
  height: 17px;
  min-height: 0;
  font: inherit;
  margin: 0;
  margin-block-start: max(0px, calc((1lh - 17px) / 2));
  accent-color: var(--gic-selection-border);
}
.gic-subroom-option input:focus { outline: none; }
.gic-subroom-option small { display: block; margin-top: 2px; color: var(--muted); }
.gic-subroom-option .badge {
  grid-column: 2;
  justify-self: start;
  margin-block-start: 6px;
  white-space: nowrap;
  overflow-wrap: normal;
}
.gic-submission-preview, .gic-submission-placeholder {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-wrap: anywhere;
}
.gic-submission-team, .gic-submission-idea, .gic-submission-placeholder { padding: 12px 14px; }
.gic-submission-team { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 14px; }
.gic-submission-team .link { margin: 0; padding-block: 8px; }
.gic-submission-label { display: block; margin-bottom: 4px; color: var(--muted); font-size: .8rem; font-weight: 600; }
.gic-submission-idea { background: var(--gic-preview); border-top: 1px solid var(--line); }
.gic-submission-idea p, .gic-submission-placeholder { margin: 0; }
.gic-submission-summary { margin-top: 12px; }
.gic-submission-summary label { margin: 0 0 2px; font-weight: 700; }
.gic-submission-summary textarea { margin-top: 8px; }
.gic-submission-summary textarea[aria-invalid="true"] { border-color: var(--danger); }
.gic-submission-summary #gic-summary-count { margin-top: 4px; text-align: end; }
.gic-submission-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.gic-submission-actions .check-line { flex: 1 1 250px; cursor: pointer; margin: 0; }
.gic-submission-actions .btn[type=submit] { width: auto; }
.gic-submission form[inert] .btn[type=submit] { cursor: progress; }
.gic-submission-receipt {
  display: flex;
  gap: 8px;
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--teal-soft);
  color: var(--teal);
  font-weight: 600;
}
.gic-submission .error { margin: 0; }
@media (min-width: 740px) {
  .gic-submission .gic-submission-with-picker { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; }
  .gic-submission-with-picker .error { grid-column: 1 / -1; }
}
@media (max-width: 500px) {
  .gic-submission-actions .btn[type=submit] { width: 100%; }
}
.gic-submission-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.p2-subroom-submission { padding: 8px 12px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 5px; font-size: .875rem; }
.p2-subroom-submission p { margin: 0 0 4px; }
.p2-subroom-submission .link { margin: 0; font-weight: 600; }
.gic-partner-profile { color: var(--navy); font-weight: 700; text-decoration: none; line-height: 1.35; }
.gic-partner-profile::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.gic-partner-card:has(.gic-partner-profile:hover) { border-color: var(--teal); }
.gic-partner-match-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gic-partner-score-details:not([hidden]) + .gic-partner-match-tags { margin-top: 12px; }
.gic-partner-match-tags .tag { max-width: 100%; overflow-wrap: anywhere; }
.gic-partner-match-tags .gic-partner-more {
  position: relative;
  z-index: 2;
  display: block;
  min-width: 38px;
  min-height: 100%;
  border: 1px dashed var(--line);
  background: white;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

.p1-ideas #p1-cards .p1-card-main { flex:1 1 auto; }
.p1-ideas #p1-cards .p1-card-links {
  display:flex; justify-content:space-between; align-items:center; gap:12px;
  min-height:56px; padding:8px 17px 12px;
}
.p1-ideas #p1-cards .p1-card-links .p1-read {
  display:inline-flex; align-items:center; flex:0 0 auto; min-height:38px;
  margin:0; padding:4px 0; border:0; background:transparent; font:inherit;
  font-size:.84rem; color:var(--teal); cursor:pointer; font-weight:600;
}
.p1-ideas #p1-cards .p1-card-links a {
  color:var(--teal); font-size:.82rem; text-align:right; line-height:1.35;
  overflow-wrap:anywhere; text-underline-offset:2px;
}
.p1-ideas #p1-cards .p1-card-links a:focus-visible,
.p1-ideas #p1-cards .p1-card-links button:focus-visible { outline:2px solid var(--teal); outline-offset:2px; }
.p1-ideas #p1-cards .p1-actions {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px;
  padding:12px 14px; min-height:66px; align-items:stretch;
}
.p1-ideas #p1-cards .p1-actions button {
  min-width:0; width:100%; min-height:42px; padding:8px 7px;
  line-height:1.3; font-size:.8rem; text-align:center; overflow-wrap:anywhere;
}
@media(max-width:390px) {
  .p1-ideas #p1-cards .p1-card-links { gap:8px; padding-inline:12px; }
  .p1-ideas #p1-cards .p1-card-links .p1-read,
  .p1-ideas #p1-cards .p1-card-links a { font-size:.77rem; }
  .p1-ideas #p1-cards .p1-actions { gap:6px; padding-inline:10px; }
  .p1-ideas #p1-cards .p1-actions button { font-size:.76rem; padding-inline:5px; }
}


/* HPA home: welcoming information note, distinct from centered navigation cards. */
.hpa-home .hpa-home-lead {
  margin:18px 0 20px; padding:18px 20px;
  border:1px solid #cbe8e5;
  border-radius:14px; background:var(--teal-soft); color:#23565c;
}
.hpa-home .hpa-home-lead h2 { color:var(--navy); margin:0 0 8px; }
.hpa-home .hpa-home-lead p { margin:0; line-height:1.55; }
.hpa-home .hpa-home-grid .hpa-home-link {
  justify-content:center; text-align:center; gap:8px; min-width:0;
  background:#ebf2f8; border-color:#d1e1e9; color:var(--navy);
  padding:14px; transition:background-color .15s, border-color .15s;
}
.hpa-home-link :is(.ico,.tab-message-icon) { flex-shrink:0; }
.hpa-home-link .ico { font-size:1.2rem; line-height:1; }
.hpa-home .hpa-home-grid .hpa-home-link:hover,
.hpa-home .hpa-home-grid .hpa-home-link:active {
  background:#dcece9; border-color:#9dd3d0;
}
.hpa-home .hpa-home-grid .hpa-home-link b { overflow-wrap:anywhere; }
@media(max-width:480px){
  .hpa-home .hpa-home-lead { padding:15px; margin:14px 0 18px; }
  .hpa-home .hpa-home-grid .hpa-home-link { padding:10px 7px; }
}

/* Ideas tag filter v2 – one standalone overlay; idea-creation picker remains unchanged. */
.p1-ideas .p1-filter-trigger {
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:46px;padding:8px 12px;white-space:nowrap;
  border:1px solid #b4dcd9;border-radius:14px;background:#eef8f7;
  color:var(--navy);font:inherit;font-size:.9rem;font-weight:650;cursor:pointer;
}
.p1-ideas .p1-filter-trigger #p11-selected-count{color:#536276;font-weight:500;font-size:.82rem;white-space:nowrap}
.p1-ideas .p1-filter-trigger-compact{display:none}
@media(max-width:480px){
  .p1-ideas .p1-filter-trigger{gap:6px;padding-inline:8px}
  .p1-ideas .p1-filter-trigger-label{display:none}
  .p1-ideas .p1-filter-trigger-compact{display:inline}
}
.p1-ideas .p1-filter-trigger:hover{background:#e2f3f1}
.p1-ideas .p1-filter-trigger:focus-visible{outline:3px solid #70bcb5;outline-offset:2px}
.p1-ideas .p1-watch-filter{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:46px;padding:8px 12px;white-space:nowrap;border:1px solid #ccd5dc;border-radius:14px;background:#fff;color:var(--navy);font:inherit;font-size:.9rem;font-weight:650;cursor:pointer}
.p1-ideas .p1-watch-filter[aria-pressed="true"]{border-color:#177467;background:#e5f5f1;color:#0b6156}
.p1-ideas .p1-watch-filter:focus-visible{outline:3px solid #70bcb5;outline-offset:2px}
.p1-bookmark-icon{display:block;flex:0 0 18px;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}
[data-act="interest"]{display:inline-flex;align-items:center;justify-content:center;gap:7px}
[data-act="interest"][aria-pressed="true"] .p1-bookmark-icon,.p1-watch-filter[aria-pressed="true"] .p1-bookmark-icon{fill:currentColor}
@media(max-width:520px){.p1-sketch-layout .p1-idea-find{grid-template-columns:minmax(0,1fr) auto}.p1-sketch-layout .p1-idea-find #p1-q{grid-column:1/-1}.p1-ideas .p1-watch-filter{justify-self:start}.p1-ideas .p1-filter-trigger{justify-self:end}}
.p1-tag-filter-overlay{position:fixed;inset:0;z-index:2000;display:grid;place-items:center;padding:18px;background:rgba(13,29,49,.63)}
.p1-tag-filter-dialog{display:flex;flex-direction:column;width:min(100%,780px);max-height:calc(100dvh - 36px);background:#fff;border-radius:22px;overflow:hidden;box-shadow:0 25px 80px #0005;color:var(--text)}
.p1-tag-filter-header{flex:0 0 auto;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:20px 23px 12px;border-bottom:1px solid #edf1f4}
.p1-tag-filter-header h2{margin:0;color:var(--navy);font-size:1.25rem}
.p1-tag-filter-header p{margin:5px 0 0;color:var(--muted);font-size:.82rem}
.p1-tag-filter-close{
  flex:0 0 44px;
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  padding:0;
  border:1px solid #d5e3e8;
  border-radius:50%;
  background:#fff;
  color:var(--navy);
  font:inherit;
  font-size:1.6rem;
  line-height:1;
  cursor:pointer;
}
.p1-tag-filter-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:18px 23px 22px;scrollbar-width:thin}
.p1-tag-filter-search-label{display:block;margin:0 0 17px}
.p1-tag-filter-search{display:block;width:100%;min-height:46px;margin:0;padding:10px 14px;border:1px solid #cbd6de;border-radius:12px;font:inherit;font-size:16px;background:#fff;color:var(--text)}
.p1-tag-filter-selected-head{margin:0 0 9px;color:var(--navy);font-size:.9rem}
.p1-tag-filter-count{color:var(--muted);font-weight:500}
.p1-tag-filter-selected{display:flex;flex-wrap:wrap;gap:7px;min-height:28px;margin:0 0 17px;align-items:center}
.p1-tag-filter-empty{color:var(--muted);font-size:.85rem}
.p1-tag-filter-categories{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:12px;align-items:start}
.p1-tag-category{display:flex;flex-direction:column;min-width:0;padding:15px 14px 14px;background:#ebf7f4;border:1px solid #d3e9e4;border-radius:16px;gap:10px}
.p1-tag-category:nth-child(6n + 2){background:#edf5fc;border-color:#d6e6f4}
.p1-tag-category:nth-child(6n + 3){background:#f2effb;border-color:#e3dcf5}
.p1-tag-category:nth-child(6n + 4){background:#fff3ec;border-color:#f7dfd2}
.p1-tag-category:nth-child(6n + 5){background:#f1f8ef;border-color:#dcebd8}
.p1-tag-category:nth-child(6n + 6){background:#f8f4ea;border-color:#ebe2ce}
.p1-tag-category-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}
.p1-tag-category-heading h3{margin:0;min-width:0;color:var(--navy);font-size:.98rem;font-weight:700;line-height:1.3;overflow-wrap:anywhere}
.p1-tag-category-heading span{flex:none;color:#627083;font-size:.74rem;white-space:nowrap}
.p1-tag-filter-subtitle{font-size:.81rem;font-weight:650;color:#526173;margin:8px 0 0}
.p1-tag-filter-chips{display:flex;align-items:flex-start;flex-wrap:wrap;gap:7px}
.p1-filter-chip{display:inline-flex;align-items:center;justify-content:center;gap:7px;max-width:100%;min-height:36px;padding:7px 12px;border:1px solid #c6d2db;border-radius:999px;background:#fff;color:var(--text);font:inherit;font-size:.82rem;font-weight:500;line-height:1.25;overflow-wrap:anywhere;text-align:center;cursor:pointer}
.p1-filter-chip[aria-pressed="true"],.p1-filter-chip.is-selected{background:var(--teal);border-color:var(--teal);color:#fff}
.p1-filter-chip[aria-pressed="true"]::after{content:'✓';font-weight:700}
.p1-filter-chip:disabled{opacity:.46;cursor:not-allowed}
.p1-tag-category-more{align-self:flex-start;min-height:36px;margin-top:2px;padding:6px 13px;border:1.5px dashed #6b829e;border-radius:999px;background:rgba(255,255,255,.72);color:var(--navy);font:inherit;font-size:.81rem;font-weight:650;cursor:pointer}
.p1-tag-category-more:hover{background:#fff;border-color:var(--teal)}
.p1-tag-filter-note{margin:12px 0 0;color:#526173;font-size:.82rem}
.p1-tag-filter-note:empty{display:none}
.p1-tag-filter-footer{flex:0 0 auto;display:flex;gap:10px;padding:13px 23px 17px;background:#fff;border-top:1px solid #e5ecef}
.p1-tag-filter-footer button{display:inline-flex;align-items:center;justify-content:center;flex:1 1 0;min-width:0;min-height:44px;border-radius:12px;font:inherit;font-size:.9rem;font-weight:650;cursor:pointer;padding:10px 12px}
.p1-tag-filter-reset{background:#fff;border:1px solid #b5c3d4;color:var(--navy)}
.p1-tag-filter-apply{background:var(--teal);border:1px solid var(--teal);color:#fff}
.p1-tag-filter-overlay button:focus-visible{outline:3px solid #3f94c9;outline-offset:2px}
@media(max-width:600px){
  .p1-tag-filter-overlay{padding:0}
  .p1-tag-filter-dialog{width:100%;height:100dvh;max-height:100dvh;border-radius:0}
  .p1-tag-filter-header{padding:calc(16px + env(safe-area-inset-top)) 16px 12px}
  .p1-tag-filter-body{padding:14px 15px 18px}
  .p1-tag-filter-categories{grid-template-columns:1fr}
  .p1-tag-filter-footer{padding:12px 15px calc(12px + env(safe-area-inset-bottom))}
  .p1-filter-chip{min-height:40px}
}
/* Prevent the German interest label from wrapping on idea cards. */
.p1-ideas #p1-cards .p1-actions:has(button[data-act="interest"]){grid-template-columns:minmax(0,1fr) minmax(max-content,1fr)}
.p1-ideas #p1-cards .p1-actions button[data-act="interest"]{white-space:nowrap;overflow-wrap:normal;word-break:normal;hyphens:none;padding-inline:5px;font-size:clamp(.7rem,2.7vw,.8rem)}
@media(max-width:350px){.p1-ideas #p1-cards .p1-actions:has(button[data-act="interest"]){grid-template-columns:1fr}}


/* HPA Connect profile: onboarding-aligned, compact and approachable. */
.profile-language-tags{display:flex;flex-wrap:wrap;gap:6px}
.profile-language-tags > .checks,.profile-language-selected{display:contents}
.profile-language-tag,.profile-language-result{display:inline-flex;align-items:center;gap:6px;font-family:inherit;line-height:1.5;cursor:pointer;overflow-wrap:anywhere;max-width:100%;text-align:start}
.profile-language-tags .profile-language-add{
  flex:none;
  justify-content:center;
  width:36px;
  height:36px;
  padding:0;
  border-radius:50%;
  font-size:1rem;
}
.profile-language-dialog{width:min(calc(100% - 32px),420px);max-height:calc(100dvh - 32px);padding:20px;border:1px solid var(--line);border-radius:var(--radius);background:var(--card);color:var(--text)}
.profile-language-dialog::backdrop{background:#122340a8}
.profile-language-dialog h2{margin:0 0 12px;color:var(--navy)}
.profile-language-results{max-height:min(36dvh,300px);overflow:auto;margin-top:10px;padding:3px}
.profile-language-results:empty{display:none}
.profile-language-status{margin:8px 0 0}
.profile-language-status:empty{margin:0}
.profile-language-done{display:flex;margin:16px 0 0 auto}

.p34-profile-page,.p34-profile-editor{max-width:760px;margin:0 auto 26px}
.profile-saved-regions { margin: 12px 0 6px; }
.p34-profile-intro{margin:10px 2px 20px}
.p34-profile-intro h1{font-size:1.55rem;margin:2px 0 5px;color:var(--navy)}
.p34-profile-intro p,.p34-edit-intro{font-size:.92rem;color:var(--muted);margin:0 0 14px}
.p34-profile-hero{padding:20px;background:linear-gradient(135deg,#effaf9,#fff 72%);border-color:#d5eae8}
.p34-profile-hero .profile-head > div{min-width:0;overflow-wrap:anywhere}
.p34-profile-main-actions{display:flex;gap:8px;margin-top:16px}
.p34-profile-main-actions .btn{min-width:0;text-align:center;line-height:1.25}
.p34-profile-section{padding:18px 20px}
.p34-profile-section h2,.p34-edit-section h2,.p34-account-controls h2{color:var(--navy);font-size:1.1rem;margin:0 0 12px}
.p34-settings-content{display:grid;gap:16px}
.p34-settings-content > div + div{padding-top:16px;border-top:1px solid var(--line)}
.p34-settings-content .actions{display:flex;flex-wrap:wrap;gap:7px}
.p34-settings-content .btn{font-size:.84rem;padding:9px 11px;min-height:40px}
.p34-account-controls{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:16px 20px}
.p34-account-controls h2{width:100%;margin:0}
.p34-account-controls .btn{min-height:40px;padding:8px 12px}
.p34-delete-trigger{border:0;background:transparent;color:#a83231;text-decoration:underline;text-underline-offset:3px;cursor:pointer;padding:9px;font:inherit;font-size:.9rem}
.p34-delete-dialog{border:1px solid #dce4eb;border-radius:18px;padding:24px;width:min(94vw,470px);color:var(--text);box-shadow:0 16px 48px #0c244044}
.p34-delete-dialog::backdrop{background:#122340a8}
.p34-delete-dialog h2{color:var(--navy);margin-bottom:12px}
.p34-delete-dialog p{font-size:.92rem;line-height:1.5}
.p34-delete-dialog label{display:block;margin:12px 0;font-size:.9rem;font-weight:600}
.p34-delete-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end;margin-top:17px}
.p34-delete-actions .btn{min-height:42px;padding:10px 13px}
.p34-delete-confirm{background:#a83231}
.p34-edit-section{padding:20px;margin-bottom:14px}
.p34-edit-section .row2{gap:10px}
.p34-photo-picker{display:flex;align-items:center;gap:16px;margin-bottom:16px;padding:12px;border:1px solid var(--line);border-radius:var(--radius)}
.p34-photo-picker .avatar{display:flex}
.p34-photo-controls{min-width:0}
.p34-photo-controls h3{color:var(--navy);margin-bottom:8px}
.p34-photo-actions{display:flex;flex-wrap:wrap;gap:8px}
.p34-photo-actions .btn{padding:8px 12px;font-size:.875rem;line-height:1.25;text-align:center}
.p34-photo-controls .hint,.p34-photo-controls .error{overflow-wrap:anywhere}
.p34-photo-controls [role="status"]:not(:empty),.p34-photo-controls [role="alert"]:not(:empty){margin-top:6px}
.p34-photo-controls [role="status"]:empty{margin:0}
.p34-profile-editor .p33-profile-editor{margin:16px 0 0;padding:16px 0 0;border-top:1px solid #e4eeee}
.p34-profile-editor .p33-profile-editor h3{color:var(--navy);margin:0 0 5px}
.p34-profile-save{width:100%;max-width:390px;margin:7px 0 18px}
.p34-profile-picker{margin:10px 0}
.p34-picker-lead{display:flex;align-items:center;justify-content:space-between;gap:9px;margin:0 0 10px;font-size:.87rem;font-weight:600}
.p34-picker-count{color:var(--teal);font-size:.82rem;white-space:nowrap}
.p34-search-label{font-size:.84rem;color:var(--muted);font-weight:400!important;margin:0 0 11px!important}
.p34-picker-search{margin-top:5px!important;min-height:40px!important}
.p34-picker-groups{display:grid;gap:10px;margin-top:10px}
.p34-picker-group{border-radius:13px;padding:12px 13px;border:1px solid #d5ebe6;background:#eff8f5}
.p34-picker-tone-1{background:#f1f5fc;border-color:#e0e8f5}
.p34-picker-tone-2{background:#f9f3fc;border-color:#eadff2}
.p34-picker-group h3{margin:0 0 10px;font-size:.91rem;font-weight:700;color:var(--navy)}
.p34-picker-chips{display:flex;flex-wrap:wrap;gap:7px}
.p34-profile-picker .p34-profile-chip{min-height:38px;line-height:1.3;font-size:.84rem}
.p34-profile-picker .p34-picker-more{min-height:38px;font-size:.84rem}
.p34-picker-note{min-height:1.2em;margin:8px 0 0}
.p34-profile-page .p33-profile-tags{padding:12px 0 4px;margin-top:10px}
.p34-profile-page .p33-profile-tags h2{font-size:.95rem}
@media(max-width:580px){
  .p34-profile-main-actions .btn{min-height:44px;padding:8px 12px;font-size:.875rem}
  .p34-edit-section,.p34-profile-hero,.p34-profile-section{padding:16px}
  .p34-photo-picker{align-items:flex-start;gap:12px}
  .p34-profile-intro{margin-top:0}
  .p34-delete-dialog{padding:18px}
  .p34-delete-actions .btn{flex:1 1 130px}
}

.p34-profile-page .p34-display-chip,dd .p34-display-chip{display:inline-flex;cursor:default;background:var(--teal-soft);border-color:#b7d8d2;color:#075e5e;font-size:.83rem}
.p34-profile-page .p33-profile-tags .tags{display:flex;flex-wrap:wrap;gap:7px}
.p34-challenge-value{font-weight:700;color:var(--teal);margin:0 0 5px}

.p34-delete-trigger:disabled{opacity:.5;cursor:not-allowed;text-decoration:none}
#p34-delete-availability{flex:1 1 230px;font-size:.8rem}

/* Attachments in conversations */
.chat-attachments{margin:8px 0}.chat-attachment-menu{position:relative;display:inline-block}.chat-attachment-menu summary{cursor:pointer;list-style:none;border:1px solid currentColor;border-radius:8px;padding:8px 12px;min-height:40px}.chat-attachment-menu summary::-webkit-details-marker{display:none}.chat-attachment-options{position:absolute;bottom:100%;left:0;z-index:10;min-width:190px;background:var(--card,#fff);border:1px solid var(--line,#ccc);border-radius:8px;box-shadow:0 4px 16px #0002}.chat-attachment-options button{display:block;width:100%;text-align:start;font:inherit;background:transparent;color:inherit;border:0;padding:10px;cursor:pointer}.chat-attachment-options button:hover{background:var(--teal-soft,#eee)}.chat-attachment-selected{display:flex;gap:6px;flex-wrap:wrap}.chat-attachment-chip{padding:4px 8px;border:1px solid var(--line,#ccc);border-radius:6px;overflow-wrap:anywhere}.chat-attachment-chip button{border:0;background:transparent;cursor:pointer}.chat-attachment-error{color:#a52222}.chat-attachment-error:empty{display:none}.chat-attachment-link{display:block;overflow-wrap:anywhere;margin:6px 0;text-decoration:underline}
.chat-compose-field{display:grid;grid-template-columns:minmax(0,1fr);position:relative;min-width:0}
.chat-compose-field>textarea{grid-area:1/1;box-sizing:border-box;width:100%;padding-inline-start:58px;min-height:68px}
.chat-compose-field>.chat-attachments{display:contents}
.chat-compose-field .chat-attachment-menu{grid-area:1/1;align-self:end;justify-self:start;margin:0 0 8px 8px;z-index:2}
.chat-compose-field .chat-attachment-menu summary{display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:40px;min-height:40px;padding:8px;border:0;background:var(--card,#fff);color:inherit}
.chat-compose-field .chat-attachment-options{left:0;right:auto}
.chat-compose-field .chat-attachment-selected{grid-column:1;grid-row:2;margin-top:6px}
.chat-compose-field .chat-attachment-error{grid-column:1;grid-row:3}
.p25-form .chat-compose-field{border:1px solid var(--line);border-radius:10px;background:var(--card,#fff)}
.p25-form .chat-compose-field>textarea{margin:0;border:0;border-radius:inherit;background:transparent;outline:none}
.p25-form .chat-compose-field:focus-within{outline:3px solid rgba(11,118,118,.35);outline-offset:1px}
.p25-form .chat-compose-field .chat-attachment-menu summary{background:transparent}
.chat-attachment-image{display:block;margin:8px 0;max-width:min(100%,320px)}
.chat-attachment-image img{display:block;max-width:100%;max-height:320px;width:auto;height:auto;object-fit:contain;border-radius:8px}

/* Paginated idea/project lists and internal idea sharing */
.p2-load-more{display:block;margin:18px auto;white-space:nowrap}
.p1-share-idea{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border:1px solid var(--line,#ccc);border-radius:50%;background:var(--card,#fff);color:inherit;padding:0;cursor:pointer;line-height:0}
.p1-share-idea svg{display:block;width:20px;height:20px;transform:translateY(-1px)}
.p1-share-idea:hover{background:var(--teal-soft,#eef8f5)}
.p1-share-idea:focus-visible{outline:2px solid var(--teal);outline-offset:2px}.p1-ideas #p1-cards .p1-actions:has(.p1-share-idea){display:flex}.p1-ideas #p1-cards .p1-actions:has(.p1-share-idea)>button:not(.p1-share-idea){flex:1 1 0}.p1-ideas #p1-cards .p1-actions .p1-share-idea{flex:0 0 42px;width:42px;min-width:42px;padding:0;border-radius:50%}
.p1-reader-actions>button[data-act="interest"]{white-space:nowrap;overflow-wrap:normal;word-break:normal;hyphens:none}
.p1-share-head{display:flex;align-items:flex-start;gap:12px;margin:0 36px 18px 0}.p1-share-head h2,.p1-share-head p{margin:0}.p1-share-head p{color:var(--muted);margin-top:4px}
.p1-share-groups{display:grid;gap:15px;max-height:min(58vh,540px);overflow:auto;padding-right:4px}.p1-share-group{border:1px solid var(--line);border-radius:12px;padding:10px;margin:0}.p1-share-group legend{font-weight:700;padding:0 6px}
.p1-share-person{display:grid;grid-template-columns:auto 38px minmax(0,1fr);align-items:center;gap:9px;padding:8px;border-radius:9px;cursor:pointer}.p1-share-person:hover{background:var(--teal-soft)}.p1-share-person input{width:20px;height:20px}.p1-share-person small{display:block;color:var(--muted);margin-top:2px}.p1-share-avatar{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--teal-soft);font-weight:700;color:var(--teal)}
#p1-share-form>.btn{width:100%;margin-top:15px}.hpa-shared-idea{display:grid;gap:5px;margin:8px 0;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--card);color:inherit;text-decoration:none}.hpa-shared-idea>span{font-size:.75rem;text-transform:uppercase;letter-spacing:.06em;color:var(--teal);font-weight:700}.hpa-shared-idea strong{font-size:1rem}.hpa-shared-idea p{margin:0;color:var(--muted)}.hpa-shared-idea small{color:var(--teal);font-weight:700}
@media(max-width:580px){.p1-share-groups{max-height:55vh}}
