:root {
    --blue: #0f79bd;
    --blue-dark: #075c91;
    --blue-soft: #eaf6fd;
    --green: #84c341;
    --green-dark: #5d9f22;
    --green-soft: #f1f9e8;

    --navy: #0a2740;
    --navy-2: #102f49;

    --bg: #f4f8fb;
    --surface: #ffffff;
    --surface-soft: #f8fbfd;

    --text: #183347;
    --muted: #6d8292;
    --border: #dfe8ee;

    --danger: #c44747;
    --danger-soft: #fff0f0;

    --shadow:
        0 12px 34px rgba(
            31,
            71,
            99,
            0.08
        );

    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    min-height: 100%;
    margin: 0;
    background:
        linear-gradient(
            180deg,
            #f8fbfd 0%,
            #f1f7fa 100%
        );
    color: var(--text);
    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;
}

button,
input,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns:
        270px
        minmax(0, 1fr);
}

.sidebar {
    min-height: 100vh;
    position: sticky;
    top: 0;
    align-self: start;

    display: flex;
    flex-direction: column;

    padding: 24px 18px;

    background:
        linear-gradient(
            180deg,
            #0a2c46 0%,
            #082236 100%
        );

    color: white;
}

.brand {
    display: block;

    margin-bottom: 28px;

    padding: 12px 10px;

    border-radius: 16px;

    text-decoration: none;

    background:
        rgba(
            255,
            255,
            255,
            0.06
        );
}

.brand-logo {
    width: 100%;
    max-height: 92px;

    object-fit: contain;
    object-position: left center;

    display: block;
}

.nav-menu {
    display: grid;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 13px 14px;

    border-radius: 13px;

    color:
        rgba(
            255,
            255,
            255,
            0.72
        );

    text-decoration: none;

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

    transition:
        0.2s ease;
}

.nav-item:hover {
    color: white;

    background:
        rgba(
            255,
            255,
            255,
            0.07
        );
}

.nav-item.active {
    color: white;

    background:
        linear-gradient(
            135deg,
            rgba(
                15,
                121,
                189,
                0.95
            ),
            rgba(
                93,
                159,
                34,
                0.92
            )
        );

    box-shadow:
        0 10px 25px
        rgba(
            0,
            0,
            0,
            0.18
        );
}

.nav-icon {
    width: 30px;
    height: 30px;

    display: inline-grid;
    place-items: center;

    border-radius: 9px;

    background:
        rgba(
            255,
            255,
            255,
            0.11
        );
}

.sidebar-footer {
    margin-top: auto;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 15px;

    border-radius: 14px;

    color:
        rgba(
            255,
            255,
            255,
            0.78
        );

    background:
        rgba(
            255,
            255,
            255,
            0.05
        );
}

.sidebar-footer strong,
.sidebar-footer span {
    display: block;
}

.sidebar-footer strong {
    color: white;
    font-size: 13px;
}

.sidebar-footer span {
    margin-top: 3px;

    font-size: 11px;
}

.status-dot {
    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 0 4px
        rgba(
            132,
            195,
            65,
            0.14
        );
}

.main-area {
    min-width: 0;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;

    height: 88px;

    display: flex;
    align-items: center;
    gap: 16px;

    padding:
        16px
        32px;

    border-bottom:
        1px solid
        rgba(
            223,
            232,
            238,
            0.9
        );

    background:
        rgba(
            255,
            255,
            255,
            0.92
        );

    backdrop-filter:
        blur(14px);
}

.eyebrow,
.section-kicker,
.hero-kicker {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;

    color: var(--green-dark);
}

.page-title {
    margin: 3px 0 0;

    font-size: 23px;
    line-height: 1.2;
}

.topbar-action {
    margin-left: auto;

    padding: 10px 15px;

    border-radius: 12px;

    background:
        var(--blue-soft);

    color:
        var(--blue-dark);

    text-decoration: none;

    font-size: 13px;
    font-weight: 800;

    transition:
        0.2s ease;
}

.topbar-action:hover {
    transform:
        translateY(-1px);

    background:
        #dff2fd;
}

.menu-toggle {
    display: none;

    border: 0;
    background: transparent;

    font-size: 22px;
    cursor: pointer;
}

.page-content {
    max-width: 1500px;

    margin: 0 auto;

    padding: 30px;
}

.hero-card {
    position: relative;

    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;

    overflow: hidden;

    margin-bottom: 22px;

    padding:
        34px
        36px;

    border-radius: 24px;

    color: white;

    background:
        linear-gradient(
            125deg,
            #0c5f95 0%,
            #1183c9 52%,
            #74b63a 125%
        );

    box-shadow:
        0 18px 50px
        rgba(
            15,
            121,
            189,
            0.2
        );
}

.hero-card::after {
    content: "";

    position: absolute;

    width: 330px;
    height: 330px;

    top: -170px;
    right: -90px;

    border-radius: 50%;

    background:
        rgba(
            255,
            255,
            255,
            0.09
        );
}

.hero-copy {
    position: relative;
    z-index: 1;

    max-width: 720px;
}

.hero-kicker {
    color:
        rgba(
            255,
            255,
            255,
            0.72
        );
}

.hero-copy h2 {
    max-width: 700px;

    margin:
        10px
        0
        10px;

    font-size:
        clamp(
            28px,
            4vw,
            42px
        );

    line-height: 1.06;
}

.hero-copy p {
    max-width: 650px;

    margin: 0;

    color:
        rgba(
            255,
            255,
            255,
            0.82
        );

    line-height: 1.7;
}

.stats-grid {
    display: grid;

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

    gap: 18px;

    margin-bottom: 22px;
}

.stat-card,
.panel {
    border:
        1px solid
        rgba(
            223,
            232,
            238,
            0.95
        );

    border-radius: var(--radius);

    background: var(--surface);

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

.stat-card {
    padding: 22px;
}

.stat-label {
    color: var(--muted);

    font-size: 12px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stat-value {
    margin-top: 9px;

    font-size: 34px;
    font-weight: 900;

    color: var(--navy);
}

.stat-note {
    margin-top: 6px;

    color: var(--muted);

    font-size: 12px;
}

.workspace-grid,
.detail-grid {
    display: grid;

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

    gap: 20px;

    margin-bottom: 22px;
}

.panel {
    padding: 24px;
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    margin-bottom: 20px;
}

.panel-heading h3 {
    margin: 5px 0 0;

    font-size: 20px;
}

.soft-badge {
    display: inline-flex;
    align-items: center;

    padding:
        7px
        10px;

    border-radius: 999px;

    background:
        var(--green-soft);

    color:
        var(--green-dark);

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

.upload-dropzone {
    display: flex;
    align-items: center;
    gap: 16px;

    min-height: 142px;

    padding: 22px;

    border:
        2px dashed
        #b9d8ea;

    border-radius: 16px;

    cursor: pointer;

    background:
        linear-gradient(
            180deg,
            #fbfdff 0%,
            #f2f9fd 100%
        );

    transition:
        0.2s ease;
}

.upload-dropzone:hover {
    border-color:
        var(--blue);

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

.upload-dropzone input {
    display: none;
}

.upload-dropzone strong,
.upload-dropzone span {
    display: block;
}

.upload-dropzone strong {
    color:
        var(--navy);

    font-size: 15px;
}

.upload-dropzone span {
    margin-top: 5px;

    color:
        var(--muted);

    font-size: 12px;
}

.upload-icon {
    width: 46px;
    height: 46px;

    flex: 0 0 auto;

    display: grid;
    place-items: center;

    border-radius: 14px;

    color: white;

    background:
        linear-gradient(
            135deg,
            var(--blue),
            var(--green)
        );

    font-size: 22px;
    font-weight: 900;
}

.selected-files {
    display: grid;
    gap: 8px;

    margin-top: 12px;
}

.selected-file {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 10px 12px;

    border-radius: 10px;

    background:
        var(--surface-soft);

    color:
        var(--muted);

    font-size: 12px;
}

.form-stack {
    display: grid;
    gap: 15px;
}

.field label {
    display: block;

    margin-bottom: 7px;

    color:
        var(--text);

    font-size: 12px;
    font-weight: 800;
}

.field input,
.field textarea,
.search-box input,
.chat-input-area textarea {
    width: 100%;

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

    outline: none;

    border-radius: 12px;

    background: white;

    color:
        var(--text);

    transition:
        0.2s ease;
}

.field input,
.search-box input {
    min-height: 44px;

    padding:
        0
        13px;
}

.field textarea {
    padding: 12px 13px;

    resize: vertical;
}

.field input:focus,
.field textarea:focus,
.search-box input:focus,
.chat-input-area textarea:focus {
    border-color:
        var(--blue);

    box-shadow:
        0 0 0 4px
        rgba(
            15,
            121,
            189,
            0.08
        );
}

.field small {
    display: block;

    margin-top: 6px;

    color:
        var(--muted);

    font-size: 11px;
}

.primary-button,
.secondary-button,
.danger-button,
.send-button {
    border: 0;

    cursor: pointer;

    text-decoration: none;

    font-weight: 800;

    transition:
        0.2s ease;
}

.primary-button,
.secondary-button,
.danger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;

    padding:
        0
        16px;

    border-radius: 12px;
}

.primary-button {
    color: white;

    background:
        linear-gradient(
            135deg,
            var(--blue),
            #168cd0
        );

    box-shadow:
        0 10px 24px
        rgba(
            15,
            121,
            189,
            0.18
        );
}

.primary-button:hover,
.secondary-button:hover,
.send-button:hover {
    transform:
        translateY(-1px);
}

.secondary-button {
    color:
        #274512;

    background:
        linear-gradient(
            135deg,
            #a8d870,
            var(--green)
        );
}

.danger-button {
    color:
        var(--danger);

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

.full {
    width: 100%;
}

.products-panel {
    overflow: hidden;
}

.products-heading {
    align-items: end;
}

.search-box {
    width: 300px;

    display: flex;
    align-items: center;
    gap: 7px;

    padding-left: 11px;

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

    border-radius: 12px;

    background: white;
}

.search-box input {
    border: 0;
    box-shadow: none !important;

    padding-left: 0;
}

.table-shell {
    overflow-x: auto;
}

.data-table {
    width: 100%;

    border-collapse: collapse;
}

.data-table th {
    padding:
        12px
        14px;

    text-align: left;

    color:
        var(--muted);

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

    text-transform: uppercase;
    letter-spacing: 0.06em;

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

.data-table td {
    padding:
        16px
        14px;

    vertical-align: middle;

    border-bottom:
        1px solid
        #edf2f5;
}

.data-table tbody tr {
    transition:
        0.15s ease;
}

.data-table tbody tr:hover {
    background:
        #fbfdfe;
}

.product-cell {
    min-width: 190px;

    display: flex;
    align-items: center;
    gap: 11px;
}

.product-cell strong,
.product-cell span {
    display: block;
}

.product-cell strong {
    color:
        var(--navy);
}

.product-cell span {
    margin-top: 4px;

    color:
        var(--muted);

    font-size: 11px;
}

.product-avatar {
    width: 40px;
    height: 40px;

    flex: 0 0 auto;

    display: grid;
    place-items: center;

    border-radius: 12px;

    color: white;

    font-weight: 900;

    background:
        linear-gradient(
            135deg,
            var(--blue),
            var(--green)
        );
}

.product-avatar.large {
    width: 66px;
    height: 66px;

    border-radius: 18px;

    font-size: 24px;
}

.tag-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;

    min-width: 140px;
}

.tag,
.source-pill,
.rule-count {
    display: inline-flex;
    align-items: center;

    border-radius: 999px;

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

.tag {
    padding:
        5px
        8px;

    color:
        var(--blue-dark);

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

.tag.green {
    color:
        var(--green-dark);

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

.tag.muted {
    color:
        var(--muted);

    background:
        #f0f3f5;
}

.rule-count {
    min-width: 32px;

    justify-content: center;

    padding:
        6px
        9px;

    color:
        var(--navy);

    background:
        #eef3f6;
}

.source-pill {
    padding:
        6px
        9px;

    color:
        var(--blue-dark);

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

.source-pill.manual {
    color:
        var(--green-dark);

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

.row-actions {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 7px;
}

.row-actions form {
    margin: 0;
}

.icon-button {
    border: 0;

    padding:
        8px
        10px;

    border-radius: 9px;

    cursor: pointer;

    text-decoration: none;

    color:
        var(--blue-dark);

    background:
        var(--blue-soft);

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

.icon-button.danger {
    color:
        var(--danger);

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

.empty-state {
    display: grid;
    place-items: center;

    min-height: 260px;

    padding: 30px;

    text-align: center;
}

.empty-state.compact {
    min-height: 180px;
}

.empty-icon {
    width: 54px;
    height: 54px;

    display: grid;
    place-items: center;

    border-radius: 16px;

    color:
        var(--blue);

    background:
        var(--blue-soft);

    font-size: 24px;
}

.empty-state h4 {
    margin:
        14px
        0
        6px;
}

.empty-state p {
    max-width: 380px;

    margin: 0;

    color:
        var(--muted);

    line-height: 1.6;
}

.toast-stack {
    position: fixed;

    top: 102px;
    right: 28px;

    z-index: 100;

    width:
        min(
            440px,
            calc(
                100vw
                - 40px
            )
        );

    display: grid;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;

    padding:
        14px
        15px;

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

    border-radius: 13px;

    background: white;

    box-shadow: var(--shadow);

    font-size: 13px;
    line-height: 1.5;
}

.toast.success {
    border-left:
        4px solid
        var(--green);
}

.toast.danger {
    border-left:
        4px solid
        var(--danger);
}

.toast button {
    border: 0;
    background: transparent;

    color:
        var(--muted);

    font-size: 18px;

    cursor: pointer;
}

.page-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 18px;
}

.back-link {
    color:
        var(--blue-dark);

    text-decoration: none;

    font-weight: 800;
}

.product-hero {
    display: flex;
    align-items: center;
    gap: 18px;

    margin-bottom: 22px;

    padding: 24px;

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

    border-radius: var(--radius);

    background:
        linear-gradient(
            135deg,
            white,
            #f4fbff
        );

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

.product-hero h2 {
    margin:
        5px
        0;
}

.product-hero p {
    margin: 0;

    color:
        var(--muted);
}

.metadata-card {
    display: grid;
    grid-template-columns:
        repeat(
            2,
            minmax(
                0,
                1fr
            )
        );

    gap: 10px;
}

.metadata-card > div {
    padding: 12px;

    border-radius: 11px;

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

.metadata-card span,
.metadata-card strong {
    display: block;
}

.metadata-card span {
    color:
        var(--muted);

    font-size: 10px;

    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.metadata-card strong {
    margin-top: 5px;

    font-size: 12px;

    word-break: break-word;
}

.rules-list {
    display: grid;
    gap: 14px;
}

.rule-card {
    padding: 18px;

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

    border-radius: 15px;

    background:
        #fbfdfe;
}

.rule-card-header {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 13px;
}

.rule-number {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    color:
        var(--blue-dark);

    background:
        var(--blue-soft);

    font-weight: 900;
}

.rule-heading-copy span,
.rule-heading-copy strong {
    display: block;
}

.rule-heading-copy span {
    color:
        var(--muted);

    font-size: 10px;

    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.rule-heading-copy strong {
    margin-top: 3px;
}

.rule-actions {
    display: flex;
    justify-content: end;
}

.text-danger-button {
    margin-top: 10px;

    border: 0;
    background: transparent;

    color:
        var(--danger);

    cursor: pointer;

    font-size: 12px;
    font-weight: 800;
}

.chat-layout {
    min-height:
        calc(
            100vh
            - 148px
        );

    display: grid;

    grid-template-columns:
        minmax(
            0,
            1fr
        )
        310px;

    gap: 20px;
}

.chat-card {
    min-height: 720px;

    display: grid;

    grid-template-rows:
        auto
        minmax(
            0,
            1fr
        )
        auto
        auto;

    overflow: hidden;

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

    border-radius: 22px;

    background: white;

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

.chat-header {
    display: flex;
    align-items: center;
    gap: 13px;

    padding:
        18px
        20px;

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

.assistant-avatar,
.message-avatar {
    display: grid;
    place-items: center;

    flex: 0 0 auto;

    color: white;

    font-weight: 900;

    background:
        linear-gradient(
            135deg,
            var(--blue),
            var(--green)
        );
}

.assistant-avatar {
    width: 46px;
    height: 46px;

    border-radius: 14px;
}

.message-avatar {
    width: 30px;
    height: 30px;

    border-radius: 9px;

    font-size: 12px;
}

.chat-header h2 {
    margin: 0;

    font-size: 16px;
}

.chat-header p {
    margin:
        4px
        0
        0;

    color:
        var(--muted);

    font-size: 12px;
}

.online-status {
    margin-left: auto;

    display: flex;
    align-items: center;
    gap: 7px;

    color:
        var(--green-dark);

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

.online-status span {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background:
        var(--green);

    box-shadow:
        0 0 0 4px
        rgba(
            132,
            195,
            65,
            0.12
        );
}

.chat-messages {
    overflow-y: auto;

    padding: 22px;

    background:
        linear-gradient(
            180deg,
            #fbfdfe 0%,
            #f7fbfd 100%
        );
}

.message-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;

    margin-bottom: 16px;
}

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

.message-row.user .message-avatar {
    display: none;
}

.message-bubble {
    max-width:
        min(
            780px,
            78%
        );

    padding:
        12px
        14px;

    border-radius:
        6px
        15px
        15px
        15px;

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

    background: white;

    box-shadow:
        0 4px 14px
        rgba(
            31,
            71,
            99,
            0.04
        );
}

.message-row.user .message-bubble {
    color: white;

    border: 0;

    border-radius:
        15px
        6px
        15px
        15px;

    background:
        linear-gradient(
            135deg,
            var(--blue),
            #168ccf
        );
}

.message-content {
    line-height: 1.7;

    font-size: 14px;

    white-space: pre-wrap;
}

.typing {
    display: inline-flex;
    gap: 4px;
}

.typing span {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background:
        var(--muted);

    animation:
        blink
        1.2s
        infinite;
}

.typing span:nth-child(2) {
    animation-delay:
        0.15s;
}

.typing span:nth-child(3) {
    animation-delay:
        0.3s;
}

@keyframes blink {
    0%,
    80%,
    100% {
        opacity: 0.25;
        transform:
            translateY(0);
    }

    40% {
        opacity: 1;
        transform:
            translateY(-3px);
    }
}

.chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    padding:
        10px
        18px;

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

.suggestion-chip {
    border:
        1px solid
        #cfe3ef;

    border-radius: 999px;

    padding:
        8px
        11px;

    color:
        var(--blue-dark);

    background:
        var(--blue-soft);

    cursor: pointer;

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

.chat-input-area {
    display: flex;
    align-items: end;
    gap: 10px;

    padding: 14px 16px;

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

    background: white;
}

.chat-input-area textarea {
    min-height: 48px;
    max-height: 150px;

    padding:
        13px
        14px;

    resize: none;

    line-height: 1.5;
}

.send-button {
    min-width: 92px;
    height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    border-radius: 13px;

    color: white;

    background:
        linear-gradient(
            135deg,
            var(--blue),
            var(--green)
        );
}

.send-button:disabled {
    opacity: 0.6;

    cursor: wait;
}

.send-arrow {
    font-size: 16px;
}

.chat-side-panel {
    display: grid;
    align-content: start;
    gap: 16px;
}

.side-info-card {
    padding: 20px;

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

    border-radius: 18px;

    background: white;

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

.side-info-card h3 {
    margin:
        5px
        0
        13px;
}

.guide-list {
    margin: 0;
    padding-left: 18px;

    color:
        var(--muted);

    line-height: 1.8;

    font-size: 13px;
}

.side-info-card.accent {
    display: flex;
    gap: 12px;

    color: white;

    border: 0;

    background:
        linear-gradient(
            145deg,
            #0d679f,
            #0f7fbe
        );
}

.side-info-card.accent strong {
    font-size: 13px;
}

.side-info-card.accent p {
    margin:
        6px
        0
        0;

    color:
        rgba(
            255,
            255,
            255,
            0.76
        );

    line-height: 1.6;

    font-size: 12px;
}

.trust-icon {
    width: 34px;
    height: 34px;

    flex: 0 0 auto;

    display: grid;
    place-items: center;

    border-radius: 11px;

    color:
        var(--navy);

    background:
        var(--green);

    font-weight: 900;
}

@media (
    max-width: 1100px
) {
    .app-shell {
        grid-template-columns:
            220px
            minmax(
                0,
                1fr
            );
    }

    .chat-layout {
        grid-template-columns:
            1fr;
    }

    .chat-side-panel {
        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            );
    }
}

@media (
    max-width: 850px
) {
    .app-shell {
        display: block;
    }

    .sidebar {
        position: fixed;

        z-index: 200;

        width: 270px;

        transform:
            translateX(
                -102%
            );

        transition:
            0.22s ease;
    }

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

    .menu-toggle {
        display: block;
    }

    .topbar {
        padding:
            14px
            18px;
    }

    .page-content {
        padding: 18px;
    }

    .workspace-grid,
    .detail-grid,
    .stats-grid {
        grid-template-columns:
            1fr;
    }

    .hero-card {
        align-items: start;
        flex-direction: column;
    }

    .products-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .search-box {
        width: 100%;
    }

    .chat-side-panel {
        grid-template-columns:
            1fr;
    }
}

@media (
    max-width: 560px
) {
    .topbar-action {
        display: none;
    }

    .page-title {
        font-size: 19px;
    }

    .hero-card {
        padding: 25px;
    }

    .panel {
        padding: 18px;
    }

    .chat-card {
        min-height:
            calc(
                100vh
                - 125px
            );
    }

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

    .send-button {
        min-width: 58px;
    }

    .send-button span:first-child {
        display: none;
    }
}
