/* ===================================================================
   The websites page (src/pages/websites.html). Shared building blocks are in style/pages.css; only this page's own parts go here.

   big picture ..... .ws-stage (the Websites screen, still): .ws-board = .ws-tiles without a box, .ws-tile-acc (who has access)
   tiles ........... .ws-tiles > .ws-tile (.is-live | .is-turning), .ws-state, .ws-online, .ws-num, .ws-spark
   sharing ......... .ws-share > .ws-share-card: .ws-input (.is-focus) .ws-roles .ws-role (.is-on) .ws-share-btn (.is-press .is-busy)
                     .ws-people > .ws-person (.is-new .is-in .is-accepted)
   features ........ .ft-groups .ft-accounts (CSS only; they run while .is-playing), as pictures of split rows
   permissions ..... .ws-perms: the table of roles and the sharing notes, under the clients row
   =================================================================== */

/* ===================================================================
   Shared: a number that just changed gets a short nudge
   =================================================================== */

.ws-bump {
    animation: ws-bump .45s var(--ease);
}

@keyframes ws-bump {
    0% { transform: translateY(4px); opacity: .35; }
    100% { transform: none; opacity: 1; }
}

/* ===================================================================
   Tiles that turn Live with their first visit
   =================================================================== */

.ws-tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: clamp(12px, 2vw, 20px);

    border: 1px solid var(--color-border-soft);
    border-radius: 22px;
    background: var(--color-bg-soft);
}

:root[data-theme="dark"] .ws-tiles {
    border-color: var(--color-border);
}

.ws-tile {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    padding: 14px;

    border: 1px solid var(--color-border-soft);
    border-radius: 16px;
    background: var(--color-bg);
    box-shadow: var(--shadow-sm);

    transition: border-color .4s ease, box-shadow .4s ease;
}

:root[data-theme="dark"] .ws-tile {
    border-color: var(--color-border);
    background: var(--color-bg-soft);
}

.ws-tile.is-turning {
    border-color: color-mix(in srgb, var(--color-green) 55%, var(--color-border));
    box-shadow: 0 10px 26px -16px rgba(22, 163, 74, .65);
}

.ws-tile-head {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.ws-tile-badge {
    display: grid;
    place-items: center;
    flex: none;

    width: 34px;
    height: 34px;

    border: 1px solid color-mix(in srgb, var(--dot) 30%, transparent);
    border-radius: 10px;
    background: color-mix(in srgb, var(--dot) 13%, var(--color-bg));

    font-size: 12px;
    font-weight: 800;
    color: color-mix(in srgb, var(--dot) 62%, var(--color-text));
}

.ws-tile-id {
    min-width: 0;
}

.ws-tile-name,
.ws-tile-host {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ws-tile-name {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
}

.ws-tile-host {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-soft);
}

.ws-tile-state {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    min-height: 24px;

    font-size: 12.5px;
    font-weight: 700;
}

.ws-state {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;

    height: 24px;
    padding-inline: 8px;

    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--color-green-soft);
    color: var(--green-text);
    white-space: nowrap;
}

.ws-state-i {
    width: 14px;
    height: 14px;
}

.ws-state-none,
.ws-tile:not(.is-live) .ws-state-live,
.ws-tile:not(.is-live) .ws-state-i {
    display: none;
}

.ws-tile:not(.is-live) .ws-state-none {
    display: inline;
}

.ws-tile:not(.is-live) .ws-state {
    border-color: var(--color-border);
    border-style: dashed;
    background: var(--color-bg-soft);
    color: var(--color-text-soft);
}

/* the moment it turns Live: the badge pops, a green ring spreads from it */
.ws-tile.is-turning .ws-state {
    animation: ws-pop .5s var(--ease);
}

.ws-tile.is-turning .ws-state::after {
    content: "";
    position: absolute;
    inset: -2px;
    border: 2px solid var(--color-green);
    border-radius: inherit;
    opacity: 0;
    animation: ws-ring 1.1s ease-out;
}

@keyframes ws-pop {
    0% { transform: scale(.8); }
    60% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

@keyframes ws-ring {
    0% { transform: scale(1); opacity: .8; }
    100% { transform: scale(1.5, 1.9); opacity: 0; }
}

.ws-online {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--color-text-soft);
    white-space: nowrap;
    transition: opacity .4s ease;
}

.ws-online-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-green);
}

.ws-tile:not(.is-live) .ws-online {
    opacity: 0;
}

.ws-tile-nums {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.ws-tile-nums p {
    display: grid;
    min-width: 0;
}

.ws-tile-nums .app-label {
    font-size: 12px;
}

.ws-num {
    display: inline-block;
    justify-self: start;

    font-size: clamp(18px, 1.7vw, 21px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.01em;
    font-variant-numeric: tabular-nums;
    transition: color .4s ease;
}

.ws-tile:not(.is-live) .ws-num {
    color: var(--color-text-quiet);
}

.ws-tile-foot {
    position: relative;
    height: 36px;
}

.ws-spark {
    width: 100%;
    max-width: none;
    height: 100%;
    transition: opacity .4s ease;
}

.ws-spark-line {
    fill: none;
    stroke: var(--dot);
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

.ws-spark-area {
    fill: color-mix(in srgb, var(--dot) 15%, transparent);
}

.ws-tile-wait {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding-inline: 6px;

    border: 1px dashed var(--color-border);
    border-radius: 9px;

    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    color: var(--color-text-soft);

    opacity: 0;
    transition: opacity .4s ease;
}

.ws-tile:not(.is-live) .ws-spark {
    opacity: 0;
}

.ws-tile:not(.is-live) .ws-tile-wait {
    opacity: 1;
}

/* the start of a new round: everything softly out and in again */
.ws-tiles.is-resetting .ws-tile {
    opacity: .35;
    transition: opacity .35s ease;
}

.ws-tiles .ws-tile {
    transition: opacity .45s ease, border-color .4s ease, box-shadow .4s ease;
}

/* ===================================================================
   Sharing: an e-mail address, a permission, someone new under "Has access"
   =================================================================== */

.ws-share {
    padding: clamp(16px, 3.2vw, 40px);

    border: 1px solid var(--color-border-soft);
    border-radius: 22px;
    background:
        radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--color-green) 14%, transparent), transparent 60%),
        var(--color-bg-soft);
}

:root[data-theme="dark"] .ws-share {
    border-color: var(--color-border);
}

.ws-share-card {
    max-width: 440px;
    margin-inline: auto;
    padding: clamp(16px, 2vw, 22px);

    border: 1px solid var(--color-border-soft);
    border-radius: 18px;
    background: var(--color-bg);
    box-shadow: var(--shadow-lg);
}

:root[data-theme="dark"] .ws-share-card {
    border-color: var(--color-border);
    background: var(--color-bg-soft);
}

.ws-share-title {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.01em;
}

.ws-field {
    display: grid;
    gap: 6px;
    margin-top: 14px;
}

.ws-field-label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--color-text-soft);
}

.ws-input {
    display: flex;
    align-items: center;
    min-width: 0;
    height: 40px;
    padding-inline: 12px;

    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-bg);

    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;

    transition: border-color .2s ease, box-shadow .2s ease;
}

.ws-input.is-focus {
    border-color: var(--color-green);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-green) 22%, transparent);
}

.ws-caret {
    flex: none;
    width: 2px;
    height: 18px;
    margin-inline-start: 1px;
    border-radius: 1px;
    background: var(--color-text);
    opacity: 0;
}

.ws-input.is-focus .ws-caret {
    animation: ws-caret 1.1s ease-in-out infinite;
}

@keyframes ws-caret {
    0%, 45% { opacity: 1; }
    55%, 100% { opacity: .15; }
}

.ws-roles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px;
    padding: 3px;

    border: 1px solid var(--color-border-soft);
    border-radius: 11px;
    background: var(--color-bg-soft);
}

:root[data-theme="dark"] .ws-roles {
    border-color: var(--color-border);
    background: var(--color-bg);
}

.ws-role {
    padding-block: 7px;
    border-radius: 8px;

    font-size: 13.5px;
    font-weight: 700;
    text-align: center;
    color: var(--color-text-soft);

    transition: background-color .3s ease, color .3s ease, box-shadow .3s ease, transform .15s ease;
}

.ws-role.is-on {
    background: var(--color-bg);
    color: var(--color-text);
    box-shadow: 0 1px 3px rgba(15, 23, 42, .12), inset 0 0 0 1px color-mix(in srgb, var(--color-green) 45%, transparent);
}

:root[data-theme="dark"] .ws-role.is-on {
    background: var(--color-bg-soft);
}

.ws-role.is-press,
.ws-share-btn.is-press {
    transform: scale(.95);
}

.ws-role-hints {
    display: grid;
}

.ws-role-hint {
    grid-area: 1 / 1;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--color-text-soft);
    opacity: 0;
    transition: opacity .3s ease;
}

.ws-role-hint.is-on {
    opacity: 1;
}

.ws-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 40px;
    margin-top: 16px;

    border-radius: 10px;
    background: var(--color-green-ink);
    color: #ffffff;

    font-size: 14px;
    font-weight: 800;

    transition: transform .15s ease, opacity .2s ease;
}

:root[data-theme="dark"] .ws-share-btn {
    background: var(--color-green);
    color: var(--color-green-ink);
}

.ws-share-busy,
.ws-share-btn.is-busy .ws-share-go {
    display: none;
}

.ws-share-btn.is-busy .ws-share-busy {
    display: inline;
}

.ws-share-btn.is-busy {
    opacity: .75;
}

.ws-access-t {
    margin-top: 18px;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--color-text-soft);
}

.ws-people {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.ws-person {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 7px 10px;

    border-radius: 12px;
    background: var(--color-bg-soft);

    font-size: 13.5px;
    font-weight: 700;
}

:root[data-theme="dark"] .ws-person {
    background: var(--color-bg);
}

.ws-avatar {
    display: grid;
    place-items: center;
    flex: none;

    width: 30px;
    height: 30px;

    border-radius: 50%;
    background: var(--av);
    color: #ffffff;

    font-size: 12.5px;
    font-weight: 800;

    transition: box-shadow .4s ease;
}

.ws-person-who {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ws-person-role,
.ws-wait {
    flex: none;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.ws-person-role {
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text-soft);
}

:root[data-theme="dark"] .ws-person-role {
    background: var(--color-bg-soft);
}

.ws-wait {
    background: #fef3c7;
    color: #92400e;
    transition: opacity .3s ease;
}

:root[data-theme="dark"] .ws-wait {
    background: rgba(245, 158, 11, .16);
    color: #fbbf24;
}

.ws-person.is-accepted .ws-wait {
    display: none;
}

.ws-person.is-accepted .ws-avatar {
    box-shadow: 0 0 0 2px var(--color-bg), 0 0 0 4px var(--color-green);
}

/* the new person slides in (the row keeps its place, so nothing jumps) */
.ws-person.is-new {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .4s ease, transform .5s var(--ease);
}

.ws-person.is-new.is-in {
    opacity: 1;
    transform: none;
}

/* ===================================================================
   Feature blocks: small CSS animations (they run only while .is-playing, style/pages.css)
   =================================================================== */

/* ----- a colour for every website: a stacked chart that keeps moving ----- */

@keyframes ft-bar {
    from { transform: scaleY(.5); }
    to { transform: scaleY(1); }
}

/* ----- groups: a chip is picked, the websites outside it fade ----- */
.ft-groups {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: clamp(14px, 2vw, 22px);
}

.ft-groups-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ft-chip {
    padding: 5px 12px;

    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-bg);

    font-size: 12.5px;
    font-weight: 700;
    color: var(--color-text-soft);
    animation: 9s ease infinite;
}

:root[data-theme="dark"] .ft-chip {
    background: var(--color-bg-soft);
}

.ft-chip[data-n="1"],
:root[data-theme="dark"] .ft-chip[data-n="1"] {
    border-color: var(--color-green);
    background: var(--color-green-soft);
    color: var(--color-text);
}

.ft-chip[data-n="1"] { animation-name: ft-on-1; }
.ft-chip[data-n="2"] { animation-name: ft-on-2; }
.ft-chip[data-n="3"] { animation-name: ft-on-3; }

@keyframes ft-on-1 {
    0%, 30%, 100% { border-color: var(--color-green); background: var(--color-green-soft); color: var(--color-text); }
    33%, 97% { border-color: var(--color-border); background: var(--color-bg); color: var(--color-text-soft); }
}

@keyframes ft-on-2 {
    0%, 30%, 66%, 100% { border-color: var(--color-border); background: var(--color-bg); color: var(--color-text-soft); }
    33%, 63% { border-color: var(--color-green); background: var(--color-green-soft); color: var(--color-text); }
}

@keyframes ft-on-3 {
    0%, 63%, 100% { border-color: var(--color-border); background: var(--color-bg); color: var(--color-text-soft); }
    66%, 97% { border-color: var(--color-green); background: var(--color-green-soft); color: var(--color-text); }
}

.ft-groups-rows {
    display: grid;
    gap: 6px;
}

.ft-row {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;

    border: 1px solid var(--color-border-soft);
    border-radius: 11px;
    background: var(--color-bg);

    font-size: 13.5px;
    font-weight: 700;
    animation: 9s ease infinite;
}

:root[data-theme="dark"] .ft-row {
    border-color: var(--color-border);
    background: var(--color-bg-soft);
}

.ft-row > span:nth-child(2) {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ft-row b {
    font-variant-numeric: tabular-nums;
}

.ft-row[data-in="12"] { animation-name: ft-in-12; }
.ft-row[data-in="13"] { animation-name: ft-in-13; }

@keyframes ft-in-12 {
    0%, 63%, 100% { opacity: 1; }
    66%, 97% { opacity: .22; }
}

@keyframes ft-in-13 {
    0%, 30%, 66%, 100% { opacity: 1; }
    33%, 63% { opacity: .22; }
}

/* ----- several domains: a new one is added to the website ----- */

@keyframes ft-domain {
    0%, 22% { height: 0; opacity: 0; border-top-color: transparent; }
    32%, 86% { height: 34px; opacity: 1; }
    94%, 100% { height: 0; opacity: 0; border-top-color: transparent; }
}

@keyframes ft-press {
    0%, 14%, 24%, 100% { transform: none; background: transparent; }
    18% { transform: scale(.94); background: var(--color-green-soft); }
}

/* ----- one login, several accounts: the tick moves from one account to the next ----- */
.ft-accounts {
    display: grid;
    place-items: center;
    padding: clamp(12px, 2vw, 22px);
}

.ft-accounts-menu {
    width: min(100%, 300px);
    padding: 10px;

    border: 1px solid var(--color-border-soft);
    border-radius: 14px;
    background: var(--color-bg);
    box-shadow: var(--shadow-md);
}

:root[data-theme="dark"] .ft-accounts-menu {
    border-color: var(--color-border);
    background: var(--color-bg-soft);
}

.ft-accounts-t {
    padding: 4px 8px 8px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--color-text-soft);
}

.ft-acc {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 8px;

    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
    animation: 9s ease infinite;
}

.ft-acc-logo {
    display: grid;
    place-items: center;
    flex: none;

    width: 28px;
    height: 28px;

    border-radius: 8px;
    background: color-mix(in srgb, var(--av) 14%, var(--color-bg));
    color: color-mix(in srgb, var(--av) 62%, var(--color-text));
    font-size: 11px;
    font-weight: 800;
}

.ft-acc-check {
    width: 16px;
    height: 16px;
    margin-inline-start: auto;
    color: var(--green-text);
    opacity: 0;
    animation: 9s ease infinite;
}

.ft-acc[data-n="1"] {
    background: var(--color-green-soft);
}

.ft-acc[data-n="1"] .ft-acc-check {
    opacity: 1;
}

.ft-acc[data-n="1"] { animation-name: ft-acc-1; }
.ft-acc[data-n="2"] { animation-name: ft-acc-2; }
.ft-acc[data-n="3"] { animation-name: ft-acc-3; }
.ft-acc[data-n="1"] .ft-acc-check { animation-name: ft-chk-1; }
.ft-acc[data-n="2"] .ft-acc-check { animation-name: ft-chk-2; }
.ft-acc[data-n="3"] .ft-acc-check { animation-name: ft-chk-3; }

@keyframes ft-acc-1 { 0%, 30%, 100% { background: var(--color-green-soft); } 33%, 97% { background: transparent; } }
@keyframes ft-acc-2 { 0%, 30%, 66%, 100% { background: transparent; } 33%, 63% { background: var(--color-green-soft); } }
@keyframes ft-acc-3 { 0%, 63%, 100% { background: transparent; } 66%, 97% { background: var(--color-green-soft); } }
@keyframes ft-chk-1 { 0%, 30%, 100% { opacity: 1; } 33%, 97% { opacity: 0; } }
@keyframes ft-chk-2 { 0%, 30%, 66%, 100% { opacity: 0; } 33%, 63% { opacity: 1; } }
@keyframes ft-chk-3 { 0%, 63%, 100% { opacity: 0; } 66%, 97% { opacity: 1; } }

/* ===================================================================
   Less motion: the calm final state (every animation off; base.css shortens transitions)
   =================================================================== */

@media (prefers-reduced-motion: reduce) {

    
    .ws-bump,
    .ws-tile.is-turning .ws-state,
    .ws-tile.is-turning .ws-state::after,
    .ws-input.is-focus .ws-caret,
    .ft-chip,
    .ft-row,
    .ft-acc,
    .ft-acc-check {
        animation: none;
    }
}

/* ===================================================================
   Narrower screens
   =================================================================== */

@media (max-width: 860px) {

    /* the legend leaves the map and sits under it */
    

    
}

@media (max-width: 640px) {

    .ws-tiles {
        grid-template-columns: minmax(0, 1fr);
    }

    /* one tile per line: name and badge on the left, numbers and chart on the right */
    .ws-tile {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas: "head nums" "state foot";
        align-items: center;
        gap: 10px 12px;
        padding: 12px;
    }

    .ws-board .ws-tile {
        grid-template-areas: "head nums" "state foot" "acc acc";
    }

    .ws-tile-acc { grid-area: acc; }

    .ws-tile-head { grid-area: head; gap: 8px; }
    .ws-tile-state { grid-area: state; }
    .ws-tile-nums { grid-area: nums; }
    .ws-tile-foot { grid-area: foot; height: 30px; }

    .ws-tile-badge {
        width: 28px;
        height: 28px;
        border-radius: 8px;
        font-size: 11px;
    }

    .ws-tile-name {
        white-space: normal;
        font-size: 13.5px;
        line-height: 1.25;
    }

    .ws-num {
        font-size: 18px;
    }
}

/* ===== the four statuses: a dot in the app's colour instead of the green tick (Silent is a warning, the others are grey) ===== */

.ws-status-list li::before {
    width: 10px;
    height: 10px;
    margin: 7px 6px 0;
    background: var(--st, var(--color-text-quiet));
}

.ws-status-list li[data-st="live"] { --st: var(--color-green-dark); }
.ws-status-list li[data-st="seen"] { --st: #64748b; }
.ws-status-list li[data-st="silent"] { --st: #d97706; }
.ws-status-list li[data-st="none"] { --st: transparent; }
.ws-status-list li[data-st="none"]::before { box-shadow: inset 0 0 0 2px var(--color-text-quiet); }

:root[data-theme="dark"] .ws-status-list li[data-st="live"] { --st: var(--color-green); }
:root[data-theme="dark"] .ws-status-list li[data-st="silent"] { --st: #fbbf24; }

/* ===================================================================
   The big picture at the top: the Websites screen with three tiles (status, and who has access)
   =================================================================== */

.ws-stage-body {
    padding: clamp(14px, 2vw, 24px);
}

.ws-stage-top {
    margin-bottom: clamp(12px, 1.6vw, 18px);
}

.ws-stage-h {
    font-size: clamp(20px, 2.2vw, 26px);
    font-weight: 800;
    letter-spacing: -.02em;
}

.ws-stage-sub {
    margin-top: 2px;
    font-size: 14.5px;
    color: var(--color-text-soft);
}

/* the tiles are the status row's tiles, without their box around them */
.ws-board {
    padding: 0;
    border: 0;
    background: none;
    gap: clamp(10px, 1.4vw, 16px);
}

:root[data-theme="dark"] .ws-board {
    border: 0;
}

/* who has access: the people under a tile, each with the permission they were given */
.ws-tile-acc {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--color-border-soft);
}

:root[data-theme="dark"] .ws-tile-acc {
    border-color: var(--color-border);
}

.ws-acc-l {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text-quiet);
}

.ws-acc {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin-top: 7px;
}

.ws-acc .ws-avatar {
    width: 26px;
    height: 26px;
    font-size: 11.5px;
}

.ws-acc-who {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: 13.5px;
    font-weight: 700;
}

.ws-acc-tag {
    flex: none;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--color-text-quiet);
}

.ws-acc-role {
    flex: none;
    margin-inline-start: auto;
    padding: 3px 9px;

    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-bg);
    color: var(--color-text-soft);

    font-size: 12px;
    font-weight: 700;
}

:root[data-theme="dark"] .ws-acc-role {
    background: var(--color-bg-soft);
}

/* ===================================================================
   Who can do what: one table for the page, with what to know before an invitation goes out
   =================================================================== */

.ws-perms {
    max-width: 1080px;
    margin-inline: auto;
}

.ws-perms-t {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.03em;
    text-align: center;
}

.ws-perms-lead {
    max-width: 52ch;
    margin: 12px auto 0;

    font-size: clamp(16px, 1.4vw, 18px);
    line-height: 1.55;
    color: var(--color-text-soft);
    text-align: center;
}

.ws-perms .cards {
    margin-top: clamp(24px, 3vw, 36px);
}

.ws-perms .know-list {
    margin-top: clamp(20px, 2.6vw, 28px);
}

/* the pictures that came from the "many websites" cards: a calm card like the other pictures of the page */
.split-media > .feature-media {
    max-width: 560px;
    margin-inline: auto;

    border: 1px solid var(--color-border-soft);
    box-shadow: var(--shadow-lg);
}

:root[data-theme="dark"] .split-media > .feature-media {
    border-color: var(--color-border);
}
