.product-theme-select {
    min-height: 42px;
    max-width: 110px;
    border: 1px solid #cbd8df;
    border-radius: 8px;
    background: #fff;
    color: #203746;
    padding: 4px 9px;
    margin-inline-start: auto;
}
.product-topbar:has(.product-theme-select) .product-user {
    margin-inline-start: 0;
}
.product-days-field {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    border: 1px solid #cbd8df;
    padding: 14px;
    border-radius: 9px;
}
.product-days-field legend {
    padding-inline: 6px;
    font-size: 14px;
}
.product-shell.is-dark {
    color-scheme: dark;
    background: #101e29;
    color: #e1ebf1;
}
.is-dark
    :is(
        .product-topbar,
        .product-card,
        .product-metrics article,
        .product-dialog,
        .product-bottom-nav,
        .product-inbox-list,
        .product-chat-header,
        .product-composer,
        .product-chat-empty,
        .product-chat,
        .product-actions-menu > div
    ) {
    background: #1a2d3a;
    color: #e1ebf1;
    border-color: #39505e;
}
.is-dark
    :is(
        .product-secondary,
        .product-toggle,
        .product-icon,
        .product-theme-select,
        .product-section-tabs a
    ) {
    background: #233b4b;
    color: #e1ebf1;
    border-color: #476270;
}
.product-shell.is-dark :is(input, textarea, select) {
    background-color: #132632;
    color: #edf4f8;
    border-color: #476270;
}
.product-shell.is-dark input[type='checkbox']:checked {
    background-color: #178263;
    border-color: #71c9a3;
}
.product-shell.is-dark :is(input, textarea)::placeholder {
    color: #a6bdca;
    opacity: 1;
}
.is-dark
    :is(
        .product-page-heading p,
        .product-topbar small,
        .product-breadcrumb,
        .product-metrics span,
        .product-prose,
        .product-empty,
        .product-work-row small,
        .product-chat-header small,
        .product-conversation small,
        .product-directory-table td::before,
        .product-permission-details code
    ) {
    color: #b4c9d5;
}
.is-dark :is(.product-breadcrumb strong, .product-chat-header strong) {
    color: #edf4f8;
}
.is-dark :is(.product-directory-table th, .product-conversation:hover) {
    background: #203745;
    color: #d3e4ed;
}
.is-dark
    :is(
        .product-directory-table td,
        .product-card header,
        .product-work-row,
        .product-days-field,
        .product-chat-header,
        .product-composer,
        .product-conversation,
        .product-dialog header
    ) {
    border-color: #39505e;
}
.is-dark
    :is(.product-section-tabs [aria-current='page'], .product-conversation[aria-current='true']) {
    background: #214d40;
    color: #dcf5e9;
}
.is-dark .product-messages {
    background: #10251f;
}
.is-dark .product-message {
    background: #243747;
    color: #f1f5f9;
    border-color: #476073;
}
.is-dark .product-message.outgoing {
    background: #205440;
    color: #e5f1eb;
}
.is-dark .product-message small {
    color: #c2d9cd;
}
.is-dark .product-notice {
    background: #214737;
    color: #d5eddf;
    border-color: #416b55;
}
.is-dark .product-error {
    background: #4a2b2a;
    color: #ffd8d2;
    border-color: #8a5450;
}
.is-dark .product-internal-note {
    background: #483f25;
    color: #f4e8c2;
    border-color: #7c6b39;
}
.is-dark .product-internal-note small {
    color: #dfce9e;
}
.is-dark .product-permission-details summary {
    color: #80dcb7;
}
.is-dark .product-primary {
    background: #178263;
    color: white;
}
.is-dark .product-bottom-nav :is(a, button) {
    color: #bdd2de;
}
.is-dark .product-bottom-nav [aria-current='page'] {
    color: #80dcb7;
}
.is-dark :is(.product-inbox-tabs button, .product-composer-tabs button) {
    color: #bdd2de;
    background: #233b4b;
}
.is-dark :is(.product-inbox-tabs button, .product-composer-tabs button)[aria-pressed='true'] {
    color: #d8f6e7;
    background: #28533f;
}
.is-dark .product-read {
    color: #8bccff;
}
.is-dark .product-counter {
    background: #315d4a;
    color: #ddf9e8;
}
.is-dark .product-avatar,
.is-dark .product-user > b {
    background: #345065;
    color: #e3eef4;
}
.is-dark .product-reply-context {
    background: #284d3c;
    color: #ddf9e8;
}
@media (max-width: 600px) {
    .product-theme-select {
        max-width: 84px;
        font-size: 13px;
    }
    .product-topbar {
        gap: 8px;
    }
    .product-breadcrumb {
        min-width: 0;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
}
.product-permission-details summary {
    cursor: pointer;
    min-height: 44px;
    padding: 10px 0;
    color: #087e6c;
}
.product-permission-details ul {
    margin: 10px 0;
    padding: 0;
    list-style: none;
    max-height: 340px;
    overflow: auto;
}
.product-permission-details li {
    display: grid;
    gap: 4px;
    padding: 10px;
    border-bottom: 1px solid #e1e8ed;
    text-align: start;
}
.product-permission-details code {
    font-size: 12px;
    color: #526773;
    overflow-wrap: anywhere;
}
.product-load-list meter::-webkit-meter-optimum-value {
    background: #087e6c;
}
.product-load-list meter::-moz-meter-bar {
    background: #087e6c;
}
.product-load-list {
    list-style: none;
    padding: 0 24px 24px;
    margin: 0;
    display: grid;
    gap: 18px;
}
.product-load-list li > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
}
.product-load-list meter {
    display: block;
    width: 100%;
    height: 20px;
    accent-color: #087e6c;
}
.product-report-distribution {
    margin-bottom: 24px;
}
.product-shell .product-message footer,
.product-shell .product-conversation small {
    color: #405d50;
    font-size: 13px;
}
@media (max-width: 600px) {
    .product-shell .product-directory-table tr {
        gap: 10px;
        padding: 16px;
    }
    .product-shell .product-table-actions {
        flex-wrap: wrap;
        gap: 8px;
    }
    .product-section-tabs {
        flex-wrap: wrap;
    }
}
.product-actions-menu {
    position: relative;
    font-size: 13px;
}
.product-actions-menu summary {
    cursor: pointer;
    padding: 10px 8px;
    min-height: 42px;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    list-style: none;
}
.product-actions-menu > div {
    position: absolute;
    inset-inline-end: 0;
    top: 100%;
    z-index: 10;
    background: white;
    box-shadow: 0 8px 24px #19344725;
    border: 1px solid #e1e8ed;
    border-radius: 9px;
    min-width: 200px;
    padding: 8px;
}
.product-actions-menu button {
    display: block;
    width: 100%;
    text-align: start;
    padding: 10px;
    min-height: 42px;
}
.product-message-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #087e6c;
    margin-top: 7px;
}
.product-message-actions button {
    min-height: 32px;
}
.product-reply-context {
    padding: 8px 12px;
    background: #eaf5ef;
    border-inline-start: 3px solid #399c83;
    font-size: 13px;
    display: flex;
    gap: 15px;
    justify-content: space-between;
    margin-bottom: 8px;
    max-height: 70px;
    overflow: auto;
}
@font-face {
    font-family: 'Raito Product';
    src: url('/fonts/IBMPlexSansArabic-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Raito Product';
    src: url('/fonts/IBMPlexSansArabic-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-display: swap;
}
.product-shell {
    display: grid;
    grid-template-columns: 238px minmax(0, 1fr);
    min-height: 100dvh;
    background: #f2f6f8;
    color: #203746;
    font:
        15px/1.8 'Raito Product',
        sans-serif;
}
.product-shell * {
    box-sizing: border-box;
}
.product-main {
    min-width: 0;
}
.product-navigation {
    position: sticky;
    top: 0;
    height: 100dvh;
    background: #162a39;
    color: #d5e3eb;
    display: flex;
    flex-direction: column;
    padding: 25px 18px;
    overflow-y: auto;
}
.product-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px 28px;
}
.product-brand > b {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #38b89b;
    color: #143344;
    font-size: 25px;
    flex-shrink: 0;
}
.product-brand strong {
    display: block;
    font-size: 27px;
    color: white;
}
.product-brand small {
    font-size: 11px;
    color: #9db3c1;
}
.product-nav-caption {
    font-size: 12px;
    color: #9db3c1;
    margin: 12px;
}
.product-navigation nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 9px;
    min-height: 46px;
    margin-block: 4px;
    font-size: 14px;
}
.product-navigation nav a:hover {
    background: #203e4e;
}
.product-navigation [aria-current='page'] {
    background: #245740;
    color: white;
}
.product-navigation svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.product-nav-footer {
    margin-top: auto;
    padding: 24px 12px 0;
    display: grid;
    font-size: 13px;
}
.product-nav-footer small {
    color: #9db3c1;
}
.product-topbar {
    height: 75px;
    background: white;
    border-bottom: 1px solid #e1e8ed;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 30px;
}
.product-toggle {
    height: 42px;
    min-width: 42px;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    background: white;
}
.product-breadcrumb {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 14px;
    color: #526773;
}
.product-breadcrumb strong {
    font-weight: 500;
    color: #203746;
}
.product-user {
    margin-inline-start: auto;
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 13px;
}
.product-user small {
    display: block;
    color: #526773;
    font-size: 12px;
}
.product-user > b {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    background: #e8edf5;
    border-radius: 50%;
}
.product-content {
    padding: 30px;
    min-width: 0;
}
.product-notice,
.product-error {
    padding: 14px 18px;
    margin-bottom: 20px;
    border: 1px solid #c2e3cf;
    border-radius: 9px;
    background: #e9f6ef;
    color: #275c3e;
}
.product-error {
    background: #fff0ee;
    border-color: #eecbc6;
    color: #963e33;
}
.product-mobile,
.product-bottom-nav,
.product-scrim {
    display: none;
}
.product-skip {
    position: fixed;
    top: -100px;
    inset-inline-start: 20px;
    z-index: 100;
    background: white;
    padding: 12px;
}
.product-skip:focus {
    top: 10px;
}
.product-shell :where(a, button, input, textarea, select):focus-visible {
    outline: 3px solid #399c83;
    outline-offset: 3px;
}
.product-shell.is-collapsed {
    grid-template-columns: 80px minmax(0, 1fr);
}
.is-collapsed .product-brand > span,
.is-collapsed .product-nav-caption,
.is-collapsed .product-navigation nav a span,
.is-collapsed .product-nav-footer {
    display: none;
}
.is-collapsed .product-navigation {
    padding-inline: 12px;
}
.is-collapsed .product-brand {
    padding-inline: 0;
    justify-content: center;
}
.is-collapsed .product-navigation nav a {
    justify-content: center;
}
@media (max-width: 900px) {
    .product-shell,
    .product-shell.is-collapsed {
        grid-template-columns: minmax(0, 1fr);
    }
    .product-navigation {
        position: fixed;
        inset-block: 0;
        inset-inline-start: 0;
        width: 260px;
        z-index: 70;
        transform: translateX(110%);
        visibility: hidden;
    }
    .menu-open .product-navigation {
        transform: translateX(0);
        visibility: visible;
    }
    .product-scrim {
        display: block;
        position: fixed;
        inset: 0;
        background: #0a1e2c80;
        z-index: 65;
    }
    .product-mobile {
        display: block;
    }
    .product-desktop {
        display: none;
    }
    .product-topbar {
        height: 66px;
        padding: 12px 16px;
        gap: 12px;
    }
    .product-breadcrumb {
        font-size: 13px;
    }
    .product-user > span {
        display: none;
    }
    .product-content {
        padding: 24px 16px 100px;
    }
    .product-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        inset-inline: 0;
        background: white;
        border-top: 1px solid #e1e8ed;
        z-index: 40;
        justify-content: space-around;
        padding-bottom: env(safe-area-inset-bottom);
    }
    .product-bottom-nav a,
    .product-bottom-nav button {
        min-height: 62px;
        padding: 12px 8px;
        font-size: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #526773;
    }
    .product-bottom-nav [aria-current='page'] {
        color: #087e6c;
        font-weight: 600;
    }
    .is-collapsed .product-brand > span,
    .is-collapsed .product-nav-caption {
        display: block;
    }
    .is-collapsed .product-navigation nav a span {
        display: inline;
    }
    .is-collapsed .product-nav-footer {
        display: grid;
    }
    .is-collapsed .product-navigation nav a,
    .is-collapsed .product-brand {
        justify-content: flex-start;
    }
}
.product-page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 26px;
}
.product-page-heading h1 {
    font-size: 28px;
    font-weight: 600;
}
.product-page-heading p,
.product-card header p {
    color: #526773;
}
.product-primary,
.product-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border-radius: 8px;
    padding: 8px 16px;
    font:
        500 14px/1.6 'Raito Product',
        sans-serif;
    cursor: pointer;
}
.product-primary {
    background: #087e6c;
    color: white;
    border: 1px solid #087e6c;
}
.product-secondary {
    background: white;
    border: 1px solid #dde5ea;
    color: #35505e;
}
.product-primary:disabled,
.product-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.product-icon {
    display: grid;
    place-items: center;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    width: 40px;
    height: 42px;
    background: white;
    flex-shrink: 0;
}
.product-card {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    overflow: hidden;
}
.product-card header {
    padding: 22px;
    border-bottom: 1px solid #e1e8ed;
}
.product-card h2 {
    font-size: 19px;
    font-weight: 600;
}
.product-metrics {
    display: flex;
    gap: 14px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}
.product-metrics article {
    padding: 18px 22px;
    border: 1px solid #e1e8ed;
    background: white;
    border-radius: 10px;
    display: grid;
    min-width: 180px;
}
.product-metrics span {
    font-size: 14px;
    color: #526773;
}
.product-metrics strong {
    font-size: 30px;
}
.product-work-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-bottom: 1px solid #e1e8ed;
}
.product-work-row small {
    display: block;
    color: #526773;
}
.product-avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    background: #e8edf5;
    color: #4d627e;
    border-radius: 12px;
    flex-shrink: 0;
}
.product-counter {
    margin-inline-start: auto;
    background: #e2f1e9;
    color: #1b6f52;
    border-radius: 7px;
    padding: 2px 8px;
    font-size: 13px;
}
.product-empty {
    padding: 30px 18px;
    text-align: center;
    color: #526773;
    font-size: 14px;
}
.product-login {
    min-height: 100dvh;
    background: #f2f6f8;
    display: grid;
    place-items: center;
    padding: 24px;
    font:
        15px/1.8 'Raito Product',
        sans-serif;
    color: #203746;
}
.product-login > section {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 16px;
    padding: 36px;
    width: min(100%, 440px);
}
.product-login-brand {
    display: grid;
    place-items: center;
    background: #38b89b;
    border-radius: 12px;
    width: 52px;
    height: 52px;
    font-size: 30px;
    margin-bottom: 24px;
}
.product-login h1 {
    font-size: 28px;
    font-weight: 600;
}
.product-login p,
.product-login small {
    color: #526773;
}
.product-login form {
    display: grid;
    gap: 12px;
    margin-block: 24px;
}
.product-login input:not([type='checkbox']),
.product-dialog input {
    display: block;
    width: 100%;
    min-height: 46px;
    border: 1px solid #d6e1e7;
    border-radius: 8px;
    padding: 10px;
    font: inherit;
}
.product-check {
    display: flex;
    align-items: center;
    gap: 10px;
}
.product-inbox {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    height: calc(100dvh - 135px);
    min-height: 420px;
    border: 1px solid #e1e8ed;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}
.product-inbox.is-maximized {
    position: fixed;
    inset: 0;
    z-index: 80;
    height: 100dvh;
    min-height: 0;
    border: 0;
    border-radius: 0;
}
.product-inbox-list {
    min-height: 0;
    display: flex;
    flex-direction: column;
    border-inline-end: 1px solid #e1e8ed;
    background: white;
}
.product-inbox-list > header {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    padding: 20px 15px 12px;
}
.product-inbox-list h1 {
    font-size: 20px;
    font-weight: 600;
}
.product-inbox-list header p {
    font-size: 12px;
    color: #526773;
}
.product-inbox-list header button {
    font-size: 12px;
    white-space: nowrap;
    padding: 7px 10px;
}
.product-search {
    padding: 8px 14px;
}
.product-search input {
    width: 100%;
    min-height: 46px;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    background: #f8fafb;
    font: inherit;
    font-size: 14px;
    padding: 9px 12px;
}
.product-inbox-tabs {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding: 8px 12px;
    border-bottom: 1px solid #e1e8ed;
    flex-shrink: 0;
}
.product-inbox-tabs button {
    min-height: 40px;
    white-space: nowrap;
    padding: 6px 9px;
    font-size: 12px;
    border-radius: 6px;
    color: #526773;
}
.product-inbox-tabs [aria-pressed='true'] {
    background: #e6f3ec;
    color: #1d7057;
}
.product-conversation-list {
    overflow-y: auto;
    min-height: 0;
    flex: 1;
}
.product-conversation {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 17px 13px;
    border-bottom: 1px solid #e1e8ed;
    width: 100%;
    text-align: start;
    background: white;
}
.product-conversation[aria-current='true'] {
    background: #eaf5ef;
    box-shadow: inset -3px 0 #32937b;
}
.product-conversation > span:nth-child(2) {
    min-width: 0;
}
.product-conversation strong,
.product-conversation small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 210px;
}
.product-conversation strong {
    font-size: 14px;
}
.product-conversation small {
    font-size: 12px;
    color: #526773;
    margin-top: 4px;
}
.product-chat {
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
}
.product-chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 84px;
    padding: 13px 18px;
    background: white;
    border-bottom: 1px solid #e1e8ed;
    flex-shrink: 0;
}
.product-chat-header strong {
    font-weight: 600;
}
.product-chat-header small {
    display: block;
    font-size: 12px;
    color: #526773;
}
.product-chat-tools {
    display: flex;
    gap: 6px;
    margin-inline-start: auto;
    align-items: center;
}
.product-chat-back {
    display: none;
}
.product-messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    background: #eef4f0;
    overscroll-behavior: contain;
}
.product-message {
    background: white;
    max-width: min(82%, 640px);
    padding: 12px 16px;
    border-radius: 10px;
    color: #203746;
    font-size: 16px;
    line-height: 1.85;
    box-shadow: 0 1px 2px #123a2020;
    overflow-wrap: anywhere;
    flex-shrink: 0;
}
.product-message.outgoing {
    align-self: flex-end;
    background: #ddf0e4;
}
.product-message:not(.outgoing) {
    align-self: flex-start;
    border-inline-start: 3px solid #647e98;
}
.product-message.outgoing {
    border-inline-end: 3px solid #269866;
}
.product-message p {
    white-space: pre-wrap;
}
.product-message small {
    display: block;
    color: #526773;
    font-size: 13px;
    margin-top: 6px;
}
.product-message blockquote {
    padding: 8px;
    border-inline-start: 3px solid #399c83;
    background: #ffffff70;
    font-size: 13px;
    margin-bottom: 10px;
}
.product-message img,
.product-message video {
    max-width: 100%;
    max-height: 320px;
    border-radius: 8px;
}
.product-message audio {
    max-width: 100%;
    width: 270px;
}
.product-message a {
    color: #087e6c;
    text-decoration: underline;
}
.product-message .product-read {
    color: #1878a6;
}
.product-composer {
    padding: 14px 18px;
    border-top: 1px solid #e1e8ed;
    background: white;
    flex-shrink: 0;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
}
.product-composer textarea {
    resize: vertical;
    max-height: 160px;
    min-height: 55px;
    width: 100%;
    border: 1px solid #d6e1e7;
    border-radius: 9px;
    font:
        16px/1.8 'Raito Product',
        sans-serif;
    padding: 10px 13px;
}
.product-composer-actions {
    position: relative;
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
}
.product-emoji-picker {
    position: relative;
}
.product-emoji-panel {
    position: absolute;
    bottom: calc(100% + 12px);
    inset-inline-start: 0;
    z-index: 30;
    width: min(300px, 75vw);
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    background: #fff;
    color: #172b3a;
    box-shadow: 0 12px 36px #0003;
}
.product-emoji-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
    max-height: 220px;
    overflow-y: auto;
    margin-top: 8px;
}
.product-emoji-grid button {
    min-width: 36px;
    min-height: 40px;
    border-radius: 8px;
    font-size: 23px;
}
.product-emoji-grid button:hover {
    background: #e2e8f0;
}
.product-emoji-grid button:focus-visible {
    outline: 2px solid #16a34a;
    outline-offset: -2px;
}
.is-dark .product-emoji-panel {
    background: #1e293b;
    color: #f1f5f9;
    border-color: #475569;
}
.is-dark .product-emoji-grid button:hover {
    background: #334155;
}
.product-composer-actions .product-primary {
    margin-inline-start: auto;
}
.product-composer small {
    font-size: 12px;
    color: #963e33;
}
.product-chat-empty {
    display: grid;
    place-content: center;
    text-align: center;
    background: #eef4f0;
    padding: 30px;
}
.product-chat-empty h2 {
    font-size: 23px;
    font-weight: 600;
}
.product-chat-empty p {
    color: #526773;
}
.product-load-more {
    margin: 12px auto;
    display: flex;
    flex-shrink: 0;
}
.product-dialog {
    width: min(94vw, 500px);
    max-height: 88dvh;
    overflow-y: auto;
    border: 1px solid #e1e8ed;
    border-radius: 14px;
    padding: 25px;
    color: #203746;
    font:
        15px/1.8 'Raito Product',
        sans-serif;
}
.product-dialog::backdrop {
    background: #132c3d80;
}
.product-dialog header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
}
.product-dialog h2 {
    font-size: 22px;
    font-weight: 600;
}
.product-dialog header button {
    min-width: 40px;
    height: 40px;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
}
.product-dialog form {
    display: grid;
    gap: 16px;
}
.product-dialog label {
    display: grid;
    gap: 8px;
}
.product-dialog img {
    max-height: 280px;
    margin: 15px auto;
}
.product-dialog audio {
    max-width: 100%;
}
.product-dialog > .product-primary {
    margin-top: 18px;
}
.product-preset {
    display: grid;
    width: 100%;
    text-align: start;
    padding: 15px;
    border-bottom: 1px solid #e1e8ed;
}
.product-preset span {
    font-size: 14px;
    color: #526773;
}
.product-chat-notice {
    margin: 0;
    border-radius: 0;
    font-size: 13px;
}
.product-media-unavailable {
    font-size: 13px;
    color: #526773;
}
.product-logout {
    margin-top: 12px;
    padding: 8px 0;
    text-align: start;
    color: #d5e3eb;
}
.product-section-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.product-section-tabs a {
    padding: 10px 16px;
    border-radius: 8px;
    color: #526773;
    background: white;
    border: 1px solid #e1e8ed;
}
.product-section-tabs [aria-current='page'] {
    background: #e6f3ec;
    color: #1d7057;
}
.product-directory-table {
    width: 100%;
    font-size: 14px;
    text-align: start;
}
.product-directory-table th {
    background: #f8fafb;
    color: #526773;
    padding: 14px 20px;
    text-align: start;
    font-weight: 500;
}
.product-directory-table td {
    padding: 18px 20px;
    border-top: 1px solid #e1e8ed;
    max-width: 400px;
    overflow-wrap: anywhere;
}
.product-table-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.product-table-actions button,
.product-table-actions a {
    font-size: 13px;
    white-space: nowrap;
}
.product-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    padding: 18px 22px;
    border-top: 1px solid #e1e8ed;
    font-size: 13px;
}
.product-pagination > span:first-child {
    margin-inline-end: auto;
}
.product-pagination a {
    color: #087e6c;
    padding: 6px;
}
.product-directory-search {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 20px;
}
.product-directory-search input,
.product-report-range input,
.product-dialog textarea,
.product-dialog select {
    min-height: 46px;
    border: 1px solid #d6e1e7;
    border-radius: 8px;
    padding: 10px;
    font: inherit;
    max-width: 100%;
}
.product-dialog textarea,
.product-dialog select {
    width: 100%;
}
.product-dialog .product-check {
    display: flex;
    gap: 10px;
}
.product-dialog input[type='checkbox'] {
    width: 18px;
    min-height: 18px;
    height: 18px;
}
.product-field-error,
.product-recording-error {
    color: #963e33;
    font-size: 13px;
}
.product-report-range {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: end;
    margin-bottom: 24px;
}
.product-report-range label {
    display: grid;
    gap: 8px;
    font-size: 14px;
}
.product-prose {
    padding: 22px;
    display: grid;
    gap: 18px;
}
.product-prose h3 {
    font-size: 20px;
    font-weight: 600;
}
.product-section-gap {
    margin-top: 22px;
}
.product-channel-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}
.product-channel-meta dt {
    font-size: 13px;
    color: #526773;
}
.product-channel-meta dd {
    font-weight: 500;
}
.product-composer-actions {
    flex-wrap: wrap;
}
.product-composer-modes {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    border-bottom: 1px solid #e1e8ed;
    margin-bottom: 10px;
    font-size: 13px;
    color: #526773;
}
.product-composer-modes button {
    min-height: 40px;
    padding: 5px 0;
}
.product-composer-modes [aria-pressed='true'] {
    color: #087e6c;
    font-weight: 600;
    border-bottom: 2px solid #087e6c;
}
.product-notes {
    width: 100%;
    display: grid;
    gap: 14px;
}
.product-internal-note {
    padding: 16px;
    background: #fff5d8;
    border: 1px solid #e8d7a8;
    border-radius: 9px;
    white-space: pre-wrap;
    font-size: 15px;
}
.product-internal-note small {
    display: block;
    margin-top: 8px;
    color: #6c644b;
    font-size: 12px;
}
@media (max-width: 600px) {
    .product-directory-table thead {
        display: none;
    }
    .product-directory-table,
    .product-directory-table tbody {
        display: block;
    }
    .product-directory-table tr {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 20px;
        border-top: 1px solid #e1e8ed;
    }
    .product-directory-table td {
        display: block;
        padding: 0;
        border: 0;
        max-width: none;
    }
    .product-directory-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 12px;
        color: #526773;
        margin-bottom: 5px;
    }
    .product-directory-search {
        flex-wrap: wrap;
    }
    .product-directory-search input {
        width: 100%;
    }
    .product-directory-search label {
        width: 100%;
    }
    .product-pagination {
        gap: 12px;
        font-size: 12px;
    }
    .product-prose {
        padding: 18px;
    }
    .product-channel-meta {
        grid-template-columns: 1fr;
    }
    .product-composer-actions .product-primary {
        margin-inline-start: 0;
    }
}
@media (max-width: 1100px) {
    .product-inbox {
        grid-template-columns: 290px minmax(0, 1fr);
    }
    .product-conversation strong,
    .product-conversation small {
        max-width: 175px;
    }
    .product-chat-header {
        padding-inline: 12px;
    }
}
@media (max-width: 600px) {
    .product-page-heading {
        flex-wrap: wrap;
    }
    .product-page-heading h1 {
        font-size: 26px;
    }
    .product-metrics {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .product-metrics article {
        min-width: 0;
        flex: 1;
        padding: 14px;
    }
    .product-metrics span {
        font-size: 12px;
    }
    .product-metrics strong {
        font-size: 25px;
    }
    .product-content:has(.product-inbox) {
        padding: 0 0 70px;
    }
    .product-inbox {
        display: block;
        height: calc(100dvh - 136px);
        min-height: 0;
        border: 0;
        border-radius: 0;
    }
    .product-inbox-list,
    .product-chat {
        height: 100%;
    }
    .product-inbox.has-selection .product-inbox-list {
        display: none;
    }
    .product-inbox:not(.has-selection) .product-chat-empty {
        display: none;
    }
    .product-inbox.is-maximized {
        height: 100dvh;
    }
    .product-conversation strong,
    .product-conversation small {
        max-width: 230px;
    }
    .product-chat-back {
        display: grid;
    }
    .product-chat-header {
        gap: 8px;
        padding: 10px 8px;
    }
    .product-chat-header strong {
        font-size: 14px;
    }
    .product-chat-header small {
        font-size: 11px;
        max-width: 145px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .product-chat-tools {
        gap: 4px;
    }
    .product-chat-tools .product-secondary {
        font-size: 12px;
        padding-inline: 8px;
    }
    .product-icon {
        width: 33px;
        min-width: 33px;
    }
    .product-messages {
        padding: 16px 13px;
    }
    .product-message {
        max-width: 94%;
        font-size: 16px;
    }
    .product-composer {
        padding: 9px 12px;
    }
    .product-composer-actions {
        gap: 5px;
    }
    .product-composer-actions button {
        font-size: 12px;
        padding: 7px 9px;
        min-height: 42px;
    }
    .product-composer textarea {
        min-height: 48px;
    }
    .product-login > section {
        padding: 26px;
    }
    .product-dialog {
        padding: 20px;
    }
}

/* Theme overrides deliberately follow the base and responsive rules. Explicit
 * shell specificity prevents white row surfaces and muted light-theme labels
 * leaking into the dark workspace when hover/selection/mobile states change. */
.product-shell.is-dark .product-conversation {
    background: #1a2d3a;
    color: #edf4f8;
    border-color: #39505e;
}
.product-shell.is-dark .product-conversation:hover {
    background: #263f50;
}
.product-shell.is-dark .product-directory-table td::before {
    color: #c2d2dc;
}
.product-shell.is-dark
    :is(
        .product-chat-empty p,
        .product-card header p,
        .product-preset span,
        .product-metrics span,
        .product-work-row small
    ) {
    color: #c2d2dc;
}
.product-shell.is-dark .product-conversation[aria-current='true'] {
    background: #214d40;
    color: #f0fff7;
}
.product-shell.is-dark
    :is(
        .product-conversation small,
        .product-inbox-list header p,
        .product-page-heading p,
        .product-channel-meta dt,
        .product-composer-modes,
        .product-chat-header small,
        .product-field-hint
    ) {
    color: #c2d2dc;
}
.product-shell.is-dark :is(.product-message a, .product-message-actions, .product-pagination a) {
    color: #8fe4ca;
}
.product-shell.is-dark .product-message a {
    text-decoration: underline;
    text-underline-offset: 4px;
}
.product-shell.is-dark .product-composer-modes [aria-pressed='true'] {
    color: #8fe4ca;
    border-color: #8fe4ca;
}
.product-shell.is-dark :is(.product-inbox-tabs, .product-composer-modes, .product-pagination) {
    border-color: #39505e;
}
.product-shell.is-dark :is(.product-field-error, .product-recording-error) {
    color: #ffb5aa;
}
.product-shell.is-dark .product-message blockquote {
    background: #ffffff12;
    color: #dce9f0;
}
.product-shell.is-dark :is(.product-preset, .product-media-unavailable) {
    background: #233b4b;
    color: #dce9f0;
    border-color: #476270;
}
.product-shell :is(button, a, summary, select, input, textarea):focus-visible {
    outline: 3px solid #21876b;
    outline-offset: 3px;
}
.product-shell.is-dark :is(button, a, summary, select, input, textarea):focus-visible {
    outline-color: #8fe4ca;
}
.product-shell .product-conversation > span:nth-child(2) {
    flex: 1;
    min-width: 0;
}
.product-shell .product-conversation :is(strong, small) {
    max-width: none;
}
.product-shell .product-message-actions button {
    min-height: 40px;
    padding: 4px 8px;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.product-shell .product-message-direction {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
}
.product-shell .product-chat-header > strong,
.product-shell .product-chat-header > div {
    min-width: 0;
    overflow-wrap: anywhere;
}
.product-shell .product-avatar {
    flex-shrink: 0;
    overflow: hidden;
}
.product-shell .product-emoji-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}
.product-shell .product-emoji-grid button {
    min-height: 44px;
    font-size: 24px;
    padding: 2px;
}
@media (max-width: 600px) {
    .product-shell .product-composer-modes {
        gap: 12px;
    }
    .product-shell .product-composer-actions {
        gap: 8px;
    }
    .product-shell .product-composer-actions > button,
    .product-shell .product-emoji-picker > button {
        min-height: 44px;
    }
    .product-shell .product-directory-table td {
        min-width: 0;
    }
}
