/*
    Pictures of the app, drawn in HTML (Components/Pictures): the homepage's and the help guides'. One set of parts,
    so every picture looks the same. Colours come from Fluent's tokens, so pictures follow light and dark. A picture
    lays itself out by its own width (a container), so it looks right in the homepage's hero and in a guide's column.
*/

.cv-pic {
    container-type: inline-size;
    background: var(--colorNeutralBackground1);
    border: var(--strokeWidthThin) solid var(--colorNeutralStroke2);
    border-radius: 10px;
    box-shadow: var(--shadow28);
    overflow: hidden;
    font-size: 13px;
    line-height: 18px;
    color: var(--colorNeutralForeground1);
    text-align: left;
}

.cv-pic-bar {
    height: 36px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    background: var(--colorNeutralBackground3);
    border-bottom: var(--strokeWidthThin) solid var(--colorNeutralStroke2);
}

.cv-pic-bar > span:not(.cv-pic-address) {
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--colorNeutralStroke1);
}

.cv-pic-address {
    margin-left: 16px;
    font-family: var(--fontFamilyMonospace);
    font-size: 12px;
    color: var(--colorNeutralForeground2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cv-pic-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.cv-pic-body.cv-pic-with-nav {
    grid-template-columns: 150px minmax(0, 1fr);
}

/* The side navigation. */

.cv-pic-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 12px;
    border-right: var(--strokeWidthThin) solid var(--colorNeutralStroke2);
}

.cv-pic-nav > * {
    padding: 5px 8px;
    color: var(--colorNeutralForeground2);
}

.cv-pic-nav strong {
    padding-bottom: 12px;
    color: var(--colorNeutralForeground1);
}

.cv-pic-nav .cv-pic-nav-group {
    padding-top: 10px;
    font-size: 11px;
    font-weight: var(--fontWeightSemibold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.cv-pic-nav .cv-pic-nav-current {
    background: var(--cv-civic-soft);
    color: var(--colorBrandForeground1);
    font-weight: var(--fontWeightSemibold);
    border-radius: var(--borderRadiusMedium);
}

/* The page, its title and its panels. */

.cv-pic-page {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px 24px;
    background: var(--colorNeutralBackground2);
    min-width: 0;
}

.cv-pic-title {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 12px;
}

.cv-pic-title strong {
    font-size: 22px;
    line-height: 28px;
    font-weight: var(--fontWeightSemibold);
}

.cv-pic-title span {
    color: var(--colorNeutralForeground2);
}

.cv-pic-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: var(--colorNeutralBackground1);
    border: var(--strokeWidthThin) solid var(--colorNeutralStroke2);
    border-radius: var(--borderRadiusLarge);
    min-width: 0;
}

.cv-pic-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.cv-pic-panel-head strong {
    display: block;
    font-size: 15px;
    line-height: 20px;
    font-weight: var(--fontWeightSemibold);
}

.cv-pic-panel-head span:not(.cv-pic-button) {
    display: block;
    color: var(--colorNeutralForeground2);
}

.cv-pic-row-gap {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px;
}

.cv-pic-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cv-pic-muted {
    color: var(--colorNeutralForeground2);
}

/* A row nested under the one above it, as a region's parcels are under it on the Estates page. */
.cv-pic-indent {
    padding-inline-start: 20px;
}

.cv-pic-good {
    color: var(--colorStatusSuccessForeground1);
    font-weight: var(--fontWeightSemibold);
}

.cv-pic-warning {
    color: var(--colorStatusWarningForeground1);
    font-weight: var(--fontWeightSemibold);
}

/* Tables. */

.cv-pic-table {
    background: var(--colorNeutralBackground1);
    border: var(--strokeWidthThin) solid var(--colorNeutralStroke2);
    border-radius: var(--borderRadiusLarge);
    overflow: hidden;
}

.cv-pic-panel .cv-pic-table {
    border-radius: var(--borderRadiusMedium);
}

.cv-pic-row {
    display: grid;
    grid-template-columns: var(--cv-pic-columns);
    align-items: center;
}

.cv-pic-row + .cv-pic-row {
    border-top: var(--strokeWidthThin) solid var(--colorNeutralStroke2);
}

.cv-pic-row > * {
    padding: 10px 12px;
    min-width: 0;
}

.cv-pic-row > *:nth-child(n + 3) {
    white-space: nowrap;
}

.cv-pic-row-head {
    background: var(--colorNeutralBackground3);
    font-size: 11px;
    font-weight: var(--fontWeightSemibold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--colorNeutralForeground2);
}

.cv-pic-row-head > * {
    padding-block: 8px;
}

/* People, roles and labels. */

.cv-pic-person {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.cv-pic-person strong {
    display: block;
    font-weight: var(--fontWeightSemibold);
}

.cv-pic-username {
    display: block;
    font-family: var(--fontFamilyMonospace);
    font-size: 11px;
    color: var(--colorNeutralForeground2);
}

.cv-pic-initials {
    flex: none;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: var(--fontWeightBold);
    color: #FFFFFF;
}

.cv-pic-initials-large {
    width: 36px;
    height: 36px;
    font-size: 13px;
}

.cv-pic-blue {
    background: #036AC4;
}

.cv-pic-violet {
    background: #6E4DB0;
}

.cv-pic-cyan {
    background: #1AB8E8;
    color: #0C1A2A;
}

.cv-pic-navy {
    background: #062B4F;
}

.cv-pic-meter {
    position: relative;
    display: block;
    height: 6px;
    border-radius: var(--borderRadiusCircular);
    background: var(--colorNeutralBackground5);
}

.cv-pic-meter-fill {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: inherit;
    background: var(--colorBrandBackground);
}

.cv-pic-meter-low {
    background: var(--colorPaletteDarkOrangeBackground3);
}

.cv-pic-meter-mark {
    position: absolute;
    top: -2px;
    bottom: -2px;
    width: 2px;
    margin-left: -1px;
    background: var(--colorNeutralForeground3);
}

.cv-pic-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.cv-pic-chip {
    padding: 2px 6px;
    border-radius: var(--borderRadiusSmall);
    font-size: 11px;
    line-height: 16px;
    font-weight: var(--fontWeightSemibold);
    white-space: nowrap;
    background: var(--cv-cyan-soft);
    color: var(--cv-cyan-text);
}

.cv-pic-chip-large {
    font-size: 12px;
    padding: 3px 8px;
}

.cv-pic-chip-core {
    background: var(--cv-civic-soft);
    color: var(--colorBrandForeground1);
}

.cv-pic-chip-new {
    background: var(--colorBrandBackground);
    color: var(--colorNeutralForegroundOnBrand);
}

.cv-pic-chip-warning {
    background: var(--colorPaletteYellowBackground1);
    color: var(--colorStatusWarningForeground1);
}

.cv-pic-chip-good {
    background: var(--colorPaletteGreenBackground1);
    color: var(--colorStatusSuccessForeground1);
}

.cv-pic-done {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: var(--borderRadiusMedium);
    background: var(--colorPaletteGreenBackground1);
    color: var(--colorStatusSuccessForeground1);
}

.cv-pic-done svg {
    flex: none;
}

/* Buttons, fields and menus. */

.cv-pic-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 28px;
    padding: 4px 12px;
    border: var(--strokeWidthThin) solid var(--colorNeutralStroke1);
    border-radius: var(--borderRadiusMedium);
    background: var(--colorNeutralBackground1);
    font-weight: var(--fontWeightSemibold);
    white-space: nowrap;
}

.cv-pic-button-primary {
    border-color: transparent;
    background: var(--colorBrandBackground);
    color: var(--colorNeutralForegroundOnBrand);
}

.cv-pic-button-icon {
    min-width: 24px;
    min-height: 24px;
    padding: 0 6px;
}

.cv-pic-field {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.cv-pic-label {
    font-weight: var(--fontWeightSemibold);
}

.cv-pic-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 180px;
    min-height: 30px;
    padding: 4px 10px;
    border: var(--strokeWidthThin) solid var(--colorNeutralStroke1);
    border-bottom-color: var(--colorNeutralStrokeAccessible);
    border-radius: var(--borderRadiusMedium);
    background: var(--colorNeutralBackground1);
}

.cv-pic-placeholder {
    color: var(--colorNeutralForeground4);
}

.cv-pic-switch-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cv-pic-switch {
    flex: none;
    display: inline-flex;
    align-items: center;
    width: 36px;
    height: 20px;
    padding: 0 3px;
    border: var(--strokeWidthThin) solid var(--colorNeutralStrokeAccessible);
    border-radius: 10px;
}

.cv-pic-switch span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--colorNeutralStrokeAccessible);
}

.cv-pic-switch-on {
    justify-content: flex-end;
    border-color: transparent;
    background: var(--colorBrandBackground);
}

.cv-pic-switch-on span {
    background: var(--colorNeutralForegroundOnBrand);
}

.cv-pic-checkbox {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: var(--strokeWidthThin) solid var(--colorNeutralStrokeAccessible);
    border-radius: var(--borderRadiusSmall);
}

.cv-pic-checkbox-on {
    border-color: transparent;
    background: var(--colorBrandBackground);
    color: var(--colorNeutralForegroundOnBrand);
}

.cv-pic-menu {
    display: inline-flex;
    flex-direction: column;
    padding: 4px;
    border: var(--strokeWidthThin) solid var(--colorNeutralStroke2);
    border-radius: var(--borderRadiusMedium);
    background: var(--colorNeutralBackground1);
    box-shadow: var(--shadow16);
}

.cv-pic-menu-item {
    padding: 5px 10px;
    border-radius: var(--borderRadiusSmall);
    white-space: nowrap;
}

/* What the reader should use, picked out with a brand-coloured ring. */

.cv-pic-picked {
    outline: 2px solid var(--colorBrandStroke1);
    outline-offset: 2px;
    box-shadow: 0 0 0 6px var(--cv-civic-soft);
}

.cv-pic-menu-item.cv-pic-picked,
.cv-pic-row.cv-pic-picked {
    outline-offset: -2px;
    box-shadow: none;
    background: var(--cv-civic-soft);
}

.cv-pic-picked-field .cv-pic-label {
    color: var(--colorBrandForeground1);
}

/* A narrow picture drops the side navigation, and a table keeps only its first columns. */

@container (max-width: 480px) {
    .cv-pic-body.cv-pic-with-nav {
        grid-template-columns: minmax(0, 1fr);
    }

    .cv-pic-nav {
        display: none;
    }

    .cv-pic-page {
        padding: 16px;
    }
}

@container (max-width: 460px) {
    .cv-pic-row {
        grid-template-columns: var(--cv-pic-narrow-columns);
    }

    .cv-pic-table[data-keep="1"] .cv-pic-row > *:nth-child(n + 2),
    .cv-pic-table[data-keep="2"] .cv-pic-row > *:nth-child(n + 3),
    .cv-pic-table[data-keep="3"] .cv-pic-row > *:nth-child(n + 4) {
        display: none;
    }
}

/* The steps of a step-by-step page (the setup guide). */

.cv-pic-steps {
    list-style: none;
    margin: 0;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-right: var(--strokeWidthThin) solid var(--colorNeutralStroke2);
}

.cv-pic-steps li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--colorNeutralForeground2);
}

.cv-pic-steps strong {
    display: block;
    font-weight: var(--fontWeightSemibold);
}

.cv-pic-steps li > span:last-child > span {
    display: block;
    font-size: 11px;
    line-height: 15px;
}

.cv-pic-step-mark {
    flex: none;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border: 2px solid var(--colorNeutralStrokeAccessible);
    border-radius: 50%;
}

.cv-pic-step-done .cv-pic-step-mark {
    border-color: var(--colorBrandBackground);
    background: var(--colorBrandBackground);
    color: var(--colorNeutralForegroundOnBrand);
}

.cv-pic-step-current {
    color: var(--colorNeutralForeground1) !important;
}

.cv-pic-step-current .cv-pic-step-mark {
    border-color: var(--colorBrandBackground);
    background: radial-gradient(circle, var(--colorBrandBackground) 0 4px, transparent 5px);
}

/* A page split into the steps and the open step. */
.cv-pic-split {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    background: var(--colorNeutralBackground1);
}

@container (max-width: 560px) {
    .cv-pic-split {
        grid-template-columns: minmax(0, 1fr);
    }

    .cv-pic-split .cv-pic-steps {
        display: none;
    }
}

/* The website's header (PictureHeader): the name, the search box in the middle, help and the person's picture. */

.cv-pic-header {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 36px;
    padding: 0 12px;
    background: var(--colorBrandBackground);
    color: var(--colorNeutralForegroundOnBrand);
}

.cv-pic-header-brand {
    flex: none;
    font-weight: var(--fontWeightSemibold);
    letter-spacing: 0.02em;
}

.cv-pic-header-middle {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.cv-pic-header-search {
    display: flex;
    align-items: center;
    gap: 6px;
    width: min(100%, 300px);
    height: 24px;
    padding: 0 8px;
    border-radius: var(--borderRadiusMedium);
    background: var(--colorNeutralBackground1);
    color: var(--colorNeutralForeground1);
    white-space: nowrap;
    overflow: hidden;
}

.cv-pic-header-search svg {
    flex: none;
    color: var(--colorNeutralForeground3);
}

.cv-pic-header-placeholder {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--colorNeutralForeground3);
}

.cv-pic-header-key {
    padding: 0 4px;
    border: var(--strokeWidthThin) solid var(--colorNeutralStroke1);
    border-radius: var(--borderRadiusSmall);
    font-size: 11px;
    line-height: 14px;
    color: var(--colorNeutralForeground3);
}

.cv-pic-header-icon,
.cv-pic-header-avatar {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: var(--fontWeightSemibold);
}

.cv-pic-header-icon {
    border: 1.5px solid currentColor;
}

.cv-pic-header-avatar {
    background: var(--colorNeutralBackground1);
    color: var(--colorBrandForeground1);
}

/* What matches under the search box (PictureSearchResults). */

.cv-pic-results {
    position: absolute;
    top: 30px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(100%, 300px);
    padding: 4px 0 6px;
    border: var(--strokeWidthThin) solid var(--colorNeutralStroke2);
    border-radius: var(--borderRadiusLarge);
    background: var(--colorNeutralBackground1);
    box-shadow: var(--shadow16);
    color: var(--colorNeutralForeground1);
}

.cv-pic-results-heading {
    padding: 6px 12px 2px;
    font-size: 11px;
    font-weight: var(--fontWeightSemibold);
    color: var(--colorNeutralForeground3);
}

.cv-pic-results-item {
    padding: 4px 12px;
}

.cv-pic-results-item.cv-pic-picked {
    outline-offset: -2px;
    box-shadow: none;
    background: var(--cv-civic-soft);
}

.cv-pic-results-text {
    display: flex;
    flex-direction: column;
}

.cv-pic-results-text span {
    font-size: 12px;
    color: var(--colorNeutralForeground3);
}

/* Cards side by side, like a page's small panels (In-world objects' script cards). */

.cv-pic-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.cv-pic-cards .cv-pic-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
}
