.menyoo-ai {
    --mai-bg: rgba(17, 16, 39, 0.97);
    --mai-bg-soft: rgba(27, 24, 58, 0.95);
    --mai-line: rgba(201, 186, 255, 0.1);
    --mai-line-strong: rgba(226, 216, 255, 0.16);
    --mai-text: #f6f3ff;
    --mai-muted: #a79fc7;
    --mai-accent: #b58cff;
    --mai-accent-strong: #ff5ea8;
    --mai-user: linear-gradient(135deg, #6f52ff 0%, #8f5cff 48%, #ff4f91 100%);
    --mai-assistant: rgba(255, 255, 255, 0.05);
    --mai-shadow: 0 28px 80px rgba(8, 6, 22, 0.5);
    font-family: "Gilroy", sans-serif;
    color: var(--mai-text);
}

.menyoo-ai-page {
    position: relative;
    padding: 32px 0 18px;
    isolation: isolate;
}

.menyoo-ai-page__ambient {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.menyoo-ai-page__ambient-orb {
    position: absolute;
    display: block;
    border-radius: 50%;
    filter: blur(18px);
    opacity: 0.72;
}

.menyoo-ai-page__ambient-orb--one {
    top: 24px;
    left: min(8vw, 72px);
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(92, 225, 255, 0.28) 0%, rgba(92, 225, 255, 0) 72%);
}

.menyoo-ai-page__ambient-orb--two {
    right: 4vw;
    bottom: 42px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(99, 110, 255, 0.18) 0%, rgba(99, 110, 255, 0) 72%);
}

.menyoo-ai-page__ambient-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.48), transparent 84%);
    opacity: 0.34;
}

.menyoo-ai-page__shell {
    position: relative;
    z-index: 1;
    width: min(1320px, 100%);
    margin: 0 auto;
    padding: 0 12px;
}

.menyoo-ai:not(.menyoo-ai--page) {
    position: fixed;
    z-index: 9995;
    bottom: 24px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

.menyoo-ai--left {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

.menyoo-ai__launcher {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 164px;
    border: 0;
    border-radius: 999px;
    padding: 14px 22px;
    color: var(--mai-text);
    background: linear-gradient(135deg, #7350ff 0%, #8f5cff 48%, #ff4f91 100%);
    box-shadow: 0 18px 42px rgba(98, 69, 214, 0.32);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menyoo-ai__launcher:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 46px rgba(98, 69, 214, 0.4);
}

.menyoo-ai__launcher-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    font-weight: 700;
}

.menyoo-ai__launcher-icon i {
    font-size: 22px;
    line-height: 1;
}

.menyoo-ai__launcher-text {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.menyoo-ai__panel {
    display: none;
    width: min(880px, calc(100vw - 24px));
    height: min(680px, calc(100vh - 40px));
    margin-top: 12px;
    border: 1px solid var(--mai-line);
    border-radius: 24px;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(100, 217, 255, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
        var(--mai-bg);
    color: var(--mai-text);
    box-shadow: var(--mai-shadow);
    backdrop-filter: blur(18px);
}

.menyoo-ai.is-open .menyoo-ai__panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

.menyoo-ai--page .menyoo-ai__panel {
    display: block;
}

.menyoo-ai--page {
    position: relative;
    border-radius: 34px;
}

.menyoo-ai--page .menyoo-ai__panel {
    width: 100%;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: auto;
    min-height: min(calc(100vh - 72px), 980px);
    margin-top: 0;
    border-radius: 18px;
    border-color: rgba(255, 255, 255, 0.07);
    background:
        linear-gradient(180deg, rgba(24, 23, 56, 0.96) 0%, rgba(14, 13, 36, 0.96) 100%);
    box-shadow:
        0 20px 50px rgba(6, 7, 24, 0.25);
}

.menyoo-ai__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--mai-line);
    background: rgba(255, 255, 255, 0.02);
}

.menyoo-ai__header-copy {
    display: grid;
    gap: 4px;
}

.menyoo-ai__eyebrow {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, rgba(115, 80, 255, 0.32) 0%, rgba(255, 79, 145, 0.28) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.menyoo-ai__header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menyoo-ai__title {
    font-size: 20px;
    font-weight: 700;
}

.menyoo-ai__subtitle {
    color: var(--mai-muted);
    font-size: 13px;
    line-height: 1.5;
}

.menyoo-ai__close,
.menyoo-ai__newchat,
.menyoo-ai__send,
.menyoo-ai__suggestion {
    border: 0;
    cursor: pointer;
}

.menyoo-ai__close:focus-visible,
.menyoo-ai__newchat:focus-visible,
.menyoo-ai__send:focus-visible,
.menyoo-ai__suggestion:focus-visible,
.menyoo-ai__dialog:focus-visible,
.menyoo-ai__launcher:focus-visible,
.menyoo-ai__input:focus-visible {
    outline: 2px solid rgba(100, 217, 255, 0.7);
    outline-offset: 2px;
}

.menyoo-ai__close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--mai-text);
    background: rgba(255, 255, 255, 0.06);
    font-size: 24px;
    line-height: 1;
}

.menyoo-ai__close:disabled,
.menyoo-ai__newchat:disabled,
.menyoo-ai__send:disabled,
.menyoo-ai__suggestion:disabled,
.menyoo-ai__launcher:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.menyoo-ai__body {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    min-height: 0;
    height: auto;
}

.menyoo-ai:not(.menyoo-ai--page) .menyoo-ai__body {
    height: 100%;
    min-height: 0;
}

.menyoo-ai:not(.menyoo-ai--page) .menyoo-ai__body {
    height: 100%;
    min-height: 0;
}

.menyoo-ai--page .menyoo-ai__body {
    grid-template-columns: 280px minmax(0, 1fr);
    position: relative;
    height: 100%;
    min-height: 0;
}

.menyoo-ai__sidebar {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 14px;
    padding: 22px;
    min-height: 0;
    border-right: 1px solid var(--mai-line);
    background: rgba(255, 255, 255, 0.02);
}

.menyoo-ai__sidebar-copy {
    display: grid;
    gap: 8px;
}

.menyoo-ai__sidebar-label {
    color: rgba(255, 255, 255, 0.54);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.menyoo-ai__sidebar-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.menyoo-ai__newchat {
    min-height: 54px;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #7350ff 0%, #8f5cff 45%, #ff4f91 100%);
    font-weight: 700;
    padding: 0 16px;
    box-shadow: 0 16px 30px rgba(98, 69, 214, 0.28);
}

.menyoo-ai__newchat--wide {
    width: 100%;
    min-height: 54px;
    margin-top: 4px;
    justify-self: stretch;
}

.menyoo-ai__limits,
.menyoo-ai__status {
    color: var(--mai-muted);
    font-size: 12px;
    line-height: 1.5;
}

.menyoo-ai__limits {
    display: grid;
    gap: 6px;
}

.menyoo-ai__limits-link {
    color: var(--mai-accent);
    font-weight: 600;
    text-decoration: none;
}

.menyoo-ai__limits-link:hover,
.menyoo-ai__limits-link:focus-visible {
    text-decoration: underline;
}

.menyoo-ai__sidebar-card {
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
}

.menyoo-ai__sidebar-card-kicker {
    color: rgba(255, 255, 255, 0.56);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.menyoo-ai__sidebar-card-text {
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
    line-height: 1.65;
}

.menyoo-ai__dialogs {
    overflow-y: auto;
    overflow-x: hidden;
    display: grid;
    gap: 8px;
    align-content: start;
    min-height: 0;
}

.menyoo-ai__dialog-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: start;
}

.menyoo-ai__dialog {
    width: 100%;
    padding: 12px 13px;
    border-radius: 16px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.04);
    color: var(--mai-text);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.menyoo-ai__dialog:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.08);
}

.menyoo-ai__dialog.is-active {
    border-color: rgba(100, 217, 255, 0.34);
    background: rgba(100, 217, 255, 0.1);
}

.menyoo-ai__dialog-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
}

.menyoo-ai__dialog-meta {
    display: block;
    margin-top: 4px;
    color: var(--mai-muted);
    font-size: 11px;
}

.menyoo-ai__dialog-remove {
    width: 38px;
    min-height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--mai-muted);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.menyoo-ai__dialog-remove:hover,
.menyoo-ai__dialog-remove:focus-visible {
    border-color: rgba(255, 120, 120, 0.35);
    color: #ffd1d1;
    background: rgba(255, 120, 120, 0.08);
}

.menyoo-ai__content {
    display: grid;
    grid-template-rows: auto 1fr auto auto;
    min-height: 0;
    height: auto;
    overflow: visible;
    background: transparent;
}

.menyoo-ai:not(.menyoo-ai--page) .menyoo-ai__content {
    grid-template-rows: minmax(0, 1fr) auto auto;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.menyoo-ai:not(.menyoo-ai--page) .menyoo-ai__content {
    grid-template-rows: minmax(0, 1fr) auto auto;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.menyoo-ai__hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 24px 0;
}

.menyoo-ai__hero[hidden] {
    display: none;
}

.menyoo-ai__hero-badge {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(100, 217, 255, 0.12);
    color: #9ce8ff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.menyoo-ai__hero-main,
.menyoo-ai__hero-side {
    min-width: 0;
}

.menyoo-ai__hero-main {
    position: relative;
    display: grid;
    gap: 20px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.menyoo-ai__hero-main::after {
    display: none;
}

.menyoo-ai__hero-title {
    margin: 0;
    max-width: 11.5ch;
    font-size: clamp(28px, 2.5vw, 40px);
    line-height: 1.02;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.menyoo-ai__hero-text {
    max-width: 560px;
    margin: 0;
    color: var(--mai-muted);
    font-size: 14px;
    line-height: 1.68;
}

.menyoo-ai__hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.menyoo-ai__hero-point {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #d7d2f2;
    font-size: 12px;
    font-weight: 700;
}

.menyoo-ai__suggestions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.menyoo-ai__suggestion {
    display: grid;
    gap: 8px;
    min-height: 120px;
    align-content: start;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--mai-text);
    font-size: 13px;
    text-align: left;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.menyoo-ai__suggestion:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.14);
    background: linear-gradient(135deg, rgba(119, 81, 255, 0.22) 0%, rgba(255, 82, 145, 0.18) 100%);
}

.menyoo-ai__suggestion-title {
    display: block;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.menyoo-ai__suggestion-text {
    display: block;
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
    line-height: 1.6;
}

.menyoo-ai__welcome-state--widget {
    align-content: start;
    justify-items: stretch;
    min-height: 0;
    padding: 22px 18px;
    text-align: left;
}

.menyoo-ai__suggestions--widget {
    grid-template-columns: 1fr;
    margin-top: 18px;
}

.menyoo-ai__suggestion--widget {
    min-height: 0;
    padding: 14px;
}

.menyoo-ai__messages-shell {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 0;
    height: auto;
    overflow: visible;
    padding: 18px 24px 0;
}

.menyoo-ai__messages-head {
    display: block;
    margin-bottom: 12px;
    padding: 0 2px;
}

.menyoo-ai__messages-kicker {
    color: rgba(255, 255, 255, 0.48);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.menyoo-ai__messages-title {
    display: block;
    margin-top: 4px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.menyoo-ai__status-row {
    padding: 10px 24px 0;
}

.menyoo-ai__composer-shell {
    padding: 18px 24px 24px;
}

.menyoo-ai__composer-meta {
    margin-top: 10px;
    padding-left: 6px;
    color: rgba(255, 255, 255, 0.46);
    font-size: 12px;
    line-height: 1.5;
}

.menyoo-ai__status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 0 14px;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.05);
    font-size: 12px;
    font-weight: 600;
}

.menyoo-ai__messages {
    overflow-y: auto;
    overflow-x: hidden;
    padding: 18px 18px 12px;
    display: grid;
    gap: 12px;
    align-content: start;
    min-height: 260px;
    height: auto;
    max-height: none;
    align-self: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(10, 12, 28, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.menyoo-ai:not(.menyoo-ai--page) .menyoo-ai__messages {
    min-height: 0;
    height: 100%;
}

.menyoo-ai:not(.menyoo-ai--page) .menyoo-ai__messages {
    min-height: 0;
    height: 100%;
}

.menyoo-ai__welcome-state {
    display: grid;
    align-content: center;
    justify-items: center;
    min-height: 210px;
    padding: 32px 28px;
    text-align: center;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0.015) 100%);
}

.menyoo-ai__welcome-state-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #d7d2f2;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.menyoo-ai__welcome-state-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.menyoo-ai__welcome-state-text {
    max-width: 460px;
    margin: 0;
    color: rgba(255, 255, 255, 0.64);
    font-size: 14px;
    line-height: 1.65;
}

.menyoo-ai--page .menyoo-ai__messages {
    padding: 20px;
}

.menyoo-ai--page .menyoo-ai__messages-shell {
    min-height: 320px;
}

.menyoo-ai.is-empty .menyoo-ai__messages {
    padding-top: 20px;
    min-height: 220px;
    align-content: stretch;
}

.menyoo-ai__bubble {
    max-width: min(82%, 760px);
    padding: 14px 16px;
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
    border: 1px solid transparent;
}

.menyoo-ai__bubble--user {
    margin-left: auto;
    border-bottom-right-radius: 6px;
    background: var(--mai-user);
}

.menyoo-ai__bubble--assistant {
    border-bottom-left-radius: 6px;
    border-color: rgba(255, 255, 255, 0.04);
    background: var(--mai-assistant);
}

.menyoo-ai__bubble--system {
    max-width: 100%;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: var(--mai-muted);
}

.menyoo-ai__composer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 16px 18px 18px;
    border-top: 1px solid var(--mai-line);
}

.menyoo-ai:not(.menyoo-ai--page) .menyoo-ai__composer {
    align-items: end;
}

.menyoo-ai:not(.menyoo-ai--page) .menyoo-ai__composer {
    align-items: end;
}

.menyoo-ai--page .menyoo-ai__composer {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.menyoo-ai__input {
    min-height: 60px;
    max-height: 220px;
    resize: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 18px 18px;
    color: var(--mai-text);
    background: rgba(255, 255, 255, 0.05);
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.menyoo-ai__input:focus {
    border-color: rgba(100, 217, 255, 0.34);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(100, 217, 255, 0.08);
}

.menyoo-ai__input::placeholder {
    color: var(--mai-muted);
}

.menyoo-ai__input:disabled {
    cursor: not-allowed;
    opacity: 0.75;
}

.menyoo-ai__send {
    min-width: 140px;
    border-radius: 14px;
    padding: 0 22px;
    color: #ffffff;
    background: linear-gradient(135deg, #7350ff 0%, #8f5cff 45%, #ff4f91 100%);
    font-weight: 700;
    box-shadow: 0 16px 30px rgba(98, 69, 214, 0.28);
}

.menyoo-ai__empty {
    color: var(--mai-muted);
    font-size: 13px;
}

.menyoo-ai__restriction {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.menyoo-ai__restriction[hidden] {
    display: none;
}

.menyoo-ai__restriction-card {
    width: min(460px, 100%);
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    background: rgba(12, 14, 32, 0.9);
    box-shadow: 0 20px 48px rgba(6, 7, 24, 0.34);
    text-align: center;
    backdrop-filter: blur(16px);
}

.menyoo-ai__restriction-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #d7d2f2;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.menyoo-ai__restriction-title {
    margin: 0 0 10px;
    font-size: clamp(24px, 2.6vw, 32px);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.menyoo-ai__restriction-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
    line-height: 1.7;
}

.menyoo-ai__restriction-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    margin-top: 20px;
    padding: 0 22px;
    border-radius: 14px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    background: linear-gradient(135deg, #7350ff 0%, #8f5cff 45%, #ff4f91 100%);
    box-shadow: 0 16px 30px rgba(98, 69, 214, 0.28);
}

.menyoo-ai__restriction-link:hover,
.menyoo-ai__restriction-link:focus-visible {
    color: #ffffff;
    text-decoration: none;
}

.menyoo-ai--restricted .menyoo-ai__sidebar,
.menyoo-ai--restricted .menyoo-ai__content {
    filter: blur(14px);
    pointer-events: none;
    user-select: none;
}

@media (max-width: 1100px) {
    .menyoo-ai--page .menyoo-ai__panel {
        min-height: min(calc(100vh - 56px), 900px);
    }

    .menyoo-ai--page .menyoo-ai__body {
        grid-template-columns: 240px minmax(0, 1fr);
    }

    .menyoo-ai__hero {
        grid-template-columns: 1fr;
    }

    .menyoo-ai__hero-title {
        max-width: 100%;
    }

    .menyoo-ai__suggestions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .menyoo-ai:not(.menyoo-ai--page) {
        right: 12px;
        left: 12px;
        bottom: 12px;
        transform: none;
    }

    .menyoo-ai--left {
        left: 12px;
        transform: none;
    }

    .menyoo-ai__panel {
        width: auto;
        height: min(78vh, 680px);
    }

    .menyoo-ai__body,
    .menyoo-ai--page .menyoo-ai__body {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .menyoo-ai__sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--mai-line);
    }

    .menyoo-ai__dialogs {
        max-height: 130px;
    }

    .menyoo-ai--page .menyoo-ai__panel {
        min-height: min(calc(100vh - 36px), 820px);
        border-radius: 16px;
    }

    .menyoo-ai__hero,
    .menyoo-ai--page .menyoo-ai__messages,
    .menyoo-ai--page .menyoo-ai__composer,
    .menyoo-ai__messages-shell,
    .menyoo-ai__status-row,
    .menyoo-ai__composer-shell {
        padding-left: 18px;
        padding-right: 18px;
    }

    .menyoo-ai__hero-title {
        max-width: 100%;
        font-size: 24px;
        line-height: 1.04;
    }

    .menyoo-ai__hero-main {
        padding: 20px;
    }

    .menyoo-ai__suggestions {
        grid-template-columns: 1fr;
    }

    .menyoo-ai__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .menyoo-ai__header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .menyoo-ai__status-pill {
        min-height: 38px;
    }

    .menyoo-ai__composer {
        grid-template-columns: 1fr;
    }

    .menyoo-ai__send {
        min-height: 52px;
    }

    .menyoo-ai__bubble {
        max-width: 100%;
    }

    .menyoo-ai__restriction {
        padding: 18px;
    }

    .menyoo-ai__restriction-card {
        padding: 22px 18px;
        border-radius: 18px;
    }
}
