/* CFOAI Platform: the client app's styles (task M1-06), shared by the web app and the phone app.
   - Brand colours only: navy, beige-gold, dark gold, light gray and white, with navy at lower opacities for secondary
     text and lines, as in the design. Beige-gold is never text on white.
   - One stylesheet for both directions: logical properties (inline-start/end) throughout, so Arabic mirrors itself.
   - Fonts are served with the app (SIL Open Font License, see fonts/OFL-*.txt), never from Google: no request leaves
     for a third party, and the phone app works offline. Arabic uses IBM Plex Sans Arabic, as the design does.
   - No inline styles anywhere, so the content security policy can refuse them. */

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/montserrat-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/montserrat-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Spectral SC';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/spectral-sc-500-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Spectral SC';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/spectral-sc-500-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Spectral SC';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/spectral-sc-600-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Spectral SC';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/spectral-sc-600-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'IBM Plex Sans Arabic';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/ibm-plex-sans-arabic-400-arabic.woff2') format('woff2');
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
    font-family: 'IBM Plex Sans Arabic';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/ibm-plex-sans-arabic-500-arabic.woff2') format('woff2');
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
    font-family: 'IBM Plex Sans Arabic';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/ibm-plex-sans-arabic-600-arabic.woff2') format('woff2');
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
    font-family: 'IBM Plex Sans Arabic';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/ibm-plex-sans-arabic-700-arabic.woff2') format('woff2');
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

/* ---- Tokens ----------------------------------------------------------------------------------------------- */

:root {
    --navy: #192537;
    --gold: #B09E80;
    --gold-dark: #716551;
    --gray: #E9E9E9;
    --white: #FFFFFF;

    /* Navy at lower opacities: secondary text (0.72 passes 4.5:1 on white), lines and fills. */
    --navy-secondary: rgba(25, 37, 55, 0.72);
    --navy-line: rgba(25, 37, 55, 0.1);
    --navy-line-faint: rgba(25, 37, 55, 0.08);
    --navy-border: rgba(25, 37, 55, 0.2);
    --navy-shadow: rgba(25, 37, 55, 0.14);
    --gold-wash: rgba(176, 158, 128, 0.2);
    --gold-highlight: rgba(176, 158, 128, 0.3);
    --gold-pill: rgba(176, 158, 128, 0.32);
    --gold-edge: rgba(176, 158, 128, 0.6);
    --white-wash: rgba(255, 255, 255, 0.08);

    --font-body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-heading: 'Spectral SC', Georgia, serif;
    --font-arabic: 'IBM Plex Sans Arabic', 'Montserrat', system-ui, sans-serif;
}

/* Arabic: Plex for text and headings. Letter spacing and capitals break Arabic letters apart, so neither applies to
   anything in Arabic; the Latin "CFOAI" mark keeps its own (it is marked lang="en"). */
[lang="ar"] {
    --font-body: var(--font-arabic);
    --font-heading: var(--font-arabic);
}

*:lang(ar) {
    letter-spacing: normal !important;
    text-transform: none !important;
}

/* ---- Base ------------------------------------------------------------------------------------------------- */

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

html, body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--navy);
    background: var(--gray);
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}

button, input, textarea, select {
    font: inherit;
    color: inherit;
}

a {
    color: var(--navy);
}

a:hover {
    color: var(--gold-dark);
}

:focus-visible {
    outline: 2px solid var(--gold-dark);
    outline-offset: 2px;
}

/* After a page change the heading takes the focus, so screen readers start there; it needs no ring. */
h1:focus {
    outline: none;
}

h1, h2, p {
    margin: 0;
}

bdi {
    unicode-bidi: isolate;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.icon {
    flex-shrink: 0;
}

[dir="rtl"] .icon--directional {
    transform: scaleX(-1);
}

/* ---- Buttons ---------------------------------------------------------------------------------------------- */

.button {
    min-height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.button--block {
    width: 100%;
    min-height: 52px;
    font-size: 15px;
}

.button--gold {
    background: var(--gold);
    color: var(--navy);
}

.button--gold:hover {
    color: var(--navy);
    box-shadow: inset 0 0 0 2px var(--white);
}

.button--navy {
    background: var(--navy);
    color: var(--white);
}

.button--navy:hover {
    color: var(--white);
    background: var(--gold-dark);
}

.button--ghost {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--gold-edge);
}

.button--ghost:hover {
    color: var(--white);
    background: var(--white-wash);
}

.button--outline {
    border-radius: 22px;
    border: 1px solid var(--navy-border);
    background: var(--white);
    color: var(--navy);
    font-size: 13px;
}

.button--outline-navy {
    border: 1px solid rgba(25, 37, 55, 0.25);
    background: var(--white);
    color: var(--navy);
    border-radius: 10px;
    font-size: 13px;
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.icon-button {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 22px;
    background: transparent;
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
}

.icon-button:hover {
    background: var(--gray);
    color: var(--navy);
}

.pill-button {
    height: 40px;
    padding: 0 12px;
    border-radius: 20px;
    border: 0;
    background: var(--navy);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.pill-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* ---- Public pages: sign-in, invitation, notices ----------------------------------------------------------- */

.public {
    min-height: 100dvh;
    background: var(--navy);
    color: var(--gray);
    display: flex;
    justify-content: center;
}

.public a {
    color: var(--white);
}

.public a:hover {
    color: var(--gold);
}

.public__inner {
    width: 100%;
    max-width: 460px;
    min-height: 100dvh;
    padding: 14px 24px 26px;
    display: flex;
    flex-direction: column;
}

.public__top {
    display: flex;
    justify-content: flex-end;
}

.public__main {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.lang-toggle {
    height: 44px;
    padding: 0 16px;
    border-radius: 22px;
    border: 1px solid var(--gold-edge);
    background: transparent;
    color: var(--gray);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* The same toggle as a link, on the web app's static pages (the public account-deletion page, task M5-06). */
a.lang-toggle {
    display: inline-flex;
    align-items: center;
    color: var(--gray);
    text-decoration: none;
}

.lang-toggle:lang(ar) {
    font-family: var(--font-arabic);
}

.lang-toggle:lang(en) {
    font-family: 'Montserrat', system-ui, sans-serif;
}

.lang-toggle:hover {
    background: var(--white-wash);
}

.wordmark {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* The firm's CFO monogram (white on transparent), above the name on the sign-in pages' navy. */
.wordmark__monogram {
    display: block;
    width: 72px;
    height: auto;
    margin-bottom: 14px;
}

.wordmark__name {
    font-family: 'Spectral SC', Georgia, serif;
    font-size: 40px;
    font-weight: 600;
    letter-spacing: 0.14em;
    line-height: 1;
    color: var(--gold);
}

.wordmark__product {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gray);
}

.public__title {
    margin-top: 32px;
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--gold);
}

.public__title:lang(ar) {
    font-weight: 700;
    font-size: 28px;
    line-height: 1.4;
}

.public__lead {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray);
}

.public__lead:lang(ar) {
    font-size: 15px;
    line-height: 1.75;
}

.public__actions {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.public__note,
/* Signing in failed (the phone, with no connection): said under the buttons, in the gold the page's headings use. */
.public__problem {
    margin: 14px 0 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--gold);
}

.public__invited {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    line-height: 1.5;
    color: var(--gray);
}

.public__invited {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(176, 158, 128, 0.45);
    background: rgba(255, 255, 255, 0.05);
}

.public__note .icon,
.public__invited .icon {
    color: var(--gold);
    margin-top: 1px;
}

.public__legal {
    margin-top: auto;
    padding-top: 24px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--gray);
}

.public__legal a {
    font-weight: 600;
}

/* The privacy notice and the terms of use (task M5-06): long text, so the column is wider than the sign-in page's. */
.public__inner:has(.notice) {
    max-width: 720px;
}

.notice__version {
    font-size: 13px;
}

.notice {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--gray);
}

.notice:lang(ar) {
    font-size: 15px;
    line-height: 1.8;
}

.notice h2 {
    margin: 28px 0 8px;
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--gold);
}

.notice p,
.notice ul {
    margin: 0 0 10px;
}

.notice ul {
    padding-inline-start: 20px;
}

.notice li {
    margin-bottom: 6px;
}

.notice a {
    font-weight: 600;
    text-decoration: underline;
}

/* The public account-deletion page's form (task M5-06): the sign-in page's fields, and a box for the note. */
.signin-form__input--area {
    height: auto;
    min-height: 96px;
    padding: 12px 16px;
    resize: vertical;
    font-family: inherit;
}

/* A hidden field only automated form-fillers fill in; people never see it. */
.signin-form__trap {
    position: absolute;
    inset-inline-start: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.signin-form {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.signin-form__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
}

.signin-form__input {
    height: 52px;
    border: 0;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 15px;
    color: var(--navy);
    background: var(--white);
    text-align: start;
}

.signin-form__input::placeholder {
    color: rgba(25, 37, 55, 0.6);
}

/* An email reads left to right; in Arabic it still lines up with the label's side. */
[dir="rtl"] .signin-form__input {
    text-align: right;
}

.assurances {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.assurances li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 13px;
    line-height: 1.5;
    color: var(--gray);
}

.assurances .icon {
    color: var(--gold);
}

.steps {
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.steps li {
    counter-increment: step;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 14px;
    line-height: 1.5;
}

.steps li::before {
    content: counter(step);
    width: 26px;
    height: 26px;
    border-radius: 13px;
    background: var(--gold);
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.result {
    display: flex;
    flex-direction: column;
}

.result__icon {
    margin-top: 32px;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--white-wash);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
}

.result__icon--done {
    background: var(--gold);
    color: var(--navy);
}

.result .public__title {
    margin-top: 18px;
}

/* ---- The signed-in app ------------------------------------------------------------------------------------ */

.app {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--gray);
}

.app__main {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.page {
    width: 100%;
    max-width: 760px;
    margin-inline: auto;
    padding: 16px 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.card {
    background: var(--white);
    border-radius: 16px;
}

.card--list {
    overflow: hidden;
    margin: 0;
    padding: 0;
    list-style: none;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-dark);
}

.section-title:lang(ar) {
    font-size: 14px;
    font-weight: 700;
}

.list-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy);
}

.list-title:lang(ar) {
    font-size: 16px;
    font-weight: 700;
}

.count-badge,
.unread-badge,
.tab-bar__badge {
    background: var(--navy);
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 700;
    text-align: center;
    letter-spacing: 0;
}

.count-badge {
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 11px;
    font-size: 12px;
    line-height: 22px;
}

.unread-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    font-size: 11px;
    line-height: 20px;
}

.page-header {
    background: var(--navy);
    padding: 22px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--gold);
}

.page-header__sub {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.5;
}

.page-header__sub a {
    color: var(--white);
}

.reply-hours {
    margin: 2px 4px 0;
    font-size: 12px;
    color: var(--navy-secondary);
}

.tag {
    padding: 2px 8px;
    border-radius: 10px;
    background: var(--gold-wash);
    color: var(--navy);
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

/* ---- Tabs: at the bottom on a phone, down the side on a wider screen -------------------------------------- */

.tab-bar {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: var(--white);
    border-top: 1px solid var(--navy-line);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 6px 8px calc(14px + env(safe-area-inset-bottom));
}

.tab-bar--wide-only {
    display: none;
}

.tab-bar__item {
    position: relative;
    height: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(25, 37, 55, 0.75);
    text-decoration: none;
}

.tab-bar__item:hover {
    color: var(--navy);
}

.tab-bar__item--current {
    color: var(--navy);
    font-weight: 700;
}

.tab-bar__pill {
    width: 56px;
    height: 30px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-bar__item--current .tab-bar__pill {
    background: var(--gold-pill);
}

.tab-bar__badge {
    position: absolute;
    top: 2px;
    inset-inline-end: 18px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    font-size: 10px;
    line-height: 18px;
}

/* ---- Home ------------------------------------------------------------------------------------------------- */

.home-header {
    background: var(--navy);
    padding: 18px 20px 72px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.home-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.home-header__brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-header__monogram {
    display: block;
    width: 32px;
    height: auto;
}

.home-header__mark {
    font-family: 'Spectral SC', Georgia, serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--gold);
}

.account-button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.account-button:hover {
    color: var(--navy);
    background: var(--gray);
}

.home-header__greeting {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1.15;
    text-transform: uppercase;
    color: var(--gold);
}

.home-header__greeting:lang(ar) {
    font-weight: 700;
    line-height: 1.4;
}

.home-header__company {
    margin-top: 6px;
    font-size: 13px;
    color: var(--gray);
}

.needs-action {
    margin: -52px 16px 0;
    padding: 14px 16px 6px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 24px var(--navy-shadow);
    position: relative;
}

.needs-action .section-title {
    margin-bottom: 4px;
}

.needs-action__none {
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--navy-secondary);
}

.action-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 60px;
    text-decoration: none;
    color: var(--navy);
}

.action-row + .action-row {
    border-top: 1px solid var(--navy-line-faint);
}

.action-row__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.action-row__icon--approval {
    background: var(--navy);
    color: var(--gold);
}

.action-row__icon--documents {
    background: var(--gray);
    color: var(--navy);
}

.action-row__text {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.action-row__title {
    font-size: 14px;
    font-weight: 700;
}

.action-row__detail {
    font-size: 12px;
    color: var(--navy-secondary);
}

.requests-list {
    padding: 4px 16px;
}

.home-list {
    padding: 22px 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.home-list__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* ---- Conversation list ------------------------------------------------------------------------------------ */

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

.conversation-list li + li .conversation-row {
    border-top: 1px solid var(--navy-line-faint);
}

.conversation-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    text-decoration: none;
    color: var(--navy);
    background: var(--white);
}

.conversation-row:hover {
    color: var(--navy);
    background: rgba(233, 233, 233, 0.5);
}

.conversation-row--active {
    background: var(--gold-wash);
}

.conversation-row__body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.conversation-row__top {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
}

.conversation-row__name {
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-row__meta {
    font-size: 11px;
    font-weight: 600;
    color: var(--navy-secondary);
    flex-shrink: 0;
}

.conversation-row__preview {
    font-size: 13px;
    color: var(--navy-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-row__side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    align-self: start;
    margin-top: 4px;
}

.conversation-row__time {
    font-size: 12px;
    color: var(--navy-secondary);
}

.conversation-row__time--unread {
    font-weight: 700;
    color: var(--gold-dark);
}

/* ---- Avatars ---------------------------------------------------------------------------------------------- */

.avatar {
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
    letter-spacing: 0;
}

.avatar--round {
    border-radius: 50%;
}

.avatar--28 { width: 28px; height: 28px; font-size: 10px; }
.avatar--40 { width: 40px; height: 40px; font-size: 13px; border-radius: 11px; }
.avatar--44 { width: 44px; height: 44px; font-size: 14px; }
.avatar--56 { width: 56px; height: 56px; font-size: 18px; }
.avatar--28.avatar--round, .avatar--40.avatar--round { border-radius: 50%; }

.avatar--navy { background: var(--navy); color: var(--gold); }
.avatar--gold { background: var(--gold); color: var(--navy); }
.avatar--gray { background: var(--gray); color: var(--navy); }
.avatar--white { background: var(--white); color: var(--navy); }

[lang="ar"] .avatar--28 { font-size: 11px; }

/* ---- A chat ----------------------------------------------------------------------------------------------- */

.split {
    display: flex;
    flex-grow: 1;
    min-height: 0;
}

.split__list {
    display: none;
}

.chat,
.sub-page {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100dvh;
    background: var(--gray);
}

.sub-page {
    height: auto;
    min-height: 100dvh;
}

.sub-page__body {
    width: 100%;
    max-width: 760px;
    margin-inline: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-header {
    background: var(--white);
    padding-block: 10px;
    padding-inline: 4px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--navy-line);
}

.chat-header__title {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chat-header__title h1 {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-header__title h1:lang(ar) {
    font-weight: 700;
}

.chat-header__subtitle {
    font-size: 12px;
    color: var(--navy-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reply-banner {
    background: var(--gold-wash);
    padding: 8px 16px;
    font-size: 12px;
    display: flex;
    gap: 6px;
    align-items: center;
}

/* The newest messages sit at the bottom and the view starts there: a column-reverse scroller with one child keeps
   the scroll at the end without any script, while the messages stay in reading order. */
.messages {
    flex-grow: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column-reverse;
}

.messages__list {
    padding: 14px 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    align-self: flex-start;
    max-width: min(340px, 88%);
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.message__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.message__meta {
    font-size: 11px;
    font-weight: 600;
    color: var(--navy-secondary);
}

.message--mine {
    align-self: flex-end;
    max-width: min(300px, 85%);
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.message__status {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--navy-secondary);
}

.message-system {
    align-self: center;
    max-width: 90%;
    padding: 4px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    color: var(--navy-secondary);
    text-align: center;
}

.bubble {
    background: var(--white);
    border-radius: 14px;
    border-end-start-radius: 4px;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.45;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.bubble:lang(ar) {
    line-height: 1.6;
}

.bubble--mine {
    background: var(--navy);
    color: var(--white);
    border-radius: 14px;
    border-end-end-radius: 4px;
    padding: 10px;
}

.bubble--mine .bubble__text {
    padding: 0 4px;
}

.bubble--notice {
    border-inline-start: 3px solid var(--gold);
}

.bubble__label {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-dark);
}

.bubble__text {
    white-space: pre-wrap;
}

.mention {
    background: var(--gold-highlight);
    border-radius: 4px;
    padding: 0 3px;
}

.bubble--mine .mention {
    background: rgba(176, 158, 128, 0.45);
}

.voice {
    max-width: 240px;
    height: 40px;
}

/* On the phone a voice message loads at a tap, then plays in its player (VoicePlayer.razor). */
.voice-player {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.voice-player__play {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 14px;
    border: none;
    border-radius: 999px;
    background: var(--gray);
    color: var(--navy);
    font: inherit;
    cursor: pointer;
}

.voice-player__play:disabled {
    cursor: progress;
    opacity: 0.75;
}

.voice-player__problem {
    font-size: 0.875rem;
}

/* ---- Files ------------------------------------------------------------------------------------------------ */

.file-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--gray);
    color: var(--navy);
    text-decoration: none;
}

.file-chip:hover {
    color: var(--navy);
    background: var(--gold-wash);
}

.file-chip--on-dark {
    background: var(--white-wash);
    color: var(--white);
}

.file-chip--on-dark:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
}

.file-chip__icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--gold);
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.file-chip--unavailable .file-chip__icon {
    background: var(--white);
}

.file-chip__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.file-chip__name {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-chip__info {
    font-size: 11px;
    color: var(--navy-secondary);
}

.file-chip--on-dark .file-chip__info {
    color: var(--gray);
}

.file-list {
    display: flex;
    flex-direction: column;
}

.file-row {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.file-row + .file-row {
    border-top: 1px solid var(--navy-line-faint);
}

/* A file shown in the app (task M1-12): the viewer's frame fills the screen under the header. */
.file-view {
    height: 100dvh;
}

.chat-header__title--file h1 {
    font-family: inherit;
    font-size: 15px;
    letter-spacing: 0;
    text-transform: none;
}

.file-view__download {
    flex-shrink: 0;
    padding-block: 6px;
    padding-inline: 12px;
    font-size: 13px;
}

.file-view__frame {
    flex-grow: 1;
    width: 100%;
    border: 0;
    background: var(--gray);
}

/* The Reports tab (task M6-03): the person's Power BI reports, by company. */
.report-group + .report-group {
    margin-top: 18px;
}

.report-group .section-title {
    margin: 0 4px 8px;
}

.report-row {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    color: var(--navy);
    text-decoration: none;
}

.report-row:hover {
    color: var(--navy);
    background: rgba(233, 233, 233, 0.5);
}

.report-list li + li {
    border-top: 1px solid var(--navy-line-faint);
}

.report-row__symbol {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--gold-pill);
    display: flex;
    align-items: center;
    justify-content: center;
}

.report-row__name {
    font-size: 15px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-row__go {
    color: var(--gold-dark);
}

/* A report: Power BI's frame fills the screen under the header. Power BI's client sizes its frame with a script, and
   the stylesheet does too, in case that is ever refused. */
.report-view {
    height: 100dvh;
}

.report-view__frame {
    flex-grow: 1;
    width: 100%;
    min-height: 0;
    background: var(--gray);
}

.report-view__frame--hidden {
    display: none;
}

.report-view__frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.file-row .file-chip {
    background: transparent;
    padding: 2px 0;
}

.file-row__where {
    font-size: 12px;
    color: var(--navy-secondary);
    padding-inline-start: 46px;
}

/* ---- Requests --------------------------------------------------------------------------------------------- */

.request-card {
    width: min(290px, 100%);
    background: var(--white);
    border-radius: 14px;
    border-end-start-radius: 4px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.request-card--approval {
    gap: 6px;
}

.request-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.request-card__label {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-dark);
}

.request-card__label:lang(ar) {
    font-size: 13px;
    font-weight: 700;
}

.request-card__due {
    font-size: 11px;
    font-weight: 700;
}

.request-card__intro {
    font-size: 13px;
    line-height: 1.45;
}

.request-card__items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.request-card__item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    border-top: 1px solid var(--navy-line-faint);
}

.request-card__tick {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.request-card__open {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid rgba(25, 37, 55, 0.35);
    flex-shrink: 0;
}

.request-card__name {
    flex-grow: 1;
    font-size: 13px;
    line-height: 1.35;
}

.request-card__received {
    font-size: 12px;
    font-weight: 700;
    color: var(--gold-dark);
}

/* Task M2-01: Upload is a label around the file picker, so it opens it with a tap or the keyboard. */
.request-card__upload {
    cursor: pointer;
}

.request-card__upload:focus-within,
.request-card__more:focus-within {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.request-card__more {
    height: 32px;
    padding: 0 10px;
    border-radius: 16px;
    border: 1px solid rgba(25, 37, 55, 0.25);
    background: var(--white);
    color: var(--navy);
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    cursor: pointer;
}

.request-card__uploading {
    font-size: 12px;
    font-weight: 700;
    color: var(--navy-secondary);
    flex-shrink: 0;
}

.request-card__problem {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.request-card__subject {
    font-size: 16px;
    font-weight: 700;
}

.request-card__summary {
    font-size: 13px;
    color: var(--navy-secondary);
}

.request-card__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 6px;
}

/* Task M2-02: an approval's outcome, its decisions, and the confirmation or reason before deciding. */
.request-card__outcome {
    color: var(--gold-dark);
}

.request-card__progress,
.request-card__note {
    margin: 0;
    font-size: 12px;
    color: var(--navy-secondary);
}

.request-card__decisions {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.request-card__decision {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 6px;
    border-top: 1px solid var(--navy-line-faint);
    font-size: 12px;
    font-weight: 600;
}

.request-card__comment {
    font-weight: 400;
    font-size: 13px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.request-card__confirm,
.request-card__reject {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid var(--navy-line-faint);
}

.request-card__question {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
}

.request-card__reason {
    width: 100%;
    min-height: 64px;
    padding: 8px 10px;
    border: 1px solid rgba(25, 37, 55, 0.25);
    border-radius: 10px;
    background: var(--white);
    color: var(--navy);
    font: inherit;
    font-size: 13px;
    resize: vertical;
}

.request-card__reason:focus {
    outline: 2px solid var(--gold);
    outline-offset: 1px;
}

/* ---- Writing a message ------------------------------------------------------------------------------------ */

.composer {
    background: var(--white);
    padding: 8px 10px calc(14px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    gap: 4px;
    border-top: 1px solid var(--navy-line);
}

.composer__attach {
    position: relative;
}

.composer__attach:focus-within {
    outline: 2px solid var(--gold-dark);
    outline-offset: 2px;
}

.composer__input {
    flex-grow: 1;
    min-width: 0;
    height: 44px;
    border: 0;
    border-radius: 22px;
    background: var(--gray);
    padding: 0 16px;
    font-size: 14px;
    color: var(--navy);
}

.composer__input::placeholder {
    color: rgba(25, 37, 55, 0.6);
}

.composer__send {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 22px;
    background: var(--navy);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
}

.composer__send:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Recording a voice note on the phone (task M4-02 part e). The dot is the firm's dark gold, not red: red is kept for
   charts. It pulses unless the person asked for less motion. */
.composer--recording {
    min-height: 44px;
}

.composer__recording-dot {
    width: 12px;
    height: 12px;
    margin-inline: 12px 4px;
    border-radius: 50%;
    background: var(--gold-dark);
    flex-shrink: 0;
    animation: composer-recording 1.2s ease-in-out infinite;
}

@keyframes composer-recording {
    50% {
        opacity: 0.35;
    }
}

@media (prefers-reduced-motion: reduce) {
    .composer__recording-dot {
        animation: none;
    }
}

.composer__recording-time {
    flex-grow: 1;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    font-variant-numeric: tabular-nums;
}

.composer__cancel-voice {
    height: 44px;
    padding: 0 14px;
    border: 0;
    border-radius: 22px;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: var(--gold-dark);
    cursor: pointer;
}

.composer__cancel-voice:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.composer__problem {
    background: var(--white);
    padding: 0 16px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gold-dark);
}

.new-message__lead {
    font-size: 14px;
    line-height: 1.6;
}

.new-message__text {
    width: 100%;
    border: 1px solid var(--navy-border);
    border-radius: 12px;
    padding: 12px 14px;
    background: var(--white);
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
}

/* "New message" for a contact of more than one company: which one it is about. */
.new-message__company {
    margin: 0;
    padding: 10px 14px 12px;
    border: 1px solid var(--navy-border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.new-message__company legend {
    padding: 0 4px;
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
}

.choice {
    min-height: 32px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    cursor: pointer;
}

.choice input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--navy);
}

/* "Show earlier messages" and "Show more files", in the middle of their list. */
.list-more {
    display: flex;
    justify-content: center;
    margin: 4px 0 8px;
}

/* ---- Members ---------------------------------------------------------------------------------------------- */

.member-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
}

.member-row + .member-row {
    border-top: 1px solid var(--navy-line-faint);
}

.member-row__text {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.member-row__name {
    font-size: 14px;
    font-weight: 700;
}

.member-row__role {
    font-size: 12px;
    color: var(--navy-secondary);
}

/* "Add a colleague": a client admin's colleagues, each with its button, and what the platform answered. */
.add-colleague__lead {
    font-size: 14px;
    line-height: 1.6;
}

.member-row .button {
    flex-shrink: 0;
}

.add-colleague__problem {
    font-size: 13px;
    font-weight: 600;
    color: var(--gold-dark);
}

/* ---- Account ---------------------------------------------------------------------------------------------- */

.profile-card {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.profile-card__text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.profile-card__name {
    font-size: 17px;
    font-weight: 700;
}

.profile-card__line {
    font-size: 13px;
    color: var(--navy-secondary);
    overflow-wrap: anywhere;
}

.settings {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.language-choice__option {
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid var(--navy-border);
    background: var(--white);
    color: var(--navy);
    font-weight: 700;
    cursor: pointer;
}

.language-choice__option:lang(ar) {
    font-family: var(--font-arabic);
}

.language-choice__option:lang(en) {
    font-family: 'Montserrat', system-ui, sans-serif;
}

.language-choice__option[aria-pressed="true"] {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

.settings__row {
    min-height: 44px;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    cursor: pointer;
    padding: 0;
    text-align: start;
}

/* "Request account deletion" in the app (task M5-06). */
.deletion {
    gap: 14px;
}

.deletion__lead {
    font-size: 14px;
    line-height: 1.6;
}

.deletion__sent p {
    font-size: 14px;
    line-height: 1.6;
}

.deletion__problem {
    font-size: 13px;
    font-weight: 600;
    color: var(--gold-dark);
}

.deletion__contact {
    font-size: 13px;
    color: var(--navy-secondary);
}

.account-links {
    display: flex;
    gap: 8px;
    justify-content: center;
    font-size: 13px;
}

.account-footer {
    text-align: center;
    font-size: 12px;
    color: var(--navy-secondary);
}

/* ---- Loading, empty and failed ---------------------------------------------------------------------------- */

.state,
.empty {
    margin: 24px auto;
    max-width: 360px;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    color: var(--navy-secondary);
    font-size: 14px;
}

.state__title,
.empty__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
}

.state__text,
.empty__text {
    font-size: 13px;
    line-height: 1.5;
}

.empty__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--white);
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid var(--navy-line);
    border-top-color: var(--gold-dark);
    animation: spin 0.9s linear infinite;
}

/* The spinner inside a button, such as sign-in's while the phone fetches the person's tokens. */
.spinner--small {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-width: 2px;
    margin-inline-end: 8px;
    vertical-align: -3px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .spinner {
        animation-duration: 3s;
    }
}

/* ---- Wider screens: tabs down the side, and the chat list beside the open chat ------------------------- */

@media (min-width: 900px) {
    .app {
        flex-direction: row;
    }

    .tab-bar,
    .tab-bar--wide-only {
        order: -1;
        position: sticky;
        top: 0;
        height: 100dvh;
        width: 220px;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 24px 12px;
        border-top: 0;
        border-inline-end: 1px solid var(--navy-line);
    }

    .tab-bar__item {
        height: 48px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
        padding-inline: 4px 12px;
        border-radius: 14px;
        font-size: 14px;
    }

    .tab-bar__item--current {
        background: var(--gold-pill);
    }

    .tab-bar__item--current .tab-bar__pill {
        background: transparent;
    }

    .tab-bar__pill {
        width: 36px;
    }

    .tab-bar__badge {
        position: static;
        margin-inline-start: auto;
    }

    .home-header {
        padding-inline: max(20px, calc((100% - 760px) / 2 + 20px));
    }

    .needs-action,
    .home-list {
        width: calc(100% - 32px);
        max-width: 728px;
        margin-inline: auto;
    }

    .home-list {
        padding-inline: 0;
    }

    .page-header {
        padding-inline: max(20px, calc((100% - 760px) / 2 + 16px));
    }

    .split__list {
        display: block;
        width: 340px;
        flex-shrink: 0;
        height: 100dvh;
        overflow-y: auto;
        background: var(--white);
        border-inline-end: 1px solid var(--navy-line);
    }

    .message {
        max-width: min(420px, 75%);
    }

    .message--mine {
        max-width: min(380px, 70%);
    }
}
