/* Screens of the first polish wave: Home and Brew, Beans, Recipes and History, Settings, More, People, Onboarding.
   Loaded after the files above it in index.html: keep the order. */

/* ---- Home and Brew (#213) ------------------------------------------------------------------- */

.dialed-home-status {
    margin: calc(-1 * var(--dialed-space-2)) 0 var(--dialed-space-4);
    color: var(--colorNeutralForeground2, #424242);
    font-size: var(--dialed-text-m);
}

.dialed-home-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--dialed-space-2);
    max-width: 28rem;
}

.dialed-home-actions .dialed-button {
    min-height: 3.25rem;
}

/* Three actions: the main one takes the full width, the two scans share the row below. */
.dialed-home-actions > :first-child {
    grid-column: 1 / -1;
}

.dialed-home-hint {
    margin: var(--dialed-space-2) 0 0;
    color: var(--colorNeutralForeground3, #616161);
    font-size: var(--dialed-text-xs);
}

.dialed-bag-card {
    display: flex;
    flex-direction: column;
    gap: var(--dialed-space-3);
}

.dialed-bag-card-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--dialed-space-3);
}

/* On a narrow screen (or in a longer language) the chips drop below instead of squeezing the name into one letter per line. */
.dialed-bag-card-text {
    flex: 1 1 8rem;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.dialed-bag-card-title {
    font-size: var(--dialed-text-l);
    font-weight: var(--dialed-weight-semibold);
    overflow-wrap: break-word;
}

.dialed-bag-card-subtitle,
.dialed-bag-card-meta {
    color: var(--colorNeutralForeground3, #616161);
    font-size: var(--dialed-text-s);
}

.dialed-bag-card-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: var(--dialed-space-1);
}

.dialed-bag-card-meta {
    display: flex;
    justify-content: space-between;
    gap: var(--dialed-space-2);
    margin-top: calc(-1 * var(--dialed-space-1));
}

.dialed-brew-bag {
    display: flex;
    flex-direction: column;
    gap: var(--dialed-space-3);
    margin-bottom: var(--dialed-space-3);
}

.dialed-brew-bag-top {
    display: flex;
    align-items: center;
    gap: var(--dialed-space-3);
}

.dialed-brew-bag-top .dialed-stat-grid {
    flex: 1;
}

.dialed-brew-again {
    display: flex;
    align-items: center;
    gap: var(--dialed-space-3);
    border-color: var(--colorBrandStroke2, #d9c4b4);
    background: var(--colorBrandBackground2, #f4ece6);
}

.dialed-brew-again .dialed-row-title {
    color: var(--colorBrandForeground1, #6f4e37);
}

.dialed-recipe-choice .dialed-row {
    flex: 1;
    min-width: 0;
}

/* Brew again with its timer button beside it: the card shrinks to leave room. */
.dialed-brew-again-row > .dialed-brew-again {
    flex: 1;
    min-width: 0;
    margin: 0;
}

.dialed-brew-again-row {
    margin-bottom: var(--dialed-space-3);
}

/* Brew log form: sections with a heading, dose and liquid side by side, and a save bar that stays in view. */
.dialed-form-section {
    display: flex;
    flex-direction: column;
    gap: var(--dialed-space-1);
    padding-top: var(--dialed-space-2);
    border-top: 1px solid var(--colorNeutralStroke2, #e0e0e0);
}

.dialed-form-section:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.dialed-form-section-title {
    margin: var(--dialed-space-2) 0 var(--dialed-space-2);
    font-size: var(--dialed-text-l);
    font-weight: var(--dialed-weight-semibold);
}

.dialed-field-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
    gap: 0 var(--dialed-space-3);
}

.dialed-field-large input[type="number"] {
    min-height: 3.5rem;
    font-size: var(--dialed-text-xl);
    font-weight: var(--dialed-weight-semibold);
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.dialed-ratio {
    margin: calc(-1 * var(--dialed-space-2)) 0 var(--dialed-space-3);
    color: var(--colorNeutralForeground2, #424242);
    font-size: var(--dialed-text-s);
}

.dialed-sticky-actions {
    position: sticky;
    bottom: calc(-1 * var(--dialed-space-4));
    z-index: 1;
    margin: 0 calc(-1 * var(--dialed-space-4)) calc(-1 * var(--dialed-space-4));
    padding: var(--dialed-space-3) var(--dialed-space-4);
    background: var(--colorNeutralBackground1, #fff);
    border-top: 1px solid var(--colorNeutralStroke2, #e0e0e0);
}

.dialed-sticky-actions .dialed-button-primary {
    flex: 1;
    max-width: 20rem;
}

/* Timer: header back at the start, progress under the clock, the recipe's steps as a list. */
.dialed-timer .dialed-page-header {
    align-self: stretch;
    text-align: start;
}

.dialed-timer > .dialed-meter {
    width: min(100%, 32rem);
    height: 0.75rem;
}

.dialed-timer-steps {
    width: min(100%, 32rem);
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: start;
}

.dialed-timer-step-item {
    display: grid;
    grid-template-columns: 3.5rem 1fr auto;
    align-items: center;
    gap: var(--dialed-space-3);
    min-height: var(--dialed-touch-target);
    padding: 0 var(--dialed-space-3);
    border-radius: var(--dialed-radius-m);
    color: var(--colorNeutralForeground2, #424242);
    font-size: var(--dialed-text-m);
}

.dialed-timer-step-item.current {
    background: var(--colorBrandBackground2, #f4ece6);
    color: var(--colorNeutralForeground1, #242424);
    font-weight: var(--dialed-weight-semibold);
}

.dialed-timer-step-item.done {
    color: var(--colorNeutralForeground3, #616161);
    text-decoration: line-through;
}

.dialed-timer-step-at {
    font-variant-numeric: tabular-nums;
}

.dialed-timer-step-water {
    color: var(--colorBrandForeground1, #6f4e37);
}

/* A rating at the end of a list row: one star and the number, so the title keeps its room. */
.dialed-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: var(--colorNeutralForeground2, #424242);
    font-size: var(--dialed-text-s);
    font-weight: var(--dialed-weight-semibold);
    font-variant-numeric: tabular-nums;
}

.dialed-rating-badge-star {
    display: inline-flex;
    color: var(--colorPaletteMarigoldForeground2, #bc4b09);
}

/* ---- Beans, Bags and Inventory (#214) ------------------------------------------------------- */

/* Placeholder thumbnails tinted from light to dark roast (Fluent palette pairs, swapped in dark mode). */
.dialed-roast {
    display: inline-flex;
    flex: none;
}

.dialed-roast-light .dialed-thumb { background: linear-gradient(145deg, var(--dialed-roast-light-end), var(--dialed-roast-light-start)); color: var(--dialed-roast-light-fg); }
.dialed-roast-mediumlight .dialed-thumb { background: linear-gradient(145deg, var(--dialed-roast-mediumlight-end), var(--dialed-roast-mediumlight-start)); color: var(--dialed-roast-mediumlight-fg); }
.dialed-roast-medium .dialed-thumb { background: linear-gradient(145deg, var(--dialed-roast-medium-end), var(--dialed-roast-medium-start)); color: var(--dialed-roast-medium-fg); }
.dialed-roast-mediumdark .dialed-thumb { background: linear-gradient(145deg, var(--dialed-roast-mediumdark-end), var(--dialed-roast-mediumdark-start)); color: var(--dialed-roast-mediumdark-fg); }
.dialed-roast-dark .dialed-thumb { background: linear-gradient(145deg, var(--dialed-roast-dark-end), var(--dialed-roast-dark-start)); color: var(--dialed-roast-dark-fg); }

/* Extra line in a list row: a meter or small chips. */
.dialed-row-below {
    display: block;
    margin-top: var(--dialed-space-1);
}

.dialed-row-below:empty {
    display: none;
}

.dialed-row-below .dialed-meter {
    max-width: 16rem;
    height: 0.375rem;
}

.dialed-row-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--dialed-space-1);
}

.dialed-chip-small {
    min-height: 1.375rem;
    padding: 0 var(--dialed-space-2);
    font-size: var(--dialed-text-xs);
    color: var(--colorNeutralForeground2, #424242);
}

.dialed-chip-positive {
    border-color: var(--colorPaletteGreenBorder2, #107c10);
    color: var(--colorPaletteGreenForeground1, #0e700e);
}

.dialed-chip-status {
    background: var(--colorBrandBackground2, #f4ece6);
    border-color: var(--colorBrandStroke2, #d9c4b4);
    color: var(--colorBrandForeground1, #6f4e37);
    font-weight: var(--dialed-weight-semibold);
}

/* Beans list: search on top, filters folded away behind one button. */
.dialed-search {
    margin-bottom: var(--dialed-space-2);
}

.dialed-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--dialed-space-2);
    margin-bottom: var(--dialed-space-2);
}

.dialed-button-pressed {
    background: var(--colorNeutralBackground1Selected, #ebebeb);
    border-color: var(--colorNeutralStroke1Selected, #bdbdbd);
}

.dialed-filters[hidden] {
    display: none;
}

/* A square icon-only button (Edit, Delete) that keeps the title on one line. */
.dialed-icon-button {
    display: inline-grid;
    place-items: center;
    width: var(--dialed-touch-target);
    height: var(--dialed-touch-target);
    padding: 0;
    color: var(--colorNeutralForeground2, #424242);
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--dialed-radius-m);
    cursor: pointer;
}

.dialed-icon-button:hover {
    background: var(--colorNeutralBackground1Hover, #f5f5f5);
}

.dialed-icon-button:active {
    background: var(--colorNeutralBackground1Pressed, #e0e0e0);
}

.dialed-count {
    min-width: 1.75rem;
    padding: 0 var(--dialed-space-2);
    border-radius: var(--dialed-radius-pill);
    background: var(--colorNeutralBackground3, #f5f5f5);
    color: var(--colorNeutralForeground2, #424242);
    font-size: var(--dialed-text-s);
    font-weight: var(--dialed-weight-semibold);
    text-align: center;
}

/* Bean detail */
.dialed-bean-hero {
    display: flex;
    align-items: center;
    gap: var(--dialed-space-4);
    margin-bottom: var(--dialed-space-4);
}

.dialed-bean-hero-text {
    display: flex;
    flex-direction: column;
    gap: var(--dialed-space-1);
    min-width: 0;
}

.dialed-bean-roaster {
    display: inline-flex;
    align-items: center;
    min-height: var(--dialed-touch-target);
    color: var(--colorBrandForeground1, #6f4e37);
    font-size: var(--dialed-text-l);
    font-weight: var(--dialed-weight-semibold);
    text-decoration: none;
}

.dialed-bean-origin {
    color: var(--colorNeutralForeground2, #424242);
}

.dialed-bean-line {
    margin: var(--dialed-space-3) 0;
}

.dialed-notes-card {
    margin: var(--dialed-space-3) 0;
}

.dialed-notes-card p {
    margin: 0;
}

.dialed-best-recipe {
    display: flex;
    align-items: center;
    gap: var(--dialed-space-3);
    margin: var(--dialed-space-3) 0;
}

/* The same card as a button: full width, text from the start, wraps instead of running off the screen. */
button.dialed-best-recipe {
    width: 100%;
    box-sizing: border-box;
    font: inherit;
    color: inherit;
    text-align: start;
    cursor: pointer;
}

button.dialed-best-recipe .dialed-row-text {
    min-width: 0;
}

button.dialed-best-recipe .dialed-row-title,
button.dialed-best-recipe .dialed-row-subtitle {
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
}

/* Bag detail */
.dialed-bag-summary {
    display: flex;
    flex-direction: column;
    gap: var(--dialed-space-3);
}

.dialed-bag-summary-top {
    display: flex;
    align-items: center;
    gap: var(--dialed-space-3);
}

.dialed-bag-storage {
    margin: var(--dialed-space-1) 0 0;
    font-size: var(--dialed-text-s);
}

.dialed-bag-steps {
    padding: var(--dialed-space-3);
    border-radius: var(--dialed-radius-m);
    background: var(--colorNeutralBackground2, #fafafa);
    border: 1px solid var(--colorNeutralStroke2, #e0e0e0);
}

.dialed-bag-steps .dialed-field {
    max-width: 16rem;
}

.dialed-bag-again {
    margin-top: var(--dialed-space-4);
}

.dialed-field input[type="date"] {
    width: 100%;
    box-sizing: border-box;
    min-height: var(--dialed-touch-target);
    padding: var(--dialed-space-2) var(--dialed-space-3);
    font: inherit;
    color: inherit;
    background: var(--colorNeutralBackground1, #fff);
    border: 1px solid var(--colorNeutralStroke1, #d1d1d1);
    border-radius: var(--dialed-radius-m);
}

.dialed-inline-link {
    display: inline-flex;
    align-items: center;
    min-height: var(--dialed-touch-target);
    color: var(--colorBrandForeground1, #6f4e37);
}

/* Freshness timeline: resting, peak and past as one bar with a marker for today. */
.dialed-freshness {
    margin-bottom: var(--dialed-space-2);
}

.dialed-freshness-bar {
    position: relative;
    display: flex;
    height: 0.75rem;
    border-radius: var(--dialed-radius-pill);
    overflow: visible;
}

.dialed-freshness-bar > span:not(.dialed-freshness-today) {
    height: 100%;
}

.dialed-freshness-rest {
    background: var(--colorPaletteMarigoldBackground2, #f9e2ae);
    border-radius: var(--dialed-radius-pill) 0 0 var(--dialed-radius-pill);
}

.dialed-freshness-peak {
    background: var(--colorPaletteGreenBackground3, #107c10);
}

.dialed-freshness-past {
    flex: 1;
    background: var(--colorNeutralBackground5, #ebebeb);
    border-radius: 0 var(--dialed-radius-pill) var(--dialed-radius-pill) 0;
}

.dialed-freshness-today {
    position: absolute;
    top: -0.25rem;
    width: 0.25rem;
    height: 1.25rem;
    margin-left: -0.125rem;
    border-radius: var(--dialed-radius-pill);
    background: var(--colorNeutralForeground1, #242424);
    box-shadow: 0 0 0 2px var(--colorNeutralBackground1, #fff);
}

.dialed-freshness-scale {
    display: flex;
    justify-content: space-between;
    margin-top: var(--dialed-space-2);
    color: var(--colorNeutralForeground3, #616161);
    font-size: var(--dialed-text-xs);
}

/* ---- Recipes and History (#215) ------------------------------------------------------------ */

.dialed-field-inline {
    margin: 0;
    flex: 1 1 12rem;
}

.dialed-filter-summary {
    font-size: var(--dialed-text-s);
}

.dialed-icon-button-on {
    color: var(--colorPaletteMarigoldForeground2, #bc4b09);
}

.dialed-group-title {
    display: flex;
    align-items: center;
    gap: var(--dialed-space-2);
    margin: var(--dialed-space-5) 0 var(--dialed-space-1);
    font-size: var(--dialed-text-s);
    font-weight: var(--dialed-weight-semibold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--colorNeutralForeground3, #616161);
}

/* History grouped by day, with a header that stays while the day scrolls by. */
.dialed-day-group + .dialed-day-group {
    margin-top: var(--dialed-space-4);
}

.dialed-day-title {
    position: sticky;
    top: calc(-1 * var(--dialed-space-3));
    z-index: 1;
    margin: 0;
    padding: var(--dialed-space-2) 0;
    background: var(--colorNeutralBackground1, #fff);
    color: var(--colorNeutralForeground2, #424242);
    font-size: var(--dialed-text-s);
    font-weight: var(--dialed-weight-semibold);
    border-bottom: 1px solid var(--colorNeutralStroke2, #e0e0e0);
}

.dialed-row-person {
    display: inline-flex;
    align-items: center;
    gap: var(--dialed-space-1);
    color: var(--colorNeutralForeground2, #424242);
    font-size: var(--dialed-text-xs);
}

/* Brew detail */
.dialed-brew-summary {
    display: flex;
    flex-direction: column;
    gap: var(--dialed-space-3);
}

.dialed-brew-summary-top {
    display: flex;
    align-items: center;
    gap: var(--dialed-space-3);
}

.dialed-brew-summary-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.dialed-brew-summary-what {
    font-size: var(--dialed-text-l);
    font-weight: var(--dialed-weight-semibold);
}

.dialed-brew-summary .dialed-person {
    display: flex;
    align-items: center;
    gap: var(--dialed-space-2);
    margin: 0;
}

/* Taste as four bars growing left or right from the middle. */
.dialed-taste-chart {
    display: grid;
    gap: var(--dialed-space-2);
    margin-bottom: var(--dialed-space-3);
}

.dialed-taste-chart-row {
    display: grid;
    grid-template-columns: 6rem 3.5rem 1fr 3.5rem;
    align-items: center;
    gap: var(--dialed-space-2);
    font-size: var(--dialed-text-s);
}

.dialed-taste-chart-label {
    font-weight: var(--dialed-weight-semibold);
}

.dialed-taste-chart-end {
    color: var(--colorNeutralForeground3, #616161);
    font-size: var(--dialed-text-xs);
}

.dialed-taste-chart-end:last-child {
    text-align: end;
}

.dialed-taste-chart-track {
    position: relative;
    height: 0.625rem;
    border-radius: var(--dialed-radius-pill);
    background: var(--colorNeutralBackground5, #ebebeb);
}

/* The "balanced" line in the middle. */
.dialed-taste-chart-track::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -0.1875rem;
    bottom: -0.1875rem;
    width: 2px;
    margin-left: -1px;
    background: var(--colorNeutralForeground3, #616161);
}

.dialed-taste-chart-fill {
    position: absolute;
    top: 0;
    bottom: 0;
    background: var(--colorBrandBackground, #6f4e37);
}

.dialed-taste-chart-fill.low {
    border-radius: var(--dialed-radius-pill) 0 0 var(--dialed-radius-pill);
}

.dialed-taste-chart-fill.high {
    border-radius: 0 var(--dialed-radius-pill) var(--dialed-radius-pill) 0;
}

@media (max-width: 26rem) {
    .dialed-taste-chart-row {
        grid-template-columns: 3rem 1fr 3rem;
    }

    .dialed-taste-chart-label {
        grid-column: 1 / -1;
    }
}

/* Recipe detail */
.dialed-recipe-hero {
    display: flex;
    align-items: center;
    gap: var(--dialed-space-3);
    margin-bottom: var(--dialed-space-4);
}

.dialed-recipe-hero-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.dialed-recipe-hero-method {
    font-size: var(--dialed-text-l);
    font-weight: var(--dialed-weight-semibold);
}

.dialed-recipe-parameters {
    margin-bottom: var(--dialed-space-3);
}

/* Steps as a timeline: time on the left, a line joining the steps. */
.dialed-step-timeline {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dialed-step-timeline li {
    position: relative;
    display: grid;
    grid-template-columns: 3.5rem 1fr;
    gap: var(--dialed-space-3);
    padding: var(--dialed-space-2) 0;
}

.dialed-step-timeline li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 1.6rem;
    top: 2.25rem;
    bottom: -0.5rem;
    width: 2px;
    background: var(--colorNeutralStroke2, #e0e0e0);
}

.dialed-step-time {
    display: inline-grid;
    place-items: center;
    height: 1.75rem;
    border-radius: var(--dialed-radius-pill);
    background: var(--colorBrandBackground2, #f4ece6);
    color: var(--colorBrandForeground1, #6f4e37);
    font-size: var(--dialed-text-s);
    font-weight: var(--dialed-weight-semibold);
    font-variant-numeric: tabular-nums;
}

.dialed-step-body {
    display: flex;
    flex-direction: column;
}

.dialed-step-kind {
    font-weight: var(--dialed-weight-semibold);
}

.dialed-step-detail {
    color: var(--colorNeutralForeground2, #424242);
    font-size: var(--dialed-text-s);
}

/* Versions, newest first */
.dialed-versions {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dialed-versions > li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--dialed-space-2);
    margin-bottom: var(--dialed-space-2);
    padding: var(--dialed-space-3);
    border: 1px solid var(--colorNeutralStroke2, #e0e0e0);
    border-radius: var(--dialed-radius-m);
}

.dialed-versions > li[aria-current] {
    border-color: var(--colorBrandStroke1, #6f4e37);
}

.dialed-version-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--dialed-space-2);
}

.dialed-version-head a {
    display: inline-flex;
    align-items: center;
    min-height: var(--dialed-touch-target);
    font-weight: var(--dialed-weight-semibold);
    color: var(--colorBrandForeground1, #6f4e37);
}

.dialed-version-changes {
    margin: 0;
}

/* The dial-in advice heading matches the other section headings on the brew detail. */
.dialed-dialin h2 {
    margin: var(--dialed-space-5) 0 var(--dialed-space-2);
    font-size: var(--dialed-text-l);
}

/* ---- Settings, More, People and Onboarding (#216) ------------------------------------------- */

.dialed-button-subtle {
    background: transparent;
    border-color: transparent;
    color: var(--colorNeutralForeground2, #424242);
}

/* Settings: an overview of rows (account first), one card per group on its own page. */
.dialed-settings-list {
    margin-bottom: var(--dialed-space-4);
}

.dialed-settings-signin {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--dialed-space-2);
    margin-bottom: var(--dialed-space-4);
}

.dialed-settings-signin h2 {
    margin: 0;
    font-size: var(--dialed-text-l);
}

.dialed-settings-signin p {
    margin: 0;
}

.dialed-settings-card {
    display: flex;
    flex-direction: column;
    gap: var(--dialed-space-4);
}

/* Settings that bring their own heading get a quieter one inside a card. */
.dialed-settings-card h2,
.dialed-settings-card h3,
.dialed-settings-card legend {
    margin: 0 0 var(--dialed-space-2);
    font-size: var(--dialed-text-m);
    font-weight: var(--dialed-weight-semibold);
}

.dialed-settings-item + .dialed-settings-item {
    padding-top: var(--dialed-space-4);
    border-top: 1px solid var(--colorNeutralStroke2, #e0e0e0);
}

.dialed-settings-card .dialed-field-pair input {
    min-height: var(--dialed-touch-target);
    width: 5rem;
    padding: 0 var(--dialed-space-2);
    font: inherit;
    color: inherit;
    background: var(--colorNeutralBackground1, #fff);
    border: 1px solid var(--colorNeutralStroke1, #d1d1d1);
    border-radius: var(--dialed-radius-m);
}

.dialed-settings-card .dialed-field-pair label {
    display: inline-flex;
    align-items: center;
    gap: var(--dialed-space-2);
}

/* More: icons in the same style as the tab bar. */
.dialed-more-group .dialed-group-title {
    margin-top: var(--dialed-space-4);
}

.dialed-more-icon {
    border-radius: var(--dialed-radius-s);
    background: var(--colorNeutralBackground3, #f5f5f5);
    color: var(--colorNeutralForeground2, #424242);
}

/* People */
.dialed-friend-code {
    margin-bottom: var(--dialed-space-4);
    text-align: center;
}

.dialed-friend-code h2 {
    margin: 0;
    font-size: var(--dialed-text-m);
    color: var(--colorNeutralForeground2, #424242);
}

.dialed-friend-code .dialed-code {
    display: inline-block;
    margin: var(--dialed-space-2) 0;
    padding: var(--dialed-space-2) var(--dialed-space-4);
    border-radius: var(--dialed-radius-m);
    background: var(--colorNeutralBackground3, #f5f5f5);
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: var(--dialed-text-2xl);
    letter-spacing: 0.15em;
}

.dialed-friend-code .dialed-form-actions {
    justify-content: center;
}

.dialed-people-section h2 {
    margin: var(--dialed-space-5) 0 var(--dialed-space-2);
    font-size: var(--dialed-text-l);
}

#people-find-count {
    margin: var(--dialed-space-4) 0 var(--dialed-space-2);
}

.dialed-people-section ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.people-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--dialed-space-3);
    min-height: var(--dialed-touch-target);
    padding: var(--dialed-space-2) 0;
    border-bottom: 1px solid var(--colorNeutralStroke2, #e0e0e0);
}

.people-row-text {
    flex: 1 1 8rem;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.people-row-name {
    font-weight: var(--dialed-weight-semibold);
    overflow-wrap: anywhere;
}

a.people-row-name {
    display: inline-flex;
    align-items: center;
    min-height: var(--dialed-touch-target);
    color: var(--colorBrandForeground1, #6f4e37);
}

.people-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--dialed-space-2);
}

.dialed-chip-waiting {
    border-style: dashed;
    color: var(--colorNeutralForeground2, #424242);
}

.dialed-chip-danger {
    border-color: var(--colorPaletteRedBorder2, #c50f1f);
    color: var(--colorPaletteRedForeground1, #b10e1c);
}

.people-blocked-person .dialed-avatar {
    filter: grayscale(1);
    opacity: 0.6;
}

.dialed-friend-header {
    display: flex;
    align-items: center;
    gap: var(--dialed-space-3);
    margin-bottom: var(--dialed-space-4);
}

.dialed-friend-header-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dialed-friend-header-text strong {
    font-size: var(--dialed-text-xl);
}

/* Segmented control (tabs on a friend's profile). */
.dialed-segmented {
    display: flex;
    gap: 2px;
    margin-bottom: var(--dialed-space-3);
    padding: 2px;
    border-radius: var(--dialed-radius-m);
    background: var(--colorNeutralBackground3, #f5f5f5);
}

.dialed-segment {
    flex: 1;
    min-height: var(--dialed-touch-target);
    padding: 0 var(--dialed-space-2);
    border: 0;
    border-radius: calc(var(--dialed-radius-m) - 2px);
    background: transparent;
    color: var(--colorNeutralForeground2, #424242);
    font: inherit;
    font-weight: var(--dialed-weight-semibold);
    cursor: pointer;
}

.dialed-segment.selected {
    background: var(--colorNeutralBackground1, #fff);
    color: var(--colorNeutralForeground1, #242424);
    box-shadow: var(--dialed-shadow-card);
}

.dialed-friend-items li {
    display: flex;
    align-items: center;
    min-height: var(--dialed-touch-target);
    padding: var(--dialed-space-2) var(--dialed-space-1);
    border-bottom: 1px solid var(--colorNeutralStroke2, #e0e0e0);
}

/* Onboarding: progress, a friendly icon per step, the step in a card. */
.dialed-onboarding {
    max-width: 32rem;
}

.dialed-onboarding-progress p {
    margin: var(--dialed-space-1) 0 0;
    font-size: var(--dialed-text-s);
}

.dialed-onboarding-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: var(--dialed-space-5) 0 var(--dialed-space-4);
    text-align: center;
}

.dialed-onboarding-icon {
    display: inline-grid;
    place-items: center;
    width: 5rem;
    height: 5rem;
    margin-bottom: var(--dialed-space-3);
    border-radius: var(--dialed-radius-pill);
    background: var(--colorBrandBackground2, #f4ece6);
    color: var(--colorBrandForeground1, #6f4e37);
}

.dialed-onboarding-hero h2 {
    margin: 0 0 var(--dialed-space-1);
    font-size: var(--dialed-text-xl);
}

.dialed-onboarding-hero p {
    margin: 0;
}

.dialed-onboarding-card legend {
    font-weight: var(--dialed-weight-semibold);
}

.dialed-onboarding-gear {
    margin-bottom: var(--dialed-space-2);
}

.dialed-onboarding-actions {
    margin-top: var(--dialed-space-4);
}

.dialed-onboarding-actions #onboarding-next {
    flex: 1;
}
