/* The portal's one stylesheet. Every color is named once in the :root block, and no other rule holds a color
   literal, so a change of theme is an edit to that block. The phone layout is the base, and the one media block at
   the end holds the desk layout. */

:root {
    /* Chrome and surfaces. */
    --color-chrome: #08211B;
    --color-chrome-panel: #0D2F26;
    --color-bg: #F7F9FC;
    --color-surface: #FFFFFF;
    --color-surface-tint: #EEF3F1;

    /* Text and borders. */
    --color-text: #1A2333;
    --color-text-soft: #3F4A5F;
    --color-text-on-dark: #FFFFFF;
    --color-account-name: #C9D6D1;
    --color-code-text: #E7F2EE;
    --color-border: #E4E9F2;
    --color-border-strong: #CBD3E0;
    --color-border-on-dark: rgba(255, 255, 255, 0.35);
    --color-line-own-border: #BFE6D6;

    /* Accent. */
    --color-accent-fill: #0F6E56;
    --color-accent-text: #0F6E56;
    --color-accent: #149E70;
    --color-accent-soft: #D8F1E7;
    --color-accent-on-dark: #35E0A6;

    /* Status. */
    --color-warning: #E89232;
    --color-warning-soft: #FEF3C7;
    --color-warning-text: #854D0E;
    --color-error-soft: #FEE4E2;
    --color-error-text: #9A1C1C;

    /* Shape. */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --shadow-card: 0 1px 2px rgba(8, 33, 27, 0.05);
    --focus-ring: 0 0 0 3px var(--color-accent-soft), 0 0 0 4px var(--color-accent);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* The hidden attribute wins over any display a rule sets. */
[hidden] {
    display: none !important;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-text);
    background: var(--color-bg);
}

a {
    color: var(--color-accent-text);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 2px solid transparent;
    box-shadow: var(--focus-ring);
}

/* Header band. */
.site-header {
    color: var(--color-text-on-dark);
    background: var(--color-chrome);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 76rem;
    min-height: 3.5rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.site-header h1 {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 0.625rem;
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--color-text-on-dark);
}

.site-header h1::before {
    content: "";
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 3px;
    background: var(--color-accent-on-dark);
}

.site-account {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    font-size: 0.875rem;
}

.site-account-name {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--color-account-name);
}

.site-account form {
    flex: none;
    margin: 0;
}

.site-header button {
    width: auto;
    min-height: 2.75rem;
    padding: 0.25rem 0.75rem;
    color: var(--color-text-on-dark);
    border: 1px solid var(--color-border-on-dark);
    background: transparent;
}

/* Page body. The narrow column is the default; the home, people, front and conversation pages take the wide frame. */
main {
    max-width: 28rem;
    margin: 0 auto;
    padding: 1.25rem 1rem 2.5rem;
    overflow-wrap: break-word;
}

main.wide {
    max-width: 76rem;
}

.crumbs {
    margin: 0 0 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-soft);
}

h2 {
    margin: 0 0 1rem;
    font-size: 1.375rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

/* Forms. A form in the page is a white card no wider than 26rem, each label above its input. */
main form {
    max-width: 26rem;
    margin: 0 0 1rem;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
}

main form p {
    margin: 0 0 0.75rem;
    overflow-wrap: anywhere;
}

label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

input[type="email"],
input[type="text"],
select {
    display: block;
    width: 100%;
    min-height: 3rem;
    margin-bottom: 1rem;
    padding: 0.625rem 0.75rem;
    font: inherit;
    color: var(--color-text);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    background: var(--color-surface);
}

::placeholder {
    color: var(--color-text-soft);
    opacity: 1;
}

/* Buttons. One filled button in a group, the rest outlined. */
button {
    display: block;
    width: 100%;
    min-height: 3rem;
    padding: 0.625rem 1rem;
    font: inherit;
    font-weight: 600;
    color: var(--color-text-on-dark);
    border: 1px solid var(--color-accent-fill);
    border-radius: var(--radius-md);
    background: var(--color-accent-fill);
}

button.quiet,
.second-form button {
    color: var(--color-accent-text);
    border-color: var(--color-border-strong);
    background: var(--color-surface);
}

button:disabled {
    color: var(--color-text-soft);
    border-color: var(--color-border-strong);
    background: var(--color-bg);
}

summary {
    min-height: 3rem;
    padding: 0.75rem 0;
    cursor: pointer;
}

.message {
    margin: 0 0 1rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    color: var(--color-error-text);
    background: var(--color-error-soft);
}

/* People table. At narrow width each person is a white block with one line per column, named by the cell's label. */
table {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
    font-size: 0.875rem;
}

thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

tbody,
tr,
td {
    display: block;
}

tr {
    margin-bottom: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
}

td {
    padding: 0.25rem 0;
    overflow-wrap: anywhere;
}

td::before {
    content: attr(data-label);
    display: inline-block;
    min-width: 7.5rem;
    padding-right: 0.5rem;
    font-weight: 600;
    color: var(--color-text-soft);
    white-space: nowrap;
}

/* Front content. */
.entries {
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.entries li {
    min-height: 3rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
    overflow-wrap: anywhere;
}

.entry-detail {
    display: block;
    font-size: 0.875rem;
    color: var(--color-text-soft);
}

/* Home page. Each sandbox is a white row with its pills. */
.sandboxes li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
}

.sandboxes li > a {
    flex: 1 0 100%;
    font-weight: 600;
}

.sandboxes .entry-detail {
    display: inline;
}

.sandboxes .entry-connected,
.sandboxes .entry-waiting {
    padding: 0.125rem 0.625rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 999px;
}

.sandboxes .entry-connected {
    color: var(--color-text-soft);
    background: var(--color-surface-tint);
}

.sandboxes .entry-waiting {
    color: var(--color-warning-text);
    background: var(--color-warning-soft);
}

/* Page head. The sandbox's name and its connected mark: a pill with a dot where the sandbox is connected, and a
   plain warning block where the mark holds the sentence that it is not. */
.page-head {
    margin-bottom: 1.25rem;
}

.page-head h2 {
    margin: 0 0 0.5rem;
}

.connected-mark {
    margin: 0;
    font-size: 0.875rem;
    color: var(--color-text-soft);
}

.connected-mark.mark-connected {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.125rem 0.625rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-accent-text);
    border-radius: 999px;
    background: var(--color-accent-soft);
}

.connected-mark.mark-connected::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--color-accent);
}

.connected-mark.mark-not-connected {
    padding: 0.5rem 0.75rem;
    color: var(--color-warning-text);
    border-radius: var(--radius-md);
    background: var(--color-warning-soft);
}

/* Front content blocks. Needs You holds the cards; Talk and the session list are white side blocks. */
.front h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.75rem;
    font-size: 1.0625rem;
}

.needs-count {
    min-width: 1.5rem;
    padding: 0 0.4375rem;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.5rem;
    text-align: center;
    color: var(--color-text-on-dark);
    border-radius: 999px;
    background: var(--color-accent-fill);
}

.needs {
    min-width: 0;
    margin-bottom: 1rem;
    overflow-wrap: anywhere;
}

.talk,
.sessions {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow-wrap: anywhere;
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
}

.talk {
    border-top: 3px solid var(--color-accent);
}

.talk p,
.sessions p {
    margin: 0 0 0.625rem;
}

/* The Talk block's link is a filled control, drawn outlined on the main conversation's own page. */
.talk a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.625rem 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    color: var(--color-text-on-dark);
    border: 1px solid var(--color-accent-fill);
    border-radius: var(--radius-md);
    background: var(--color-accent-fill);
}

.talk a[aria-current="page"] {
    color: var(--color-accent-text);
    border-color: var(--color-border-strong);
    background: var(--color-surface);
}

/* The session list is a details element whose summary holds its heading, in line with the marker. */
.front .sessions summary h3 {
    display: inline;
    margin: 0;
}

.sessions .entries {
    margin: 0;
}

.sessions .entries li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.25rem 0.75rem;
    border-top: 1px solid var(--color-border);
    border-bottom: 0;
}

.sessions .entries a {
    font-weight: 600;
}

.sessions .entries a[aria-current="page"] {
    text-decoration: none;
}

.sessions .entry-detail {
    display: inline;
}

/* Cards. A card is a white surface, with an amber left edge where work is stopped until it is answered. */
.cards {
    margin: 0;
    padding: 0;
    list-style: none;
}

.card,
.card-closed {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
}

.card:has(.card-stopped) {
    border-left: 4px solid var(--color-warning);
}

.card p,
.card h4 {
    margin: 0 0 0.625rem;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--color-text-soft);
}

.card-answered,
.choice-note {
    font-size: 0.875rem;
    color: var(--color-text-soft);
}

.card-session {
    font-weight: 700;
    color: var(--color-text);
}

.card-label {
    margin-left: auto;
    padding: 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-soft);
    border: 1px solid var(--color-border-strong);
    border-radius: 999px;
    background: var(--color-bg);
}

.card-title {
    font-size: 1.125rem;
    line-height: 1.35;
}

.card-recommend {
    padding: 0.5rem 0.75rem;
    border-left: 3px solid var(--color-accent);
    border-radius: var(--radius-sm);
    background: var(--color-accent-soft);
}

.card-question,
p.card-detail {
    white-space: pre-wrap;
}

.card-more {
    margin-bottom: 0.625rem;
}

/* A long approval command scrolls inside its code panel and never widens the card. */
pre.card-detail {
    margin: 0 0 0.75rem;
    padding: 0.625rem 0.75rem;
    overflow-x: auto;
    font-size: 0.8125rem;
    color: var(--color-code-text);
    border-radius: var(--radius-md);
    background: var(--color-chrome-panel);
}

.card-choices {
    margin: 0 0 0.75rem;
    padding: 0;
    list-style: none;
}

.card-choices li {
    margin-bottom: 0.5rem;
}

.choice-note {
    display: block;
    margin-top: 0.25rem;
}

.choice-label {
    font-weight: 600;
}

.card-stopped {
    display: inline-block;
    padding: 0.125rem 0.625rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-warning-text);
    border-radius: var(--radius-sm);
    background: var(--color-warning-soft);
}

.card-reopened {
    color: var(--color-error-text);
}

.card-answer {
    display: grid;
    gap: 0.5rem;
}

/* The status line keeps its place in the markup and shows under the buttons, so Send Answer sits under the box. */
.card-answer .card-message {
    order: 1;
}

/* Conversation page. A page whose main has the class fill fills the window under the header band, the document
   does not scroll, and the thread is the one scrolling element. The dynamic height keeps a phone browser's own bars
   off the composer, with the fixed height for a browser that lacks it. */
body:has(> main.fill) {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
}

main.fill {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
    min-height: 0;
    padding: 0;
}

.conversation {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
}

/* At narrow width the page is the thread header, the thread and the composer, and the front content is not drawn. */
.conversation > .front {
    display: none;
}

.thread-column {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
}

/* Thread header: the link to the sandbox across the top, then the session's name beside the Needs You pill, then
   the connected mark beside the link state. */
.thread-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.375rem 0.75rem;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border);
    overflow-wrap: anywhere;
    background: var(--color-surface);
}

.thread-header p {
    margin: 0;
}

.thread-header > p:first-child {
    grid-column: 1 / -1;
    font-size: 0.875rem;
}

.thread-header h2 {
    grid-column: 1;
    margin: 0;
    font-size: 1.25rem;
}

.thread-header .connected-mark {
    grid-column: 1;
    justify-self: start;
}

.thread-header .link-state {
    grid-column: 2;
    grid-row: 3;
    justify-self: end;
}

.thread-header .needs-link {
    grid-column: 2;
    grid-row: 2;
}

.needs-link a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.125rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--color-warning-text);
    border-radius: 999px;
    background: var(--color-warning-soft);
}

.link-state {
    min-height: 1.3125rem;
    margin: 0;
    font-size: 0.875rem;
    color: var(--color-text-soft);
}

.new-mark {
    padding: 0 0.4375rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-on-dark);
    border-radius: 999px;
    background: var(--color-accent-fill);
}

/* Thread. */
.thread {
    flex: 1;
    min-height: 0;
    padding: 1rem;
    overflow-y: auto;
}

.thread-nav {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    text-align: center;
}

.lines ~ .thread-nav {
    margin: 1rem 0 0;
}

.lines {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Outside the main conversation a line is a full-width row with a rule under it, since those sessions are technical
   and their lines are long. A person's line there has the accent soft ground on the same side. */
.line {
    padding: 0.625rem 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.line-person {
    background: var(--color-accent-soft);
}

/* In the main conversation a line is a bubble: a line the sandbox wrote on the left on white, and a line a person
   wrote on the right in the accent soft color. */
.conversation-main .lines {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.conversation-main .line {
    max-width: 88%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--color-border);
    border-radius: 12px 12px 12px 4px;
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
}

.conversation-main .line-person {
    align-self: flex-end;
    border-color: var(--color-line-own-border);
    border-radius: 12px 12px 4px 12px;
    background: var(--color-accent-soft);
}

.line-meta {
    margin: 0;
    font-size: 0.875rem;
    color: var(--color-text-soft);
    overflow-wrap: anywhere;
}

.line-author {
    font-weight: 600;
    color: var(--color-text);
}

.line-body {
    margin: 0.25rem 0 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* The New Lines control keeps its place at the foot of the thread, drawn as a pill. The strip it sits in lets a
   click or a selection through to the lines beside the pill. */
.new-lines {
    position: sticky;
    bottom: 0;
    margin: 0;
    padding: 0.5rem 0 0;
    text-align: center;
    pointer-events: none;
}

.new-lines a {
    display: inline-flex;
    align-items: center;
    min-height: 3rem;
    padding: 0 1.25rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--color-text-on-dark);
    border-radius: 999px;
    background: var(--color-accent-fill);
    box-shadow: var(--shadow-card);
    pointer-events: auto;
}

/* Composer: the box, then the Send button, in a row, with the message line under both. */
.send-needs-script {
    margin: 0;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
}

.send {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
    align-items: end;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
}

.send textarea {
    grid-column: 1;
    grid-row: 1;
}

.send textarea,
.card-answer textarea {
    display: block;
    width: 100%;
    min-height: 3rem;
    padding: 0.75rem;
    font: inherit;
    color: var(--color-text);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    resize: vertical;
}

.send textarea:read-only,
.card-answer textarea:read-only {
    color: var(--color-text-soft);
    background: var(--color-bg);
}

.send button {
    grid-column: 2;
    grid-row: 1;
    width: auto;
}

.send-message,
.card p.card-message {
    min-height: 1.3125rem;
    margin: 0.25rem 0;
    font-size: 0.875rem;
    color: var(--color-error-text);
    overflow-wrap: anywhere;
}

.send .send-message {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0;
}

/* Desk layout. */
@media (min-width: 60rem) {
    .site-header-inner,
    main {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    main {
        padding-top: 1.75rem;
    }

    button {
        width: auto;
        min-height: 2.5rem;
        padding: 0.4375rem 1rem;
    }

    table {
        display: table;
        border: 1px solid var(--color-border);
        background: var(--color-surface);
        box-shadow: var(--shadow-card);
    }

    thead {
        display: table-header-group;
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip-path: none;
        white-space: normal;
    }

    tbody {
        display: table-row-group;
    }

    tr {
        display: table-row;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    th,
    td {
        display: table-cell;
        padding: 0.625rem 0.75rem;
        text-align: left;
        vertical-align: top;
        border-bottom: 1px solid var(--color-border);
    }

    th {
        font-weight: 600;
        color: var(--color-text-soft);
    }

    td::before {
        content: none;
    }

    /* The front page's name and mark share a line, and its content is two columns: Needs You in the main column,
       Talk and the session list in a 22rem column to its right. */
    .page-head {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.5rem 1rem;
    }

    .page-head h2 {
        margin: 0;
        font-size: 1.625rem;
    }

    main > .front {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 22rem;
        grid-template-rows: auto 1fr;
        gap: 0 2rem;
        align-items: start;
    }

    main > .front > .needs {
        grid-row: 1 / span 2;
        grid-column: 1;
    }

    main > .front > .talk,
    main > .front > .sessions {
        grid-column: 2;
    }

    .card {
        padding: 1.25rem 1.5rem;
    }

    .card-choices li {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .choice-note {
        margin-top: 0;
    }

    /* A card's answer row: the recommendation's button, then the box across the card, then Send Answer at the right,
       then the status line across the card. */
    .card-answer {
        grid-template-columns: auto 1fr auto;
        justify-items: start;
        align-items: end;
    }

    .card-answer textarea,
    .card-answer .card-message {
        grid-column: 1 / -1;
        justify-self: stretch;
    }

    .card-answer textarea ~ button {
        grid-column: 3;
    }

    /* The conversation page: the front content in a 22rem left column that scrolls on its own, and the thread in a
       bordered panel beside it. In that column the Needs You heading is kept for a screen reader alone, and its link
       is an amber banner. */
    main.fill {
        padding: 1.5rem 2rem;
    }

    .conversation {
        display: grid;
        grid-template-columns: 22rem minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr);
        gap: 0 2rem;
    }

    .conversation > .front {
        display: block;
        min-height: 0;
        overflow-y: auto;
    }

    .conversation > .front .needs h3 {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .conversation > .front .needs-link {
        margin: 0;
    }

    .conversation > .front .needs:not(:has(.needs-link)) {
        margin: 0;
    }

    .conversation > .front .needs-link a {
        display: flex;
        justify-content: space-between;
        min-height: 3rem;
        padding: 0.5rem 1rem;
        font-size: 1rem;
        border-left: 4px solid var(--color-warning);
        border-radius: var(--radius-lg);
    }

    .conversation > .front .needs-link a::after {
        content: "\203A" / "";
        font-size: 1.25rem;
    }

    .thread-column {
        border: 1px solid var(--color-border);
        border-radius: var(--radius-lg);
        overflow: hidden;
        box-shadow: var(--shadow-card);
    }

    /* The thread header puts the name, the connected mark and the link state on one line, and the sentence that the
       sandbox is not connected on a line of its own under them. */
    .thread-header {
        grid-template-columns: auto auto minmax(0, 1fr);
        gap: 0.25rem 0.875rem;
        padding: 0.875rem 1.5rem;
    }

    .thread-header h2 {
        font-size: 1.375rem;
    }

    .thread-header .connected-mark {
        grid-column: 2;
        grid-row: 2;
    }

    .thread-header .mark-not-connected {
        grid-column: 1 / -1;
        grid-row: 3;
    }

    .thread-header .link-state {
        grid-column: 3;
        grid-row: 2;
    }

    .thread-header .new-mark,
    .thread-header .needs-link {
        display: none;
    }

    .thread {
        padding: 1.25rem 1.5rem;
    }

    .conversation-main .line {
        max-width: min(42rem, 88%);
    }

    .send {
        padding: 0.875rem 1.5rem 1rem;
    }

    .send button {
        min-height: 3rem;
    }
}
