* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* 顶部导航栏 */
.header {
    height: 60px;
    background-color: #ffffff;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: right 0.2s ease;
}

.header-left {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    margin-right: 30px;
    font-size: 20px;
    font-weight: bold;
    color: #398CFF;
}

.logo-icon {
    width: 32px;
    height: 32px;
    margin-right: 8px;
    background: linear-gradient(135deg, #398CFF 0%, #2A6FD8 100%);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.workspace {
    padding: 8px 16px;
    background-color: #f5f5f5;
    border-radius: 4px;
    font-size: 14px;
}

.project-selector {
    margin-left: 20px;
    padding: 8px 16px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    font-size: 14px;
}

.header-right {
    display: flex;
    align-items: center;
}

.header-menu {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.header-menu a {
    margin: 0 15px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.notification {
    position: relative;
    margin-right: 15px;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff4757;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #398CFF;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.user-name {
    font-size: 14px;
}

.sub-account {
    font-size: 12px;
    color: #999;
}

/* 主体布局 */
.main-container {
    display: flex;
    margin-top: 60px;
    height: calc(100vh - 60px);
    transition: margin-right 0.2s ease;
}

body.requirement-drawer-open .header {
    right: 420px;
}

body.requirement-drawer-open .main-container {
    margin-right: 420px;
}

/* 左侧产品切换页 */
.product-switcher {
    width: 55px;
    background-color: #398CFF;
    border-right: 1px solid #2A6FD8;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.switcher-menu {
    list-style: none;
    padding: 10px 0;
}

.switcher-menu li {
    margin-bottom: 5px;
}

.switcher-menu a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 5px;
    text-decoration: none;
    color: #ffffff;
    font-size: 10px;
    transition: background-color 0.2s;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.switcher-menu a i {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3px;
    font-size: 20px;
}

.switcher-menu a:hover {
    background-color: #2A6FD8;
}

.switcher-menu a.active {
    background-color: #ffffff;
    color: #398CFF;
}

/* 中间产品内菜单 */
.product-menu {
    width: 250px;
    background-color: #f5f5f5;
    border-right: 1px solid #e8e8e8;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.menu-header {
    padding: 20px;
    background-color: #ffffff;
    border-bottom: 1px solid #e8e8e8;
}

.menu-title {
    font-size: 16px;
    font-weight: bold;
    color: #333333;
}

.menu-section {
    padding: 10px 0;
}

.menu-list {
    list-style: none;
}

.menu-list li {
    margin-bottom: 2px;
}

.menu-list a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    color: #333333;
    font-size: 14px;
    transition: background-color 0.2s;
}

.menu-list a:hover {
    background-color: #e8e8e8;
}

.menu-list a.active {
    background-color: #398CFF;
    color: white;
}

.menu-list i {
    margin-right: 10px;
    width: 16px;
    text-align: center;
}

.menu-title .star, .menu-list .star {
    color: #ffd700;
    margin-left: 5px;
}

/* 主内容区 */
.content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #ffffff;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.page-title {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
}

.page-title .star {
    color: #ffd700;
    margin-left: 8px;
}

.help-link {
    text-decoration: none;
    color: #398CFF;
    font-size: 14px;
}

/* 搜索和操作栏 */
.search-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 4px;
}

.search-input {
    display: flex;
    align-items: center;
}

.search-input input {
    width: 300px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid #e8e8e8;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.search-btn {
    height: 34px;
    padding: 0 12px;
    background-color: #398CFF;
    border: 1px solid #398CFF;
    border-radius: 0 4px 4px 0;
    color: white;
    cursor: pointer;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.demo-btn {
    padding: 0;
    background-color: transparent;
    border: none;
    color: #398CFF;
    text-decoration: underline;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
}

.demo-btn:hover {
    color: #2a6fd9;
    text-decoration: none;
}

.new-project-btn {
    padding: 8px 16px;
    background-color: #398CFF;
    border: 1px solid #398CFF;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
}

/* 项目列表表格 */
.project-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

.project-table th {
    background-color: #f5f5f5;
    padding: 12px 16px;
    text-align: left;
    font-weight: normal;
    color: #666;
    border-bottom: 1px solid #e8e8e8;
}

.project-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e8e8e8;
    font-size: 14px;
}

.project-name {
    color: #398CFF;
    text-decoration: none;
}

.project-type {
    color: #333;
}

.project-time {
    color: #666;
}

.delete-btn {
    color: #ff4757;
    text-decoration: none;
    cursor: pointer;
}



/* 页面容器 */
.page-container {
    display: none;
}

.page-container.active {
    display: block;
}

.project-detail-header {
    margin-bottom: 12px;
}

.project-detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.breadcrumb-separator {
    color: #8a94a7;
}

.project-detail-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid #e8ebf2;
    border-radius: 4px 4px 0 0;
}

.project-detail-back {
    border: 0;
    background: transparent;
    font-size: 24px;
    color: #2c3c52;
    cursor: pointer;
    line-height: 1;
}

.project-detail-toolbar h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2d3d;
}

.project-detail-title-block {
    min-width: 0;
    max-width: 420px;
}

.project-detail-remark {
    display: -webkit-box;
    max-width: 420px;
    margin-top: 4px;
    overflow: hidden;
    color: #657083;
    font-size: 13px;
    line-height: 20px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.project-detail-remark.is-empty {
    color: #a2acba;
}

.project-detail-publish {
    position: relative;
}

.project-embed-btn {
    height: 32px;
    min-width: 88px;
    margin-left: auto;
    padding: 0 14px;
    border: 1px solid #1a73e8;
    border-radius: 4px;
    background: #fff;
    color: #1a73e8;
    font-size: 14px;
    cursor: pointer;
}

.project-embed-btn:hover {
    background: #f5f8ff;
}

.project-publish-btn {
    min-width: 82px;
    height: 32px;
    padding: 0 14px;
    border: 1px solid #1a73e8;
    border-radius: 4px;
    background: #1a73e8;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.project-publish-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 136px;
    display: none;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e6eaf2;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(17, 38, 75, 0.12);
    overflow: hidden;
    z-index: 20;
}

.project-publish-menu.open {
    display: flex;
}

.project-publish-menu button {
    height: 40px;
    border: 0;
    background: #fff;
    text-align: left;
    padding: 0 14px;
    font-size: 14px;
    color: #2f3e52;
    cursor: pointer;
}

.project-publish-menu button:hover {
    background: #f5f8ff;
}

.embed-site-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(18, 28, 42, 0.22);
}

.embed-site-modal.open {
    display: flex;
}

.embed-site-panel {
    width: min(960px, calc(100vw - 48px));
    height: min(690px, calc(100vh - 48px));
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 18px 48px rgba(20, 35, 58, 0.18);
    overflow: hidden;
}

.embed-site-header {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    border-bottom: 1px solid #eef1f6;
    flex: 0 0 auto;
}

.embed-site-header h2 {
    margin: 0;
    color: #1f2d3d;
    font-size: 16px;
    font-weight: 600;
}

.embed-site-close {
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: #8c96a6;
    font-size: 24px;
    line-height: 28px;
    cursor: pointer;
}

.embed-site-body {
    min-height: 0;
    padding: 26px 19px 0;
    background: #f7f9fc;
    flex: 1 1 auto;
    overflow: hidden;
}

.embed-site-tip {
    margin-bottom: 18px;
    color: #1f2d3d;
    font-size: 16px;
    line-height: 24px;
}

.embed-mode-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.embed-mode-card {
    position: relative;
    height: 160px;
    padding: 0;
    border: 1px solid #e5ebf4;
    border-radius: 8px;
    background: #f4f7fd;
    cursor: pointer;
    overflow: hidden;
}

.embed-mode-card.active {
    border: 2px solid #006bff;
}

.embed-browser-demo {
    position: absolute;
    inset: 0;
    display: block;
    background: linear-gradient(135deg, #f8fbff 0%, #edf3ff 100%);
}

.embed-demo-topbar {
    position: absolute;
    top: 10px;
    left: 12px;
    right: 12px;
    height: 15px;
    border-radius: 5px;
    background:
        radial-gradient(circle at 5px 6px, #dbe4f2 0 2px, transparent 3px),
        radial-gradient(circle at 16px 6px, #dbe4f2 0 2px, transparent 3px),
        radial-gradient(circle at 27px 6px, #dbe4f2 0 2px, transparent 3px),
        linear-gradient(#eef3fb, #eef3fb);
}

.embed-chat-window {
    position: absolute;
    display: block;
    border: 1px solid #dbe6f8;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 24px rgba(28, 72, 138, 0.08);
}

.embed-demo-fullscreen .embed-chat-window {
    left: 34px;
    right: 34px;
    top: 36px;
    bottom: 26px;
}

.embed-demo-float .embed-chat-window {
    right: 12px;
    top: 18px;
    width: 82px;
    height: 118px;
}

.embed-demo-sidebar .embed-chat-window {
    top: 0;
    right: 0;
    width: 72px;
    height: 100%;
    border-radius: 8px 0 0 8px;
}

.embed-dock-window {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 34px;
    height: 54px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid rgba(205, 220, 240, 0.96);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(249, 252, 255, 0.98)),
        radial-gradient(circle at 16% 0%, rgba(86, 132, 226, 0.08), transparent 38%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 12px 26px rgba(24, 52, 94, 0.08),
        0 4px 10px rgba(24, 52, 94, 0.04);
}

.embed-dock-suggest {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #243247;
    font-size: 8px;
    font-weight: 700;
    white-space: nowrap;
}

.embed-dock-suggest span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: linear-gradient(180deg, #5d7cff 0%, #4357d6 100%);
    box-shadow: 0 4px 8px rgba(69, 87, 214, 0.18);
}

.embed-dock-input {
    min-width: 0;
    flex: 1 1 auto;
    height: 20px;
    border-bottom: 1px solid rgba(222, 231, 243, 0.9);
    color: #9aa8ba;
    font-size: 8px;
    line-height: 20px;
    text-align: left;
    overflow: hidden;
    white-space: nowrap;
}

.embed-dock-send {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border-radius: 50%;
    background: linear-gradient(180deg, #5d7cff 0%, #4357d6 100%);
    color: #fff;
    font-size: 16px;
    line-height: 16px;
    text-align: center;
    box-shadow: 0 7px 14px rgba(69, 87, 214, 0.22);
}

.embed-chat-title {
    position: absolute;
    top: 18px;
    left: 12px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #223247;
    font-size: 8px;
    font-weight: 600;
}

.embed-chat-title span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #30a7ff;
    flex: 0 0 auto;
}

.embed-chat-line {
    position: absolute;
    left: 12px;
    right: 10px;
    top: 40px;
    height: 4px;
    border-radius: 999px;
    background: #dce7f7;
}

.embed-chat-line.short {
    top: 52px;
    right: 36px;
}

.embed-chat-input {
    position: absolute;
    left: 12px;
    right: 8px;
    bottom: 8px;
    height: 10px;
    border: 1px solid #dce7f7;
    border-radius: 3px;
    background: #f8fbff;
}

.embed-float-trigger {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #006bff;
    color: #fff;
    font-size: 13px;
    line-height: 15px;
    text-align: center;
    font-weight: 600;
}

.embed-code-box {
    display: flex;
    min-height: 0;
    flex-direction: column;
    height: calc(100% - 218px);
    border-radius: 4px 4px 0 0;
    overflow: hidden;
    background: #eaf0f6;
}

.embed-code-header {
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    background: #dce3eb;
    color: #253345;
    font-size: 14px;
    flex: 0 0 auto;
}

.embed-copy-btn {
    width: 24px;
    height: 24px;
    border: 0;
    background: transparent;
    color: #263445;
    font-size: 18px;
    cursor: pointer;
}

.embed-code-box pre {
    margin: 0;
    padding: 15px 13px 24px;
    overflow: auto;
    color: #0a3673;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 14px;
    line-height: 21px;
    white-space: pre;
}

.embed-site-footer {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 16px;
    background: #fff;
    flex: 0 0 auto;
}

.embed-confirm-btn {
    height: 32px;
    min-width: 64px;
    padding: 0 16px;
    border: 0;
    border-radius: 4px;
    background: #006bff;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

@media (max-width: 760px) {
    .embed-site-panel {
        width: calc(100vw - 24px);
        height: calc(100vh - 24px);
    }

    .embed-site-body {
        overflow: auto;
    }

    .embed-mode-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .embed-mode-card {
        height: 136px;
    }

    .embed-code-box {
        height: 360px;
    }
}

@media (min-width: 761px) and (max-width: 980px) {
    .embed-mode-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .embed-code-box {
        height: calc(100% - 390px);
    }
}

.project-detail-layout {
    display: grid;
    grid-template-columns: 310px 1fr;
    min-height: calc(100vh - 210px);
    border: 1px solid #e8ebf2;
    border-top: 0;
    background: #fff;
}

.project-detail-subnav {
    display: flex;
    gap: 12px;
    padding: 0 24px 14px;
    background: #fff;
    border-left: 1px solid #e8ebf2;
    border-right: 1px solid #e8ebf2;
}

.project-detail-tab {
    height: 32px;
    padding: 0 14px;
    border: 1px solid #d8e0ec;
    border-radius: 999px;
    background: #fff;
    color: #4d5b72;
    font-size: 14px;
    cursor: pointer;
}

.project-detail-tab.active {
    border-color: #1a73e8;
    color: #1a73e8;
    background: #eef5ff;
}

.project-detail-config {
    border-right: 1px solid #e8ebf2;
    padding: 18px 16px 24px;
}

.project-detail-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2d3d;
}

.project-detail-config-list {
    margin-top: 18px;
}

.project-config-card {
    padding: 0 0 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid #edf0f5;
}

.project-config-card:last-child {
    border-bottom: 0;
    margin-bottom: 0;
}

.project-config-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.project-config-card-title {
    position: relative;
    padding-left: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #1f2d3d;
}

.project-config-card-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: #1a73e8;
}

.project-config-edit {
    border: 0;
    background: transparent;
    color: #1a73e8;
    font-size: 14px;
    cursor: pointer;
}

.project-config-line {
    font-size: 14px;
    color: #53627a;
    line-height: 1.9;
}

.project-config-avatar-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-config-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #edf0f5;
    background: #f8fafc;
}

.project-detail-preview-wrap {
    padding: 18px 24px 24px;
}

.project-detail-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.project-detail-edit {
    border: 0;
    background: transparent;
    color: #1a73e8;
    font-size: 14px;
    cursor: pointer;
}

.project-detail-preview {
    display: flex;
    justify-content: center;
    padding: 4px 0 16px;
}

.project-detail-phone {
    width: 390px;
    height: 680px;
}

/* 数据统计页面样式 */
.usage-statistics-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.statistics-cards {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
}

.stat-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.stat-change {
    font-size: 12px;
    color: #2ed573;
}

.stat-change.negative {
    color: #ff4757;
}

.chart-container {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-height: 300px;
}

/* 消息记录页面样式 */
.message-records-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.message-item {
    display: flex;
    align-items: flex-start;
    background-color: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.message-icon {
    margin-right: 16px;
    color: #398CFF;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: #f0f7ff;
    border-radius: 50%;
}

.message-content {
    flex: 1;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.message-title {
    font-weight: bold;
    color: #333;
}

.message-time {
    font-size: 12px;
    color: #999;
}

.message-body {
    color: #666;
    margin-bottom: 8px;
    line-height: 1.4;
}

.message-meta {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: #999;
}

/* 通话记录页面样式 */
.call-records-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.call-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.call-info {
    flex: 1;
}

.call-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.call-title {
    font-weight: bold;
    color: #333;
}

.call-time {
    font-size: 12px;
    color: #999;
}

.call-details {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: #666;
}

.call-actions {
    display: flex;
    gap: 8px;
}

.call-actions button {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.call-actions button:first-child {
    background-color: #398CFF;
    color: white;
}

.call-actions button:first-child:hover {
    background-color: #2a6fd9;
}

.call-actions button:nth-child(2) {
    background-color: #f5f5f5;
    color: #333;
}

.call-actions button:nth-child(2):hover {
    background-color: #e0e0e0;
}

.call-actions button:last-child {
    background-color: #ffebee;
    color: #ff4757;
}

.call-actions button:last-child:hover {
    background-color: #ffcdd2;
}

/* 对话记录页面样式 */
.dialog-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 4px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 20px;
}

.dialog-search-bar {
    padding: 0 20px 20px;
    background-color: #ffffff;
    border-radius: 0 0 4px 4px;
    margin-bottom: 20px;
}

.time-filter-buttons {
    display: flex;
    align-items: center;
    gap: 0 !important;
    flex-shrink: 0;
    white-space: nowrap;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
}

.time-filter-btn {
    padding: 6px 12px;
    border: none;
    border-right: 1px solid #e8e8e8;
    background-color: #ffffff;
    color: #333333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 !important;
    position: relative;
    box-sizing: border-box;
    flex-shrink: 0;
}

.time-filter-btn:last-child {
    border-right: none;
}

.time-filter-btn:hover {
    background-color: #f5f5f5;
    color: #398CFF;
    z-index: 1;
}

.time-filter-btn.active {
    background-color: #398CFF;
    color: #ffffff;
    z-index: 1;
}

.filter-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-section label {
    font-size: 14px;
    color: #666;
}

.custom-time-picker {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
    border-left: 1px solid #e8e8e8;
}

.time-range-container {
    display: flex;
    align-items: center;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
    height: 34px;
}

.time-input {
    height: 100%;
    padding: 0 12px;
    border: none;
    font-size: 14px;
    outline: none;
    background-color: #ffffff;
}

.time-input:first-child {
    border-right: 1px solid #e8e8e8;
}

.time-separator {
    padding: 0 8px;
    color: #999;
    font-size: 14px;
    user-select: none;
}

.filter-section select {
    height: 34px;
    padding: 0 12px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    outline: none;
    font-size: 14px;
}

.dialog-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 4px;
    overflow: hidden;
}

.dialog-table th {
    background-color: #f5f5f5;
    padding: 12px 16px;
    text-align: left;
    font-weight: normal;
    color: #666;
    border-bottom: 1px solid #e8e8e8;
    font-size: 14px;
}

.time-sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
}

.time-sort-btn:hover {
    color: #1a73e8;
}

.sort-icon {
    font-size: 11px;
    letter-spacing: -1px;
    color: #8a94a7;
}

.time-sort-btn[data-sort-order="asc"] .sort-icon {
    color: #1a73e8;
}

.time-sort-btn[data-sort-order="desc"] .sort-icon {
    color: #1a73e8;
}

.dialog-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e8e8e8;
    font-size: 14px;
    vertical-align: top;
}

.dialog-content {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: default;
    color: #333;
}

.dialog-content:hover {
    color: #398CFF;
}

.view-btn {
    padding: 2px 6px;
    background-color: transparent;
    border: none;
    border-radius: 0;
    color: #398CFF;
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
}

.view-btn:hover {
    background-color: transparent;
    text-decoration: none;
}

/* 对话详情弹窗 */
.dialog-detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.dialog-detail-modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 1200px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.close-btn {
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #8c8c8c;
    padding: 4px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.close-btn:hover {
    color: #262626;
    background-color: #f5f5f5;
}

.modal-body {
    padding: 0;
    height: calc(85vh - 80px);
    overflow: hidden;
}

.detail-layout {
    display: flex;
    height: 100%;
    background-color: #ffffff;
.detail-left {
    width: 320px;
    background-color: #fafbfc;
    border-right: 1px solid #e8e8e8;
    padding: 24px;
    overflow-y: auto;
}
.detail-right {
    flex: 1;
    min-width: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
}

/* 对话记录头部 */
.conversation-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fafbfc;
}

.conversation-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.conversation-meta {
    font-size: 13px;
    color: #8c8c8c;
}

.message-count {
    font-weight: 500;
}
.header-title {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8e8e8;
}

.header-title h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.detail-info-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
}

.phone-style-container {
    flex: 1;
    background-color: #f8f9fa;
    overflow-y: auto;
    position: relative;
    scroll-behavior: smooth;
}

/* 加载状态指示器 */
.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 10;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e8e8e8;
    border-top: 3px solid #398CFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-indicator span {
    font-size: 14px;
    color: #8c8c8c;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.phone-style-container::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 8px;
    background-color: #333;
    border-radius: 4px;
}

.detail-info {
    display: flex;
    align-items: flex-start;
    font-size: 14px;
    line-height: 1.5;
}

.detail-label {
    color: #8c8c8c;
    margin-right: 12px;
    min-width: 70px;
    font-weight: 500;
}

.detail-value {
    color: #262626;
    font-weight: 400;
    flex: 1;
}

.dialog-detail-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    min-height: 100%;
}

.dialog-end-indicator {
    padding: 12px 0 20px;
    text-align: center;
    color: #9aa4b6;
    font-size: 13px;
}

.dialog-scroll-top-btn {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 20;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: rgba(42, 111, 216, 0.92);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(42, 111, 216, 0.22);
    cursor: pointer;
}

.dialog-scroll-top-btn:hover {
    background: #1f63ca;
}

.dialog-detail-item {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    margin-bottom: 12px;
    max-width: 75%;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    position: relative;
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dialog-detail-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.dialog-detail-item.user {
    background: linear-gradient(135deg, #2A6FD8 0%, #398CFF 100%);
    align-self: flex-end;
    color: white;
    border-bottom-right-radius: 4px;
    margin-left: auto;
}

.dialog-detail-item.assistant {
    background-color: #FFFFFF;
    align-self: flex-start;
    border: 1px solid #e8e8e8;
    border-bottom-left-radius: 4px;
    margin-right: auto;
}

.dialog-detail-item .message-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 6px;
    text-align: right;
    font-weight: 400;
    letter-spacing: 0.2px;
}

.dialog-detail-item.assistant .message-time {
    color: #8c8c8c;
    text-align: left;
    font-weight: 400;
}

.dialog-detail-item .message-content {
    font-size: 15px;
    line-height: 1.6;
    word-break: break-word;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    font-weight: 400;
}

.dialog-detail-item.user .message-content {
    color: white;
}

.dialog-detail-item.assistant .message-content {
    color: #333;
}

.dialog-detail-item .message-content img {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dialog-audio-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 72px;
    height: 28px;
    padding: 0 10px;
    margin-bottom: 6px;
    border-radius: 14px;
    background: #eef5ff;
    color: #1a73e8;
    font-size: 13px;
    font-weight: 600;
}

.dialog-audio-chip.assistant {
    background: #f3f4f7;
    color: #516178;
}

.message-image-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message-image-block img {
    width: 260px;
    max-width: 100%;
    border-radius: 10px;
    display: block;
}

.message-image-text {
    line-height: 1.6;
}

.message-audio-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.message-audio-block-secondary {
    margin-top: 10px;
}

.message-audio-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 112px;
    max-width: 168px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(26, 115, 232, 0.14);
    background: #ffffff;
    color: #1f2d3d;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
    box-shadow: 0 6px 16px rgba(17, 38, 75, 0.08);
}

.dialog-detail-item.user .message-audio-chip {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    box-shadow: none;
}

.message-audio-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(17, 38, 75, 0.12);
}

.message-audio-chip.is-playing {
    background: #eaf3ff;
    border-color: rgba(26, 115, 232, 0.28);
}

.dialog-detail-item.user .message-audio-chip.is-playing {
    background: rgba(255, 255, 255, 0.2);
}

.audio-play-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1a73e8;
    position: relative;
    flex-shrink: 0;
}

.dialog-detail-item.user .audio-play-icon {
    background: #ffffff;
}

.audio-play-icon::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 8px;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid #ffffff;
}

.dialog-detail-item.user .audio-play-icon::before {
    border-left-color: #1a73e8;
}

.message-audio-chip.is-playing .audio-play-icon::before {
    top: 5px;
    left: 6px;
    width: 8px;
    height: 10px;
    border: 0;
    background:
        linear-gradient(to right, #ffffff 0 3px, transparent 3px 5px, #ffffff 5px 8px);
}

.dialog-detail-item.user .message-audio-chip.is-playing .audio-play-icon::before {
    background:
        linear-gradient(to right, #1a73e8 0 3px, transparent 3px 5px, #1a73e8 5px 8px);
}

.audio-wave {
    display: inline-flex;
    align-items: flex-end;
    gap: 3px;
    height: 14px;
}

.audio-wave span {
    width: 3px;
    border-radius: 999px;
    background: #8fb7f4;
    display: block;
}

.audio-wave span:nth-child(1) {
    height: 8px;
}

.audio-wave span:nth-child(2) {
    height: 14px;
}

.audio-wave span:nth-child(3) {
    height: 10px;
}

.dialog-detail-item.user .audio-wave span {
    background: rgba(255, 255, 255, 0.72);
}

.message-audio-chip.is-playing .audio-wave span:nth-child(1) {
    animation: audioWave 0.9s ease-in-out infinite;
}

.message-audio-chip.is-playing .audio-wave span:nth-child(2) {
    animation: audioWave 0.9s ease-in-out 0.15s infinite;
}

.message-audio-chip.is-playing .audio-wave span:nth-child(3) {
    animation: audioWave 0.9s ease-in-out 0.3s infinite;
}

.audio-duration {
    font-size: 14px;
    color: inherit;
}

.audio-status {
    font-size: 12px;
    color: #6f7f96;
}

.dialog-detail-item.user .audio-status {
    color: rgba(255, 255, 255, 0.82);
}

@keyframes audioWave {
    0%, 100% {
        transform: scaleY(0.7);
        opacity: 0.7;
    }
    50% {
        transform: scaleY(1.15);
        opacity: 1;
    }
}

.message-audio-hint {
    margin: 6px 0 4px;
    font-size: 11px;
    line-height: 1.4;
    color: #8a94a7;
}

.dialog-detail-item.user .message-audio-hint {
    color: rgba(255, 255, 255, 0.78);
}

.message-audio-text,
.message-text {
    line-height: 1.7;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .detail-layout {
        flex-direction: column;
    }

    .detail-left {
        width: 100%;
        min-width: auto;
        border-right: none;
        border-bottom: 1px solid #e8e8e8;
        padding: 20px;
    }
    
    .detail-right {
        width: 100%;
        height: 60vh;
    }

    .phone-style-container {
        min-height: 400px;
    }
    
    .dialog-detail-list {
        padding: 20px;
    }
    
    .dialog-detail-item {
        max-width: 85%;
    }
}

@media (max-width: 768px) {
    .modal-content {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .modal-header {
        padding: 16px 20px;
    }
    
    .modal-body {
        height: calc(100vh - 70px);
    }
    
    .detail-left {
        padding: 16px;
    }
    
    .conversation-header {
        padding: 16px 20px;
    }
    
    .dialog-detail-list {
        padding: 16px;
        gap: 12px;
    }
    
    .dialog-detail-item {
        max-width: 90%;
        padding: 10px 14px;
    }
    
    .dialog-detail-item .message-content {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .product-switcher,
    .product-menu {
        display: none;
    }
    
    .search-input input {
        width: 200px;
    }
}

/* 分页样式 */
.pagination {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 16px 24px;
    font-size: 14px;
    color: #666;
    background-color: #fff;
    border-radius: 8px;
    -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pagination-info {
    font-weight: 500;
    color: #555;
}

.pagination-controls {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 16px;
}

.pagination-buttons {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 8px;
}

.pagination-btn {
    padding: 8px 16px;
    background-color: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    cursor: pointer;
    color: #333;
    font-size: 14px;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    min-width: 40px;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #398CFF;
    color: #398CFF;
    -webkit-box-shadow: 0 2px 6px rgba(57, 140, 255, 0.2);
    box-shadow: 0 2px 6px rgba(57, 140, 255, 0.2);
    -webkit-transform: translateY(-1px);
    -ms-transform: translateY(-1px);
    transform: translateY(-1px);
}

.pagination-btn:active:not(:disabled) {
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
}

.pagination-btn:disabled {
    border-color: #e8e8e8;
    color: #ccc;
    cursor: not-allowed;
    background-color: #fafafa;
}

.page-btn {
    padding: 8px 16px;
    background-color: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    cursor: pointer;
    color: #333;
    font-size: 14px;
    min-width: 40px;
    text-align: center;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    font-weight: 500;
}

.page-btn:hover:not(.active) {
    border-color: #398CFF;
    color: #398CFF;
    -webkit-box-shadow: 0 2px 6px rgba(57, 140, 255, 0.2);
    box-shadow: 0 2px 6px rgba(57, 140, 255, 0.2);
    -webkit-transform: translateY(-1px);
    -ms-transform: translateY(-1px);
    transform: translateY(-1px);
}

.page-btn:active:not(.active) {
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
}

.page-btn.active {
    background-color: #398CFF;
    color: white;
    border-color: #398CFF;
    -webkit-box-shadow: 0 3px 8px rgba(57, 140, 255, 0.3);
    box-shadow: 0 3px 8px rgba(57, 140, 255, 0.3);
    font-weight: 600;
}

.pagination-jump {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
    background-color: #f8f9fa;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #e8e8e8;
}

.pagination-jump select,
.pagination-jump input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    -webkit-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
    background-color: #fff;
}

.pagination-jump select:focus,
.pagination-jump input:focus {
    outline: none;
    border-color: #398CFF;
    -webkit-box-shadow: 0 0 0 2px rgba(57, 140, 255, 0.1);
    box-shadow: 0 0 0 2px rgba(57, 140, 255, 0.1);
}

.pagination-jump input {
    width: 65px;
    text-align: center;
    font-weight: 500;
}

.pagination-jump button {
    padding: 8px 16px;
    background-color: #398CFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    font-weight: 500;
    -webkit-box-shadow: 0 2px 4px rgba(57, 140, 255, 0.2);
    box-shadow: 0 2px 4px rgba(57, 140, 255, 0.2);
}

.pagination-jump button:hover {
    background-color: #2A6FD8;
    -webkit-box-shadow: 0 3px 6px rgba(42, 111, 216, 0.3);
    box-shadow: 0 3px 6px rgba(42, 111, 216, 0.3);
    -webkit-transform: translateY(-1px);
    -ms-transform: translateY(-1px);
    transform: translateY(-1px);
}

.pagination-jump button:active {
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
}

.page-ellipsis {
    padding: 0 10px;
    color: #999;
    font-size: 16px;
    font-weight: 500;
}

.page-separator {
    padding: 0 5px;
}

/* 响应式分页样式 */
@media (max-width: 768px) {
    .pagination {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
        padding: 16px;
    }
    
    .pagination-controls {
        flex-direction: column;
        gap: 12px;
    }
    
    .pagination-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination-jump {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .pagination-info {
        text-align: center;
    }
}

/* 数据统计子菜单样式 */
.data-statistics-menu {
    position: relative;
    z-index: 10;
}

.data-statistics-menu > a {
    pointer-events: auto;
    display: block;
}

.sub-menu {
    list-style: none;
    margin-left: 36px;
}

.sub-menu li a {
    font-size: 13px;
    padding: 8px 16px;
    color: #666;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
}

.sub-menu li a:hover {
    color: #398CFF;
    background-color: rgba(57, 140, 255, 0.05);
    border-left-color: rgba(57, 140, 255, 0.3);
}

.sub-menu li a.active {
    background-color: #e6f2ff;
    color: #398CFF;
    font-weight: bold;
    border-left-color: #398CFF;
}

/* 数据统计页面样式 */
.stats-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.chart-container {
    width: 100%;
    height: 300px;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-top: 10px;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.stats-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stats-col {
    flex: 1;
    min-width: 200px;
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.stats-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.stats-value {
    font-size: 28px;
    font-weight: 700;
    color: #398CFF;
    margin-bottom: 8px;
}

.stats-change {
    font-size: 14px;
    color: #009900;
}

.stats-change.negative {
    color: #ff0000;
}

/* 图表容器样式 */
.chart-container {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.chart-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

/* 消息记录列表样式 */
.message-item {
    display: flex;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid #e8e8e8;
    transition: all 0.2s ease;
}

.message-item:hover {
    background-color: rgba(57, 140, 255, 0.03);
}

.message-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #f0f8ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
    color: #398CFF;
    font-size: 24px;
}

.message-content {
    flex: 1;
    min-width: 0;
}

.message-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.message-records .message-text {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.message-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 通话记录样式 */
.call-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #e8e8e8;
    transition: all 0.2s ease;
}

.call-item:hover {
    background-color: rgba(57, 140, 255, 0.03);
}

.call-info {
    flex: 1;
    min-width: 0;
}

.call-number {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.call-time {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.call-duration {
    font-size: 13px;
    color: #666;
}

.call-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    flex-shrink: 0;
}

.call-status.success {
    background-color: #e6f9e6;
    color: #009900;
}

.call-status.failed {
    background-color: #ffe6e6;
    color: #ff0000;
}

.call-status.missed {
    background-color: #fff3e6;
    color: #ff9900;
}

/* 分页样式适配 */
.pagination {
    margin-top: 20px;
}

/* 新建项目弹层 */
.new-project-modal {
    position: fixed;
    top: 60px;
    left: 305px;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 900;
    display: none;
    padding: 0;
}

.new-project-modal.open {
    display: flex;
}

.new-project-panel {
    width: 100%;
    max-width: none;
    height: 100%;
    background: #fff;
    border: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.new-project-header {
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    border-bottom: 1px solid #e8ebf2;
}

.new-project-header h2 {
    margin-right: auto;
    margin-left: 8px;
    font-size: 16px;
    font-weight: 600;
}

.new-project-back-btn {
    border: 0;
    background: transparent;
    font-size: 16px;
    color: #2c3c52;
    cursor: pointer;
    line-height: 1;
}

.new-project-steps {
    height: 78px;
    display: flex;
    align-items: center;
    padding: 0 340px;
    border-bottom: 1px solid #e8ebf2;
    background: #fff;
}

.new-project-step {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #8b95a7;
    white-space: nowrap;
}

.step-index {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #c6cfdd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.new-project-step.active {
    color: #1f2d3d;
}

.new-project-step.active .step-index {
    border-color: #1a73e8;
    background: #1a73e8;
    color: #fff;
}

.new-project-step.completed .step-index {
    border-color: #1a73e8;
    color: #1a73e8;
    background: #fff;
    font-size: 0;
}

.new-project-step.completed .step-index::before {
    content: "✓";
    font-size: 14px;
}

.step-name {
    font-size: 16px;
}

.new-project-step-line {
    height: 1px;
    background: #e3e7ef;
    flex: 1;
    margin: 0 18px;
}

.new-project-body {
    flex: 1;
    border-top: 1px solid #e8ebf2;
    border-bottom: 1px solid #e8ebf2;
    overflow-y: auto;
}

.new-project-step-content {
    display: none;
    width: 100%;
    min-height: 100%;
}

.new-project-step-content.active {
    display: grid;
}

.new-project-step-content.step1 {
    grid-template-columns: 1fr 1fr;
}

.new-project-step-content.step3 {
    grid-template-columns: 1fr 1fr;
}

.new-project-form,
.new-project-preview {
    display: flex;
    flex-direction: column;
}

.new-project-form,
.new-project-dialog-form {
    border-right: 1px solid #e8ebf2;
}

.new-project-section-title {
    height: 52px;
    line-height: 52px;
    padding: 0 14px;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid #e8ebf2;
    background: #f7f8fa;
}

.new-project-fields {
    padding: 24px 34px;
}

.new-project-field {
    display: grid;
    grid-template-columns: 140px 1fr;
    align-items: center;
    margin-bottom: 18px;
    font-size: 14px;
}

.new-project-field label {
    color: #253248;
    text-align: right;
    padding-right: 12px;
}

.required {
    color: #ff4d4f;
}

.new-project-name-input {
    height: 46px;
    border: 1px solid #d7deea;
    border-radius: 4px;
    padding: 0 12px;
    font-size: 14px;
}

.project-type-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.project-type-option {
    height: 44px;
    padding: 0 20px;
    border: 1px solid #ccd5e3;
    background: #fff;
    margin-right: -1px;
    cursor: pointer;
    font-size: 14px;
    color: #2c3c52;
}

.project-type-option.active {
    border-color: #1a73e8;
    color: #1a73e8;
    position: relative;
    z-index: 1;
}

.new-project-custom-fields {
    margin-top: 6px;
}

.new-project-radio-group {
    display: flex;
    gap: 34px;
    align-items: center;
    font-size: 14px;
}

.new-project-radio-group input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.preview-phone {
    width: 340px;
    height: 620px;
    margin: 24px auto;
    border: 1px solid #ced8e8;
    border-radius: 24px;
    background: #fff;
    overflow: hidden;
    position: relative;
}

.project-preview-panel {
    position: absolute;
    inset: 0;
    display: none;
}

.project-preview-panel.active {
    display: block;
}

.project-preview-topbar {
    position: absolute;
    top: 14px;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    color: #262b33;
}

.project-preview-topbar strong {
    font-size: 17px;
    font-weight: 600;
}

.project-preview-spacer {
    width: 20px;
    height: 20px;
}

.project-preview-chip {
    padding: 4px 8px;
    border: 1px solid #fff;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.8);
    color: #657083;
    line-height: 24px;
}

.project-preview-panel-voice {
    background: linear-gradient(180deg, #eef8ff 0%, #ffffff 100%);
}

.voice-preview-bg {
    position: absolute;
    border-radius: 999px;
    filter: blur(36px);
    opacity: 0.55;
}

.voice-preview-bg-top-right {
    top: -40px;
    right: -50px;
    width: 210px;
    height: 210px;
    background: radial-gradient(circle, rgba(215, 195, 255, 0.8), rgba(215, 195, 255, 0));
}

.voice-preview-bg-bottom-left {
    left: -40px;
    bottom: -20px;
    width: 210px;
    height: 210px;
    background: radial-gradient(circle, rgba(180, 228, 255, 0.85), rgba(180, 228, 255, 0));
}

.voice-preview-bg-center {
    top: 180px;
    left: 80px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255, 214, 243, 0.8), rgba(212, 242, 255, 0));
}

.voice-preview-bubble {
    position: absolute;
    top: 90px;
    left: 20px;
    right: 60px;
    z-index: 2;
    padding: 12px 16px;
    border-radius: 0 8px 8px 8px;
    background: #fff;
    color: #1d2531;
    line-height: 22px;
}

.voice-preview-orb {
    position: absolute;
    top: 235px;
    left: 50%;
    width: 166px;
    height: 166px;
    transform: translateX(-50%);
}

.voice-preview-orb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.voice-preview-orb-core {
    transform: scale(0.82);
    opacity: 0.92;
}

.voice-preview-hint {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 170px;
    text-align: center;
    color: #006bff;
    font-size: 14px;
    font-weight: 600;
}

.voice-preview-actions,
.vision-preview-actions {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 56px;
    display: flex;
    justify-content: center;
    gap: 24px;
    z-index: 2;
}

.voice-preview-action,
.vision-preview-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #626f85;
    font-size: 10px;
    line-height: 10px;
}

.voice-preview-action-icon,
.vision-preview-action-icon {
    width: 56px;
    height: 56px;
    border: 1px solid #fff;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #6b7487;
}

.voice-preview-action-icon.hangup,
.vision-preview-action-icon.hangup {
    color: #ff4d4f;
}

.voice-preview-action-icon.muted,
.vision-preview-action-icon.muted {
    color: #5f6676;
}

.project-preview-panel-vision,
.project-preview-panel-digital {
    background: linear-gradient(180deg, #eef8ff 0%, #ffffff 100%);
}

.vision-preview-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vision-preview-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.08) 0%, rgba(26, 26, 26, 0.25) 100%);
}

.vision-preview-focus {
    position: absolute;
    left: 50%;
    top: 246px;
    width: 178px;
    transform: translateX(-50%);
}

.vision-preview-focus img {
    width: 100%;
    display: block;
}

.vision-preview-hint {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 152px;
    text-align: center;
    color: #fff;
    font-weight: 600;
}

.project-preview-panel-digital {
    background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.78) 100%), radial-gradient(circle at 100% 100%, #b8b7ff 0%, #d4f0ff 100%);
}

.digital-preview-surface {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 24px;
}

.digital-preview-photo {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 408px;
    height: 724px;
    object-fit: cover;
    transform: translate(-50%, -46%);
}

.digital-preview-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.42) 100%);
}

.digital-preview-bubble {
    position: absolute;
    top: 20px;
    left: 16px;
    right: 16px;
    z-index: 3;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.digital-preview-bubble img {
    width: 36px;
    height: 24px;
    object-fit: cover;
    flex: 0 0 auto;
}

.digital-preview-bubble-text {
    flex: 1 1 auto;
    padding: 8px 12px;
    border-radius: 16px;
    background: linear-gradient(110deg, rgba(255,255,255,0.8) 4.7%, rgba(255,255,255,0.3) 100%);
    backdrop-filter: blur(6px);
    color: #1d2531;
    font-size: 16px;
    line-height: 28px;
}

.digital-preview-status {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 128px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #1d2531;
}

.digital-preview-status span {
    font-size: 12px;
    line-height: 20px;
}

.digital-preview-status strong {
    font-size: 14px;
    line-height: 22px;
    font-weight: 400;
}

.digital-preview-bars {
    height: 24px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.digital-preview-bars i {
    width: 6px;
    border-radius: 69px;
    background: #1d2531;
    display: block;
}

.digital-preview-bars i:nth-child(1) { height: 9px; }
.digital-preview-bars i:nth-child(2) { height: 14px; }
.digital-preview-bars i:nth-child(3) { height: 6px; }
.digital-preview-bars i:nth-child(4) { height: 12px; }
.digital-preview-bars i:nth-child(5) { height: 12px; }

.digital-preview-actions {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 50px;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 36px;
}

.digital-preview-actions button {
    width: 56px;
    height: 56px;
    border: 1px solid #fff;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.digital-preview-actions button img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.digital-preview-footer-tip {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    z-index: 3;
    text-align: center;
    color: #657083;
    font-size: 12px;
    line-height: 20px;
}

.project-preview-panel-message {
    padding: 0 0 16px;
    background: #f7f9fa;
    display: none;
    flex-direction: column;
}

.project-preview-panel-message.active {
    display: flex;
}

.message-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
}

.message-preview-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.message-preview-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-block;
    background:
        radial-gradient(circle at 50% 50%, #273349 18%, #9cc7ff 19%, #72cfff 45%, #d9f2ff 70%);
}

.message-preview-avatar.small {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
}

.message-preview-heading {
    display: flex;
    flex-direction: column;
}

.message-preview-heading strong {
    font-size: 16px;
    color: #1d2531;
    line-height: 24px;
}

.message-preview-heading span {
    font-size: 12px;
    color: #657083;
    line-height: 20px;
}

.message-preview-body {
    flex: 1 1 auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message-preview-row {
    display: flex;
    gap: 8px;
}

.message-preview-row p {
    margin: 0;
    font-size: 14px;
    line-height: 22px;
    color: #1d2531;
}

.message-preview-row.user {
    justify-content: flex-end;
    align-items: flex-start;
}

.message-preview-row.user p {
    padding: 12px 16px;
    border-radius: 8px 8px 0 8px;
    background: #e1e7ed;
}

.message-preview-user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex: 0 0 auto;
    background: linear-gradient(144deg, rgba(224,194,255,0.6), rgba(151,224,255,0.6));
}

.message-preview-input {
    margin: auto 16px 0;
    min-height: 96px;
    padding: 12px;
    border: 1px solid #edf1f5;
    border-radius: 8px;
    background: #fff;
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.message-preview-input span {
    flex: 1 1 auto;
    color: #9ea7b8;
    line-height: 22px;
}

.message-preview-input button {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: #7dd0ff;
    color: #fff;
    line-height: 1;
}

.new-project-footer {
    height: 62px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 20px;
    gap: 8px;
}

.new-project-cancel-btn,
.new-project-next-btn {
    height: 36px;
    min-width: 86px;
    border-radius: 4px;
    border: 1px solid #d0d8e6;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
}

.new-project-next-btn {
    border-color: #1a73e8;
    background: #1a73e8;
    color: #fff;
}

.new-project-flow-wrap {
    width: 100%;
}

.flow-body {
    padding: 20px 16px 28px;
}

.flow-group {
    margin-bottom: 24px;
}

.flow-group h3 {
    font-size: 16px;
    color: #1f2d3d;
    margin-bottom: 10px;
}

.flow-row {
    --flow-row-default-align: center;
    --flow-row-block-align: start;
    --flow-row-align: var(--flow-row-default-align);
    display: grid;
    grid-template-columns: 140px 1fr;
    align-items: var(--flow-row-align);
    margin-bottom: 10px;
}

.flow-row.is-block-align,
.flow-row:has(> .flow-textarea),
.flow-row:has(> .flow-inline-input .flow-tip),
.flow-row.dialog-example-row,
.flow-row:has(.dialog-avatar-upload-config),
.flow-row:has(.dialog-card-list-wrap) {
    --flow-row-align: var(--flow-row-block-align);
}

.flow-row > label {
    text-align: right;
    padding-right: 10px;
    font-size: 14px;
    line-height: 34px;
    color: #2f3e52;
}

.flow-input {
    min-height: 34px;
    border: 1px solid #d7deea;
    border-radius: 2px;
    padding: 6px 10px;
    font-size: 14px;
    width: 100%;
    background: #fff;
}

.flow-textarea {
    min-height: 66px;
    resize: vertical;
    font-family: inherit;
}

.flow-choice-group {
    display: flex;
    align-items: center;
}

.flow-choice {
    min-height: 32px;
    border: 1px solid #ccd5e3;
    background: #fff;
    padding: 0 14px;
    font-size: 14px;
    cursor: pointer;
    margin-right: -1px;
}

.flow-choice.active {
    border-color: #1a73e8;
    color: #1a73e8;
    z-index: 1;
}

.flow-inline-input .flow-tip {
    margin-top: 4px;
    color: #8a94a7;
    font-size: 12px;
}

.new-project-dialog-form,
.new-project-dialog-preview {
    display: flex;
    flex-direction: column;
}

.dialog-setting-body {
    padding: 20px 16px 24px;
}

.dialog-theme-row {
    align-items: center;
}

.dialog-theme-options {
    display: flex;
    gap: 12px;
}

.dialog-theme-option {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid transparent;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.dialog-theme-option span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.dialog-theme-option[data-theme-color="#6ac5ff"] span { background: #6ac5ff; }
.dialog-theme-option[data-theme-color="#a3aaf8"] span { background: #a3aaf8; }
.dialog-theme-option[data-theme-color="#f2bb6a"] span { background: #f2bb6a; }
.dialog-theme-option[data-theme-color="#8097f0"] span { background: #8097f0; }
.dialog-theme-option[data-theme-color="#58cfc0"] span { background: #58cfc0; }
.dialog-theme-option[data-theme-color="#66c8ea"] span { background: #66c8ea; }

.dialog-theme-option.active {
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.1);
}

.dialog-example-row {
    align-items: flex-start;
}

.dialog-example-list {
    width: 100%;
}

.dialog-example-item {
    display: grid;
    grid-template-columns: 1fr 26px;
    gap: 8px;
    margin-bottom: 8px;
}

.dialog-example-remove {
    border: 0;
    background: transparent;
    color: #1a73e8;
    cursor: pointer;
    font-size: 14px;
}

.dialog-example-tip {
    color: #8a94a7;
    font-size: 14px;
}

.dialog-phone {
    width: 340px;
    height: 580px;
    margin: 16px auto;
    border: 1px solid #ced8e8;
    border-radius: 20px;
    padding: 12px;
    background: #f3f5f8;
    display: flex;
    flex-direction: column;
}

.dialog-phone-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.dialog-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #6ac5ff;
    box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.6);
}

.dialog-preview-name {
    font-size: 16px;
    color: #202c3c;
}

.dialog-close {
    margin-left: auto;
    color: #79839a;
    font-size: 16px;
}

.dialog-preview-suggestions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dialog-preview-item {
    min-height: 46px;
    border-radius: 6px;
    background: #fff;
    color: #2f3e52;
    font-size: 14px;
    display: flex;
    align-items: center;
    padding: 0 14px;
}

.dialog-phone-input {
    margin-top: auto;
    border: 1px solid #e0e5ee;
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    display: grid;
    grid-template-columns: 1fr 34px;
    gap: 8px;
    align-items: center;
}

.dialog-preview-placeholder {
    border: 0;
    outline: 0;
    color: #9ca6ba;
    font-size: 14px;
    background: transparent;
}

.dialog-send-btn {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: #6ac5ff;
    color: #fff;
    font-size: 14px;
}

@media (max-width: 1280px) {
    .new-project-steps {
        padding: 0 70px;
    }

    .step-name,
    .new-project-section-title {
        font-size: 14px;
    }

    .new-project-field {
        grid-template-columns: 98px 1fr;
        font-size: 14px;
    }

    .new-project-name-input,
    .project-type-option {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .pagination-btn,
    .page-btn {
        padding: 6px 12px;
        min-width: 32px;
        font-size: 13px;
    }
    
    .pagination-jump {
        padding: 6px 12px;
        gap: 8px;
    }
    
    .pagination-jump input {
        width: 50px;
    }
    
    .pagination-jump button {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .dialog-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-section {
        margin-bottom: 10px;
    }
    
    .dialog-detail-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .dialog-detail-item {
        max-width: 100% !important;
    }
    
    /* 数据统计响应式样式 */
    .stats-row {
        flex-direction: column;
    }
    
    .stats-col {
        min-width: auto;
    }
    
    .message-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .message-icon {
        margin-bottom: 12px;
    }
    
    .call-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* Visual Refresh */
:root {
    --ui-bg: #f4f7fb;
    --ui-panel: #ffffff;
    --ui-panel-soft: #f8fbff;
    --ui-border: #e4ebf5;
    --ui-text: #162033;
    --ui-text-soft: #5f6f86;
    --ui-text-faint: #8b98ab;
    --ui-accent: #1f6bff;
    --ui-accent-soft: #eaf2ff;
    --ui-shadow: 0 18px 40px rgba(32, 66, 124, 0.08);
}

body {
    font-family: "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(31, 107, 255, 0.06), transparent 28%),
        linear-gradient(180deg, #f7faff 0%, #f3f6fb 100%);
    color: var(--ui-text);
}

.header {
    height: 64px;
    padding: 0 28px;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(228, 235, 245, 0.9);
    box-shadow: 0 8px 24px rgba(33, 52, 88, 0.04);
    backdrop-filter: blur(14px);
}

.header-left,
.header-right {
    gap: 14px;
}

.logo {
    margin-right: 8px;
}

.workspace,
.project-selector {
    height: 36px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
}

.workspace {
    padding: 0 14px;
    background: var(--ui-accent-soft);
    color: var(--ui-accent);
}

.project-selector {
    margin-left: 0;
    padding: 0 16px;
    border: 1px solid var(--ui-border);
    background: rgba(248, 251, 255, 0.88);
    color: var(--ui-text-soft);
}

.header-menu {
    gap: 4px;
    margin-right: 10px;
}

.header-menu a {
    margin: 0;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--ui-text-soft);
}

.header-menu a:hover {
    background: var(--ui-panel-soft);
    color: var(--ui-text);
}

.user-avatar {
    background: linear-gradient(135deg, #1f6bff 0%, #4d8dff 100%);
    box-shadow: 0 8px 18px rgba(31, 107, 255, 0.2);
}

.user-name {
    font-weight: 600;
    color: var(--ui-text);
}

.sub-account {
    color: var(--ui-text-faint);
}

.main-container {
    margin-top: 64px;
    height: calc(100vh - 64px);
    background: transparent;
}

.product-switcher {
    width: 80px;
    padding: 12px 10px;
    background: rgba(248, 251, 255, 0.9);
    border-right: 1px solid var(--ui-border);
}

.switcher-menu {
    padding: 0;
}

.switcher-menu li {
    margin-bottom: 8px;
}

.switcher-menu a {
    gap: 6px;
    padding: 12px 6px;
    border-radius: 18px;
    color: var(--ui-text-faint);
    font-size: 11px;
    font-weight: 600;
}

.switcher-menu a i {
    margin-bottom: 0;
}

.switcher-menu a:hover {
    background: #eef4ff;
    color: var(--ui-accent);
}

.switcher-menu a.active {
    background: linear-gradient(180deg, #1f6bff 0%, #3c82ff 100%);
    color: #fff;
    box-shadow: 0 12px 24px rgba(31, 107, 255, 0.22);
}

.product-menu {
    width: 244px;
    background: rgba(248, 251, 255, 0.94);
    border-right: 1px solid var(--ui-border);
}

.menu-header {
    padding: 22px 20px 14px;
    background: transparent;
    border-bottom: 0;
}

.menu-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ui-text);
    letter-spacing: -0.01em;
}

.menu-section {
    padding: 8px 12px 18px;
}

.menu-list li {
    margin-bottom: 4px;
}

.menu-list a {
    margin: 0;
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--ui-text-soft);
    font-weight: 500;
}

.menu-list a:hover {
    background: #edf3ff;
    color: var(--ui-accent);
}

.menu-list a.active {
    background: linear-gradient(180deg, #1f6bff 0%, #3c82ff 100%);
    color: #fff;
    box-shadow: 0 14px 28px rgba(31, 107, 255, 0.18);
}

.sub-menu {
    margin: 8px 0 0 8px;
    padding-left: 10px;
    border-left: 1px solid var(--ui-border);
}

.sub-menu li a {
    padding: 10px 14px;
    font-size: 13px;
    border-radius: 12px;
}

.content {
    padding: 24px;
    background: transparent;
}

.page-container {
    display: none;
    min-height: calc(100vh - 112px);
    background: var(--ui-panel);
    border: 1px solid rgba(228, 235, 245, 0.9);
    border-radius: 24px;
    box-shadow: var(--ui-shadow);
    overflow: hidden;
}

.page-container.active {
    display: block;
}

.content-header {
    margin-bottom: 0;
    padding: 24px 28px 18px;
    border-bottom: 1px solid rgba(228, 235, 245, 0.72);
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.92) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.page-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ui-text);
}

.help-link {
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--ui-accent);
    font-weight: 600;
}

.help-link:hover {
    background: var(--ui-accent-soft);
}

.search-bar,
.dialog-filter-bar,
.dialog-search-bar,
.stats-header {
    margin: 20px 24px 0;
    padding: 18px 20px;
    border: 1px solid var(--ui-border);
    border-radius: 18px;
    background: linear-gradient(180deg, #fbfdff 0%, #f7faff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.search-input input,
.dialog-search-bar .search-input input,
.time-input,
.project-filter,
.jump-input,
.new-project-name-input {
    border: 1px solid var(--ui-border);
    border-radius: 12px;
    background: #fff;
    color: var(--ui-text);
    box-shadow: none;
}

.search-input input:focus,
.dialog-search-bar .search-input input:focus,
.time-input:focus,
.jump-input:focus,
.project-filter:focus {
    border-color: rgba(31, 107, 255, 0.38);
    box-shadow: 0 0 0 4px rgba(31, 107, 255, 0.08);
}

.search-input {
    gap: 10px;
}

.search-input input {
    height: 42px;
    min-width: 320px;
    border-radius: 12px;
}

.search-btn,
.new-project-btn,
.demo-btn,
.pagination-btn,
.jump-btn,
.new-project-next-btn,
.project-publish-btn,
.new-project-cancel-btn {
    border-radius: 12px;
    border: 0;
    font-weight: 600;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.search-btn,
.new-project-btn,
.new-project-next-btn,
.project-publish-btn {
    background: linear-gradient(180deg, #1f6bff 0%, #3c82ff 100%);
    box-shadow: 0 12px 24px rgba(31, 107, 255, 0.18);
}

.search-btn:hover,
.new-project-btn:hover,
.new-project-next-btn:hover,
.project-publish-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(31, 107, 255, 0.22);
}

.demo-btn,
.pagination-btn,
.jump-btn,
.new-project-cancel-btn {
    background: #eef4ff;
    color: var(--ui-accent);
}

.action-buttons {
    gap: 12px;
}

.project-table,
.dialog-table {
    width: calc(100% - 48px);
    margin: 20px 24px 0;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--ui-border);
    border-radius: 18px;
    overflow: hidden;
    background: var(--ui-panel);
}

.project-table th,
.dialog-table th {
    padding: 16px 18px;
    background: #f6f9fd;
    color: var(--ui-text-faint);
    font-size: 13px;
    font-weight: 700;
    border-bottom: 1px solid var(--ui-border);
}

.project-table td,
.dialog-table td {
    padding: 18px;
    border-bottom: 1px solid #edf2f8;
    color: var(--ui-text);
    font-size: 14px;
    vertical-align: middle;
    background: #fff;
}

.project-table tbody tr:hover td,
.dialog-table tbody tr:hover td {
    background: #fbfdff;
}

.project-name,
.dialog-table a,
.project-table a {
    color: var(--ui-accent);
    font-weight: 600;
    text-decoration: none;
}

.project-name:hover,
.dialog-table a:hover,
.project-table a:hover {
    text-decoration: underline;
}

.project-type {
    color: var(--ui-text);
    font-weight: 600;
}

.delete-btn,
.view-btn {
    padding: 7px 12px;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--ui-accent);
    font-weight: 600;
}

.pagination {
    margin: 18px 24px 24px;
    padding: 16px 20px;
    border: 1px solid var(--ui-border);
    border-radius: 16px;
    background: #fbfdff;
}

.pagination-info,
.pagination-jump,
.pagination-jump span {
    color: var(--ui-text-soft);
}

.page-btn {
    min-width: 34px;
    height: 34px;
    border: 1px solid var(--ui-border);
    border-radius: 10px;
    background: #fff;
    color: var(--ui-text-soft);
}

.page-btn.active {
    background: linear-gradient(180deg, #1f6bff 0%, #3c82ff 100%);
    border-color: transparent;
    color: #fff;
}

.project-detail-toolbar,
.project-detail-subnav {
    padding-left: 24px;
    padding-right: 24px;
}

.modal-content,
.new-project-panel {
    border: 1px solid var(--ui-border);
    border-radius: 24px;
    box-shadow: 0 24px 56px rgba(20, 45, 88, 0.18);
}

.modal-header,
.new-project-header {
    background: linear-gradient(180deg, #fbfdff 0%, #f6f9fd 100%);
    border-bottom: 1px solid var(--ui-border);
}

.project-detail-config,
.detail-left {
    background: #fbfdff;
}

.phone-style-container {
    margin: 0 24px 24px;
    border: 1px solid var(--ui-border);
    border-radius: 28px;
    background: linear-gradient(180deg, #fcfdff 0%, #f6f9fd 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

@media (max-width: 1200px) {
    .product-menu {
        width: 220px;
    }

    .search-input input {
        min-width: 240px;
    }
}

/* Reference Alignment */
body {
    background: #eef3f8;
}

.header {
    height: 48px;
    padding: 0 12px;
    background: #fff;
    border-bottom: 1px solid #e5eaf1;
    box-shadow: none;
    backdrop-filter: none;
}

.header-left,
.header-right {
    gap: 8px;
}

.logo {
    margin-right: 10px;
}

.logo img {
    height: 28px !important;
}

.workspace,
.project-selector {
    height: 30px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.workspace {
    padding: 0 10px;
    background: #f7f9fc;
    color: #2e3a4d;
}

.project-selector {
    padding: 0 12px;
    background: #fff;
    border: 1px solid #d7dee8;
    color: #44536a;
}

.header-menu a {
    padding: 0 8px;
    border-radius: 0;
    font-size: 12px;
}

.header-menu a:hover,
.help-link:hover {
    background: transparent;
}

.user-avatar {
    width: 34px;
    height: 34px;
    box-shadow: none;
}

.main-container {
    margin-top: 48px;
    height: calc(100vh - 48px);
}

.product-switcher {
    width: 52px;
    padding: 0;
    background: linear-gradient(180deg, #3a89ff 0%, #367ce6 100%);
    border-right: 0;
}

.switcher-menu li {
    margin-bottom: 0;
}

.switcher-menu a {
    min-height: 52px;
    gap: 2px;
    padding: 8px 4px;
    border-radius: 0;
    color: rgba(255, 255, 255, 0.95);
    font-size: 10px;
    font-weight: 500;
}

.switcher-menu a i {
    font-size: 18px;
}

.switcher-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.switcher-menu a.active {
    background: #2f72da;
    box-shadow: none;
}

.product-menu {
    width: 194px;
    background: #fff;
    border-right: 1px solid #e4e9f0;
}

.menu-header {
    padding: 10px 12px 8px;
}

.menu-title {
    font-size: 17px;
    font-weight: 500;
}

.menu-section {
    padding: 4px 0 10px;
}

.menu-list a {
    padding: 12px 14px;
    border-radius: 0;
    color: #2a3342;
    font-weight: 500;
}

.menu-list a:hover {
    background: #f4f7fb;
    color: #1f6bff;
}

.menu-list a.active {
    background: #1f6bff;
    color: #fff;
    box-shadow: none;
}

.sub-menu {
    margin: 0;
    padding-left: 0;
    border-left: 0;
}

.sub-menu li a {
    padding: 10px 14px 10px 38px;
    font-size: 14px;
    border-radius: 0;
}

.content {
    padding: 16px;
}

.page-container {
    min-height: calc(100vh - 80px);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    background: transparent;
}

.content-header {
    margin-bottom: 14px;
    padding: 0 0 10px;
    border-bottom: 0;
    background: transparent;
}

.page-title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
}

.help-link {
    padding: 0;
    font-size: 12px;
}

.search-bar,
.dialog-filter-bar,
.dialog-search-bar,
.stats-header {
    margin: 0 0 14px;
    padding: 18px 18px 14px;
    border: 1px solid #e6ecf3;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.search-input {
    gap: 0;
}

.search-input input {
    min-width: 0;
    width: 260px;
    height: 32px;
    border-radius: 2px 0 0 2px;
    font-size: 12px;
}

.search-btn {
    height: 32px;
    min-width: 38px;
    padding: 0 10px;
    border-radius: 0 2px 2px 0;
    box-shadow: none;
}

.new-project-btn,
.demo-btn,
.project-publish-btn,
.new-project-next-btn,
.new-project-cancel-btn,
.pagination-btn,
.jump-btn,
.page-btn,
.delete-btn,
.view-btn {
    border-radius: 2px;
    box-shadow: none;
    transform: none !important;
}

.new-project-btn,
.project-publish-btn,
.new-project-next-btn,
.search-btn {
    background: #1f6bff;
}

.demo-btn,
.pagination-btn,
.jump-btn,
.new-project-cancel-btn,
.delete-btn,
.view-btn,
.page-btn {
    background: #fff;
    color: #1f6bff;
    border: 1px solid #d6e0ee;
}

.project-table,
.dialog-table {
    width: 100%;
    margin: 0;
    border: 1px solid #e6ecf3;
    border-radius: 0;
    background: #fff;
}

.project-table th,
.dialog-table th {
    padding: 11px 16px;
    background: #f5f7fa;
    color: #59667a;
    font-size: 13px;
    font-weight: 600;
}

.project-table td,
.dialog-table td {
    padding: 10px 16px;
    font-size: 13px;
    background: #fff;
}

.project-table tbody tr:hover td,
.dialog-table tbody tr:hover td {
    background: #fafcff;
}

.pagination {
    margin: 0;
    padding: 12px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.pagination-controls {
    gap: 8px;
}

.page-btn {
    min-width: 30px;
    height: 30px;
}

.modal-content,
.new-project-panel {
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(20, 45, 88, 0.18);
}

.modal-header,
.new-project-header {
    background: #fff;
}

.project-detail-config,
.detail-left,
.project-detail-subnav,
.project-detail-toolbar,
.project-detail-layout {
    background: #fff;
}

.phone-style-container {
    margin: 0 24px 24px;
    border-radius: 24px;
}

/* Reference Fine Alignment */
.header {
    height: 52px;
    padding: 0 16px;
}

.main-container {
    margin-top: 52px;
    height: calc(100vh - 52px);
}

.product-switcher {
    width: 52px;
}

.product-menu {
    width: 200px;
}

.menu-header {
    padding: 14px 16px;
    border-bottom: 1px solid #d8e0e8;
}

.menu-title {
    font-size: 16px;
    font-weight: 600;
}

.menu-list a {
    padding: 9px 16px;
    font-size: 14px;
}

.menu-list i {
    width: 20px;
    margin-right: 8px;
}

.sub-menu li a {
    padding: 10px 16px 10px 40px;
}

.content {
    padding: 0;
    background: #e1e7ed;
}

.page-container,
.page-container.active {
    min-height: calc(100vh - 52px);
    background: transparent;
}

.content-header {
    height: 52px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-bottom: 1px solid #edf1f5;
}

.page-title,
.project-detail-breadcrumb {
    font-size: 14px;
    font-weight: 500;
    color: #1d2531;
}

.help-link {
    font-size: 14px;
    font-weight: 400;
    color: #006bff;
}

.search-bar,
.dialog-filter-bar,
.dialog-search-bar,
.stats-header {
    margin: 16px 16px 0;
    padding: 12px 16px;
    border: 0;
    background: #fff;
}

.search-input input,
.dialog-search-bar .search-input input,
.time-input,
.project-filter,
.jump-input {
    height: 32px;
    border: 1px solid #e1e7ed;
    border-radius: 4px;
    font-size: 14px;
}

.search-input input {
    width: 240px;
}

.search-btn,
.new-project-btn,
.demo-btn,
.project-publish-btn,
.new-project-next-btn,
.new-project-cancel-btn,
.pagination-btn,
.jump-btn,
.page-btn,
.delete-btn,
.view-btn {
    height: 32px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 400;
}

.search-btn,
.new-project-btn,
.project-publish-btn,
.new-project-next-btn {
    background: #006bff;
}

.demo-btn,
.new-project-cancel-btn,
.pagination-btn,
.jump-btn,
.page-btn {
    background: #fff;
    border: 1px solid #e1e7ed;
    color: #1d2531;
}

.action-buttons {
    gap: 8px;
}

.project-table,
.dialog-table {
    width: calc(100% - 32px);
    margin: 0 16px;
    border: 0;
    background: #fff;
}

.project-table th,
.dialog-table th {
    height: 40px;
    padding: 9px 16px;
    background: #f7f9fa;
    border-bottom: 1px solid #edf1f5;
    color: #657083;
    font-size: 14px;
    font-weight: 500;
}

.project-table td,
.dialog-table td {
    min-height: 40px;
    padding: 9px 16px;
    border-bottom: 1px solid #edf1f5;
    color: #1d2531;
    font-size: 14px;
    vertical-align: middle;
}

.project-table tbody tr:hover td,
.dialog-table tbody tr:hover td {
    background: #fff;
}

.project-name,
.dialog-table a,
.project-table a {
    color: #006bff;
    font-weight: 400;
}

.project-type {
    font-weight: 400;
}

.delete-btn,
.view-btn {
    height: auto;
    padding: 0;
    background: transparent;
    border: 0;
    color: #006bff;
}

.pagination {
    margin: 0 16px 16px;
    padding: 12px 24px;
    border-top: 1px solid #e1e7ed;
    background: #f7f9fa;
}

.pagination-info,
.pagination-jump,
.pagination-jump span {
    font-size: 14px;
    color: #657083;
}

.pagination-info .total-records,
.pagination-info .current-page {
    color: #006bff;
}

.page-btn {
    min-width: 32px;
    width: 32px;
    padding: 0;
}

.page-btn.active {
    background: #006bff;
    color: #fff;
}

.project-detail-toolbar,
.project-detail-subnav {
    background: #fff;
}

.modal-content,
.new-project-panel {
    border-radius: 4px;
}

@media (max-width: 1200px) {
    .product-menu {
        width: 184px;
    }
}

/* Project Management Page Alignment */
.page-container.project-management {
    display: none;
    margin: 16px;
    min-height: calc(100vh - 84px);
    background: #ffffff;
    border: 1px solid #edf1f5;
    overflow: hidden;
    flex-direction: column;
}

.page-container.project-management.active {
    display: flex;
}

.project-management .content-header {
    height: 52px;
    padding: 0 16px;
    background: #fff;
    border-bottom: 1px solid #edf1f5;
}

.project-management .page-title {
    font-size: 14px;
    font-weight: 500;
    color: #1d2531;
}

.project-management .help-link {
    font-size: 14px;
    color: #006bff;
}

.project-management .search-bar {
    margin: 0;
    padding: 18px 16px 14px;
    border: 0;
    border-bottom: 1px solid #edf1f5;
    background: #fff;
}

.project-management .search-input {
    display: flex;
    align-items: center;
}

.project-management .search-input input {
    width: 240px;
    height: 32px;
    border-radius: 4px 0 0 4px;
    border: 1px solid #e1e7ed;
    font-size: 14px;
    color: #1d2531;
}

.project-management .search-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    padding: 0;
    border: 1px solid #e1e7ed;
    border-left: 0;
    border-radius: 0 4px 4px 0;
    background: #fff;
    color: #657083;
}

.project-management .search-btn svg {
    width: 14px;
    height: 14px;
}

.project-management .action-buttons {
    gap: 12px;
    align-items: center;
}

.project-management .demo-btn {
    height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #006bff;
    font-size: 14px;
    font-weight: 400;
}

.project-management .new-project-btn {
    height: 32px;
    padding: 0 16px;
    border-radius: 4px;
    border: 0;
    background: #006bff;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
}

.project-management .project-table {
    width: 100%;
    table-layout: fixed;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
}

.project-management .project-table th:nth-child(1) { width: 22%; }
.project-management .project-table th:nth-child(2) { width: 26%; }
.project-management .project-table th:nth-child(3) { width: 24%; }
.project-management .project-table th:nth-child(4) { width: 18%; }
.project-management .project-table th:nth-child(5) { width: 10%; }

.project-management .project-table th {
    height: 40px;
    padding: 9px 16px;
    background: #f7f9fa;
    color: #657083;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    border-bottom: 1px solid #edf1f5;
}

.project-management .project-table td {
    padding: 9px 16px;
    min-height: 40px;
    font-size: 14px;
    color: #1d2531;
    border-bottom: 1px solid #edf1f5;
    vertical-align: middle;
}

.project-management .project-table td.project-action-cell {
    min-width: 108px;
    white-space: nowrap;
}

.project-management .project-table tbody tr:last-child td {
    border-bottom: 0;
}

.project-management .project-name {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    color: #006bff;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.project-management .project-remark-cell {
    min-width: 180px;
}

.project-management .project-remark-content {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
}

.project-management .project-remark-text {
    display: -webkit-box;
    max-width: 220px;
    color: #1d2531;
    font-size: 14px;
    line-height: 22px;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.project-management .project-remark-text.is-empty {
    color: #a2acba;
}

.project-management .project-type {
    color: #1d2531;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
}

.project-management .project-type[style] {
    color: #657083 !important;
    font-size: 14px !important;
    line-height: 22px;
}

.project-management .project-time {
    color: #1d2531;
}

.project-management .project-remark-edit-btn,
.project-management .delete-btn {
    display: inline-block;
    padding: 0;
    background: transparent;
    border: 0;
    color: #006bff;
    font-size: 12px;
    font-weight: 400;
    text-decoration: none;
    cursor: pointer;
}

.project-management .project-remark-edit-btn {
    width: 22px;
    height: 22px;
    margin-top: 0;
    flex: 0 0 auto;
    color: #006bff;
    line-height: 1;
}

.project-management .project-remark-edit-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
}

.project-remark-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.28);
}

.project-remark-modal.open {
    display: flex;
}

.project-remark-panel {
    width: 420px;
    max-width: calc(100vw - 48px);
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
}

.project-remark-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    padding: 0 16px;
    border-bottom: 1px solid #edf1f5;
}

.project-remark-header h2 {
    margin: 0;
    color: #1d2531;
    font-size: 16px;
    font-weight: 600;
}

.project-remark-close {
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: #657083;
    font-size: 20px;
    line-height: 28px;
    cursor: pointer;
}

.project-remark-body {
    padding: 18px 20px 20px;
}

.project-remark-project {
    margin-bottom: 14px;
    color: #657083;
    font-size: 13px;
}

.project-remark-body label {
    display: block;
    margin-bottom: 8px;
    color: #1d2531;
    font-size: 14px;
}

.project-remark-textarea {
    width: 100%;
    min-height: 96px;
    padding: 8px 10px;
    border: 1px solid #d8e0e8;
    border-radius: 4px;
    color: #1d2531;
    font-size: 14px;
    line-height: 22px;
    resize: vertical;
    outline: none;
}

.project-remark-textarea:focus {
    border-color: #006bff;
}

.project-remark-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 20px 16px;
    border-top: 1px solid #edf1f5;
}

.project-remark-cancel,
.project-remark-save {
    min-width: 72px;
    height: 32px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.project-remark-cancel {
    border: 1px solid #d8e0e8;
    background: #fff;
    color: #1d2531;
}

.project-remark-save {
    border: 1px solid #006bff;
    background: #006bff;
    color: #fff;
}

.project-management .pagination {
    margin: auto 0 0;
    padding: 12px 24px;
    background: #f7f9fa;
    border: 0;
    border-top: 1px solid #e1e7ed;
    border-radius: 0;
}

.project-management .pagination-info,
.project-management .pagination-jump,
.project-management .pagination-jump span {
    font-size: 14px;
    color: #657083;
}

.project-management .pagination-info .total-records,
.project-management .pagination-info .current-page {
    color: #006bff;
}

.project-management .pagination-controls {
    gap: 8px;
}

.project-management .page-btn,
.project-management .pagination-btn {
    width: 32px;
    min-width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid #e1e7ed;
    border-radius: 4px;
    background: #fff;
    color: #1d2531;
    box-shadow: none;
}

.project-management .page-btn.active {
    background: #006bff;
    color: #fff;
    border-color: #006bff;
}

.project-management .pagination-jump input {
    width: 56px;
    height: 32px;
    border: 1px solid #e1e7ed;
    border-radius: 4px;
}

.project-management .jump-btn {
    height: 32px;
    padding: 0 12px;
    border: 1px solid #e1e7ed;
    border-radius: 4px;
    background: #fff;
    color: #1d2531;
}

/* List Pages Alignment */
.page-container.dialog-records,
.page-container.message-records,
.page-container.call-records {
    display: none;
    margin: 16px;
    min-height: calc(100vh - 84px);
    background: #ffffff;
    border: 1px solid #edf1f5;
    overflow: hidden;
    flex-direction: column;
}

.page-container.dialog-records.active,
.page-container.message-records.active,
.page-container.call-records.active {
    display: flex;
}

.dialog-records .content-header,
.message-records .content-header,
.call-records .content-header {
    height: 52px;
    padding: 0 16px;
    background: #fff;
    border-bottom: 1px solid #edf1f5;
}

.dialog-records .page-title,
.message-records .page-title,
.call-records .page-title {
    font-size: 14px;
    font-weight: 500;
    color: #1d2531;
}

.dialog-records .help-link,
.message-records .help-link,
.call-records .help-link {
    padding: 0;
    font-size: 14px;
    color: #006bff;
}

.dialog-records .dialog-filter-bar,
.message-records .dialog-filter-bar,
.call-records .dialog-filter-bar,
.dialog-records .dialog-search-bar,
.message-records .dialog-search-bar,
.call-records .dialog-search-bar {
    margin: 0;
    padding: 12px 16px;
    border: 0;
    background: #fff;
}

.dialog-records .dialog-filter-bar,
.message-records .dialog-filter-bar,
.call-records .dialog-filter-bar {
    border-bottom: 1px solid #edf1f5;
}

.dialog-records .dialog-search-bar,
.message-records .dialog-search-bar,
.call-records .dialog-search-bar {
    padding-top: 0;
    padding-bottom: 12px;
}

.dialog-records .time-filter-buttons,
.message-records .time-filter-buttons,
.call-records .time-filter-buttons {
    gap: 0;
}

.dialog-records .time-filter-btn,
.message-records .time-filter-btn,
.call-records .time-filter-btn {
    height: 32px;
    padding: 0 14px;
    border: 1px solid #d8e0e8;
    border-right: 0;
    border-radius: 0;
    background: #fff;
    color: #1d2531;
    font-size: 14px;
}

.dialog-records .time-filter-btn:first-child,
.message-records .time-filter-btn:first-child,
.call-records .time-filter-btn:first-child {
    border-radius: 4px 0 0 4px;
}

.dialog-records .time-filter-btn:last-child,
.message-records .time-filter-btn:last-child,
.call-records .time-filter-btn:last-child {
    border-right: 1px solid #d8e0e8;
    border-radius: 0 4px 4px 0;
}

.dialog-records .time-filter-btn.active,
.message-records .time-filter-btn.active,
.call-records .time-filter-btn.active {
    background: #eaf3ff;
    color: #006bff;
    border-color: #006bff;
    position: relative;
    z-index: 1;
}

.dialog-records .project-filter-container,
.message-records .project-filter-container,
.call-records .project-filter-container {
    gap: 8px;
    align-items: center;
}

.dialog-records .project-filter-container label,
.message-records .project-filter-container label,
.call-records .project-filter-container label {
    font-size: 14px;
    color: #1d2531;
}

.dialog-records .project-filter,
.message-records .project-filter,
.call-records .project-filter,
.dialog-records .time-input,
.message-records .time-input,
.call-records .time-input,
.dialog-records .jump-input,
.message-records .jump-input,
.call-records .jump-input,
.dialog-records .dialog-search-bar .search-input input,
.message-records .dialog-search-bar .search-input input,
.call-records .dialog-search-bar .search-input input {
    height: 32px;
    border: 1px solid #e1e7ed;
    border-radius: 4px;
    font-size: 14px;
    color: #1d2531;
}

.dialog-records .dialog-search-bar .search-input input,
.message-records .dialog-search-bar .search-input input,
.call-records .dialog-search-bar .search-input input {
    width: 240px;
}

.dialog-records .search-btn,
.message-records .search-btn,
.call-records .search-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    padding: 0;
    border: 1px solid #e1e7ed;
    border-left: 0;
    border-radius: 0 4px 4px 0;
    background: #fff;
    color: #657083;
}

.dialog-records .search-btn svg,
.message-records .search-btn svg,
.call-records .search-btn svg {
    width: 14px;
    height: 14px;
}

.dialog-records .dialog-table,
.message-records .dialog-table,
.call-records .dialog-table {
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
}

.dialog-records .dialog-table th,
.message-records .dialog-table th,
.call-records .dialog-table th {
    height: 40px;
    padding: 9px 16px;
    background: #f7f9fa;
    border-bottom: 1px solid #edf1f5;
    color: #657083;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
}

.dialog-records .dialog-table td,
.message-records .dialog-table td,
.call-records .dialog-table td {
    padding: 9px 16px;
    min-height: 40px;
    font-size: 14px;
    color: #1d2531;
    border-bottom: 1px solid #edf1f5;
    vertical-align: middle;
    background: #fff;
}

.dialog-records .dialog-table tbody tr:last-child td,
.message-records .dialog-table tbody tr:last-child td,
.call-records .dialog-table tbody tr:last-child td {
    border-bottom: 0;
}

.dialog-records .dialog-table tbody tr:hover td,
.message-records .dialog-table tbody tr:hover td,
.call-records .dialog-table tbody tr:hover td {
    background: #fff;
}

.dialog-records .dialog-content {
    max-width: 280px;
}

.dialog-records .view-btn,
.call-records .view-btn {
    padding: 0;
    background: transparent;
    border: 0;
    color: #006bff;
    font-size: 12px;
    font-weight: 400;
}

.dialog-records .pagination,
.message-records .pagination,
.call-records .pagination {
    margin: auto 0 0;
    padding: 12px 24px;
    background: #f7f9fa;
    border: 0;
    border-top: 1px solid #e1e7ed;
    border-radius: 0;
}

.dialog-records .pagination-info,
.message-records .pagination-info,
.call-records .pagination-info,
.dialog-records .pagination-jump,
.message-records .pagination-jump,
.call-records .pagination-jump,
.dialog-records .pagination-jump span,
.message-records .pagination-jump span,
.call-records .pagination-jump span {
    font-size: 14px;
    color: #657083;
}

.dialog-records .pagination-info .total-records,
.dialog-records .pagination-info .current-page,
.message-records .pagination-info .total-records,
.message-records .pagination-info .current-page,
.call-records .pagination-info .total-records,
.call-records .pagination-info .current-page {
    color: #006bff;
}

.dialog-records .page-btn,
.dialog-records .pagination-btn,
.message-records .page-btn,
.message-records .pagination-btn,
.call-records .page-btn,
.call-records .pagination-btn {
    width: 32px;
    min-width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid #e1e7ed;
    border-radius: 4px;
    background: #fff;
    color: #1d2531;
    box-shadow: none;
}

.dialog-records .page-btn.active,
.message-records .page-btn.active,
.call-records .page-btn.active {
    background: #006bff;
    color: #fff;
    border-color: #006bff;
}

.dialog-records .jump-input,
.message-records .jump-input,
.call-records .jump-input {
    width: 56px;
}

.dialog-records .jump-btn,
.message-records .jump-btn,
.call-records .jump-btn {
    height: 32px;
    padding: 0 12px;
    border: 1px solid #e1e7ed;
    border-radius: 4px;
    background: #fff;
    color: #1d2531;
}

/* New Project Figma Alignment */
.new-project-modal {
    top: 52px;
    left: 252px;
    right: 0;
    bottom: 0;
    background: #e1e7ed;
    padding: 0;
    transition: right 0.2s ease;
}

body.requirement-drawer-open .new-project-modal {
    right: 420px;
}

.new-project-panel {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.new-project-header {
    height: 56px;
    padding: 0 16px;
    border-bottom: 1px solid #d8e0e8;
    background: #fff;
}

.new-project-header h2 {
    margin-left: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #1b2532;
}

.new-project-header .help-link {
    display: none;
}

.new-project-back-btn {
    width: 20px;
    height: 20px;
    font-size: 16px;
    color: #1d2531;
}

.new-project-steps {
    height: 56px;
    padding: 14px 230px 14px 140px;
    background: #fff;
    border-bottom: 1px solid #edf1f5;
}

.new-project-step {
    gap: 8px;
    color: #657083;
}

.new-project-step .step-index {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 999px;
    background: #edf1f5;
    color: #657083;
    font-size: 16px;
    line-height: 24px;
}

.new-project-step .step-name {
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: #657083;
}

.new-project-step.active .step-index {
    background: #006bff;
    color: #fff;
}

.new-project-step.active .step-name {
    color: #1d2531;
    font-weight: 600;
}

.new-project-step.completed .step-index {
    background: #e8f5ff;
    color: #006bff;
    border: 0;
}

.new-project-step.completed .step-name {
    color: #1d2531;
    font-weight: 600;
}

.new-project-step-line {
    margin: 0 18px;
    background: #d8e0e8;
}

.new-project-body {
    flex: 1;
    padding: 16px;
    border: 0;
    overflow: auto;
    background: #e1e7ed;
}

.new-project-step-content.active {
    display: grid;
    min-height: 768px;
    border: 1px solid #e1e7ed;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.new-project-step-content.step1,
.new-project-step-content.step3 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.new-project-form,
.new-project-dialog-form,
.new-project-preview,
.new-project-dialog-preview {
    background: #fff;
    min-width: 0;
}

.new-project-form,
.new-project-dialog-form {
    border-right: 1px solid #edf1f5;
}

.new-project-section-title {
    height: 54px;
    line-height: 22px;
    padding: 16px;
    font-size: 14px;
    font-weight: 600;
    color: #1d2531;
    border-bottom: 1px solid #edf1f5;
    background: #f7f9fa;
}

.new-project-fields {
    padding: 16px;
}

.new-project-field {
    grid-template-columns: 54px 1fr;
    align-items: start;
    margin-bottom: 20px;
    font-size: 14px;
}

.new-project-field label {
    padding-right: 8px;
    line-height: 32px;
    text-align: right;
    color: #657083;
}

.new-project-name-input,
.new-project-remark-input,
.flow-input,
.dialog-preview-placeholder {
    height: 32px;
    min-height: 32px;
    padding: 5px 12px;
    border: 1px solid #e1e7ed;
    border-radius: 4px;
    font-size: 14px;
    color: #1d2531;
    background: #fff;
}

.flow-textarea {
    min-height: 72px;
}

.project-type-options,
.flow-choice-group,
.agent-provider-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.project-type-option,
.flow-choice {
    height: 32px;
    margin-right: -1px;
    padding: 0 16px;
    border: 1px solid #e1e7ed;
    border-radius: 0;
    background: #fff;
    color: #1d2531;
    font-size: 14px;
    font-weight: 400;
}

.project-type-option:first-child,
.flow-choice:first-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.project-type-option:last-child,
.flow-choice:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    margin-right: 0;
}

.project-type-option.active,
.flow-choice.active {
    border-color: #006bff;
    color: #006bff;
    z-index: 1;
}

.new-project-custom-fields {
    margin-top: 0;
}

.new-project-step-content.step1 .new-project-form {
    padding-bottom: 0;
}

.new-project-step-content.step1 .new-project-fields {
    width: auto;
    max-width: none;
    padding: 20px 24px 0;
}

.new-project-step-content.step1 .new-project-fields > .new-project-field {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    column-gap: 16px;
    align-items: start;
    margin-bottom: 24px;
}

.new-project-step-content.step1 .new-project-fields > .new-project-field > label {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding-right: 0;
    margin-bottom: 0;
    line-height: 32px;
    justify-content: flex-end;
    text-align: right;
}

.new-project-step-content.step1 .new-project-name-input,
.new-project-step-content.step1 .new-project-remark-input {
    width: 100%;
}

.new-project-step-content.step1 .project-type-options {
    width: 100%;
    flex-wrap: wrap;
    gap: 0;
}

.new-project-step-content.step1 .new-project-fields > .new-project-custom-fields {
    margin-top: 4px;
}

.new-project-step-content.step1 .project-type-option {
    flex: 0 0 auto;
    min-width: auto;
    padding: 0 16px;
    font-size: 14px;
    white-space: nowrap;
    margin-right: 0;
    border-radius: 0;
}

.new-project-step-content.step1 .project-type-option:first-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.new-project-step-content.step1 .project-type-option:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.new-project-step-content.step1 .new-project-custom-fields .new-project-field {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    column-gap: 16px;
    align-items: start;
    margin-bottom: 24px;
}

.new-project-step-content.step1 .new-project-custom-fields .new-project-field:last-child {
    margin-bottom: 0;
}

.new-project-step-content.step1 .new-project-custom-fields .new-project-field > label {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    height: 32px;
    padding-right: 0;
    line-height: 32px;
    text-align: right;
}

.new-project-step-content.step1 .new-project-radio-group {
    min-height: 32px;
    padding-top: 2px;
}

@media (max-width: 1480px) {
    .new-project-step-content.step1 .new-project-fields {
        padding-right: 16px;
        padding-left: 16px;
    }

    .new-project-step-content.step1 .new-project-fields > .new-project-field,
    .new-project-step-content.step1 .new-project-custom-fields .new-project-field {
        grid-template-columns: 96px minmax(0, 1fr);
        column-gap: 12px;
    }
}

.new-project-radio-group {
    gap: 24px;
    min-height: 32px;
    align-items: center;
}

.new-project-preview,
.new-project-dialog-preview {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.preview-phone,
.dialog-phone {
    width: 365px;
    height: 650px;
    margin: 16px auto;
    padding: 0;
    border: 1px solid #e1e7ed;
    border-radius: 24px;
    background: #fff;
    overflow: hidden;
}

.preview-header,
.dialog-phone-header {
    min-height: 74px;
    margin-bottom: 0;
    padding: 16px;
    border-bottom: 0;
}

.preview-title,
.dialog-preview-name {
    font-size: 16px;
    font-weight: 600;
    color: #1d2531;
}

.preview-tag {
    background: #f7f9fa;
    color: #657083;
    border-radius: 4px;
    padding: 0 8px;
    font-size: 12px;
    line-height: 24px;
}

.preview-message {
    margin: 0 16px 16px;
    padding: 0;
    background: transparent;
    color: #1d2531;
    font-size: 14px;
    line-height: 24px;
}

.preview-orb {
    margin: 40px auto 0;
}

.preview-hint {
    margin-bottom: 20px;
    font-size: 14px;
}

.preview-actions {
    gap: 12px;
    margin-bottom: 16px;
}

.preview-action {
    width: 88px;
    height: 36px;
    border-radius: 18px;
    font-size: 12px;
}

.dialog-preview-suggestions {
    padding: 16px;
    gap: 16px;
}

.dialog-preview-item {
    min-height: 24px;
    padding: 0;
    background: transparent;
    font-size: 14px;
    line-height: 24px;
    color: #1d2531;
}

.dialog-phone-input {
    margin: auto 16px 16px;
    min-height: 96px;
    padding: 12px;
    border: 1px solid #edf1f5;
    border-radius: 8px;
    grid-template-columns: 1fr 32px;
    align-items: end;
}

.dialog-send-btn {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #7dd0ff;
}

.new-project-step-content.step2 .new-project-flow-wrap {
    width: 100%;
}

.new-project-step-content.step2 .flow-body {
    padding: 20px 24px 0;
}

.new-project-step-content.step2 .flow-group {
    margin-bottom: 28px;
}

.new-project-step-content.step2 .flow-group:last-child {
    margin-bottom: 0;
}

.new-project-step-content.step2 .flow-group h3 {
    margin-bottom: 16px;
}

.new-project-step-content.step2 .agent-list-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    margin-top: 16px;
}

.agent-add-btn,
.agent-remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 12px;
    border: 1px solid #e1e7ed;
    border-radius: 4px;
    background: #fff;
    color: #006bff;
    cursor: pointer;
}

.agent-add-btn {
    gap: 8px;
    padding: 0 14px 0 10px;
    border-color: transparent;
    background: transparent;
    color: #1d2531;
}

.agent-add-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #398cff;
    color: #fff;
    line-height: 24px;
    font-weight: 600;
}

.agent-add-text {
    display: inline-flex;
    align-items: center;
    line-height: 22px;
    color: #1d2531;
}

.agent-remaining-count {
    color: #ff4d4f;
}

.agent-add-btn:disabled {
    color: #9ea7b8;
    cursor: not-allowed;
}

.agent-add-btn:disabled .agent-add-icon {
    background: #bfc9d5;
}

.agent-add-btn:disabled .agent-add-text,
.agent-add-btn:disabled .agent-remaining-count {
    color: #9ea7b8;
}

.agent-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.agent-item {
    padding: 16px;
    border: 1px solid #edf1f5;
    border-radius: 8px;
    background: #f9fbfd;
}

.agent-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.agent-item-title-wrap {
    min-width: 0;
}

.agent-item-title {
    color: #1d2531;
    line-height: 22px;
    font-weight: 600;
}

.new-project-step-content.step2 .flow-row {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    column-gap: 12px;
    align-items: var(--flow-row-align);
    margin-bottom: 16px;
}

.new-project-step-content.step2 .flow-row:last-child {
    margin-bottom: 0;
}

.new-project-step-content.step2 .flow-row > label {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 32px;
    padding-right: 0;
    line-height: 32px;
    text-align: right;
}

.new-project-step-content.step2 .flow-choice-group {
    min-height: 32px;
}

.new-project-step-content.step2 .flow-inline-input {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.new-project-step-content.step2 .flow-inline-input .flow-input {
    width: 100%;
}

.new-project-step-content.step2 .agent-provider-panel {
    margin-top: 16px;
}

.new-project-step-content.step2 .agent-provider-panel .flow-row {
    margin-bottom: 16px;
}

.new-project-step-content.step2 .agent-provider-panel .flow-row:last-child {
    margin-bottom: 0;
}

.custom-select-advanced__body {
    display: grid;
    grid-template-columns: auto auto 20px minmax(0, 1fr);
    column-gap: 10px;
    row-gap: 8px;
    align-items: center;
    min-height: 32px;
    min-width: 0;
}

.custom-select-switch {
    grid-column: 1;
}

.custom-select-switch-text {
    grid-column: 2;
    color: #303b4a;
    line-height: 22px;
}

.custom-select-help {
    position: relative;
    grid-column: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 1px solid #d7deea;
    border-radius: 50%;
    color: #8a96a8;
    font-size: 12px;
    line-height: 1;
    cursor: help;
    user-select: none;
}

.custom-select-help-popover {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    display: none;
    width: 264px;
    padding: 8px 10px;
    border: 1px solid #e3e8f0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(31, 45, 61, 0.14);
    color: #657083;
    font-size: 12px;
    line-height: 18px;
    text-align: left;
    transform: translateX(-50%);
    z-index: 8;
}

.custom-select-help:hover .custom-select-help-popover,
.custom-select-help:focus .custom-select-help-popover {
    display: block;
}

.custom-select-config-panel {
    grid-column: 1 / -1;
    margin-top: 8px;
    padding: 14px;
    border: 1px solid #edf1f5;
    border-radius: 8px;
    background: #f9fbfd;
}

.custom-select-config-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.custom-select-config-grid label,
.custom-select-options-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #657083;
    font-size: 12px;
}

.custom-select-options-field {
    margin-top: 12px;
}

.custom-select-options-field small {
    color: #98a2b3;
    line-height: 18px;
}

.new-project-step-content.step3 .custom-select-config-code-input {
    min-height: 240px;
    resize: vertical;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 12px;
    line-height: 18px;
}

.custom-select-payload-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
    color: #657083;
    font-size: 12px;
}

.custom-select-payload-preview {
    min-height: 72px;
    margin: 0;
    padding: 10px;
    border: 1px solid #edf1f5;
    border-radius: 6px;
    background: #fff;
    color: #303b4a;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 12px;
    line-height: 18px;
    white-space: pre-wrap;
}

.new-project-step-content.step3 .custom-select-agent-tip {
    margin-top: 8px;
}

.dialog-runtime-access-row {
    --flow-row-align: start;
}

.dialog-runtime-access-row > label {
    padding-top: 15px;
}

.dialog-runtime-access-config {
    min-width: 0;
}

.dialog-runtime-access-options {
    overflow: hidden;
    border: 1px solid #e4e9f0;
    border-radius: 8px;
    background: #fff;
}

.dialog-runtime-access-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 62px;
    padding: 11px 14px;
}

.dialog-runtime-access-option + .dialog-runtime-access-option {
    border-top: 1px solid #edf1f5;
}

.dialog-runtime-access-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    gap: 3px;
}

.dialog-runtime-access-copy strong {
    color: #303b4a;
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
}

.dialog-runtime-access-copy span,
.dialog-runtime-access-tip {
    color: #98a2b3;
    font-size: 12px;
    line-height: 18px;
}

.dialog-runtime-access-tip {
    margin-top: 8px;
}

.dialog-runtime-access-guide {
    margin-top: 12px;
    padding: 14px;
    border: 1px solid #dce8f8;
    border-radius: 8px;
    background: #f7fbff;
}

.dialog-runtime-access-guide[hidden],
.dialog-runtime-access-guide-item[hidden] {
    display: none;
}

.dialog-runtime-access-guide-header {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 10px;
}

.dialog-runtime-access-guide-header strong {
    color: #303b4a;
    font-size: 13px;
    line-height: 20px;
}

.dialog-runtime-access-guide-header span,
.dialog-runtime-access-guide p {
    color: #7d899b;
    font-size: 12px;
    line-height: 18px;
}

.dialog-runtime-access-guide-item {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 8px;
    align-items: baseline;
    padding: 6px 0;
    color: #657083;
    font-size: 12px;
}

.dialog-runtime-access-guide-item code {
    overflow-wrap: anywhere;
    color: #315f9b;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 12px;
}

.dialog-runtime-access-guide p {
    margin: 8px 0 0;
    padding-top: 10px;
    border-top: 1px solid #e3edf8;
}

.new-project-step-content.step2 .agent-display-name-field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.new-project-step-content.step2 .agent-display-name-field .flow-input {
    width: 100%;
}

.new-project-step-content.step2 .agent-display-name-field .flow-input.is-invalid {
    border-color: #ff4d4f;
}

.new-project-step-content.step2 .agent-display-name-tip {
    margin-top: 8px;
    color: #9ea7b8;
    line-height: 20px;
}

.new-project-step-content.step2 .agent-description-tip {
    position: relative;
}

.agent-description-preview-trigger {
    position: relative;
    display: inline-flex;
    margin-left: 8px;
    color: #006bff;
    cursor: default;
}

.agent-description-preview-popover {
    position: absolute;
    left: 0;
    bottom: calc(100% + 10px);
    z-index: 20;
    display: none;
    width: 360px;
    padding: 8px;
    border: 1px solid #d8e1ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(29, 37, 49, 0.18);
}

.agent-description-preview-popover img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.agent-description-preview-trigger:hover .agent-description-preview-popover,
.agent-description-preview-trigger:focus .agent-description-preview-popover,
.agent-description-preview-trigger:focus-within .agent-description-preview-popover {
    display: block;
}

.agent-description-error {
    min-height: 18px;
    margin-top: 6px;
    color: #ff4d4f;
    font-size: 12px;
    line-height: 18px;
}

.new-project-step-content.step2 .openclaw-guide-tip a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #006bff;
    text-decoration: none;
}

.new-project-step-content.step2 .openclaw-guide-tip a:hover {
    text-decoration: underline;
}

.new-project-step-content.step2 .openclaw-guide-icon {
    font-size: 12px;
    line-height: 1;
}

.new-project-step-content.step3 .dialog-setting-body {
    padding: 20px 24px 0;
}

.new-project-step-content.step3 .flow-row {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    column-gap: 12px;
    align-items: var(--flow-row-align);
    margin-bottom: 16px;
}

.new-project-step-content.step3 .flow-row:last-child {
    margin-bottom: 0;
}

.new-project-step-content.step3 .flow-row > label {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 32px;
    padding-right: 0;
    line-height: 32px;
    text-align: right;
}

.new-project-step-content.step3 .dialog-theme-row {
    align-items: center;
}

.new-project-step-content.step3 .dialog-theme-options {
    min-height: 32px;
    gap: 14px;
    align-items: center;
}

.dialog-avatar-config,
.dialog-avatar-upload-config {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    min-height: 32px;
    padding-top: 2px;
}

.dialog-avatar-config {
    align-items: center;
}

.dialog-avatar-mode-group {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
}

.dialog-avatar-mode-group .flow-choice + .flow-choice {
    margin-left: -1px;
}

.dialog-avatar-mode-group .flow-choice {
    border-radius: 0;
}

.dialog-avatar-mode-group .flow-choice:first-child {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.dialog-avatar-mode-group .flow-choice:last-child {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

.dialog-avatar-upload-input {
    position: absolute;
    inset: 0;
    width: 96px;
    min-width: 96px;
    max-width: 96px;
    padding: 0;
    border: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}

.dialog-avatar-upload-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    padding: 0;
    border: 1px solid #d8e1ec;
    border-radius: 12px;
    background: #f8fafc;
    color: #657083;
    cursor: pointer;
    font-size: 14px;
    line-height: 20px;
    flex: 0 0 auto;
    overflow: hidden;
}

.dialog-avatar-upload-trigger:hover {
    background: #eef4ff;
}

.dialog-avatar-upload-trigger span {
    pointer-events: none;
}

.dialog-avatar-upload-plus {
    font-size: 36px;
    line-height: 1;
    color: #98a2b3;
}

.dialog-avatar-upload-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dialog-avatar-remove-btn {
    align-self: flex-start;
    padding: 0;
    border: 0;
    background: transparent;
    color: #8a94a7;
    font-size: 12px;
    line-height: 18px;
    cursor: pointer;
}

.dialog-avatar-remove-btn:hover {
    color: #5f6b7c;
}

.dialog-avatar-upload-tip {
    max-width: 280px;
    margin-top: 0;
    color: #98a2b3;
    font-size: 12px;
    line-height: 18px;
}

.dialog-attachment-config {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-height: 32px;
    padding-top: 2px;
}

.dialog-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 44px;
    height: 24px;
    cursor: pointer;
}

.dialog-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.dialog-switch-slider {
    position: relative;
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: #cfd7e3;
    transition: background 0.2s ease;
}

.dialog-switch-slider::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(29, 37, 49, 0.18);
    transition: transform 0.2s ease;
}

.dialog-switch input:checked + .dialog-switch-slider {
    background: #006bff;
}

.dialog-switch input:checked + .dialog-switch-slider::after {
    transform: translateX(20px);
}

.dialog-attachment-options {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.dialog-attachment-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1d2531;
    line-height: 22px;
}

.dialog-attachment-tip {
    margin-top: -4px;
}

.new-project-step-content.step3 .dialog-example-list {
    width: 100%;
}

.dialog-card-setting,
.dialog-recommendation-setting {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 32px;
}

.dialog-recommendation-setting {
    flex-direction: row;
}

.dialog-card-config {
    margin: 4px 0 20px;
    padding: 16px 0 4px;
    border-top: 1px solid #edf1f5;
    border-bottom: 1px solid #edf1f5;
}

.dialog-card-template {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px;
    border: 1px solid #9dc4f5;
    border-radius: 6px;
    background: #f7fbff;
}

.dialog-card-template-preview {
    width: 68px;
    height: 48px;
    border-radius: 5px;
    background:
        linear-gradient(#cfe2fa 0 0) 8px 8px / 22px 32px no-repeat,
        linear-gradient(#dce6f2 0 0) 36px 11px / 24px 5px no-repeat,
        linear-gradient(#e8eef5 0 0) 36px 21px / 20px 4px no-repeat,
        linear-gradient(#e8eef5 0 0) 36px 29px / 16px 4px no-repeat,
        #fff;
    border: 1px solid #dce6f0;
    flex: 0 0 auto;
}

.dialog-card-template strong {
    display: block;
}

.dialog-card-list-wrap {
    width: 100%;
}

.dialog-card-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dialog-card-item {
    padding: 14px;
    border: 1px solid #dfe6ef;
    border-radius: 8px;
    background: #f9fbfd;
}

.dialog-card-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.dialog-card-remove-btn {
    padding: 0;
    border: 0;
    background: transparent;
    color: #8a94a7;
    cursor: pointer;
}

.dialog-card-remove-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.dialog-card-fields {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    column-gap: 10px;
    row-gap: 12px;
}

.dialog-card-fields > label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #657083;
    font-size: 12px;
}

.dialog-card-field-wide {
    grid-column: 1 / -1;
}

.dialog-card-action-field,
.dialog-card-target-row,
.dialog-card-background-type-field,
.dialog-card-solid-fields,
.dialog-card-custom-background-field {
    grid-column: 1 / -1;
}

.dialog-card-solid-fields,
.dialog-card-custom-background-field {
    display: flex;
}

.dialog-card-solid-fields > label,
.dialog-card-custom-background-field > label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    color: #657083;
    font-size: 12px;
}

.dialog-card-custom-background-field small {
    color: #98a2b3;
    line-height: 18px;
}

.dialog-card-color-control {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
}

.dialog-card-color-picker {
    width: 36px;
    height: 32px;
    padding: 2px;
    border: 1px solid #d8e1ec;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
}

.dialog-card-color-text {
    min-width: 0;
    text-transform: uppercase;
}

.dialog-card-image-upload {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border: 1px dashed #b7c4d3;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}

.dialog-card-image-upload img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dialog-card-image-placeholder {
    align-items: center;
    justify-content: center;
    color: #8a94a7;
}

.dialog-card-image-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.dialog-card-target-row {
    display: flex;
}

.dialog-card-error {
    min-height: 18px;
    margin-top: 8px;
    color: #ff4d4f;
    font-size: 12px;
}

.dialog-card-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 36px;
    margin-top: 12px;
    border: 1px dashed #d7dee8;
    border-radius: 4px;
    background: #fff;
    color: #303b4a;
    font-size: 13px;
    cursor: pointer;
}

.dialog-card-add-btn:hover {
    border-color: #aeb9c8;
    background: #fafbfc;
}

.dialog-card-add-icon {
    color: #53627a;
    font-size: 16px;
    line-height: 1;
}

.dialog-card-add-btn:disabled {
    color: #9ea7b8;
    border-color: #d7dee8;
    background: #f8fafc;
    cursor: not-allowed;
}

.new-project-step-content.step3 .dialog-example-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24px;
    gap: 8px;
    margin-bottom: 8px;
}

.new-project-step-content.step3 .dialog-example-remove {
    align-self: center;
}

.new-project-step-content.step3 .dialog-phone {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    border-radius: 24px;
    background: #f7f9fa;
}

.new-project-step-content.step3 .dialog-phone-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 16px;
}

.new-project-step-content.step3 .dialog-header-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.new-project-step-content.step3 .dialog-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex: 0 0 auto;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.new-project-step-content.step3 .dialog-header-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.new-project-step-content.step3 .dialog-preview-name {
    line-height: 24px;
}

.new-project-step-content.step3 .dialog-preview-subtitle {
    margin-top: 2px;
    color: #657083;
    line-height: 20px;
}

.new-project-step-content.step3 .dialog-preview-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 auto;
    min-height: 0;
    padding: 8px 16px;
    overflow-y: auto;
}

.dialog-preview-card-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    order: 0;
}

.project-detail-preview-stage {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    padding: 8px 16px;
    overflow-y: auto;
}

.project-detail-preview-stage .dialog-preview-suggestions {
    padding: 0;
    order: 1;
}

.dialog-preview-card-list.is-composer {
    order: 2;
    margin-top: auto;
}

.new-project-step-content.step3 .dialog-preview-suggestions {
    order: 1;
    padding: 0;
}

.dialog-preview-card {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 9px;
    border: 1px solid #e2e8ef;
    border-radius: 8px;
    background: #fff;
}

.dialog-preview-card.is-title-only {
    grid-column: 1 / -1;
    min-height: 38px;
    justify-content: center;
    padding: 9px 14px;
    background: #f7f9fc;
}

.dialog-preview-card.is-title-only .dialog-preview-card-copy strong {
    font-size: 12px;
}

.dialog-preview-card img,
.dialog-preview-card-placeholder {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 50%;
    object-fit: cover;
    background: #dbe9fa;
}

.dialog-preview-card-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dialog-preview-card-copy strong,
.dialog-preview-card-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dialog-preview-card-copy strong {
    color: #29374a;
    font-size: 11px;
}

.dialog-preview-card-copy small {
    margin-top: 4px;
    color: #8490a2;
    font-size: 9px;
}

.new-project-step-content.step3 .dialog-phone-input {
    position: relative;
    min-height: 104px;
    margin: 0 16px 16px;
    padding: 14px 52px 14px 16px;
    border: 1px solid #e8edf3;
    border-radius: 10px;
    background: #fff;
    box-sizing: border-box;
}

.new-project-step-content.step3 .dialog-preview-placeholder {
    width: 100%;
    min-height: 72px;
    padding: 0 0 34px;
    border: 0;
    resize: none;
    background: transparent;
    color: #9ea7b8;
    line-height: 22px;
    overflow: hidden;
    text-align: left;
    font-size: 14px;
}

.new-project-step-content.step3 .dialog-custom-select-preview {
    position: absolute;
    left: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    max-width: 128px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #e1e7ed;
    border-radius: 9px;
    background: #fff;
    color: #3160a8;
    cursor: pointer;
    z-index: 1;
}

.new-project-step-content.step3 .dialog-custom-select-preview span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    line-height: 18px;
    pointer-events: none;
}

.new-project-step-content.step3 .dialog-custom-select-preview i {
    flex: 0 0 auto;
    color: #8ba0bb;
    font-style: normal;
    line-height: 1;
    pointer-events: none;
}

.new-project-step-content.step3 .dialog-custom-select-preview-menu {
    position: absolute;
    left: 12px;
    bottom: 50px;
    display: none;
    width: 240px;
    max-height: 184px;
    padding: 6px;
    border: 1px solid #e3e8f0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(31, 45, 61, 0.14);
    overflow-y: auto;
    z-index: 6;
}

.new-project-step-content.step3 .dialog-custom-select-preview-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px 62px;
    column-gap: 6px;
    align-items: center;
    width: 100%;
    min-height: 34px;
    padding: 6px 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #1f2d3d;
    text-align: left;
    cursor: pointer;
}

.new-project-step-content.step3 .dialog-custom-select-preview-item:hover,
.new-project-step-content.step3 .dialog-custom-select-preview-item.is-active {
    background: #f0f4f8;
}

.new-project-step-content.step3 .dialog-custom-select-preview-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    line-height: 20px;
}

.new-project-step-content.step3 .dialog-custom-select-preview-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 24px;
    padding: 0 8px;
    border: 1px solid #d9dde3;
    border-radius: 999px;
    background: #f7f8fa;
    color: #7b8491;
    font-size: 12px;
    line-height: 18px;
    white-space: nowrap;
}

.new-project-step-content.step3 .dialog-preview-placeholder:focus {
    outline: none;
}

.new-project-step-content.step3 .dialog-send-btn {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #7dd0ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dialog-attachment-preview-btn {
    position: absolute;
    left: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #e1e7ed;
    border-radius: 50%;
    background: #fff;
    color: #657083;
    cursor: default;
    z-index: 1;
}

@media (max-width: 1480px) {
    .new-project-step-content.step2 .flow-body {
        padding-right: 16px;
        padding-left: 16px;
    }

    .new-project-step-content.step2 .flow-row {
        grid-template-columns: 124px minmax(0, 1fr);
        column-gap: 12px;
    }

    .new-project-step-content.step3 .dialog-setting-body {
        padding-right: 16px;
        padding-left: 16px;
    }

    .new-project-step-content.step3 .flow-row {
        grid-template-columns: 124px minmax(0, 1fr);
        column-gap: 12px;
    }
}

.flow-body,
.dialog-setting-body {
    padding: 16px;
}

.flow-group {
    margin-bottom: 24px;
}

.flow-group h3 {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #1d2531;
}

.flow-row {
    grid-template-columns: 86px 1fr;
    margin-bottom: 12px;
}

.flow-row > label {
    padding-right: 8px;
    line-height: 32px;
    font-size: 14px;
    color: #657083;
}

.dialog-theme-options {
    gap: 14px;
}

.dialog-theme-option {
    width: 24px;
    height: 24px;
}

.dialog-example-item {
    grid-template-columns: 1fr 24px;
}

.dialog-example-remove {
    font-size: 16px;
}

.new-project-footer {
    height: 56px;
    padding: 12px 24px;
    background: transparent;
}

.new-project-body .new-project-step-content.step1 .new-project-preview,
.new-project-body .new-project-step-content.step3 .new-project-dialog-preview {
    padding-left: 0;
}

.new-project-body .new-project-step-content.step1 .preview-phone,
.new-project-body .new-project-step-content.step3 .dialog-phone {
    margin: 16px auto;
}

.new-project-cancel-btn,
.new-project-next-btn {
    height: 32px;
    min-width: 60px;
    padding: 0 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 400;
}

.new-project-cancel-btn {
    border: 1px solid #e1e7ed;
    background: #fff;
    color: #1d2531;
}

.new-project-next-btn {
    border: 0;
    background: #006bff;
    color: #fff;
}

.new-project-step-content.step3 {
    position: relative;
}

.requirement-fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 2400;
    height: 46px;
    padding: 0 18px;
    border: 1px solid rgba(20, 31, 46, 0.08);
    border-radius: 999px;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.24), transparent 48%),
        linear-gradient(135deg, #1d2531 0%, #2a5d8f 100%);
    color: #fff;
    font-size: 14px;
    line-height: 44px;
    letter-spacing: 0.02em;
    box-shadow: 0 16px 36px rgba(24, 39, 58, 0.22);
    cursor: grab;
    touch-action: none;
    user-select: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.requirement-fab:active {
    cursor: grabbing;
}

.requirement-fab:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 40px rgba(24, 39, 58, 0.26);
}

.requirement-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 420px;
    max-width: calc(100vw - 24px);
    border: 1px solid rgba(20, 31, 46, 0.08);
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(247, 250, 252, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
    box-shadow: -18px 0 44px rgba(17, 24, 39, 0.14);
    backdrop-filter: blur(14px);
    overflow: hidden;
    display: none;
    flex-direction: column;
    z-index: 2300;
}

.requirement-panel.open {
    display: flex;
}

.requirement-panel[data-align-x="right"] {
    right: 0;
    left: auto;
}

.requirement-panel[data-align-y="down"] {
    top: 0;
    bottom: 0;
}

.requirement-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px 16px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.92);
    cursor: default;
    background:
        linear-gradient(135deg, rgba(33, 79, 122, 0.08) 0%, rgba(246, 250, 255, 0) 72%);
}

.requirement-panel-heading {
    min-width: 0;
}

.requirement-panel-kicker {
    display: inline-block;
    margin-bottom: 6px;
    color: #6c7a90;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.requirement-panel-header h3 {
    margin: 0;
    color: #18202b;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
}

.requirement-panel-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.requirement-panel-drag {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(36, 88, 140, 0.08);
    color: #5f6f85;
    font-size: 11px;
    line-height: 16px;
    letter-spacing: 0.04em;
}

.requirement-panel-close {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: rgba(237, 242, 247, 0.9);
    color: #607086;
    font-size: 18px;
    cursor: pointer;
}

.requirement-panel-close:hover {
    background: #e6edf5;
}

.requirement-panel-body {
    flex: 1;
    min-height: 0;
    padding: 18px 20px 20px;
    overflow-y: auto;
}

.requirement-summary-card {
    padding: 16px;
    border: 1px solid #e3eaf2;
    border-radius: 10px;
    background: #fff;
}

.requirement-summary-card + .requirement-summary-card {
    margin-top: 12px;
}

.requirement-summary-card.is-current {
    border-color: rgba(36, 88, 140, 0.28);
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

.requirement-summary-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    color: #7a8798;
    font-size: 12px;
}

.requirement-summary-meta time {
    white-space: nowrap;
}

.requirement-summary-card h4 {
    margin: 0 0 12px;
    color: #18202b;
    font-size: 16px;
    line-height: 22px;
}

.requirement-summary-card > p {
    margin: 0;
    color: #607086;
    font-size: 13px;
    line-height: 22px;
}

.requirement-block + .requirement-block {
    margin-top: 14px;
}

.requirement-block strong {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #253447;
    letter-spacing: 0.02em;
}

.requirement-block p {
    margin: 0;
    color: #607086;
    font-size: 13px;
    line-height: 22px;
    text-wrap: pretty;
}

@media (max-width: 1360px) {
    .new-project-modal {
        left: 236px;
    }

    .new-project-steps {
        padding: 14px 120px;
    }

    .new-project-step-content.step1,
    .new-project-step-content.step3 {
        grid-template-columns: 1fr;
    }

    .new-project-step-content.step1,
    .new-project-step-content.step3 {
        grid-template-columns: 1fr 520px;
    }

    .requirement-panel {
        width: min(420px, 100vw);
        max-width: 100vw;
    }
}
