/* Styles used by a single page. */

/* Home */
.sh-landing-band {
    background: var(--sh-landing-band);
}

.sh-landing-band-inner.mud-container {
    padding-block: 64px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.sh-landing-text {
    flex: 7 1 480px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sh-landing-title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--mud-palette-text-primary);
}

.sh-landing-lead {
    margin: 0;
    max-width: 60ch;
    font-size: 18px;
    line-height: 1.6;
    color: var(--sh-landing-band-text);
}

.sh-landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sh-landing-button {
    height: 36px;
    padding: 0 14px;
    border-radius: var(--sh-radius-sm);
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.sh-landing-button-light {
    background: var(--mud-palette-text-primary);
    color: var(--mud-palette-background);
}

.sh-landing-button-light:hover {
    background: var(--sh-landing-band-text);
}

.sh-landing-button-outline {
    color: var(--mud-palette-text-primary);
    box-shadow: inset 0 0 0 1px var(--sh-landing-outline);
}

.sh-landing-button-outline:hover {
    background: color-mix(in srgb, var(--mud-palette-text-primary) 10%, transparent);
}

.sh-landing-art {
    flex: 3 1 220px;
    display: flex;
    justify-content: center;
}

.sh-landing-mark {
    width: 200px;
    height: 215px;
    opacity: 0.55;
}

@media (max-width: 599.98px) {
    .sh-landing-band-inner.mud-container {
        padding-block: 40px;
    }

    .sh-landing-art {
        display: none;
    }
}

.sh-feature-grid {
    --sh-grid-repeat: auto-fit;
    --sh-grid-min: 300px;
    --sh-grid-gap: 24px;
}

.sh-feature.mud-paper {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sh-lics-band {
    padding: 32px;
    border-radius: var(--sh-radius-lg);
    background: var(--sh-landing-band);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px 40px;
}

.sh-lics-text {
    flex: 1 1 480px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sh-lics-text img {
    display: block;
    height: 26px;
    align-self: flex-start;
}

.sh-lics-text p {
    margin: 0;
    max-width: 62ch;
    font-size: 16px;
    line-height: 1.6;
    color: var(--sh-landing-band-text);
}

.sh-lics-band .sh-landing-button {
    gap: 6px;
}

/* Login, Register */
.sh-auth-card.mud-paper {
    max-width: 440px;
    margin: 0 auto;
    padding: 32px;
    border-radius: var(--sh-radius-lg);
    background: var(--mud-palette-surface);
}

/* Sign-in provider buttons in Google's dark style (their branding rules); Apple would be black with the same outline. */
.sh-provider-button {
    width: 100%;
    height: 40px;
    box-sizing: border-box;
    border: 0;
    border-radius: var(--sh-radius-sm);
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--sh-google-bg);
    color: var(--sh-google-text);
    box-shadow: inset 0 0 0 1px var(--sh-google-border);
    font-family: 'Google Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.sh-provider-button:hover {
    background: var(--sh-google-bg-hover);
}

.sh-provider-button:focus-visible {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 2px;
}

.sh-provider-button .mud-icon-root {
    font-size: 18px;
}

/* Log in and register */
/* The group a join page invites to: its tile, name and the apps it gives access to. */
.sh-join-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--sh-radius);
    background: var(--sh-raised);
}

.sh-auth-fields {
    border: 0;
    margin: 0;
    min-width: 0;
    padding: 0;
}

.sh-auth-or {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--mud-palette-text-secondary);
}

.sh-auth-or::before,
.sh-auth-or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--mud-palette-lines-default);
}

/* The "I'm not a robot" check in the hub's colours. */
.sh-altcha {
    display: block;
    --altcha-max-width: 100%;
    --altcha-color-base: var(--mud-palette-surface);
    --altcha-color-base-content: var(--mud-palette-text-primary);
    --altcha-color-primary: var(--mud-palette-primary);
    --altcha-border-color: var(--sh-control);
    --altcha-border-radius: var(--sh-radius-sm);
    --altcha-checkbox-border-color: var(--mud-palette-text-secondary);
}

/* The sign-up form's field for bots: out of sight and out of the tab order. */
.sh-trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.sh-auth-forgot {
    margin-top: -4px;
    text-align: right;
}

.sh-auth-below {
    max-width: 440px;
    margin: 12px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

/* Profile */
.sh-profile-main {
    max-width: 960px;
    min-width: 0;
}

.sh-password-mask.mud-typography {
    letter-spacing: 0.15em;
}

/* Why a new password was refused, one line each. */
.sh-error-list {
    margin: 0;
    padding-left: 1.2em;
}

/* Two-factor setup: the QR code beside the key, then the recovery codes */
.sh-two-factor-key {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.sh-two-factor-qr {
    width: 168px;
    height: 168px;
    flex: none;
    padding: 6px;
    border-radius: var(--sh-radius);
    background: var(--mud-palette-white);
    line-height: 0;
}

.sh-two-factor-qr svg {
    width: 100%;
    height: 100%;
}

/* A link's QR code, large enough to scan from a projected slide. */
.sh-qr-large {
    width: 260px;
    height: 260px;
    padding: 10px;
    border-radius: var(--sh-radius);
    background: var(--mud-palette-white);
    line-height: 0;
}

.sh-qr-large svg {
    width: 100%;
    height: 100%;
}

.sh-two-factor-key-text {
    flex: 1 1 200px;
    min-width: 0;
}

.sh-two-factor-key .sh-mono.mud-typography {
    font-size: 15px;
    word-spacing: 3px;
}

.sh-two-factor-copy.mud-button-root {
    margin-left: -8px;
}

.sh-recovery-codes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 24px;
    padding: 12px 16px;
    border-radius: var(--sh-radius);
    background: var(--mud-palette-background);
    font-size: 14px;
    letter-spacing: 0.04em;
}

/* Save data */
.sh-key.mud-typography {
    font-size: 14px;
    font-weight: 500;
    color: var(--mud-palette-text-primary);
}

.sh-value-preview.mud-typography {
    color: var(--mud-palette-text-disabled);
}

/* Content */
.sh-file-grid {
    --sh-grid-min: 180px;
    --sh-grid-gap: 12px;
}

/* Phones: two files a row, a little apart from the wrapped toolbar. */
@media (max-width: 599.98px) {
    .sh-file-grid {
        --sh-grid-min: 140px;
        margin-top: 8px;
    }
}

.sh-file-card.mud-card {
    border-radius: var(--sh-radius-lg);
    cursor: pointer;
    background: var(--mud-palette-surface);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sh-file-preview {
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sh-file-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sh-file-tile.mud-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--sh-radius);
    color: var(--sh-on-tile);
}

.sh-file-tile.mud-avatar .mud-icon-root {
    font-size: 24px;
}

.sh-file-tile-sm.mud-avatar {
    border-radius: var(--sh-radius-sm);
    color: var(--sh-on-tile);
}

.sh-file-body.mud-card-content {
    padding: 8px 10px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sh-file-name.mud-typography {
    font-weight: 600;
}

.sh-file-card-open.mud-card {
    box-shadow: inset 0 0 0 2px var(--mud-palette-primary);
}

.sh-file-card.mud-card:focus-visible {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 2px;
}

.sh-file-actions {
    padding: 0 2px 2px;
}

.sh-file-uploader {
    min-width: 0;
    color: var(--mud-palette-text-secondary);
}

.sh-file-uploader .mud-typography,
.sh-file-uploader .mud-icon-root {
    font-size: var(--mud-typography-caption-size);
}

.sh-file-preview-panel {
    border-radius: var(--sh-radius);
    overflow: hidden;
}

/* The paging trigger at the end of the list. */
.sh-scroll-sentinel {
    height: 1px;
}

.sh-upload-entry-name.mud-typography {
    word-break: break-word;
}

/* Media type dialog: the extensions as chips with the typing field after them. */
.sh-ext-field {
    cursor: text;
}

.sh-ext-input {
    min-width: 90px;
    flex-grow: 1;
    padding: 2px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1rem;
    font-family: inherit;
    color: var(--mud-palette-text-primary);
    caret-color: var(--mud-palette-primary);
}

/* The unit select puts its class on an inner element; the row lays out its wrapper. */
.mud-select:has(.sh-size-unit) {
    flex: 0 0 96px;
}

/* Apps */
.sh-sort-select.mud-input-control {
    width: 180px;
    flex: none;
    margin: 0;
}

.sh-app-grid {
    --sh-grid-min: 280px;
}

.sh-app-card.mud-paper {
    position: relative;
    padding: 8px 6px 8px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sh-app-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sh-app-card.mud-paper:hover {
    background: var(--sh-raised);
}

/* The name link covers the whole card; the star sits above it. */
.sh-app-card-link::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.sh-app-card .sh-meta {
    position: relative;
    z-index: 1;
    width: fit-content;
}

.sh-app-card-head {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.sh-app-card-link {
    flex: 1;
    min-width: 0;
}

.sh-app-card-star {
    position: relative;
    z-index: 1;
}

/* App settings: services */
.sh-svc-grid {
    --sh-grid-repeat: auto-fit;
    --sh-grid-min: 220px;
    padding-bottom: 12px;
}

.sh-svc-card.mud-paper {
    background: var(--sh-raised);
}

.sh-svc-head,
.sh-svc-name {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.sh-svc-head .sh-svc-switch {
    margin-left: auto;
}

.sh-svc-off .sh-tile,
.sh-svc-off .sh-row-title {
    opacity: 0.55;
}

.sh-svc-card.sh-svc-off.mud-paper {
    background: transparent;
}

.sh-svc-stats,
.sh-svc-need-list,
.sh-svc-needs {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.sh-svc-needs {
    margin-top: auto;
}

.sh-svc-stats .mud-chip {
    margin: 0;
}

.sh-svc-table.mud-table {
    background: transparent;
    margin-bottom: 8px;
}

.sh-svc-table .sh-svc-size {
    white-space: nowrap;
}

/* Phones: the switches stay in view; usage shows in the cards view and the storage total in the head. */
@media (max-width: 599.98px) {
    .sh-svc-table .sh-svc-usage,
    .sh-svc-table .sh-svc-size {
        display: none;
    }
}

/* Hub settings storage: on phones the app name gives way and the largest service goes, so the sizes stay in view. */
@media (max-width: 599.98px) {
    .sh-storage-app {
        max-width: 40vw;
    }

    .sh-storage-table .sh-storage-largest {
        display: none;
    }
}

.sh-svc-switch.mud-input-control {
    flex: none;
    margin: 0;
}

/* A needed service; the dot is green when it is on, amber when it is off. */
.sh-svc-need {
    position: relative;
    width: 22px;
    height: 22px;
    border-radius: var(--sh-radius-sm);
    color: var(--sh-on-tile);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sh-svc-need .mud-icon-root {
    font-size: 15px;
}

.sh-svc-need::after {
    content: "";
    position: absolute;
    right: -3px;
    top: -3px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--mud-palette-success);
}

.sh-svc-need-off {
    box-shadow: 0 0 0 2px var(--mud-palette-warning);
}

.sh-svc-need-off::after {
    background: var(--mud-palette-warning);
}

/* A tool from Service Hub › Tools the service works through, on the hub's tile colour. */
.sh-svc-need-tool {
    background: var(--sh-hub-tile);
}

/* Home */
.sh-fav-grid {
    --sh-grid-min: 250px;
}

.sh-live-note.mud-typography::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 6px;
    border-radius: 50%;
    background: var(--mud-palette-success);
}

/* Link headset account */
.sh-link-code .mud-input > input.mud-input-root,
.sh-device-code .mud-input > input.mud-input-root {
    font-family: var(--sh-font-mono);
    text-align: center;
}

.sh-link-code .mud-input > input.mud-input-root {
    font-size: 22px;
    letter-spacing: 0.3em;
}

/* Sign in a device */
.sh-device-code .mud-input > input.mud-input-root {
    font-size: 20px;
    letter-spacing: 0.15em;
}

.sh-device-card > .mud-icon-root {
    flex: none;
    width: 40px;
    height: 40px;
    padding: 8px;
    box-sizing: border-box;
    border-radius: var(--sh-radius-sm);
    background: var(--mud-palette-surface);
}

/* Lobby: the comparison before the version filter. */
.sh-version-op.mud-input-control {
    width: 88px;
}

/* Streams */
.sh-room-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.sh-room-stage { padding: 6px; border-radius: var(--sh-radius-lg); }
.sh-room-table .mud-table-cell { padding-left: 16px; padding-right: 16px; }
.sh-room-side { flex: 0 1 360px; min-width: 300px; display: flex; flex-direction: column; gap: 12px; }
.sh-player { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--sh-radius); overflow: hidden; background: var(--sh-video-bg); }
.sh-player-controls {
    position: absolute; right: 12px; bottom: 12px; padding: 4px; border-radius: var(--sh-radius); display: flex; align-items: center; gap: 2px;
    background: color-mix(in srgb, var(--sh-raised) 85%, transparent); backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.15s;
}
.sh-player:hover .sh-player-controls, .sh-player:focus-within .sh-player-controls { opacity: 1; }
.sh-player-controls .mud-icon-button { color: var(--mud-palette-text-primary); border-radius: var(--sh-radius-sm); }
.sh-player-controls .mud-icon-button:hover { background: var(--sh-control); }
.sh-player-controls .mud-icon-button:disabled { color: color-mix(in srgb, var(--mud-palette-text-primary) 35%, transparent); background: none; }
.sh-player-volume {
    -webkit-appearance: none; appearance: none; width: 84px; height: 3px; margin: 0 10px 0 4px; border-radius: var(--sh-radius-pill); cursor: pointer;
    background: linear-gradient(to right, var(--mud-palette-text-primary) var(--level), var(--sh-hover) var(--level));
}
.sh-player-volume::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--mud-palette-text-primary); border: 0; }
.sh-player-volume::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--mud-palette-text-primary); border: 0; }
.sh-player-volume:disabled { cursor: default; background: var(--sh-control); }
.sh-player-volume:disabled::-webkit-slider-thumb { background: var(--sh-hover); }
.sh-player-volume:disabled::-moz-range-thumb { background: var(--sh-hover); }
.sh-room-mine.mud-paper { padding: 10px 10px 10px 12px; display: flex; align-items: center; gap: 8px; }
.sh-room-select { width: 110px; flex: none; }
.sh-room-thumb {
    width: 80px; height: 45px; border-radius: var(--sh-radius-sm); background: var(--sh-raised);
    display: inline-flex; align-items: center; justify-content: center; color: var(--mud-palette-text-secondary);
}
.sh-display-select { width: 240px; }
.sh-cast { position: relative; }
.sh-cast-pop { width: 340px; max-width: calc(100vw - 32px); padding: 6px; margin-top: 4px; }
.sh-room-display {
    width: 100%; min-height: 44px; box-sizing: border-box; padding: 4px 4px 4px 8px; border-radius: var(--sh-radius-sm);
    display: flex; align-items: center; gap: 10px; cursor: pointer;
}
.sh-room-display:hover { background: var(--sh-control); }
.sh-avatar-stack { display: inline-flex; }
.sh-avatar-stack > * { margin-left: -6px; box-shadow: 0 0 0 2px var(--mud-palette-surface); border-radius: 50%; }
.sh-avatar-stack > *:first-child { margin-left: 0; }
.sh-detail-scroll { max-height: 320px; overflow-y: auto; }
.sh-watch-video { width: 100%; height: 100%; object-fit: contain; display: block; }
.sh-watch-video[hidden] { display: none; }
.sh-watch-overlay {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    color: var(--mud-palette-text-secondary);
}

/* Downloads */
.sh-download-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sh-download-tile.mud-paper {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 12px;
}

.sh-download-tile-art {
    flex: 0 1 288px;
    min-width: 0;
    align-self: flex-start;
}

.sh-download-tile-body {
    flex: 1 1 360px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sh-download-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    min-width: 0;
}

.sh-download-top.mud-paper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 14px;
    margin-bottom: 12px;
}

.sh-download-top-art {
    width: 320px;
    max-width: 100%;
}

.sh-download-top-body {
    flex: 1 1 360px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sh-facts {
    margin: 0;
    display: grid;
    grid-template-columns: max-content 1fr;
    align-items: center;
    gap: 6px 16px;
    font-size: 13px;
}

.sh-facts dt {
    color: var(--mud-palette-text-secondary);
}

.sh-facts dd {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
}

.sh-download-section.mud-paper {
    padding: 8px 14px 6px;
    margin-bottom: 12px;
}

/* Public Terms of Service and Privacy policy pages of an app. */
.sh-legal-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.sh-legal-hub-icon {
    width: 40px;
    height: 40px;
}

.sh-legal-head-text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.sh-legal-versions {
    position: relative;
}

.sh-legal-versions summary {
    cursor: pointer;
    list-style: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--mud-palette-primary);
}

.sh-legal-versions summary::-webkit-details-marker {
    display: none;
}

.sh-legal-versions nav {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 5;
    min-width: 200px;
    padding: 6px;
    border-radius: var(--sh-radius);
    background: var(--sh-raised);
    box-shadow: var(--sh-shadow-overlay);
    display: flex;
    flex-direction: column;
}

/* On phones the menu opens from the start of its line, where the summary wraps to. */
@media (max-width: 599.98px) {
    .sh-legal-versions nav {
        left: 0;
        right: auto;
    }
}

.sh-legal-versions nav a {
    padding: 6px 8px;
    border-radius: var(--sh-radius-sm);
    color: inherit;
    font-size: 13px;
    text-decoration: none;
}

.sh-legal-versions nav a:hover,
.sh-legal-versions nav a[aria-current] {
    background: var(--sh-control);
}

.sh-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-top: 24px;
    padding-top: 12px;
    border-top: 1px solid var(--sh-control);
    font-size: 13px;
}

.sh-legal-links a {
    color: var(--mud-palette-primary);
    font-weight: 600;
    text-decoration: none;
}

/* Editing an app's terms or privacy policy: Markdown beside its preview. */
.sh-legal-editor {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.sh-legal-editor-both {
    grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
}

.sh-legal-source {
    box-sizing: border-box;
    width: 100%;
    min-height: 60vh;
    resize: vertical;
    padding: 14px 16px;
    border: 1px solid var(--sh-control);
    border-radius: var(--sh-radius);
    background: var(--mud-palette-background);
    color: var(--mud-palette-text-primary);
    font-family: var(--sh-font-mono);
    font-size: 13px;
    line-height: 1.7;
}

.sh-legal-source:focus {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: -1px;
}

.sh-legal-preview {
    min-width: 0;
    overflow-wrap: anywhere;
}

.mud-progress-linear.sh-legal-progress {
    width: 64px;
}

.sh-legal-summary {
    padding: 6px 12px;
    border-radius: var(--sh-radius);
    background: var(--mud-palette-surface);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sh-legal-summary-label {
    color: var(--mud-palette-text-secondary);
}

.sh-legal-summary-row {
    min-height: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* A line explaining a tab, left of its toolbar; the controls move below it when narrow. */
.sh-toolbar-note.mud-typography {
    flex: 1 1 280px;
    min-width: 0;
}

/* Releases, Public page tab */
.sh-public-page {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 12px;
}

.sh-public-fields {
    flex: 1 1 480px;
    min-width: 0;
}

.sh-public-fields .sh-prop-value {
    flex: 1 1 260px;
    min-width: 0;
}

.sh-qr-card {
    flex: 0 0 auto;
    max-width: 100%;
    box-sizing: border-box;
    padding: 14px;
    border-radius: var(--sh-radius-lg);
    background: var(--sh-raised);
    display: flex;
    gap: 14px;
}

.sh-qr-side {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sh-qr-logos {
    display: flex;
    gap: 6px;
}

.sh-qr-logo {
    position: relative;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: var(--sh-radius);
    background: var(--mud-palette-surface);
    color: var(--mud-palette-text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.sh-qr-logo:hover {
    background: var(--sh-control);
}

.sh-qr-logo.sh-selected {
    box-shadow: inset 0 0 0 2px var(--mud-palette-primary);
}

.sh-qr-logo img {
    width: 26px;
    height: 26px;
    border-radius: var(--sh-radius-xs);
    object-fit: contain;
}

/* On the picked image tile: click it again to change the image. */
.sh-qr-logo-edit {
    position: absolute;
    right: -5px;
    bottom: -5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--mud-palette-primary);
    color: var(--mud-palette-primary-text);
    box-shadow: 0 0 0 2px var(--sh-raised);
    display: grid;
    place-items: center;
}

.sh-qr-logo-edit .mud-icon-root {
    width: 12px;
    height: 12px;
    font-size: 12px;
}

.sh-qr-actions {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sh-qr-code {
    display: block;
    width: 132px;
    flex: none;
    line-height: 0;
    border-radius: var(--sh-radius);
    overflow: hidden;
}

.sh-qr-code svg {
    width: 100%;
    height: auto;
}

.sh-public-rule {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(440px, 100%), 1fr));
    column-gap: 32px;
    border-bottom: 1px solid var(--mud-palette-divider);
}

.sh-public-rule .sh-prop-row {
    border-bottom: 0;
}

.sh-public-rule .sh-prop-value {
    flex: 1 1 220px;
    min-width: 0;
}

.mud-input-control.sh-public-select {
    width: 100%;
    margin: 0;
}

@media (min-width: 600px) {
    .mud-input-control.sh-public-select {
        max-width: 280px;
    }
}

.sh-public-table td {
    white-space: nowrap;
}

/* The address reads in line with the text in the fields above it. */
.sh-public-fields .sh-copyable {
    padding-left: 14px;
}

.sh-public-tools {
    padding: 10px 0 4px;
}

.sh-public-tools .sh-search {
    max-width: 240px;
}

.sh-public-version {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sh-public-eye {
    vertical-align: middle;
}

.mud-table-cell.sh-col-icon {
    width: 1%;
    padding-right: 0;
}

.sh-row-off {
    opacity: 0.55;
}

/* Public Apps page, an app's page and the apps on Home */
.sh-pa-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.sh-pa-title.mud-typography {
    flex: 1 1 auto;
    min-width: 0;
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.sh-pa-search {
    width: 320px;
    max-width: 100%;
    height: 40px;
    box-sizing: border-box;
    padding: 0 12px;
    border-radius: var(--sh-radius);
    background: var(--sh-raised);
    color: var(--mud-palette-text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sh-pa-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--mud-palette-text-primary);
    font: inherit;
}

.sh-pa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(520px, 100%), 1fr));
    gap: 24px;
}

.sh-pa-card {
    border-radius: var(--sh-radius-lg);
    background: var(--mud-palette-surface);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sh-pa-card .sh-splash {
    border-radius: 0;
}

.sh-pa-card-body {
    flex: 1;
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sh-pa-name {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.sh-pa-name a {
    font-size: 20px;
    font-weight: 600;
    color: var(--mud-palette-text-primary);
    text-decoration: none;
}

.sh-pa-name-lg {
    gap: 14px;
}

.sh-pa-desc {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--mud-palette-text-secondary);
}

.sh-pa-desc-lg {
    font-size: 17px;
}

.sh-pa-versions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    font-size: 13px;
}

.sh-pa-version {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sh-pa-badge {
    height: 22px;
    padding: 0 8px;
    border-radius: var(--sh-radius-pill);
    background: var(--sh-control);
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.sh-pa-badge .mud-icon-root {
    font-size: 15px;
}

.sh-pa-stable {
    background: color-mix(in srgb, var(--mud-palette-success) 14%, transparent);
    color: var(--mud-palette-success);
}

.sh-pa-newest {
    background: var(--sh-primary-tint);
    color: var(--mud-palette-primary);
}

.sh-pa-card-foot {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.sh-pa-button {
    height: 36px;
    margin-left: auto;
    padding: 0 14px;
    border-radius: var(--sh-radius-sm);
    background: var(--mud-palette-primary);
    color: var(--mud-palette-primary-text);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.sh-pa-button .mud-icon-root {
    font-size: 20px;
}

.sh-pa-button-quiet {
    margin-left: 0;
    align-self: flex-start;
    background: var(--sh-control);
    color: var(--mud-palette-text-primary);
}

.sh-pa-hero {
    border-radius: var(--sh-radius-lg);
    background: var(--mud-palette-surface);
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 28px;
}

.sh-pa-hero .sh-pa-hero-art {
    width: 560px;
    max-width: 100%;
    flex: 0 1 560px;
}

.sh-pa-hero-body {
    flex: 1 1 340px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}

.sh-pa-qr {
    flex: 0 0 196px;
    box-sizing: border-box;
    padding: 16px;
    border-radius: var(--sh-radius-lg);
    background: var(--sh-raised);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    font-size: 12px;
    color: var(--mud-palette-text-secondary);
}

.sh-pa-qr .sh-qr-code {
    width: 150px;
}

.sh-pa-downloads {
    border-radius: var(--sh-radius-lg);
    background: var(--mud-palette-surface);
    padding: 12px 20px;
}

.sh-pa-row {
    padding: 10px 0;
    border-top: 1px solid var(--mud-palette-divider);
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    align-items: start;
    gap: 8px 12px;
}

.sh-pa-downloads h2 + .sh-pa-row {
    margin-top: 8px;
}

.sh-pa-row-head {
    height: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.sh-pa-date {
    color: var(--mud-palette-text-secondary);
    font-size: 13px;
    white-space: nowrap;
}

.sh-pa-row-files {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sh-pa-download {
    height: 40px;
    box-sizing: border-box;
    padding: 0 10px 0 6px;
    border-radius: var(--sh-radius);
    background: var(--sh-raised);
    color: var(--mud-palette-text-primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    list-style: none;
}

.sh-pa-download::-webkit-details-marker {
    display: none;
}

.sh-pa-download:hover {
    background: var(--sh-control);
}

.sh-pa-download small {
    font-size: 12px;
    font-weight: 400;
    color: var(--mud-palette-text-secondary);
}

.sh-pa-download > .mud-icon-root {
    color: var(--mud-palette-primary);
    font-size: 20px;
}

.sh-pa-files {
    position: relative;
}

.sh-pa-files nav {
    position: absolute;
    z-index: 4;
    top: 44px;
    left: 0;
    min-width: 280px;
    padding: 6px;
    border-radius: var(--sh-radius);
    background: var(--sh-raised);
    box-shadow: var(--sh-shadow-overlay);
    display: flex;
    flex-direction: column;
}

.sh-pa-files nav a {
    padding: 8px 10px;
    border-radius: var(--sh-radius-sm);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--mud-palette-text-primary);
    text-decoration: none;
    font-size: 13px;
}

.sh-pa-files nav a:hover {
    background: var(--sh-control);
}

.sh-pa-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    font-size: 13px;
    font-weight: 600;
}

.sh-pa-legal a {
    text-decoration: none;
}

.sh-pa-band {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sh-pa-band-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sh-pa-band-head h2 {
    flex: 1;
}

.sh-pa-more {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.sh-pa-band-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
    gap: 12px;
}

/* The splash, with the icon and name on a panel floating over its corner. */
.sh-pa-tile {
    position: relative;
    display: block;
    border-radius: var(--sh-radius-lg);
    overflow: hidden;
    background: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
    text-decoration: none;
}

.sh-pa-tile .sh-splash {
    border-radius: 0;
}

.sh-pa-tile-panel {
    position: absolute;
    left: 10px;
    bottom: 10px;
    max-width: calc(100% - 20px);
    box-sizing: border-box;
    padding: 8px 14px 8px 8px;
    border-radius: var(--sh-radius);
    background: color-mix(in srgb, var(--mud-palette-background) 72%, transparent);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sh-pa-tile:hover .sh-pa-tile-panel {
    background: color-mix(in srgb, var(--mud-palette-background) 88%, transparent);
}

/* Without a splash the big icon shows already. */
.sh-splash-empty + .sh-pa-tile-panel .sh-appicon {
    display: none;
}

.sh-pa-tile-name {
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 720px) {
    .sh-pa-qr {
        display: none;
    }

    .sh-pa-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .sh-pa-row-files .sh-pa-download,
    .sh-pa-row-files .sh-pa-files {
        width: 100%;
    }

    .sh-pa-download-name {
        flex: 1;
    }
}

/* Service Hub › Tools: rows like a table's, dragged into their place in the menu. */
.sh-sort-list {
    background: var(--mud-palette-surface);
    border-radius: var(--sh-radius-lg);
    padding: 4px;
}

.sh-sort-row {
    display: grid;
    grid-template-columns: var(--sh-sort-columns);
    align-items: center;
    column-gap: 20px;
    min-height: var(--sh-row-height);
    padding: 0 0 0 6px;
    border-radius: var(--sh-radius);
    font-size: 14px;
}

/* Fixed columns, so the head and every row line up whatever their chips. */
.sh-sort-links {
    --sh-sort-columns: 18px minmax(0, 1fr) 320px 72px;
}

.sh-sort-tools {
    --sh-sort-columns: 18px minmax(0, 1fr) 300px 96px 72px;
}

/* MudBlazor's drop spot before the first row would catch that row's clicks; it only needs them while dragging. */
.sh-sort-list .mud-drop-item-preview-start {
    pointer-events: none;
}

.sh-sort-list .sh-sort-dragging > .mud-drop-item-preview-start {
    pointer-events: auto;
}

.sh-sort-head {
    min-height: 30px;
    color: var(--mud-palette-text-disabled);
    font-size: 12px;
    font-weight: 500;
}

/* Where the row lands: a quiet row-sized slot instead of MudBlazor's dashed chip. */
.sh-sort-list .mud-dropitem-placeholder {
    height: var(--sh-row-height);
    box-sizing: border-box;
    padding: 0 !important;
    border: 0 !important;
    border-radius: var(--sh-radius);
    background: var(--sh-primary-tint);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mud-palette-primary) 35%, transparent);
}

.mud-drop-item .sh-sort-row:hover {
    background: var(--sh-raised);
}

.sh-sort-handle.mud-icon-root {
    font-size: 18px;
    color: var(--mud-palette-text-disabled);
    cursor: grab;
}

.sh-sort-name {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.sh-sort-address {
    color: var(--mud-palette-text-secondary);
}

.sh-hub-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 28px;
}

.sh-hub-logo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sh-hub-logo-tile {
    width: 32px;
    height: 32px;
    margin-right: 4px;
    border-radius: var(--sh-radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sh-hub-logo-tile img {
    width: 22px;
    height: 22px;
}

.sh-hub-logo-dark {
    background: var(--mud-palette-background);
    box-shadow: inset 0 0 0 1px var(--sh-control);
}

.sh-hub-logo-light {
    background: #FFFFFF;
}

.sh-tool-tile.mud-avatar {
    width: 28px;
    height: 28px;
    flex: none;
    border-radius: var(--sh-radius-sm);
    background: var(--sh-control);
    color: var(--mud-palette-text-primary);
}

.sh-tool-tile.mud-avatar .mud-icon-root {
    font-size: 18px;
}

/* Phones: name and actions on the first line, the rest under the name. */
@media (max-width: 599.98px) {
    .sh-sort-head {
        display: none;
    }

    .sh-sort-row {
        grid-template-columns: 18px minmax(0, 1fr) auto;
        row-gap: 2px;
        padding-block: 6px;
    }

    .sh-sort-row > .sh-sort-actions {
        grid-row: 1;
        grid-column: 3;
    }

    .sh-sort-row > .sh-sort-extra {
        grid-column: 2;
    }
}

/* Crash reports */
/* Analytics study: a participant's documents and the participant picker for uploaded forms. */
.sh-doc-count {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 12px;
    color: var(--mud-palette-text-secondary);
}

.sh-doc-count .mud-icon-root {
    font-size: 15px;
}

.sh-forms-pick {
    flex: 0 0 220px;
}

.sh-agree-text {
    max-height: 60vh;
    overflow-y: auto;
}

.sh-crash-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.sh-crash-name {
    font-weight: 600;
}
.sh-crash-where {
    font-family: var(--sh-font-mono);
    font-size: 12px;
    color: var(--mud-palette-text-secondary);
}

/* The icon after the GlitchTip project link. */
.sh-link-out.mud-icon-root {
    vertical-align: -3px;
}

.sh-new-chip {
    height: 18px;
    padding: 0 6px;
    margin-left: 6px;
    border-radius: var(--sh-radius-sm);
    display: inline-flex;
    align-items: center;
    vertical-align: 1px;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--mud-palette-error);
    background: color-mix(in srgb, var(--mud-palette-error) 16%, transparent);
}

.sh-num {
    font-variant-numeric: tabular-nums;
}

.sh-report-icons {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.sh-report-text {
    display: block;
    font-weight: 600;
}

.sh-report-text::before {
    content: "\201C";
}

.sh-report-text::after {
    content: "\201D";
}

.sh-crash-facts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 12px;
}

.sh-crash-card.mud-paper {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.sh-frames,
.sh-log-lines {
    display: flex;
    flex-direction: column;
    gap: 1px;
    font-family: var(--sh-font-mono);
    font-size: 12.5px;
}

.sh-frame {
    min-height: 28px;
    box-sizing: border-box;
    padding: 4px 10px;
    border-radius: var(--sh-radius-sm);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sh-frame-top {
    background: color-mix(in srgb, var(--mud-palette-error) 12%, transparent);
}
.sh-frame-fn {
    min-width: 0;
}

.sh-frame-lib .sh-frame-fn {
    color: var(--mud-palette-text-secondary);
}

.sh-frame-at {
    flex: none;
    margin-left: auto;
    color: var(--mud-palette-text-secondary);
}

.sh-frames-more.mud-button-root {
    align-self: flex-start;
    font-family: var(--mud-typography-default-family);
}

.sh-log-line {
    min-height: 26px;
    box-sizing: border-box;
    padding: 3px 10px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.sh-log-line .mud-icon-root {
    align-self: center;
    flex: none;
    font-size: 16px;
}

.sh-log-time {
    flex: none;
    color: var(--mud-palette-text-disabled);
}

.sh-log-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.sh-report-full.mud-typography {
    max-width: 68ch;
    white-space: pre-wrap;
}

.sh-error-link {
    min-height: 44px;
    box-sizing: border-box;
    padding: 6px 10px;
    border-radius: var(--sh-radius-sm);
    background: var(--sh-raised);
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sh-error-link:hover {
    background: var(--mud-palette-action-default-hover);
}

.sh-check-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0 12px;
}

.sh-number-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

/* How many people an invite link lets in. */
.sh-invite-limit.mud-input-control {
    flex: 0 0 96px;
    margin: 0;
}

.sh-number-field.mud-input-control {
    flex: 0 0 96px;
    margin: 0;
}

/* Analytics */
.sh-analytics-bar,
.sh-crash-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.sh-analytics-bar .sh-channel,
.sh-crash-filters .sh-channel {
    flex: 0 0 180px;
}

.sh-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px;
    margin-bottom: 8px;
}

/* Phones: the three counts share a row. */
@media (max-width: 599.98px) {
    .sh-kpis {
        grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    }
}

.sh-kpi {
    padding: 12px 14px;
    border-radius: var(--sh-radius-lg);
    background: var(--mud-palette-surface);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sh-kpi > span {
    font-size: 12px;
    color: var(--mud-palette-text-secondary);
}

.sh-kpi > b {
    font-size: 24px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.sh-kpi > em {
    font-style: normal;
    font-size: 12px;
    color: var(--mud-palette-text-secondary);
}

.sh-kpi > em.sh-up {
    color: var(--mud-palette-success);
}

.sh-kpi > em.sh-down {
    color: var(--mud-palette-warning);
}

/* A count that opens its page, e.g. on the hub's Overview. */
a.sh-kpi {
    color: inherit;
    text-decoration: none;
}

a.sh-kpi:hover {
    background: var(--sh-raised);
}

/* Hub Overview */
.sh-hub-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
    gap: 12px;
    align-items: start;
}

/* A firing alert: severity icon, what's wrong and since when. */
.sh-alert-row {
    min-height: 40px;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--mud-palette-divider);
}

.sh-alert-row:last-child {
    border-bottom: 0;
}

.sh-alert-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    column-gap: 10px;
}

.sh-alert-since.mud-typography {
    white-space: nowrap;
}

.sh-hub-services {
    padding: 8px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.sh-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 8px;
}

.sh-chart-card {
    min-width: 0;
    padding: 12px 14px;
    border-radius: var(--sh-radius-lg);
    background: var(--mud-palette-surface);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sh-chart-card h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
}

.sh-chart-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
}

.sh-chart-head h3 {
    flex: 1;
}

.sh-chart-legend {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--mud-palette-text-secondary);
}

.sh-chart-legend i {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 6px;
    border-radius: var(--sh-radius-xs);
    vertical-align: -1px;
}

.sh-chart {
    display: block;
    width: 100%;
    height: auto;
}

.sh-chart-grid {
    stroke: var(--mud-palette-lines-default);
    stroke-width: 1;
}

.sh-chart-text {
    fill: var(--mud-palette-text-secondary);
    font-size: 11px;
}

.sh-top-events {
    display: grid;
    grid-template-columns: minmax(0, 150px) 1fr auto;
    align-items: center;
    gap: 6px 12px;
    font-size: 13px;
}

.sh-top-bar {
    height: 10px;
}

.sh-top-bar i {
    display: block;
    height: 100%;
    min-width: 4px;
    border-radius: var(--sh-radius-pill);
    background: var(--mud-palette-primary);
}

.sh-state {
    height: 22px;
    padding: 0 8px;
    border-radius: var(--sh-radius);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

a.sh-state {
    text-decoration: none;
}

a.sh-state:hover {
    filter: brightness(1.2);
}

.sh-state-live {
    color: var(--mud-palette-success);
    background: color-mix(in srgb, var(--mud-palette-success) 14%, transparent);
}

.sh-state-live::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.sh-state-crash {
    color: var(--mud-palette-error);
    background: color-mix(in srgb, var(--mud-palette-error) 14%, transparent);
}

.sh-state-done {
    color: var(--mud-palette-success);
    background: color-mix(in srgb, var(--mud-palette-success) 14%, transparent);
}

.sh-state-off {
    color: var(--mud-palette-text-secondary);
    background: var(--mud-palette-action-default-hover);
}

.sh-state-kept {
    color: var(--mud-palette-primary);
    background: color-mix(in srgb, var(--mud-palette-primary) 14%, transparent);
}

.sh-kvs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
}

.sh-kv {
    height: 20px;
    padding: 0 6px;
    border-radius: var(--sh-radius-sm);
    background: var(--sh-raised);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--sh-font-mono);
    font-size: 11.5px;
    white-space: nowrap;
}

.sh-kv b {
    font-weight: 500;
    color: var(--mud-palette-text-secondary);
}

.sh-kv-warn {
    color: var(--mud-palette-warning);
}

.sh-strong {
    font-weight: 600;
}

.sh-inline-icon {
    vertical-align: -4px;
    margin-right: 4px;
}

.sh-field-narrow {
    max-width: 180px;
}

.sh-session-avatar {
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: 50%;
    background: var(--sh-control);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.sh-events {
    display: grid;
    grid-template-columns: auto minmax(0, 220px) minmax(0, 1fr);
    align-items: center;
    gap: 2px 16px;
    padding: 6px 12px;
    border-radius: var(--sh-radius-lg);
    background: var(--mud-palette-surface);
    font-size: 13px;
}

.sh-events > * {
    min-height: 34px;
    display: flex;
    align-items: center;
}

.sh-event-time {
    color: var(--mud-palette-text-secondary);
}

.sh-event-note {
    grid-column: 2 / -1;
    margin: 4px 0;
    padding: 8px 10px;
    border-radius: var(--sh-radius);
    background: var(--sh-primary-tint);
    gap: 8px;
}

.sh-event-note > span {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sh-event-note small {
    font-size: 12px;
    color: var(--mud-palette-text-secondary);
}

.sh-event-crash {
    background: color-mix(in srgb, var(--mud-palette-error) 8%, transparent);
}

@media (max-width: 599.98px) {
    .sh-events {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .sh-events > .sh-kvs {
        grid-column: 2;
    }

    .sh-charts {
        grid-template-columns: 1fr;
    }
}

/* Data categories as property rows: kind tile and name, then what they hold. */
.sh-prop-label.sh-category-label {
    flex-basis: 260px;
    min-width: 0;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}

.mud-checkbox.sh-category-check {
    margin: 0;
}
.sh-category-detail {
    font-size: 12.5px;
}

.sh-category-detail + .sh-state {
    margin-left: 8px;
}

/* A study's consent: the list of what it collects, framed after the text. */
.sh-consent-text {
    max-width: 760px;
}

.sh-consent-collected {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: var(--sh-radius-sm);
    box-shadow: inset 0 0 0 1px var(--mud-palette-lines-default);
}

.sh-consent-collected .legal-content > :last-child {
    margin-bottom: 0;
}

/* An export's status: a pill or progress bar, then when it expires or how far it is. */
.sh-export-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.mud-progress-linear.sh-export-progress {
    width: 80px;
}

/* Server reset dialog: saved points and the keys that change */
.sh-reset-points.mud-paper {
    max-height: 240px;
    overflow-y: auto;
    padding: 4px;
}

.sh-reset-changes.mud-paper {
    padding: 4px 12px;
}

.sh-reset-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 32px;
}

.sh-reset-row > :first-child {
    flex: 1;
    min-width: 0;
}

.sh-reset-key {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Phones: the key and its pill keep the row. */
@media (max-width: 599.98px) {
    .sh-reset-what.mud-typography {
        display: none;
    }
}

/* Remote config: Check a player, the value column and the overrides in precedence order */
.sh-config-check.mud-paper {
    padding: 8px 12px;
    margin-bottom: 12px;
}

.sh-config-check-title.mud-typography {
    margin-right: 4px;
}

.sh-save-find.mud-paper {
    padding: 8px 12px;
    margin-bottom: 12px;
}

/* Key and Condition put their class on an inner element; the row lays out their wrapper. */
.sh-save-find-key,
.sh-save-find .mud-select:has(.sh-save-find-key) {
    flex: 1 1 116px;
    max-width: 220px;
}

.sh-save-find .mud-select:has(.sh-save-find-condition) {
    flex: 1 1 132px;
    max-width: 170px;
}

.sh-save-find-keys {
    max-width: min(420px, calc(100vw - 32px));
}

.sh-save-find-keys .mud-list-item-text {
    overflow-wrap: anywhere;
}

.sh-save-find-value {
    flex: 1 1 70px;
    max-width: 140px;
}

.sh-save-find-option {
    display: flex;
    flex: 1;
    justify-content: space-between;
    gap: 12px;
}

.sh-save-find-option .sh-mono {
    color: var(--mud-palette-text-secondary);
}

.sh-save-find-hit {
    max-width: 360px;
    color: var(--mud-palette-primary);
    font-weight: 600;
}

.sh-config-check-detail {
    flex: 1 1 120px;
    min-width: 110px;
}

.sh-config-check-field {
    flex: 0 1 240px;
    min-width: 160px;
}

.sh-config-value {
    display: inline-block;
    max-width: 220px;
    vertical-align: middle;
}

.sh-config-json {
    height: 220px;
}

.sh-config-overrides {
    display: flex;
    flex-direction: column;
}

.sh-config-override {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 44px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.sh-config-override:last-child {
    border-bottom: 0;
}

.sh-config-override-what {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.sh-config-override .sh-config-value {
    max-width: 96px;
}

/* Override conditions: chips in the panel, rows in the dialog */
.sh-config-rule-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 2px 0 4px;
}

.sh-config-cond,
.sh-config-timing {
    height: 20px;
    padding: 0 7px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
    background: rgba(var(--mud-palette-info-rgb), 0.12);
    color: var(--mud-palette-info);
}

.sh-config-timing {
    background: rgba(var(--mud-palette-warning-rgb), 0.14);
    color: var(--mud-palette-warning);
}

.sh-config-rule {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sh-config-rule-title.mud-typography {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.sh-config-condition {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 4px 4px 4px 10px;
    border-radius: 8px;
    background: var(--mud-palette-background);
}

.sh-config-condition-label {
    flex: 0 0 120px;
    font-size: 13px;
}

.sh-config-condition-value {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.sh-config-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.sh-config-tag-field {
    flex: 1 1 140px;
    min-width: 120px;
}

.sh-config-mini {
    flex: 0 0 96px;
}

.sh-config-date {
    flex: 0 1 150px;
}

.sh-config-add {
    align-self: flex-start;
}

@media (max-width: 600px) {
    .sh-config-condition {
        flex-wrap: wrap;
        padding: 8px 4px 8px 10px;
    }

    .sh-config-condition-label {
        flex: 1;
    }

    .sh-config-condition-value {
        flex-basis: 100%;
        order: 3;
    }
}

/* Profile › Friends */
.sh-friends-search {
    width: 220px;
    flex: 0 1 220px;
}

.sh-friends-table .mud-table-cell {
    white-space: nowrap;
}
