/* Portal-only styles. Colours, fonts, buttons, tables and the sign-in box come from the shared /ui/coat-ui.css. */
main { max-width: 1100px; }
th, td { text-align: left; vertical-align: middle; }
.small { font-size: 12px; margin-top: 4px; }
td.acts { min-width: 200px; } .actrow { display: flex; flex-wrap: wrap; gap: 4px; } .tablewrap { max-width: 100%; overflow-x: auto; }
dialog { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); padding: 20px; max-width: 420px; }
dialog::backdrop { background: rgba(0, 0, 0, .45); }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; margin: 12px 0; }

/* People and access */
.peoplehead { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-bottom: 14px; } .peoplehead h2 { margin: 0; } .grow { flex: 1; }
#pplSearch { width: 220px; max-width: 100%; background: var(--panel); border: 1px solid var(--rule); border-radius: 8px; padding: 0 12px; font-size: 14px; }
#pplSearch::placeholder { color: var(--muted); }
.peoplehead select, .peoplehead input, .peoplehead button { height: 36px; box-sizing: border-box; margin: 0; }
.peoplehead button { padding-top: 0; padding-bottom: 0; }
.invite { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; background: color-mix(in srgb, var(--hover) 60%, transparent); }
.invite[hidden] { display: none; } .invite .note { margin: 10px 0 0; }
table.people { width: 100%; border-collapse: collapse; }
table.people th { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
table.people td { padding: 13px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.people tbody tr:hover td { background: var(--hover); }
table.people tr[hidden] { display: none; }
td.pc { width: 280px; min-width: 240px; } td.pc .small { margin-top: 2px; } .who { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; } .who b { font-weight: 600; overflow-wrap: anywhere; }
td.adm { color: var(--muted); font-size: 13.5px; vertical-align: middle; }
select.rsel { display: block; width: 132px; max-width: none; padding: 5px 8px; font-size: 13.5px; } select.rsel.none { color: var(--muted); }
button.chip { display: inline-block; margin-top: 7px; padding: 2px 10px; font-size: 12px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
button.chip:hover:not(:disabled) { color: var(--ink); border-color: var(--rule); }
.tag.warn { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 50%, transparent); }
td.acts { min-width: 0; width: 1%; white-space: nowrap; text-align: right; }
.menu { position: relative; display: inline-block; } .menu summary { list-style: none; cursor: pointer; padding: 2px 11px 6px; font-size: 20px; line-height: 1; border-radius: 8px; color: var(--muted); user-select: none; }
.menu summary::-webkit-details-marker { display: none; } .menu summary:hover, .menu[open] summary { background: var(--hover); color: var(--ink); }
.menulist { position: fixed; z-index: 20; min-width: 170px; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px var(--shadow); padding: 5px; text-align: left; }
.menulist button { text-align: left; border: 0; width: 100%; } .menulist hr { border: 0; border-top: 1px solid var(--line); margin: 4px 2px; }
details.help { margin-top: 16px; } details.help summary { cursor: pointer; color: var(--muted); font-size: 13px; } details.help .note { margin-top: 8px; }
.sortby { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--muted); text-transform: none; letter-spacing: 0; white-space: nowrap; } .sortby select { padding: 0 10px; font-size: 14px; width: auto; }
table.people tr.grp td { padding: 16px 8px 6px; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--rule); background: transparent !important; }
table.people tr.grp[hidden] { display: none; }
