chadtmiller.com/group-host
atmosphere group host
0
0
@import './tokens.css';
/* Every value here is a token from tokens.css; a new one goes there first.
Rules come in the order the pages are built up: the document, the page's
frame, then the parts any page uses, from what acts (fields and buttons)
to what is shown (cards, lists, pictures). */
/* ── Document ─────────────────────────────────────────────────────── */
* {
box-sizing: border-box;
}
html {
-webkit-text-size-adjust: 100%;
}
body {
margin: 0;
background: var(--bg);
color: var(--fg);
font: var(--text-base)/var(--leading) var(--font-sans);
-webkit-font-smoothing: antialiased;
min-height: 100vh;
display: flex;
flex-direction: column;
}
a {
color: var(--primary);
text-decoration: underline;
text-decoration-color: var(--link-line);
text-underline-offset: 3px;
transition: color var(--speed);
}
a:hover {
color: var(--primary-hover);
text-decoration-color: currentColor;
}
:focus-visible {
outline: 2px solid var(--primary);
outline-offset: 2px;
}
h1,
h2,
h3 {
font-family: var(--font-round);
letter-spacing: var(--tracking-tight);
line-height: var(--leading-tight);
margin: 0;
font-weight: var(--weight-bold);
}
h1 {
font-size: var(--text-2xl);
}
h2 {
font-size: var(--text-lg);
}
p {
margin: 0;
text-wrap: pretty;
}
code,
.mono {
font-family: var(--font-mono);
font-size: var(--text-sm);
}
strong {
font-weight: var(--weight-semibold);
}
img {
max-width: 100%;
}
/* ── Utilities ────────────────────────────────────────────────────── */
.mute {
color: var(--mute);
}
.small {
font-size: var(--text-sm);
}
.stack {
display: flex;
flex-direction: column;
gap: var(--space-4);
}
/* ── Frame: header, footer, the column between ────────────────────── */
.wrap {
width: 100%;
max-width: var(--page);
margin: 0 auto;
padding: 0 var(--space-4);
}
.top {
position: sticky;
top: 0;
z-index: 1;
background: color-mix(in srgb, var(--bg) 85%, transparent);
backdrop-filter: saturate(1.4) blur(10px);
-webkit-backdrop-filter: saturate(1.4) blur(10px);
border-bottom: var(--border);
}
/* One line at every width: the brand, the host's logo and name, and the
menu of whoever is signed in each give way, cut short with an ellipsis,
the longer the more. */
.top .wrap {
display: flex;
align-items: center;
gap: var(--space-4);
min-height: var(--header);
}
.brand {
flex: 0 1 auto;
min-width: 0;
display: flex;
align-items: center;
gap: var(--space-2);
white-space: nowrap;
font: var(--weight-bold) var(--text-xl) var(--font-round);
letter-spacing: var(--tracking-tight);
color: var(--fg);
text-decoration: none;
}
.brand span {
overflow: hidden;
text-overflow: ellipsis;
}
.brand img {
flex: none;
height: var(--logo);
width: auto;
max-width: calc(4 * var(--logo));
border-radius: var(--radius-xs);
}
.brand:hover {
color: var(--fg);
}
.sign-in {
margin-left: auto;
display: flex;
align-items: center;
gap: var(--space-2);
}
/* Who is signed in: their picture and handle, a menu of what is theirs to
do, dropped under it; signing out last. */
.user-menu {
margin-left: auto;
min-width: 0;
position: relative;
}
.user-menu summary {
display: flex;
align-items: center;
gap: var(--space-2);
min-height: var(--control);
padding: 0 var(--space-3) 0 var(--space-1);
border: 1px solid var(--line-strong);
border-radius: var(--radius-pill);
cursor: pointer;
list-style: none;
font-weight: var(--weight-medium);
font-size: var(--text-sm);
}
.user-menu summary::-webkit-details-marker {
display: none;
}
.user-menu summary:hover {
background: var(--soft);
}
.user-menu summary .handle {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.user-menu summary::after {
content: '';
flex: none;
width: var(--space-2);
height: var(--space-2);
border-right: 2px solid var(--faint);
border-bottom: 2px solid var(--faint);
transform: translateY(-25%) rotate(45deg);
margin-left: var(--space-1);
}
.menu {
position: absolute;
right: 0;
top: calc(100% + var(--space-2));
z-index: 2;
width: var(--menu);
max-width: calc(100vw - 2 * var(--space-4));
background: var(--panel);
border: var(--border);
border-radius: var(--radius-md);
box-shadow: var(--shadow-pop);
padding: var(--space-2);
display: flex;
flex-direction: column;
}
.menu a,
.menu button {
display: flex;
align-items: center;
width: 100%;
min-height: var(--control);
padding: 0 var(--space-3);
border: 0;
border-radius: var(--radius-sm);
background: transparent;
color: var(--fg);
font-size: var(--text-base);
font-weight: var(--weight-normal);
text-decoration: none;
text-align: left;
}
.menu a:hover,
.menu button:hover {
background: var(--soft);
color: var(--fg);
}
/* Something waiting for whoever is signed in: a dot on their picture, and
how many beside where it is in their menu. */
.waiting {
position: relative;
display: inline-grid;
flex: none;
}
.waiting.dot::after {
content: '';
position: absolute;
top: calc(var(--dot) / -4);
right: calc(var(--dot) / -4);
width: var(--dot);
height: var(--dot);
border-radius: 50%;
background: var(--primary);
box-shadow: 0 0 0 2px var(--bg);
}
.badge {
display: inline-grid;
place-items: center;
min-width: var(--space-5);
height: var(--space-5);
margin-left: auto;
padding: 0 var(--space-2);
border-radius: var(--radius-pill);
background: var(--primary);
color: var(--on-primary);
font-size: var(--text-xs);
font-weight: var(--weight-semibold);
}
/* The other accounts the browser is signed in to, under a quiet label:
each its picture and its handle, cut short with an ellipsis past the
menu's width (whole in its title), switched to in a click. */
.menu-label {
margin: 0;
padding: var(--space-1) var(--space-3);
color: var(--faint);
font-size: var(--text-xs);
font-weight: var(--weight-medium);
}
.menu .account {
gap: var(--space-2);
padding-top: var(--space-1);
padding-bottom: var(--space-1);
}
.menu .account .handle {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.menu hr {
width: 100%;
border: 0;
border-top: var(--border);
margin: var(--space-2) 0;
}
.menu form {
display: block;
}
/* Light, dark, or as the system has it: three choices side by side in the
menu, the one chosen washed in the colour that acts. */
.appearance {
display: flex;
gap: var(--space-1);
padding: 0 var(--space-3) var(--space-1);
}
.appearance label {
flex: 1;
display: flex;
justify-content: center;
align-items: center;
min-height: var(--control-sm);
border: var(--border);
border-radius: var(--radius-sm);
font-size: var(--text-sm);
cursor: pointer;
}
.appearance label:hover {
background: var(--soft);
}
.appearance input {
position: absolute;
opacity: 0;
pointer-events: none;
}
.appearance label:has(:checked) {
background: var(--primary-soft);
border-color: var(--primary);
}
.appearance label:has(:focus-visible) {
outline: 2px solid var(--primary);
outline-offset: 2px;
}
main.wrap {
flex: 1;
padding-top: var(--space-8);
padding-bottom: var(--space-16);
display: flex;
flex-direction: column;
gap: var(--space-10);
}
/* Who runs the host, and the links to its operator's pages across from it. */
.foot {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: var(--space-2) var(--space-4);
color: var(--faint);
font: var(--text-xs) var(--font-mono);
padding-top: var(--space-5);
padding-bottom: var(--space-8);
border-top: var(--border);
}
/* The links to the operator's pages, across from what is beside them. */
.site-links {
display: flex;
flex-wrap: wrap;
gap: var(--space-2) var(--space-4);
margin-left: auto;
font: var(--text-xs) var(--font-mono);
}
.site-links a {
color: var(--faint);
text-decoration-color: var(--line-strong);
}
/* A page on its own, as an app's request is: no header or footer, one
card on the host's background, opaque over any picture. The card's top
says whose host it is and who is signed in; its foot, set apart, holds
what is there for the curious. */
.alone {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
padding: var(--space-16) var(--space-4) var(--space-8);
background: var(--backdrop-light, none) center / cover fixed var(--bg);
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme='light']) .alone {
background-image: var(--backdrop-dark, none);
}
}
[data-theme='dark'] .alone {
background-image: var(--backdrop-dark, none);
}
.alone-card {
width: 100%;
max-width: var(--measure);
}
.alone-top {
display: flex;
align-items: center;
gap: var(--space-3);
padding-bottom: var(--space-4);
border-bottom: var(--border);
}
.alone-top .brand {
font-size: var(--text-base);
color: var(--mute);
}
.alone-foot {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--space-2) var(--space-4);
padding-top: var(--space-4);
border-top: var(--border);
}
/* ── What acts: fields and buttons ────────────────────────────────── */
input,
select,
textarea,
button {
font: inherit;
font-size: var(--text-field);
color: inherit;
}
input:not([type='checkbox'], [type='radio'], [type='file'], [type='hidden']),
select,
textarea {
min-height: var(--control);
padding: var(--space-2) var(--space-3);
background: var(--panel);
border: 1px solid var(--line-strong);
border-radius: var(--radius-sm);
transition:
border-color var(--speed),
box-shadow var(--speed);
}
/* One line, so a text field and a list stand the same height side by side. */
input:not([type='checkbox'], [type='radio'], [type='file'], [type='hidden']),
select {
line-height: var(--leading-tight);
}
textarea {
min-height: calc(var(--control) * 2.5);
resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
outline: 0;
border-color: var(--primary);
box-shadow: 0 0 0 var(--ring) var(--primary-soft);
}
input[type='checkbox'],
input[type='radio'] {
accent-color: var(--primary);
width: 1rem;
height: 1rem;
margin: 0;
}
input[type='file'] {
font-size: var(--text-sm);
color: var(--mute);
}
input[type='file']::file-selector-button {
font: inherit;
margin-right: var(--space-3);
padding: var(--space-2) var(--space-3);
border: 1px solid var(--line-strong);
border-radius: var(--radius-pill);
background: var(--panel);
color: var(--fg);
cursor: pointer;
}
.field {
display: flex;
flex-direction: column;
gap: var(--space-1);
font-weight: var(--weight-medium);
}
.field input,
.field select,
.field textarea {
font-weight: var(--weight-normal);
}
/* A field a form can be sent without, said after its label. */
.field .optional {
color: var(--mute);
font-weight: var(--weight-normal);
}
label:has(> input[type='checkbox']),
label:has(> input[type='radio']) {
display: inline-flex;
align-items: center;
gap: var(--space-2);
cursor: pointer;
}
/* A choice with a line under its name: the box beside the name, not
between the two lines, and kept its size however the lines wrap. */
label:has(> input + .described) {
align-items: flex-start;
}
label > input:has(+ .described) {
flex-shrink: 0;
margin-top: calc((1lh - 1rem) / 2);
}
.described {
display: flex;
flex-direction: column;
gap: var(--space-1);
}
/* What is ticked because something else is: greyed, and not to change. */
label:has(> input:disabled) {
cursor: default;
}
fieldset {
border: var(--border);
border-radius: var(--radius-md);
padding: var(--space-3) var(--space-4) var(--space-4);
margin: 0;
display: flex;
flex-wrap: wrap;
gap: var(--space-2) var(--space-5);
}
/* Choices that are sentences, one to a line rather than run together. */
fieldset.choices {
flex-direction: column;
align-items: flex-start;
}
/* What most leave as it is, folded under a quiet line until opened. */
details.more {
display: flex;
flex-direction: column;
gap: var(--space-4);
}
details.more > summary {
width: fit-content;
cursor: pointer;
color: var(--mute);
font-weight: var(--weight-medium);
}
legend {
padding: 0 var(--space-2);
font-weight: var(--weight-medium);
color: var(--mute);
}
button {
min-height: var(--control);
padding: 0 var(--space-5);
border: 1px solid var(--primary);
border-radius: var(--radius-pill);
background: var(--primary);
color: var(--on-primary);
font-weight: var(--weight-semibold);
cursor: pointer;
transition:
background var(--speed),
border-color var(--speed),
color var(--speed);
}
button:hover {
background: var(--primary-hover);
border-color: var(--primary-hover);
}
button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
/* A button whose form is on its way: held, and saying so. */
button[aria-busy='true'] {
cursor: progress;
}
/* What undoes, removes or turns down: there, but never the thing to press. */
button.quiet {
background: transparent;
border-color: var(--line-strong);
color: var(--fg);
font-weight: var(--weight-medium);
}
button.quiet:hover {
background: var(--soft);
border-color: var(--line-strong);
}
/* A form that edits what is there in place ends in its Save button,
and beside it where the form stands (SaveBar), on every page. */
.save-bar {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--space-3);
}
.save-said.success {
color: var(--success);
}
form.stack > button,
form.stack > .field + button {
align-self: flex-start;
}
/* A button in a row of a list: smaller, beside what it acts on. */
button.small,
a.button.small {
min-height: var(--control-sm);
padding: 0 var(--space-3);
font-size: var(--text-sm);
}
/* A part's one act, across from its heading, on every page: the size of
its rows' acts, not a page's. */
.section-head > :is(button, a.button) {
min-height: var(--control-sm);
padding: 0 var(--space-3);
font-size: var(--text-sm);
}
/* A row's acts, at its end, on every page: the same size again. */
.row-actions :is(button, a.button) {
min-height: var(--control-sm);
padding: 0 var(--space-3);
font-size: var(--text-sm);
}
/* What cannot be undone, in the dialog that asks to be sure. */
button.danger {
background: var(--danger);
border-color: var(--danger);
color: var(--on-danger);
}
button.danger:hover {
background: var(--danger);
border-color: var(--danger);
filter: brightness(1.08);
}
/* A link that goes where a button would act: drawn as the button. */
a.button {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: var(--control);
padding: 0 var(--space-5);
border: 1px solid var(--primary);
border-radius: var(--radius-pill);
background: var(--primary);
color: var(--on-primary);
font-weight: var(--weight-semibold);
text-decoration: none;
white-space: nowrap;
transition:
background var(--speed),
border-color var(--speed);
}
a.button:hover {
background: var(--primary-hover);
border-color: var(--primary-hover);
color: var(--on-primary);
}
a.button.quiet {
background: transparent;
border-color: var(--line-strong);
color: var(--fg);
font-weight: var(--weight-medium);
}
a.button.quiet:hover {
background: var(--soft);
}
/* ── What is shown: cards, lists, notices ─────────────────────────── */
.card {
background: var(--panel);
border: var(--border);
border-radius: var(--radius-lg);
padding: var(--space-6);
box-shadow: var(--shadow);
}
.card > h2 {
margin-bottom: var(--space-1);
}
/* A button under a card's list, as Show more is: its own width. */
.card.stack > button {
align-self: flex-start;
}
.danger {
color: var(--danger);
}
p.danger {
background: var(--danger-soft);
border-radius: var(--radius-md);
padding: var(--space-3) var(--space-4);
}
.made {
background: var(--primary-soft);
border-radius: var(--radius-md);
padding: var(--space-3) var(--space-4);
}
.made code {
user-select: all;
}
/* A component's list: its things in rows, each with what may be done to it. */
:is(ul, ol)[class] {
list-style: none;
margin: 0;
padding: 0;
display: block;
}
:is(ul, ol)[class] > li {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--space-2) var(--space-3);
padding: var(--space-3) 0;
border-top: var(--border);
}
:is(ul, ol)[class] > li:first-child {
border-top: 0;
padding-top: 0;
}
:is(ul, ol)[class] > li:last-child {
padding-bottom: 0;
}
:is(ul, ol)[class] > li.stack {
flex-direction: column;
align-items: flex-start;
}
:is(ul, ol)[class] > li > p {
flex-basis: 100%;
}
:is(ul, ol)[class] > li > form,
.row-actions form {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--space-2);
}
ol {
margin: 0;
padding-left: var(--space-6);
display: flex;
flex-direction: column;
gap: var(--space-3);
}
ol > li::marker {
color: var(--primary);
font-weight: var(--weight-bold);
font-family: var(--font-round);
}
/* Where a list's rows would be, when it has none: the same box, words and
space on every page, in a card or out of one. */
.empty {
border: 1px dashed var(--line-strong);
border-radius: var(--radius-md);
background: var(--soft);
padding: var(--space-6) var(--space-4);
text-align: center;
color: var(--mute);
display: flex;
flex-direction: column;
align-items: center;
gap: var(--space-1);
}
.empty p {
max-width: var(--measure);
}
.empty-title {
color: var(--fg);
font: var(--weight-semibold) var(--text-base) var(--font-round);
}
.empty-action {
margin-top: var(--space-3);
}
/* A dialog over the dimmed page; one taller than the screen scrolls within
it, rather than running past the screen's foot. */
.dialog {
position: fixed;
width: min(var(--dialog), calc(100vw - 2 * var(--space-4)));
max-height: calc(100dvh - var(--dialog-top) - var(--space-4));
overflow-y: auto;
overscroll-behavior: contain;
margin: var(--dialog-top) auto auto;
padding: var(--space-6);
border: var(--border);
border-radius: var(--radius-lg);
background: var(--panel);
color: var(--fg);
box-shadow: var(--shadow-pop);
}
.dialog::backdrop {
background: var(--scrim);
backdrop-filter: blur(2px);
}
.dialog > * + * {
margin-top: var(--space-3);
}
.dialog-title {
font-size: var(--text-xl);
padding-right: var(--space-8);
}
.dialog .close {
position: absolute;
margin: 0;
/* Centred on the title's first line, as large as the title is. */
top: calc(var(--space-6) + (var(--text-xl) * var(--leading-tight) - var(--control)) / 2);
right: var(--space-4);
width: var(--control);
padding: 0;
border: 0;
background: transparent;
color: var(--mute);
font-size: var(--text-xl);
font-weight: var(--weight-normal);
}
.dialog .close:hover {
background: var(--soft);
color: var(--fg);
}
.dialog .field input,
.dialog .field textarea,
.dialog .field select {
width: 100%;
}
.dialog-wide {
width: min(var(--page), calc(100vw - 2 * var(--space-4)));
}
.actions {
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
gap: var(--space-2);
}
.actions.start {
justify-content: flex-start;
flex-wrap: wrap;
}
/* A choice in a card, under what it answers: the quiet way first, then
the one that acts. */
.choices {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--space-2);
}
/* Signing in: the Atmosphere's apps running past, faded at the edges and
still for whoever asks for less motion; then the handle; then the way
to an account for one with none. */
.dialog .apps {
overflow: hidden;
mask-image: linear-gradient(
90deg,
transparent,
var(--opaque) var(--space-6),
var(--opaque) calc(100% - var(--space-6)),
transparent
);
}
.dialog .apps-run {
display: flex;
gap: var(--space-3);
width: max-content;
animation: apps-run var(--apps-run) linear infinite;
}
.dialog .apps img {
width: var(--app-icon);
height: var(--app-icon);
border-radius: var(--radius-md);
object-fit: cover;
flex-shrink: 0;
}
@keyframes apps-run {
to {
transform: translateX(calc(-50% - var(--space-3) / 2));
}
}
@media (prefers-reduced-motion: reduce) {
.dialog .apps-run {
animation: none;
}
}
.dialog .what,
.dialog .create {
text-align: center;
font-size: var(--text-sm);
}
.dialog .what a,
.dialog .create a,
.dialog .create button.link {
color: var(--fg);
}
/* A link that acts in the page rather than going somewhere: drawn as one. */
.dialog .create button.link {
min-height: 0;
padding: 0;
border: 0;
background: none;
font: inherit;
text-decoration: underline;
text-decoration-color: var(--link-line);
cursor: pointer;
}
.dialog .create {
padding-top: var(--space-3);
border-top: var(--border);
color: var(--mute);
}
/* A label typed before the domain it is under, read as one name. */
.address {
display: flex;
align-items: center;
gap: var(--space-2);
}
.address input {
flex: 1;
min-width: 0;
}
/* ── Atoms ────────────────────────────────────────────────────────── */
.av {
display: inline-grid;
place-items: center;
flex: none;
width: var(--avatar);
height: var(--avatar);
border-radius: 50%;
object-fit: cover;
border: 1px solid var(--line);
font: var(--weight-bold) var(--text-xs) var(--font-round);
line-height: 1;
user-select: none;
}
/* None to show: its initial, on a hue its name gives it. */
span.av {
background: light-dark(
oklch(var(--initial-wash) var(--hue)),
oklch(var(--initial-wash-dark) var(--hue))
);
color: light-dark(
oklch(var(--initial-ink) var(--hue)),
oklch(var(--initial-ink-dark) var(--hue))
);
}
span.av::before {
content: attr(data-initial);
}
.av.sm {
width: var(--avatar-sm);
height: var(--avatar-sm);
font-size: var(--text-2xs);
}
.av.md {
width: var(--avatar-md);
height: var(--avatar-md);
font-size: var(--text-lg);
}
.av.lg {
width: var(--avatar-lg);
height: var(--avatar-lg);
font-size: var(--text-3xl);
}
/* An app's icon: square with soft corners, as apps draw theirs, whole. */
.av.app {
border-radius: var(--radius-sm);
object-fit: contain;
}
/* ── Molecules ────────────────────────────────────────────────────── */
.group-row {
display: flex;
align-items: center;
gap: var(--space-4);
min-width: 0;
}
.group-row > div {
min-width: 0;
}
.group-row a {
color: var(--fg);
font: var(--weight-bold) var(--text-lg) var(--font-round);
text-decoration: none;
overflow-wrap: anywhere;
}
.group-rows .group-row a::after {
content: '';
position: absolute;
inset: 0;
}
.group-rows > li {
position: relative;
transition: background var(--speed);
}
.group-row a:hover {
color: var(--primary);
}
.group-row .mono {
overflow-wrap: anywhere;
}
/* A field for someone's handle, the accounts matching what is typed
dropping down over what is under it, as a menu does; in a dialog, past
its edge. */
.handle-input {
position: relative;
}
.dialog:has(.handle-input) {
overflow: visible;
}
.drop-list {
position: absolute;
z-index: 1;
top: calc(100% + var(--space-1));
left: 0;
right: 0;
max-height: var(--drop-list);
overflow-y: auto;
padding: var(--space-1);
background: var(--panel);
border: var(--border);
border-radius: var(--radius-md);
box-shadow: var(--shadow-pop);
font-weight: var(--weight-normal);
}
.drop-option {
display: flex;
align-items: center;
gap: var(--space-3);
padding: var(--space-2) var(--space-3);
border-radius: var(--radius-sm);
cursor: pointer;
}
.drop-option[aria-selected='true'] {
background: var(--soft);
}
.handle-input .drop-option .av {
width: var(--avatar-pick);
height: var(--avatar-pick);
}
.handle-input .drop-option .who {
display: flex;
flex-direction: column;
min-width: 0;
font-size: var(--text-sm);
line-height: var(--leading-tight);
gap: var(--space-1);
}
.handle-input .drop-option .who > * {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* ── Templates ────────────────────────────────────────────────────── */
/* For someone not signed in: one heading, a line, and the way in. */
.welcome {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: var(--space-5);
padding-top: var(--space-16);
}
.welcome h1 {
font-size: var(--text-hero);
text-wrap: balance;
}
.welcome h1.handle {
font-size: var(--text-3xl);
overflow-wrap: anywhere;
}
.welcome p {
max-width: var(--measure);
font-size: var(--text-lg);
color: var(--mute);
}
.welcome button {
margin-top: var(--space-2);
}
/* ── A group's own page ───────────────────────────────────────────── */
/* Its card: its picture, its name and handle beside it, and the ways to
its other pages across from them; then its words, its rules and where
the person looking stands. */
.group-card {
background: var(--panel);
border: var(--border);
border-radius: var(--radius-lg);
box-shadow: var(--shadow);
overflow: hidden;
}
.group-card-body {
display: flex;
flex-direction: column;
gap: var(--space-4);
padding: var(--space-6);
}
.group-card-body > h1.handle {
overflow-wrap: anywhere;
}
.identity {
display: flex;
align-items: center;
gap: var(--space-3) var(--space-4);
flex-wrap: wrap;
}
.identity .av {
border: var(--ring) solid var(--panel);
box-shadow: var(--shadow);
}
.identity-name {
flex: 1;
min-width: min(100%, 12rem);
display: flex;
flex-direction: column;
gap: var(--space-1);
}
.identity-name h1 {
overflow-wrap: anywhere;
}
.identity-name p {
overflow-wrap: anywhere;
}
.group-nav {
display: flex;
flex-wrap: wrap;
gap: var(--space-2);
}
.group-card .description {
max-width: var(--measure);
}
.icon {
width: var(--icon);
height: var(--icon);
flex: none;
fill: none;
stroke: var(--faint);
stroke-width: 2;
stroke-linecap: round;
stroke-linejoin: round;
}
.rules {
font-size: var(--text-sm);
color: var(--mute);
}
.rules summary {
cursor: pointer;
font-weight: var(--weight-medium);
color: var(--fg);
}
.rules ol {
margin-top: var(--space-2);
gap: var(--space-1);
}
.rules strong {
color: var(--fg);
}
.rules .what {
display: block;
overflow-wrap: anywhere;
}
.standing {
display: flex;
align-items: center;
gap: var(--space-2) var(--space-3);
flex-wrap: wrap;
padding-top: var(--space-4);
border-top: var(--border);
}
.standing > span {
flex: 1;
min-width: min(100%, 12rem);
}
.tag {
display: inline-flex;
align-items: center;
padding: 0 var(--space-2);
border-radius: var(--radius-pill);
background: var(--primary-soft);
color: var(--fg);
font-size: var(--text-xs);
font-weight: var(--weight-medium);
}
/* Its parts: a heading with how many, and what acts on the whole across from it. */
.section-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-3);
flex-wrap: wrap;
min-height: var(--control);
}
.section-head p {
flex-basis: 100%;
}
.count {
color: var(--faint);
font: var(--weight-medium) var(--text-sm) var(--font-sans);
margin-left: var(--space-2);
}
.find input {
width: 100%;
}
.find.row-form {
margin-bottom: var(--space-4);
}
/* Someone named in a line of text: their picture, small, then their handle. */
.person {
display: inline-flex;
align-items: center;
gap: var(--space-1);
vertical-align: bottom;
max-width: 100%;
color: var(--fg);
}
.person .mono {
font-size: var(--text-xs);
overflow-wrap: anywhere;
min-width: 0;
}
.who {
font-weight: var(--weight-medium);
overflow-wrap: anywhere;
min-width: 0;
}
.what {
color: var(--mute);
font-size: var(--text-sm);
}
/* Where an app is, beside its name, quieter: the domain it was read from. */
.who .domain {
margin-left: var(--space-2);
font-weight: var(--weight-normal);
font-size: var(--text-sm);
}
.row-actions {
display: flex;
flex-wrap: wrap;
gap: var(--space-2);
margin-left: auto;
}
/* A row's name and what is said of it, one under the other: its acts
beside it while its longest word fits, and under it before a handle
would break beside them. */
.row-main {
display: flex;
flex-direction: column;
gap: var(--space-1);
flex: 1 1 0;
min-width: min(min-content, 100%);
overflow-wrap: break-word;
}
.tags {
display: flex;
flex-wrap: wrap;
gap: var(--space-1);
margin-top: var(--space-1);
}
code.key,
.activity .mono {
overflow-wrap: anywhere;
min-width: 0;
}
/* What happened to a subject in the queue, folded: each event, who did
it and when, then what was said. Under a row, lined up with its name. */
.history {
font-size: var(--text-sm);
}
.queue > li > .history {
flex: 0 0 100%;
padding-left: calc(var(--avatar) + var(--space-3));
}
.history summary {
cursor: pointer;
width: fit-content;
color: var(--mute);
font-weight: var(--weight-medium);
}
ul.queue > li {
align-items: flex-start;
}
ol.events {
display: flex;
flex-direction: column;
margin-top: var(--space-2);
gap: var(--space-3);
}
ol.events > li {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 0 var(--space-2);
padding: 0;
border: 0;
}
.events .said {
flex-basis: 100%;
overflow-wrap: anywhere;
}
.dialog .history .what {
text-align: left;
}
/* A label a subject wears: on its row, outlined, apart from the reasons
it was reported for. */
.tags .labelled {
margin-left: var(--space-2);
}
.tag.worn {
background: none;
border: 1px solid var(--line-strong);
font-family: var(--font-mono);
}
/* A part of a review, each under the one before it: its heading, then
what it holds. */
.review-part {
display: flex;
flex-direction: column;
gap: var(--space-2);
padding-top: var(--space-4);
border-top: var(--border);
}
.review-part h3 {
margin: 0;
font: var(--weight-bold) var(--text-base) var(--font-round);
}
/* The labels a subject wears, each with what takes it off; and those to add. */
ul.labels,
.label-choices {
display: flex;
flex-wrap: wrap;
gap: var(--space-2);
}
/* A label stays one pill on a phone too, its value beside its ×. */
ul.labels > li.label {
display: inline-flex;
align-items: center;
gap: var(--space-1);
padding: 0 0 0 var(--space-3);
border: 1px solid var(--line-strong);
border-radius: var(--radius-pill);
font-size: var(--text-sm);
}
ul.labels > li:first-child {
padding-left: var(--space-3);
}
ul.labels button {
border: 0;
}
/* A field and its button on one line, or a line and its button. */
.row-form {
display: flex;
align-items: flex-end;
gap: var(--space-2) var(--space-3);
}
div.row-form {
align-items: center;
}
.row-form > :is(.field, p) {
flex: 1;
}
.reasons label {
font-weight: var(--weight-normal);
}
/* A record a moderator reviews: its fields, its pictures and the whole of
it folded, in a well that scrolls sideways; when taken down, said so. */
.reviewed {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: var(--space-3);
min-width: 0;
}
.reviewed > * {
max-width: 100%;
}
.reviewed > details {
align-self: stretch;
}
.taken-down-note {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: var(--space-1) var(--space-2);
}
.tag.down {
background: var(--danger-soft);
color: var(--danger);
}
.reviewed .record {
align-items: baseline;
}
.reviewed .record dd {
white-space: pre-line;
overflow-wrap: anywhere;
}
.record-picture {
max-height: var(--review-picture);
border: var(--border);
border-radius: var(--radius-sm);
}
pre.raw {
margin: 0;
padding: var(--space-3);
overflow-x: auto;
background: var(--soft);
border-radius: var(--radius-sm);
font: var(--text-xs)/var(--leading) var(--font-mono);
}
/* A rule's place in the order, round, before it. */
.ordinal {
display: inline-grid;
place-items: center;
flex: none;
width: var(--avatar);
height: var(--avatar);
border-radius: 50%;
background: var(--primary-soft);
color: var(--primary);
font: var(--weight-bold) var(--text-xs) var(--font-round);
align-self: flex-start;
}
/* A "⋯" menu at a row's end, of the acts every row of its list has: a
small round button, opening a menu under it, to its right edge. */
.action-menu {
position: relative;
flex: none;
}
.action-menu > summary {
display: grid;
place-items: center;
width: var(--control-sm);
height: var(--control-sm);
border-radius: var(--radius-pill);
cursor: pointer;
list-style: none;
}
.action-menu > summary::-webkit-details-marker {
display: none;
}
.action-menu > summary .icon {
stroke: var(--mute);
}
.action-menu > summary:hover,
.action-menu[open] > summary {
background: var(--soft);
}
.action-menu > .menu {
top: calc(100% + var(--space-1));
}
/* What someone said, under their row, lined up with their name. */
:is(ul, ol)[class] > li > .note {
flex: 0 0 100%;
padding-left: calc(var(--avatar) + var(--space-3));
overflow-wrap: anywhere;
}
.row-main .what {
overflow-wrap: anywhere;
}
.pair {
display: grid;
grid-template-columns: 1fr 1fr;
gap: var(--space-3);
}
.pair > * {
min-width: 0;
}
.pair :is(input, select) {
width: 100%;
}
@media (max-width: 640px) {
.pair {
grid-template-columns: 1fr;
}
/* A row whose words run to lines: its picture and its acts by its first
line, not floating at its middle. */
:is(ul, ol)[class] > li,
.identity {
align-items: flex-start;
}
main.wrap {
padding-top: var(--space-6);
gap: var(--space-8);
}
}
/* ── A page's head and its tabs ───────────────────────────────────── */
/* Where it is under (a group's page), its heading, and what acts on the
whole page across from it. */
.page-head {
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: var(--space-3);
flex-wrap: wrap;
}
.page-head > div {
display: flex;
flex-direction: column;
gap: var(--space-1);
min-width: 0;
}
.page-head h1 {
overflow-wrap: anywhere;
}
.back {
display: inline-block;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
vertical-align: top;
font-size: var(--text-sm);
color: var(--mute);
text-decoration: none;
}
.back:hover {
color: var(--primary);
}
.back::before {
content: '← ';
}
/* A page's parts, each its own page: one row of tabs, scrolled sideways
where it is wider than the screen, faded at an edge with more past it
(`scrollRow`, #lib/rows.ts). */
.tabs {
display: flex;
gap: 0 var(--space-1);
border-bottom: var(--border);
margin-bottom: calc(var(--space-2) * -1);
overflow-x: auto;
overflow-y: hidden;
scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
display: none;
}
.more-end {
mask-image: linear-gradient(to right, var(--opaque) calc(100% - var(--row-fade)), transparent);
}
.more-start {
mask-image: linear-gradient(to left, var(--opaque) calc(100% - var(--row-fade)), transparent);
}
.more-start.more-end {
mask-image: linear-gradient(
to right,
transparent,
var(--opaque) var(--row-fade),
var(--opaque) calc(100% - var(--row-fade)),
transparent
);
}
.tabs a {
flex: none;
padding: var(--space-2) var(--space-3);
color: var(--mute);
font-weight: var(--weight-medium);
text-decoration: none;
border-bottom: 2px solid transparent;
margin-bottom: -1px;
white-space: nowrap;
}
.tabs a:hover {
color: var(--fg);
}
.tabs a[aria-current='page'] {
color: var(--fg);
border-bottom-color: var(--primary);
}
/* A well: something set apart inside a card, on the soft ground. */
.well {
background: var(--soft);
border-radius: var(--radius-md);
padding: var(--space-4);
}
/* Connecting an AI app: three numbered steps down the card, each its
title and under it what to do; the address in a field to copy from,
and what to ask it as a chat's bubbles. */
.connect[class] {
display: flex;
flex-direction: column;
gap: var(--space-5);
}
.connect[class] > li {
flex-wrap: nowrap;
align-items: flex-start;
gap: var(--space-3);
padding: 0;
border: 0;
}
.connect .step {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
gap: var(--space-2);
padding-top: var(--space-1);
}
/* A value to copy and paste elsewhere, in a pill with its Copy button:
an address to add to an AI app, a DNS record's value. */
.copyable {
display: flex;
align-items: center;
gap: var(--space-3);
padding: var(--space-1) var(--space-1) var(--space-1) var(--space-3);
background: var(--soft);
border: var(--border);
border-radius: var(--radius-pill);
}
.copyable code {
flex: 1;
min-width: 0;
overflow-wrap: anywhere;
user-select: all;
}
.copyable button {
flex: none;
min-height: var(--control-sm);
padding: 0 var(--space-3);
font-size: var(--text-sm);
background: var(--panel);
}
/* A DNS record to add, a field to a row: its type, name and value. */
.record {
display: grid;
grid-template-columns: max-content minmax(0, 1fr);
align-items: center;
gap: var(--space-2) var(--space-3);
margin: 0;
}
.record dt {
color: var(--mute);
font-size: var(--text-sm);
}
.record dd {
margin: 0;
min-width: 0;
}
.asks[class] {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: var(--space-2);
}
.connect .asks[class] > li {
padding: var(--space-2) var(--space-3);
border: 0;
background: var(--soft);
border: var(--border);
border-radius: var(--radius-md) var(--radius-md) var(--radius-md) var(--radius-xs);
font-size: var(--text-sm);
}
.connect .step > strong {
font-weight: var(--weight-medium);
}
.connect + .ai-apps,
.connect + .empty {
margin-top: var(--space-4);
}
/* What an app would get, as an account's PDS lists it: a row for each kind
of thing, its icon, its title and a line on it, its details at the end;
what it would not get, quieter. The details' tables tick each write. */
.app-asks {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-2) var(--space-3);
flex-wrap: wrap;
}
/* The app asking, by its icon beside what it asks. */
.app-who {
display: flex;
align-items: center;
gap: var(--space-3);
min-width: 0;
}
.icon-lg {
width: var(--icon-lg);
height: var(--icon-lg);
stroke: var(--fg);
}
.icon-filled {
fill: var(--fg);
stroke: none;
}
.permissions[class] > li {
flex-wrap: nowrap;
}
.permissions.withheld .icon-lg {
stroke: var(--faint);
}
.permissions.withheld .icon-filled {
fill: var(--faint);
}
.permissions.withheld .who {
color: var(--mute);
}
.withheld-part {
gap: var(--space-3);
margin-top: var(--space-2);
}
.ticks {
width: 100%;
border-collapse: collapse;
font-size: var(--text-sm);
}
.ticks th {
padding: 0 0 var(--space-1);
color: var(--mute);
font-weight: var(--weight-normal);
text-align: center;
}
.ticks td {
padding: var(--space-2) 0;
border-top: var(--border);
text-align: center;
}
.ticks :is(th, td):first-child {
text-align: left;
}
.ticks :is(th, td):not(:first-child) {
width: var(--tick-column);
}
.ticks.calls :is(th, td):not(:first-child) {
width: auto;
text-align: left;
padding-left: var(--space-3);
}
.ticks code {
overflow-wrap: break-word;
}
.ticks .icon {
stroke: var(--fg);
}
.space-access {
display: flex;
flex-direction: column;
gap: var(--space-2);
}
pre.scopes {
margin: 0;
font: var(--text-sm)/var(--leading) var(--font-mono);
white-space: pre-wrap;
overflow-wrap: anywhere;
}