* {
    box-sizing: border-box;
}

:root {
    --bg: #f8f7fd;
    --sidebar: #fffdfd;
    --surface: #ffffff;
    --surface-soft: #f5f2ff;

    --purple: #6c56d7;
    --purple-dark: #5540bc;
    --purple-light: #eeeaff;
    --purple-border: #ded8f6;

    --text: #27223c;
    --muted: #747087;
    --soft-muted: #9a94ae;
    --border: #e7e3ee;

    --green: #1b9a6b;
    --red: #b64355;

    --sidebar-width: 280px;

    --shadow:
        0 10px 28px
        rgba(79, 61, 151, 0.08);
}

body.dark {
    --bg: #171622;
    --sidebar: #1e1d2b;
    --surface: #242231;
    --surface-soft: #2c293e;

    --text: #f4f1ff;
    --muted: #b4aec7;
    --soft-muted: #8e899e;
    --border: #353247;

    --purple-light: #302b4f;
    --purple-border: #494069;
}

html,
body {
    width: 100%;
    height: 100%;

    margin: 0;
}

body {
    overflow: hidden;

    background: var(--bg);
    color: var(--text);

    font-family:
        Arial,
        Helvetica,
        sans-serif;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}


/* =========================
   LOGIN
========================= */

.auth-overlay {
    position: fixed;
    inset: 0;

    z-index: 20000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background:
        radial-gradient(
            circle at 50% 28%,
            #eeeaff,
            #f8f7fd 52%,
            #f0eef7
        );
}

body.dark .auth-overlay {
    background: #171622;
}

.auth-card {
    width: min(420px, 100%);

    padding: 34px;

    border:
        1px solid
        var(--border);

    border-radius: 22px;

    background: var(--surface);

    box-shadow: var(--shadow);

    text-align: center;
}

.auth-logo,
.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--purple);
}

.auth-logo {
    width: 58px;
    height: 58px;

    margin: auto;

    border-radius: 16px;
}

.equalizer {
    display: flex;
    align-items: center;

    gap: 3px;
}

.equalizer span {
    width: 3px;

    border-radius: 999px;

    background: white;
}

.equalizer span:nth-child(1) {
    height: 13px;
}

.equalizer span:nth-child(2) {
    height: 22px;
}

.equalizer span:nth-child(3) {
    height: 17px;
}

.auth-card h1 {
    margin:
        19px
        0
        5px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 31px;
}

.auth-card p {
    color: var(--muted);

    line-height: 1.55;
}

.auth-card input {
    width: 100%;

    margin-top: 13px;

    padding:
        13px
        14px;

    border:
        1px solid
        var(--border);

    border-radius: 11px;

    outline: none;

    background: var(--surface);
    color: var(--text);
}

.auth-card input:focus {
    border-color: var(--purple);
}

.auth-continue {
    width: 100%;

    margin-top: 10px;

    padding: 13px;

    border: 0;
    border-radius: 11px;

    background: var(--purple);

    color: white;

    font-weight: 700;
}

.auth-continue:hover {
    background: var(--purple-dark);
}

.auth-note {
    margin-top: 14px;

    color: var(--soft-muted);

    font-size: 11px;
}


/* =========================
   APP LAYOUT
========================= */

.app {
    width: 100%;
    height: 100vh;

    display: flex;
}

.sidebar {
    width: var(--sidebar-width);

    flex:
        0
        0
        var(--sidebar-width);

    display: flex;
    flex-direction: column;

    padding:
        22px
        16px
        16px;

    overflow-y: auto;

    border-right:
        1px solid
        var(--border);

    background: var(--sidebar);

    transition:
        width .25s ease,
        flex-basis .25s ease,
        transform .25s ease;
}

body.focus-mode .sidebar {
    width: 0;
    flex-basis: 0;

    padding-left: 0;
    padding-right: 0;

    overflow: hidden;

    transform:
        translateX(-100%);
}

.main {
    min-width: 0;
    flex: 1;

    display: flex;
    flex-direction: column;
}


/* =========================
   SIDEBAR BRAND
========================= */

.brand-row {
    display: flex;
    align-items: center;

    padding:
        4px
        8px
        26px;
}

.brand-icon {
    width: 39px;
    height: 39px;

    flex:
        0
        0
        39px;

    border-radius: 11px;
}

.brand-text {
    margin-left: 12px;
}

.brand-name {
    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 17px;
    font-weight: 700;
}

.brand-tagline {
    margin-top: 3px;

    color: var(--purple);

    font-size: 8px;
    font-weight: 700;

    letter-spacing: 1.3px;

    line-height: 1.45;
}

.brand-close {
    margin-left: auto;

    border: 0;

    background: transparent;
    color: var(--muted);

    font-size: 21px;
}


/* =========================
   NEW CHAT
========================= */

.new-chat {
    width: 100%;

    padding:
        13px
        14px;

    display: flex;
    align-items: center;

    border: 0;
    border-radius: 11px;

    background: var(--purple);

    color: white;

    box-shadow:
        0 8px 18px
        rgba(108, 86, 215, .18);

    font-weight: 700;
}

.new-chat:hover {
    background: var(--purple-dark);
}

.new-plus {
    margin-right: 11px;

    font-size: 24px;
    font-weight: 300;
}

.key-badge {
    margin-left: auto;

    padding:
        3px
        6px;

    border:
        1px solid
        rgba(255,255,255,.28);

    border-radius: 5px;

    background:
        rgba(255,255,255,.12);

    font-size: 9px;
}


/* =========================
   SIDEBAR CONTENT
========================= */

.sidebar-heading {
    margin:
        27px
        11px
        10px;

    color: #8f88aa;

    font-size: 9px;
    font-weight: 600;

    letter-spacing: 1.6px;

    text-transform: uppercase;
}

.session-card {
    padding: 12px;

    border:
        1px solid
        var(--purple-border);

    border-radius: 11px;

    background:
        var(--purple-light);
}

.session-top {
    display: flex;
    align-items: center;
}

.session-spark {
    margin-right: 9px;

    color: var(--purple);

    font-size: 18px;
}

.session-title {
    font-size: 12px;
    font-weight: 700;
}

.session-dot {
    width: 7px;
    height: 7px;

    margin-left: auto;

    border-radius: 50%;

    background: var(--green);
}

.session-sub {
    margin:
        4px
        0
        0
        27px;

    color: var(--purple);

    font-size: 9px;
}

.side-setting {
    width: 100%;

    padding:
        11px
        10px;

    display: flex;
    align-items: center;

    border: 0;
    border-radius: 9px;

    background: transparent;
    color: var(--text);

    text-align: left;
}

.side-setting:hover {
    background:
        var(--surface-soft);
}

.side-setting-icon {
    width: 26px;

    color: var(--purple);

    font-size: 16px;
}

.side-setting-text {
    min-width: 0;
    flex: 1;
}

.side-setting-title {
    font-size: 11px;
    font-weight: 700;
}

.side-setting-value {
    display: block;

    margin-top: 2px;

    overflow: hidden;

    color: var(--muted);

    font-size: 9px;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.side-chevron {
    color: var(--soft-muted);

    font-size: 12px;
}

.sidebar-divider {
    height: 1px;

    margin:
        15px
        0;

    background:
        var(--border);
}


/* =========================
   RECENT CHATS
========================= */

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

.saved-chat {
    position: relative;

    width: 100%;

    padding:
        8px
        10px
        8px
        20px;

    border: 0;

    background: transparent;
    color: var(--muted);

    text-align: left;

    font-size: 10px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.saved-chat::before {
    content: "";

    position: absolute;

    left: 9px;
    top: 8px;
    bottom: 8px;

    width: 2px;

    border-radius: 2px;
}

.saved-chat.active::before {
    background: #aa99ff;
}

.saved-chat:hover,
.saved-chat.active {
    color: var(--text);
}

.recent-empty {
    padding:
        2px
        15px;

    color: var(--soft-muted);

    font-size: 9px;

    line-height: 1.5;
}


/* =========================
   SIDEBAR BOTTOM
========================= */

.sidebar-bottom {
    margin-top: auto;
}

.learn-card {
    margin:
        12px
        5px;

    padding: 11px;

    display: flex;
    align-items: center;

    border-radius: 11px;

    background:
        var(--surface-soft);
}

.learn-icon {
    width: 28px;
    height: 28px;

    display: grid;
    place-items: center;

    border-radius: 8px;

    background: #dcf6ef;
    color: #13846d;
}

.learn-text {
    margin-left: 9px;
}

.learn-title {
    font-size: 10px;
    font-weight: 700;
}

.learn-sub {
    margin-top: 2px;

    color: var(--muted);

    font-size: 8px;
}

.appearance-row,
.profile-row {
    padding: 10px;

    display: flex;
    align-items: center;
}

.appearance-icon,
.profile-circle {
    width: 28px;
    height: 28px;

    display: grid;
    place-items: center;
}

.profile-circle {
    border-radius: 50%;

    background: var(--purple-light);
    color: var(--purple);

    font-size: 10px;
    font-weight: 700;
}

.appearance-info,
.profile-info {
    margin-left: 9px;

    flex: 1;
}

.appearance-title,
.profile-title {
    font-size: 10px;
    font-weight: 700;
}

.appearance-sub,
.profile-sub {
    margin-top: 2px;

    color: var(--muted);

    font-size: 8px;
}

.theme-button,
.signout-button {
    width: 28px;
    height: 28px;

    display: grid;
    place-items: center;

    border: 0;
    border-radius: 50%;

    background:
        var(--surface-soft);

    color: var(--muted);
}


/* =========================
   TOP BAR
========================= */

.topbar {
    height: 72px;

    flex:
        0
        0
        72px;

    padding:
        0
        30px;

    display: grid;

    grid-template-columns:
        1fr
        auto
        1fr;

    align-items: center;

    border-bottom:
        1px solid
        var(--border);

    background:
        rgba(248,247,253,.88);

    backdrop-filter:
        blur(18px);
}

body.dark .topbar {
    background:
        rgba(23,22,34,.88);
}

.menu-button {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border: 0;
    border-radius: 8px;

    background: transparent;
    color: var(--muted);

    font-size: 22px;
}

.breadcrumb {
    display: flex;
    align-items: center;

    gap: 13px;

    color: var(--muted);

    font-size: 11px;
}

.breadcrumb-subject {
    padding:
        6px
        9px;

    border: 0;
    border-radius: 8px;

    background: transparent;
    color: var(--text);

    font-weight: 700;
}

.breadcrumb-subject:hover {
    background:
        var(--surface-soft);
}

.breadcrumb-slash {
    color: #c0bacd;
}

.top-actions {
    justify-self: end;

    display: flex;
    align-items: center;

    gap: 20px;
}

.focus-button {
    display: flex;
    align-items: center;

    gap: 8px;

    border: 0;

    background: transparent;
    color: var(--muted);

    font-size: 9px;

    letter-spacing: .8px;
}

.focus-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--green);
}

.moon-button {
    border: 0;

    background: transparent;
    color: var(--muted);

    font-size: 19px;
}


/* =========================
   WORKSPACE
========================= */

.workspace {
    flex: 1;

    overflow-y: auto;

    scroll-behavior: smooth;

    background:
        radial-gradient(
            circle at 52% 13%,
            rgba(236,230,255,.74),
            transparent 34%
        ),
        var(--bg);
}

body.dark .workspace {
    background:
        radial-gradient(
            circle at 52% 13%,
            rgba(91,69,150,.18),
            transparent 35%
        ),
        var(--bg);
}

.content {
    width:
        min(
            860px,
            calc(100% - 42px)
        );

    min-height: 100%;

    margin: auto;

    padding:
        58px
        0
        25px;
}


/* =========================
   HERO
========================= */

.hero {
    text-align: center;
}

.hero-icon-wrap {
    position: relative;

    width: 74px;
    height: 74px;

    margin:
        0
        auto
        18px;

    display: grid;
    place-items: center;

    border:
        1px solid
        #cec6f3;

    border-radius: 50%;
}

.hero-icon-wrap::before {
    content: "";

    position: absolute;

    inset: 7px;

    border:
        1px solid
        #dbd5fa;

    border-radius: 50%;
}

.hero-icon {
    position: relative;

    z-index: 2;

    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--purple);
    color: white;

    box-shadow:
        0 7px 18px
        rgba(108,86,215,.22);

    font-size: 21px;
}

.orbit-dot {
    position: absolute;

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #43a183;
}

.orbit-dot.one {
    right: -9px;
    top: 10px;
}

.orbit-dot.two {
    left: -5px;
    bottom: 9px;
}

.hero-kicker {
    color: var(--purple);

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 2px;
}

.hero h1 {
    max-width: 850px;

    margin:
        10px
        auto
        13px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(
            37px,
            4vw,
            52px
        );

    line-height: 1.08;

    letter-spacing: -2px;
}

.hero-subtitle {
    max-width: 500px;

    margin: auto;

    color: var(--muted);

    font-size: 12px;

    line-height: 1.55;
}

.ai-intro {
    width: 100%;

    margin-top: 38px;

    display: grid;

    grid-template-columns:
        34px
        1fr;

    gap: 12px;

    text-align: left;
}

.ai-avatar {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background:
        var(--purple-light);

    color: var(--purple);
}

.ai-name-row {
    margin-top: 2px;

    display: flex;
    align-items: center;

    gap: 7px;

    font-size: 10px;
}

.ai-name {
    font-weight: 700;
}

.ai-mode-tag {
    color: var(--purple);

    font-size: 8px;

    letter-spacing: 1px;
}

.ai-intro-text {
    margin-top: 9px;

    color: var(--muted);

    font-size: 12px;

    line-height: 1.7;
}

.ai-intro-text
+
.ai-intro-text {
    margin-top: 16px;
}


/* =========================
   CHAT
========================= */

.chat-thread {
    display: none;

    padding-top: 2px;
}

.chat-thread.active {
    display: block;
}

.message {
    margin:
        18px
        0;

    display: flex;
}

.message.user {
    justify-content: flex-end;
}

.message-bubble {
    max-width: 80%;

    padding:
        13px
        15px;

    border:
        1px solid
        var(--border);

    border-radius: 14px;

    background: var(--surface);
    color: var(--text);

    font-size: 12px;

    line-height: 1.68;

    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.message.user
.message-bubble {
    border-color: var(--purple);

    background: var(--purple);

    color: white;
}

.message.assistant
.message-bubble {
    box-shadow:
        0 4px 16px
        rgba(50,40,90,.035);
}

.message-bubble.explain {
    border-left:
        3px solid
        var(--purple);
}

.message-bubble.quiz {
    border-left:
        3px solid
        #4c83e7;
}

.message-bubble.study-plan {
    border-left:
        3px solid
        #21a97d;
}

.message-bubble.check-answer {
    border-left:
        3px solid
        #df9163;
}


/* =========================
   BEFORE FIRST MESSAGE
========================= */

.pre-chat-controls {
    margin-top: 55px;

    padding-top: 19px;

    border-top:
        1px solid
        var(--border);
}

body.chat-started
.pre-chat-controls {
    display: none;
}

.focus-heading {
    display: flex;
    align-items: baseline;

    gap: 10px;

    margin-bottom: 8px;

    font-size: 10px;
    font-weight: 700;
}

.focus-heading span {
    color: var(--soft-muted);

    font-size: 9px;
    font-weight: 400;
}

.focus-grid {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 9px;
}


/* =========================
   PRETTY SELECT BUTTONS
========================= */

.focus-picker {
    min-height: 58px;

    padding:
        9px
        12px;

    display: flex;
    align-items: center;

    border:
        1px solid
        var(--border);

    border-radius: 12px;

    background: var(--surface);
    color: var(--text);

    text-align: left;

    transition:
        border .15s ease,
        box-shadow .15s ease,
        transform .15s ease;
}

.focus-picker:hover {
    border-color: #cfc5fa;

    box-shadow:
        0 6px 18px
        rgba(83,65,150,.07);

    transform:
        translateY(-1px);
}

.focus-picker-icon {
    width: 35px;
    height: 35px;

    margin-right: 10px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    background:
        var(--purple-light);

    color: var(--purple);

    font-size: 17px;
}

.focus-picker-text {
    min-width: 0;

    flex: 1;
}

.focus-picker-label {
    display: block;

    color:
        var(--soft-muted);

    font-size: 8px;
}

.focus-picker-value {
    display: block;

    margin-top: 2px;

    font-size: 10px;
    font-weight: 700;
}

.focus-picker-chevron {
    color:
        var(--soft-muted);

    font-size: 13px;
}


/* =========================
   SUGGESTIONS
========================= */

.suggestion-heading {
    margin-top: 19px;

    display: flex;
    justify-content: space-between;

    color:
        var(--soft-muted);

    font-size: 9px;
}

.suggestion-heading
span:last-child {
    color: var(--purple);

    font-size: 8px;

    letter-spacing: 1px;
}

.suggestions {
    margin-top: 8px;

    display: grid;

    grid-template-columns:
        repeat(
            3,
            1fr
        );

    gap: 8px;
}

.suggestion {
    min-height: 57px;

    padding:
        12px
        11px;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 10px;

    border:
        1px solid
        var(--border);

    border-radius: 10px;

    background: var(--surface);
    color: var(--muted);

    text-align: left;

    font-size: 9px;

    line-height: 1.45;
}

.suggestion:hover {
    border-color: #cfc5fa;

    color: var(--text);
}

.suggestion-arrow {
    color: var(--purple);

    font-size: 12px;
}


/* =========================
   COMPOSER
========================= */

.composer-area {
    margin-top: 16px;
}

body.chat-started
.composer-area {
    margin-top: 28px;
}

.composer {
    padding:
        13px
        15px
        11px;

    border:
        1px solid
        #d9d2ec;

    border-radius: 16px;

    background: var(--surface);

    box-shadow: var(--shadow);
}

.composer textarea {
    width: 100%;

    min-height: 42px;
    max-height: 150px;

    padding:
        5px
        2px;

    resize: none;

    border: 0;
    outline: 0;

    background: transparent;
    color: var(--text);

    font-size: 12px;
}

.composer textarea::placeholder {
    color: #938da7;
}

.composer-bottom {
    display: flex;
    align-items: center;
}

.composer-hint {
    display: flex;
    align-items: center;

    gap: 7px;

    color: var(--purple);

    font-family:
        Consolas,
        monospace;

    font-size: 8px;
}

.send-button {
    width: 35px;
    height: 35px;

    margin-left: auto;

    display: grid;
    place-items: center;

    border: 0;
    border-radius: 10px;

    background: #c9bdf0;
    color: white;

    font-size: 17px;

    transition:
        background .15s ease,
        transform .15s ease;
}

.send-button.ready {
    background: var(--purple);
}

.send-button.ready:hover {
    transform: scale(1.04);
}

.send-button:disabled {
    opacity: .55;
}


/* =========================
   LOADING
========================= */

.loading-box {
    display: none;

    margin-top: 10px;

    padding:
        10px
        13px;

    border:
        1px solid
        var(--purple-border);

    border-radius: 10px;

    background:
        var(--purple-light);
}

.loading-box.visible {
    display: block;
}

.loading-top {
    display: flex;
    justify-content: space-between;

    gap: 15px;

    font-size: 9px;
}

.loading-name {
    color: var(--purple);

    font-weight: 700;
}

.loading-detail {
    color: var(--muted);

    text-align: right;
}

.loading-track {
    height: 5px;

    margin-top: 8px;

    overflow: hidden;

    border-radius: 999px;

    background:
        rgba(108,86,215,.13);
}

.loading-fill {
    width: 3%;
    height: 100%;

    border-radius: inherit;

    background: var(--purple);

    transition:
        width .25s ease;
}

.error-box {
    margin-top: 7px;

    color: var(--red);

    font-size: 9px;

    white-space: pre-wrap;
}

.footer-note {
    margin-top: 10px;

    color: var(--soft-muted);

    text-align: center;

    font-size: 8px;
}


/* =========================
   FLASHCARDS
========================= */

.flashcards {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(
            2,
            1fr
        );

    gap: 10px;
}

.flashcard {
    min-height: 130px;

    padding: 16px;

    border:
        1px solid
        var(--purple-border);

    border-radius: 13px;

    background:
        var(--surface-soft);

    color: var(--text);

    text-align: left;
}

.flash-q {
    color: var(--purple);

    font-size: 11px;
    font-weight: 700;

    line-height: 1.5;
}

.flash-a {
    display: none;

    margin-top: 12px;

    color: var(--muted);

    font-size: 11px;

    line-height: 1.55;
}

.flashcard.open
.flash-a {
    display: block;
}

.flash-hint {
    margin-top: 13px;

    color:
        var(--soft-muted);

    font-size: 8px;
}


/* =========================
   PICKER MODAL
========================= */

.picker-backdrop {
    position: fixed;
    inset: 0;

    z-index: 10000;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 20px;

    background:
        rgba(29,24,48,.24);

    backdrop-filter: blur(5px);
}

.picker-backdrop.visible {
    display: flex;
}

.picker-panel {
    width:
        min(
            520px,
            100%
        );

    padding: 18px;

    border:
        1px solid
        var(--border);

    border-radius: 19px;

    background: var(--surface);

    box-shadow:
        0 25px 65px
        rgba(37,29,78,.2);
}

.picker-header {
    display: flex;

    align-items: flex-start;

    margin-bottom: 15px;
}

.picker-header-text {
    flex: 1;
}

.picker-title {
    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 21px;
    font-weight: 700;
}

.picker-subtitle {
    margin-top: 4px;

    color: var(--muted);

    font-size: 10px;

    line-height: 1.45;
}

.picker-close {
    width: 31px;
    height: 31px;

    display: grid;
    place-items: center;

    border: 0;
    border-radius: 50%;

    background:
        var(--surface-soft);

    color: var(--muted);

    font-size: 17px;
}

.picker-options {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 8px;
}

.picker-option {
    min-height: 72px;

    padding: 11px;

    display: flex;
    align-items: center;

    border:
        1px solid
        var(--border);

    border-radius: 12px;

    background: var(--surface);
    color: var(--text);

    text-align: left;

    transition:
        border .15s ease,
        background .15s ease,
        transform .15s ease;
}

.picker-option:hover {
    border-color: #c9bcfa;

    background:
        var(--surface-soft);

    transform:
        translateY(-1px);
}

.picker-option.selected {
    border-color: var(--purple);

    background:
        var(--purple-light);
}

.picker-option-icon {
    width: 37px;
    height: 37px;

    margin-right: 10px;

    display: grid;
    place-items: center;

    flex:
        0
        0
        37px;

    border-radius: 10px;

    background:
        var(--purple-light);

    color: var(--purple);

    font-size: 18px;
}

.picker-option.selected
.picker-option-icon {
    background: var(--purple);

    color: white;
}

.picker-option-main {
    min-width: 0;

    flex: 1;
}

.picker-option-name {
    display: block;

    font-size: 11px;
    font-weight: 700;
}

.picker-option-description {
    display: block;

    margin-top: 3px;

    color: var(--muted);

    font-size: 8px;

    line-height: 1.35;
}

.picker-check {
    margin-left: 6px;

    color: var(--purple);

    font-weight: 700;
}


/* =========================
   MOBILE
========================= */

@media
(max-width: 720px) {

    .sidebar {
        position: fixed;

        z-index: 5000;

        top: 0;
        bottom: 0;
        left: 0;

        width: 270px;

        transform:
            translateX(-100%);

        box-shadow:
            15px 0 35px
            rgba(0,0,0,.12);
    }

    body.sidebar-open
    .sidebar {
        transform:
            translateX(0);
    }

    body.focus-mode
    .sidebar {
        width: 270px;

        transform:
            translateX(-100%);
    }

    .topbar {
        padding:
            0
            13px;

        grid-template-columns:
            auto
            1fr
            auto;
    }

    .breadcrumb {
        justify-content: center;
    }

    .focus-button
    span:last-child {
        display: none;
    }

    .content {
        width:
            calc(
                100% - 24px
            );

        padding-top: 35px;
    }

    .hero h1 {
        font-size: 34px;

        letter-spacing: -1px;
    }

    .focus-grid,
    .suggestions,
    .flashcards,
    .picker-options {
        grid-template-columns: 1fr;
    }

    .message-bubble {
        max-width: 92%;
    }

}