:root {
    --Dark-Blue: #050546;
    --Spacing-XS: 8px;
    --Spacing-S: 16px;
    --White: #fffefe;
    --300---border: #e3deea;
    --200---button-alt: #f2f2f6;
}

body {
    font-family: "Nunito", sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--White);
}

body a {
    text-decoration: none;
}


/* ---------- */
/* ---------- */

.vertical-justified-container {
    /* 100vh first as the fallback, then 100dvh for browsers that have it: the
       same progressive-enhancement pair app/app/app.module.css already uses.
       This matters because app/layout.tsx sets interactiveWidget:
       'resizes-content' specifically so the layout shrinks around the on-screen
       keyboard instead of the page scrolling under it, and that only takes
       effect on a DYNAMIC viewport unit. With plain vh the container stayed a
       full screen tall while only the top ~57% was visible, so WebKit scrolled
       the page to keep the focused input above the keyboard and the card above
       it went off the top. That is the bug layout.tsx's comment describes and
       names login as a case of: /app got dvh, this shared container did not. */
    min-height: 100vh;
    min-height: 100dvh;
    /* viewportFit: 'cover' (app/layout.tsx) deliberately extends the page under
       the status bar and home indicator, which is right for full-bleed pages
       but means any content reaching the viewport edge sits under the clock.
       Nothing using this container padded for that, so the login card tucked
       under the status bar whenever the keyboard shortened the viewport. These
       resolve to 0 off-device and on non-notched screens, so this is inert
       everywhere it is not needed. */
    /* border-box is what makes the padding above work. There is no global
       box-sizing reset in this stylesheet (only .button and
       .location-button-outer set it), so under the default content-box the two
       insets ADD to 100dvh instead of being absorbed by it. The container then
       stood about 93px taller than the screen on a notched iPhone, and
       justify-content: space-between duly parked the footer at the bottom of
       that, half of it below the fold. */
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0px;
    position: relative;
    background: #FFFEFE;
}

#logo-block {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 12px 16px;
    gap: 8px;
    flex: none;
    flex-grow: 0;
    /* Callers set width:100% inline, and under the default content-box the 16px
       either side ADDS to it: 360 + 32 = 392, so the logo row alone pushed a
       360px phone sideways even after the card and footer were fixed. Measured
       in Chrome at 360px.

       This is the THIRD rule in this file with the same fault (see
       .vertical-justified-container and .text-block-frame). The real answer is a
       global border-box reset, which is deliberately not done here: it would
       change every box in a designer-authored stylesheet at once and wants a
       page-by-page look first. */
    box-sizing: border-box;
}

/* General Text */
.text-block-frame {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px 16px;
    gap: 10px;
    flex: none;
    flex-grow: 0;
    /* was min-width: 376px under the default content-box, so the 16px padding
       either side ADDED to it and this card rendered 408px wide: 33px past an
       iPhone SE and 48px past a 360px Android, pushing the whole page sideways.
       Same trap the .vertical-justified-container comment above describes, in a
       different dimension. 376px is the design frame, so it is a ceiling. */
    box-sizing: border-box;
    width: 100%;
    max-width: 376px;
}

.text-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 16px;
    gap: 16px;
    background: #F7F5FA;
    border-radius: 16px;
    flex: none;
    align-self: stretch;
    flex-grow: 0;
    border-color: black;
    border-width: 1px;
}

.heading {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 700;
    font-size: var(--text-24);
    line-height: 130%;
    letter-spacing: -0.01em;
    text-align: center;
    align-self: stretch;
    color: #050546;
    flex: none;
    flex-grow: 0;
}

.blocktext {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 600;
    font-size: var(--text-16);
    line-height: 150%;
    text-align: center;
    color: #050546;
    flex: none;
    align-self: stretch;
    flex-grow: 1;
}

/* Navigation Buttons */


/* Dwelling buttons */
.unit-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px 16px;
    gap: 16px;
    flex: none;
    flex-grow: 0;
    /* was width: 376px under the default content-box, so the 16px padding either
       side ADDED to it and this rendered 408px wide on every screen. On a 360px
       Android the unit buttons ran 8px off both edges (the left 8px unreachable,
       html is overflow-x: hidden), and every screen under 408px was laid out too
       wide. It now fills .main-content, so on a phone the buttons line up with the
       card above and the footer below. 408px keeps the desktop column as it was. */
    box-sizing: border-box;
    width: 100%;
    max-width: 408px;
}

.location-button-outer {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    /* 16px, not the original 90px: the side padding has to fit the narrowest
       container this button appears in, and 90px each side leaves too little
       for the icon and label inside a phone-width card. The inner row is
       centred instead, which is what the 90px was really achieving. */
    padding: 12px 16px;
    gap: 16px;
    background: #FFFEFE;
    border: 2px solid #050546;
    border-radius: 24px;
    /* Owns the label colour so .location-button-text can inherit it; a
       dark-filled variant then only has to set `color` here. */
    color: #050546;
    flex: none;
    flex-grow: 0;
    /* Was min-width AND max-width: 376px, i.e. pinned. That overflowed every
       container narrower than 376px (e.g. the 304px inside PrintCard's card).
       Now it fills what it is given, up to the designed 376px. */
    min-width: 0;
    width: 100%;
    max-width: 376px;
    margin: auto;
}

.location-button-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 0px;
    gap: 16px;
    width: 100%;
    /* min-height with a label that can shrink and wrap: this was pinned to one line at a
       fixed height. A 32-character unit name ran past its button at every width, and at
       200% text RING THE DOORBELL pushed its own icon off the left of the screen. */
    min-height: 32px;
    flex: none;
    flex-grow: 0;
}

.location-button-icon {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 4px;
    gap: 10px;
    width: 32px;
    height: 32px;
    /* Really 40px tall (32px + 4px padding each side, content-box), and it only ever
       overflowed the pinned 32px row. Unpinned, that would make every button 8px taller,
       so the negative margin keeps it out of the row's height. */
    margin: -4px 0;
    background: #7BD3C0;
    border-radius: 50%;
    flex: none;
    flex-grow: 0;
}

.location-button-text {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0px;
    gap: 10px;
    min-height: 25px;
    flex: 0 1 auto;
    min-width: 0;
    text-align: center;
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 800;
    font-size: var(--text-18);
    line-height: calc(var(--text-unit) * 25 / 16);
    /* Inherited from .location-button-outer rather than hard-set, so a
       dark-filled button only has to change the container's colour. Hard-setting
       it here meant every such variant needed a second override, and forgetting
       one rendered the label invisibly dark on dark.
       .location-button-text.dorbel-inactive still wins at (0,2,0). */
    color: inherit;
}

.location-button-text.dorbel-inactive {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 700;
    font-size: var(--text-18);
    line-height: calc(var(--text-unit) * 25 / 16);
    color: #9292A0;
    flex: none;
    flex-grow: 0;
}

.location-button-outer.dorbel-inactive {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 12px 90px;
    gap: 16px;
    border: 2px solid #E3DEEA;
    border-radius: 24px;
    flex: none;
    flex-grow: 0;
}

.location-button-icon.dorbel-inactive {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 4px;
    gap: 10px;
    width: 32px;
    height: 32px;
    background: #F7F5FA;
    border-color: #F7F5FA;
    border-radius: 16px;
    flex: none;
    flex-grow: 0;
}

.no-dorbel-icon {
    width: 22px;
    height: 25px;
    flex: none;
    flex-grow: 0;
    background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2222%22%20height%3D%2225%22%20viewBox%3D%220%200%2022%2025%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M3.60422%2021.7358H3.47992C3.41789%2021.7412%203.3555%2021.7412%203.29347%2021.7358C2.6305%2021.6747%202.00409%2021.4046%201.50468%2020.9643C1.00527%2020.524%200.658699%2019.9364%200.515018%2019.2863C0.322207%2018.3938%200.366188%2017.4664%200.642595%2016.5961C0.919002%2015.7259%201.41822%2014.943%202.09069%2014.3253C2.14714%2014.2742%202.18905%2014.2091%202.21217%2014.1365C2.23528%2014.064%202.23878%2013.9866%202.2223%2013.9122L1.82016%2012.0843C1.49418%2010.5584%201.62161%208.97046%202.18674%207.51607C2.75187%206.06167%203.73003%204.80431%205.00076%203.89883C4.95235%203.4904%204.98501%203.07644%205.09688%202.68067C5.20876%202.2849%205.39763%201.91509%205.65269%201.59245C5.90775%201.2698%206.22397%201.00067%206.58323%200.800466C6.9425%200.600262%207.33774%200.472928%207.74631%200.42576C8.5242%200.334297%209.30787%200.540665%209.93983%201.00339C10.4817%201.39411%2010.8851%201.94729%2011.0914%202.58272C12.6208%202.87885%2014.0301%203.61612%2015.1455%204.7036C16.261%205.79108%2017.0337%207.18123%2017.3685%208.70263L17.767%2010.5306C17.7824%2010.6024%2017.8161%2010.6691%2017.8647%2010.7242C17.9134%2010.7792%2017.9754%2010.8208%2018.0449%2010.845C18.913%2011.1279%2019.6916%2011.6336%2020.303%2012.3118C20.9144%2012.9899%2021.3371%2013.8166%2021.5289%2014.7092C21.6792%2015.3905%2021.5983%2016.1024%2021.2991%2016.7326C20.9999%2017.3628%2020.4993%2017.8754%2019.8765%2018.1896C19.7959%2018.2358%2019.7115%2018.275%2019.6242%2018.3066C17.1358%2019.4341%2014.5338%2020.292%2011.8628%2020.8657C9.20533%2021.439%206.49465%2021.7294%203.77605%2021.7321H3.60422V21.7358ZM3.46895%2020.299H3.54573C3.58586%2020.3027%203.62624%2020.3027%203.66637%2020.299H3.71024C6.3479%2020.303%208.97829%2020.0223%2011.5557%2019.4618C14.1323%2018.8995%2016.6412%2018.0624%2019.0393%2016.9649L19.1051%2016.9393C19.121%2016.9351%2019.136%2016.9276%2019.1489%2016.9173L19.1965%2016.8918C19.5336%2016.7253%2019.8057%2016.4513%2019.9699%2016.113C20.1341%2015.7748%2020.181%2015.3915%2020.1031%2015.0236C19.9647%2014.3786%2019.6591%2013.7814%2019.217%2013.2918C18.7749%2012.8022%2018.2118%2012.4375%2017.5842%2012.2342C17.2753%2012.1315%2016.9985%2011.95%2016.7812%2011.7077C16.5639%2011.4653%2016.4135%2011.1705%2016.3449%2010.8523L15.9464%209.02434C15.6623%207.73844%2014.996%206.5685%2014.0349%205.66813C13.0739%204.76775%2011.863%204.17903%2010.5613%203.97926C10.3649%203.94627%2010.1833%203.85399%2010.0408%203.7148C9.89835%203.5756%209.80188%203.39616%209.76435%203.20056C9.67561%202.78641%209.4358%202.42017%209.09167%202.17326C8.75392%201.92487%208.33455%201.81382%207.91814%201.86251C7.68346%201.88849%207.45693%201.96381%207.25342%202.08352C7.04991%202.20323%206.87402%202.36463%206.73729%202.55713C6.60123%202.74965%206.50633%202.96816%206.45852%203.19902C6.41072%203.42987%206.41103%203.6681%206.45945%203.89883C6.50741%204.09025%206.49484%204.29183%206.42347%204.47581C6.35211%204.65979%206.22546%204.81712%206.06096%204.92612C4.95318%205.64588%204.08949%206.68439%203.58371%207.9048C3.07793%209.1252%202.95379%2010.4702%203.22767%2011.7626L3.62616%2013.5905C3.69478%2013.9086%203.67929%2014.2391%203.5812%2014.5494C3.48311%2014.8597%203.30581%2015.1391%203.06681%2015.36C2.58128%2015.8061%202.2209%2016.3715%202.02145%2017C1.822%2017.6285%201.79042%2018.2982%201.92984%2018.9427C2.00715%2019.295%202.19497%2019.6134%202.46591%2019.8514C2.73685%2020.0895%203.07675%2020.2348%203.43605%2020.2661L3.46895%2020.299Z%22%20fill%3D%22%239292A0%22%2F%3E%3Cpath%20d%3D%22M8.07176%2024.4046C7.12608%2024.4046%206.20108%2024.1277%205.41104%2023.6079C4.62099%2023.0882%204.00051%2022.3483%203.62624%2021.4799C3.58207%2021.38%203.558%2021.2724%203.55541%2021.1633C3.55282%2021.0541%203.57175%2020.9455%203.61113%2020.8437C3.65051%2020.7418%203.70957%2020.6487%203.78492%2020.5697C3.86028%2020.4907%203.95046%2020.4273%204.05032%2020.3831C4.15018%2020.3389%204.25776%2020.3149%204.36692%2020.3123C4.47608%2020.3097%204.58468%2020.3286%204.68653%2020.368C4.78837%2020.4074%204.88146%2020.4664%204.96048%2020.5418C5.0395%2020.6172%205.10291%2020.7073%205.14708%2020.8072C5.41799%2021.4403%205.88684%2021.9685%206.48332%2022.3126C7.0798%2022.6567%207.77176%2022.7982%208.45545%2022.7159C9.13913%2022.6335%209.77768%2022.3317%2010.2754%2021.8557C10.773%2021.3798%2011.103%2020.7553%2011.2158%2020.076C11.2336%2019.969%2011.2722%2019.8664%2011.3296%2019.7743C11.387%2019.6822%2011.462%2019.6023%2011.5502%2019.5392C11.6385%2019.476%2011.7383%2019.4309%2011.844%2019.4063C11.9498%2019.3818%2012.0593%2019.3783%2012.1663%2019.396C12.2734%2019.4138%2012.3759%2019.4525%2012.468%2019.5099C12.5601%2019.5672%2012.64%2019.6422%2012.7032%2019.7305C12.7663%2019.8187%2012.8115%2019.9186%2012.836%2020.0243C12.8606%2020.13%2012.8641%2020.2395%2012.8463%2020.3466C12.6643%2021.4808%2012.0833%2022.5128%2011.208%2023.2568C10.3327%2024.0007%209.22052%2024.4078%208.07176%2024.4046Z%22%20fill%3D%22%239292A0%22%2F%3E%3Cpath%20d%3D%22M5.66677%205.02847C5.50506%205.02059%205.35053%204.95925%205.22743%204.85408C5.10433%204.74892%205.01962%204.60586%204.98658%204.44736C4.95354%204.28886%204.97404%204.12388%205.04488%203.97829C5.11571%203.8327%205.23286%203.71473%205.37796%203.6429C7.02954%202.93145%208.80098%202.53945%2010.5985%202.48764C10.6932%202.48471%2010.7875%202.50077%2010.8758%202.53487C10.9642%202.56897%2011.0448%202.62042%2011.113%202.68618C11.1811%202.75195%2011.2354%202.8307%2011.2726%202.91778C11.3099%203.00486%2011.3293%203.09852%2011.3297%203.19323C11.3299%203.38218%2011.2568%203.56386%2011.126%203.70017C10.9951%203.83648%2010.8166%203.91684%2010.6278%203.9244C9.81954%203.94636%209.01524%204.04552%208.22587%204.22052C7.4426%204.3906%206.67746%204.63544%205.94096%204.95169C5.85548%204.99501%205.76232%205.02109%205.66677%205.02847Z%22%20fill%3D%22%239292A0%22%2F%3E%3Crect%20x%3D%228.10254%22%20y%3D%220.904541%22%20width%3D%2211%22%20height%3D%2211%22%20rx%3D%225.5%22%20fill%3D%22%23FFFEFE%22%2F%3E%3Crect%20x%3D%228.10254%22%20y%3D%220.904541%22%20width%3D%2211%22%20height%3D%2211%22%20rx%3D%225.5%22%20stroke%3D%22%239292A0%22%2F%3E%3Cpath%20d%3D%22M13.6025%200.404541C12.0114%200.404541%2010.4853%201.03669%209.35961%202.16162C8.23462%203.28715%207.60254%204.81341%207.60254%206.40454C7.60254%207.99567%208.23469%209.5218%209.35961%2010.6475C10.4851%2011.7725%2012.0114%2012.4045%2013.6025%2012.4045C15.1937%2012.4045%2016.7198%2011.7724%2017.8455%2010.6475C18.9705%209.52194%2019.6025%207.99567%2019.6025%206.40454C19.6025%204.81341%2018.9704%203.28728%2017.8455%202.16162C16.7199%201.03662%2015.1937%200.404541%2013.6025%200.404541ZM13.6025%2011.5474C12.2386%2011.5474%2010.9304%2011.0058%209.96606%2010.041C9.00123%209.07674%208.45968%207.76856%208.45968%206.40454C8.45968%205.04052%209.00129%203.73245%209.96606%202.76806C10.9303%201.80323%2012.2385%201.26168%2013.6025%201.26168C14.9666%201.26168%2016.2746%201.80329%2017.239%202.76806C18.2038%203.73234%2018.7454%205.04052%2018.7454%206.40454C18.7454%207.76856%2018.2038%209.07663%2017.239%2010.041C16.2747%2011.0058%2014.9666%2011.5474%2013.6025%2011.5474ZM16.2639%204.35165L14.2068%206.40454L16.2639%208.45743C16.3448%208.53779%2016.3909%208.64761%2016.3909%208.76172C16.3909%208.87584%2016.3448%208.98565%2016.2639%209.06602C16.1836%209.14691%2016.0738%209.19298%2015.9596%209.19298C15.8455%209.19298%2015.7357%209.14691%2015.6553%209.06602L13.6025%207.00887L11.5496%209.06602C11.4692%209.14691%2011.3594%209.19298%2011.2453%209.19298C11.1312%209.19298%2011.0213%209.14691%2010.941%209.06602C10.8601%208.98566%2010.814%208.87584%2010.814%208.76172C10.814%208.64761%2010.8601%208.5378%2010.941%208.45743L12.9981%206.40454L10.941%204.35165C10.7728%204.18343%2010.7728%203.9113%2010.941%203.74308C11.1092%203.57486%2011.3813%203.57486%2011.5496%203.74308L13.6024%205.80022L15.6553%203.74308C15.8236%203.57486%2016.0957%203.57486%2016.2639%203.74308C16.4321%203.9113%2016.4322%204.18343%2016.2639%204.35165Z%22%20fill%3D%22%239292A0%22%20stroke%3D%22%239292A0%22%20stroke-width%3D%220.5%22%2F%3E%3C%2Fsvg%3E");
    background-position: center;
    background-repeat: no-repeat;
}

.dorbel-icon {
    width: 24px;
    height: 17.47px;
    flex: none;
    flex-grow: 0;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'24'%20height%3D'19'%20viewBox%3D'0%200%2024%2019'%20fill%3D'none'%20%3E%3Cpath%20d%3D'M12.0001%200.869873C7.27707%200.869873%203.50635%204.68093%203.50635%209.40413C3.50635%2014.1273%207.27691%2017.8701%2012.0001%2017.8701C16.7234%2017.8701%2020.4833%2014.129%2020.4833%209.40578C20.4833%204.68257%2016.7234%200.869873%2012.0001%200.869873ZM11.9995%202.54832C15.797%202.54832%2018.857%205.60822%2018.857%209.40578C18.857%2013.2033%2015.797%2016.2632%2011.9995%2016.2632C8.20186%2016.2616%205.14195%2013.2017%205.14195%209.40413C5.14195%205.60653%208.20186%202.54667%2011.9995%202.54667V2.54832Z'%20fill%3D'%23050546'%2F%3E%3Cpath%20d%3D'M11.9992%205.9762C10.1157%205.9762%208.57129%207.5206%208.57129%209.4041C8.57129%2011.2876%2010.1157%2012.832%2011.9992%2012.832C13.8827%2012.832%2015.4272%2011.2876%2015.4272%209.4041C15.4272%207.5206%2013.8827%205.9762%2011.9992%205.9762ZM11.9992%207.69097C12.9554%207.69097%2013.714%208.44789%2013.714%209.40575C13.714%2010.362%2012.9571%2011.1205%2011.9992%2011.1205C11.043%2011.1205%2010.2844%2010.3636%2010.2844%209.40575C10.2844%208.44954%2011.0414%207.69097%2011.9992%207.69097Z'%20fill%3D'%23050546'%2F%3E%3Cpath%20d%3D'M11.9992%207.69097C12.9554%207.69097%2013.714%208.44789%2013.714%209.40575C13.714%2010.362%2012.9571%2011.1205%2011.9992%2011.1205C11.043%2011.1205%2010.2844%2010.3636%2010.2844%209.40575C10.2844%208.44954%2011.0414%207.69097%2011.9992%207.69097Z'%20fill%3D'%23050546'%2F%3E%3Cpath%20d%3D'M4.12224%200.670044C3.89403%200.670044%203.67709%200.76004%203.51635%200.920751C1.26638%203.17069%200%206.22265%200%209.40453C0%2012.5864%201.26478%2015.6383%203.51474%2017.8883H3.51635C3.85063%2018.2226%204.39382%2018.2226%204.7281%2017.8883C5.06237%2017.554%205.06237%2017.0108%204.7281%2016.6766C2.79958%2014.7481%201.60001%2012.199%201.60001%209.47004C1.60001%206.74113%202.79958%204.06095%204.7281%202.13224C5.06237%201.79797%205.06237%201.25478%204.7281%200.920505C4.56739%200.759798%204.34886%200.670044%204.12224%200.670044Z'%20fill%3D'%23050546'%2F%3E%3Cpath%20d%3D'M19.2717%200.920504C18.9374%201.25478%2018.9374%201.79797%2019.2717%202.13224C21.2002%204.06075%2022.3999%206.67562%2022.3999%209.40453C22.3999%2012.1334%2021.2002%2014.7479%2019.2717%2016.6766C18.9374%2017.0108%2018.9374%2017.554%2019.2717%2017.8883C19.606%2018.2226%2020.1492%2018.2226%2020.4835%2017.8883C22.7334%2015.6384%2023.9998%2012.5864%2023.9998%209.40453C23.9998%206.22265%2022.7334%203.17078%2020.4835%200.920751C20.1492%200.586477%2019.606%200.58623%2019.2717%200.920504Z'%20fill%3D'%23050546'%2F%3E%3C%2Fsvg%3E");
    background-position: center;
    background-repeat: no-repeat;
}

.company-footer {
    display: flex;
    /* was min-width: 376px, which is wider than the phones this renders on:
       iPhone SE and 8 are 375px and most Android is 360px, so the footer forced
       a horizontal scroll on every one of them. 376px is the DESIGN frame, not a
       device width, so it belongs in max-width only. */
    width: 100%;
    max-width: 376px;
    /* Keeps the button off the screen edge once the frame is narrower than the
       design. Matches the 16px gutter the rest of the mobile layout uses. */
    padding: 0 16px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    margin-bottom: 8px;
}

/* Footer buttons fill the frame instead of hugging their label.
   .button is content-sized with 90px of horizontal padding, so its width was a
   function of the words in it: ABOUT DORBEL, CREATE A DORBEL, GET YOUR OWN
   DORBEL and GO TO DASHBOARD all rendered a differently sized button, and the
   longest came within a few pixels of overflowing a 360px phone. Same component,
   same page position, five different widths. */
.company-footer .button {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
}

/* General Buttons */
.button {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 12px 90px;
    background: #FFFEFE;
    border: 2px solid #050546;
    border-radius: 24px;
    /* Owns the label colour; see .button-text. */
    color: #050546;
    flex: none;
    flex-grow: 0;
}

.button-text {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0px;
    gap: 10px;
    /* Grows and wraps, same reason as .location-button-text. */
    min-height: 25px;
    flex: 0 1 auto;
    min-width: 0;
    text-align: center;
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 800;
    font-size: var(--text-18);
    line-height: calc(var(--text-unit) * 25 / 16);
    /* Inherited from .button, so a dark-filled button sets one colour rather
       than two. Every .button-text in the app is a direct child of .button. */
    color: inherit;
}

/* Messaging CSS */
/* Chat Container Start */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-height: 100vh;
    /* Only ever scrolls when the header, call buttons and suggestions leave too little
       room, which takes a large text size and a keyboard. Without this they pushed the
       message box off the bottom. See the sticky .chat-input. */
    overflow-y: auto;
}

/* Chat Container End */

/* Chat Page Header Start */
.chat-header {
    display: flex;
    flex: 0 0 auto;
    /* natural height, no scrolling */

    /* was height: 42px, so a title that wrapped spilled out of the bar: on a 360px
       phone a building's address came to three lines, the first cut off above the
       screen and the last across the divider. .chat-header-text sets the limit. */
    min-height: 42px;

    padding: var(--Spacing-XS) var(--Spacing-S);
    /* A title long enough to fill the row ran right up against the logo. */
    gap: 8px;
    justify-content: space-between;
    align-items: center;
    /* Was `var (--White)`, with a space, which is invalid: the browser dropped the
       declaration and this header has had NO background since the scaffold. It was
       invisible only because <body> is the same colour. Opaque, as .header in
       app/app/app.module.css is, so nothing shows through it. */
    background: var(--White);
    border-bottom: 1px solid var(--300---border);
}

.chat-header-logo {
    width: 48.383px;
    height: 42px;
    transform: rotate(0.481deg);
    flex-shrink: 0;
    /*   aspect-ratio: calc(48.38 / 42); */
}

.chat-header-text {
    color: var(--Dark-Blue, #050546);
    font-family: Nunito;
    /* Stops growing at twice its size, which is as far as WCAG asks. It sits above the
       conversation, and at the largest iPhone setting it took a third of the screen. */
    font-size: min(var(--text-18), 36px);
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
    text-align: center;
    /* Three lines at most, one with a keyboard up: the chat is what this screen is for.
       Two lines was not enough, since at 200% text it read "CHATTING WITH NUMBE...", which
       cuts off the only part that matters. Clamped text is still read in full by a screen
       reader. */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    min-width: 0;
}

@media (max-height: 500px) {
    .chat-header-text {
        -webkit-line-clamp: 1;
    }
}

.chat-close-button {
    display: flex;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;

    border-radius: 20px;
    background: var(--200---button-alt);
}

.chat-close-button>svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    padding: 8px;
}

/* Chat Page Header End */

/* Message Input Area Start */
.chat-input {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding-bottom: 8px;
    gap: 8px;
    align-self: stretch;
    margin: 16px 16px 0 16px;
    flex: 0 0 auto;
    /* natural height, fixed at bottom of column */
    /* Stays in reach when the column has to scroll (see .chat-container). */
    position: sticky;
    bottom: 0;
    background: var(--White);
    /*debug */
    /*   border: 1px solid red; */
}

.symbol-button {
    display: flex;
    width: 24px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: var(--Dark-Blue);
    text-align: center;
    font-family: Nunito;
    font-size: 32px; /* px on purpose: this + is an icon in a 24px button, not text */
    font-style: normal;
    font-weight: 600;
    line-height: 120%;
    /* 38.4px */
}

.user-input {
    display: flex;
    min-height: 40px;
    padding: 0 12px;
    align-items: center;
    gap: 2px;
    /* Was flex: 1 0 0 and a fixed height: it could not shrink below a width set by its
       font, so at 175% text it pushed Send off the right of the screen and attach off
       the left, and at larger sizes the text was clipped. */
    flex: 1 1 0;
    min-width: 0;
    border-radius: 18px;
    background: var(--300---border);
    border-style: none;

    /* font */
    color: rgba(5, 5, 70, 0.5);
    text-align: start;
    font-family: Nunito;
    font-size: var(--text-16);
    font-style: normal;
    font-weight: 600;
    line-height: 150%;
    /* 24px */
}

.send-button {
    display: flex;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    border-radius: 20px;
    background: var(--Dark-Blue);
}

#send-arrow {
    width: 15px;
    /*   transform: rotate(-90deg); */
    flex-shrink: 0;
    stroke-width: 1px;
    stroke: var(--White);
}

.send-button:hover {
    background-color: #0074cc;
}

/* Message Input Area End */

/* Messaging area Start */
.messages {
    flex: 1 1 auto;
    /* take remaining space */
    /* Was 0, so at a large text size the conversation could shrink to nothing. Under this
       the column scrolls instead. */
    min-height: 96px;
    overflow-y: auto;
    /* scroll only this area */
    padding-top: 8px;
    overflow-y: auto;
    display: flex;
    padding: 0 16px;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 16px;
}

/* Base bubble */
.message {
    display: flex;
    align-items: center;
    height: max-content;
    max-width: 80%;
    padding: 4px 12px;
    gap: var(--Spacing-xs);

    font-family: Nunito, sans-serif;
    font-size: var(--text-16);
    font-style: normal;
    line-height: 150%;
}

/* Sent (right) */
.sent-message {
    width: max-content;
    margin-left: auto;

    border-radius: 18px 18px 4px 18px;
    border: 2px solid var(--Dark-Blue, #050546);
    background: var(--Dark-Blue);

    color: var(--White);
    text-align: right;
    font-weight: 500;
}

.sent-message:last-of-type {
    margin-bottom: 8px;
}

.sent-message:first-of-type {
    margin-top: 8px;
    scroll-margin-top: 8px;
}

  .sent-message + .sent-message {                                                                                                                                                                          
    border-radius: 18px 4px 4px 18px;  /* flatten top-right */                                                                                                                                             
    margin-top: -8px;                   /* tighten the gap */                                                                                                                                              
  }                                                                                                                                                                                                        
                                                                                                                                                                                                           
  /* Last bubble in a consecutive sent run — followed by received or nothing */                                                                                                                            
  .sent-message + .sent-message:not(:has(+ .sent-message)) {                                                                                                                                             
    border-radius: 18px 4px 18px 18px; /* restore bottom */                                                                                                                                                
  }                                                                                                                                                                                                        
                                                                                                                                                                                                           
/* Received (left) */
.received-message {
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    align-self: flex-start;

    border-radius: 18px 18px 18px 4px;
    background: #f7f5fa;

    color: var(--Dark-Blue);
    text-align: left;
    font-weight: 400;
}

.received-message:last-of-type {
    margin-bottom: 8px;
}

  /* Same pattern for received */                                                                                                                                                                          
  .received-message + .received-message {                                                                                                                                                                  
    border-radius: 4px 18px 18px 18px;                                                                                                                                                                     
    margin-top: -8px;                                                                                                                                                                                      
  }                                                                                                                                                                                                        
  .received-message + .received-message:not(:has(+ .received-message)) {                                                                                                                                   
    border-radius: 4px 18px 18px 18px;                                                                                                                                                                     
  }   



/* Messaging Area End */

/* ---------- */
/* ---------- */