* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: #FFFFFF;
    color: #1F2328;
    line-height: 1.4;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: normal;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.app-header {
    width: 100%;
    height: auto;
    background-color: #FFFFFF;
    color: #1F2328;
    padding: 20px 16px;
    border-radius: 6px;
    margin: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid #D1D9E0;
}

.header-content {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

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

.header-content h1 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #068487;
}

.user-info {
    font-size: 16px;
    font-weight: bold;
    margin-left: 20px;
    margin-right: 20px;
    margin-top: 20px;
}

.logo {
    font-size: 18px;
    font-weight: normal;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #068487;
    background-color: #FFFFFF;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.logo:hover {
    color: #1F2328;
}

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

.header-avatar-small {
    display: flex;
    align-items: center;
    /* margin-right: 8px; */ /* Removed since avatar is now on the right */
}

.header-info {
    display: flex;
    gap: 10px;
    font-size: 14px;
    color: #1F2328;
    flex-wrap: wrap;
    align-items: center;
}

.user-name {
    color: #1F2328;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.logout-btn {
    color: #068487;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    font-weight: bold;
}

.logout-btn:hover {
    color: #1F2328;
}

.logout-button {
    padding: 10px 20px;
    background-color: #FFFFFF;
    color: #59636E;
    border: 1px solid #D1D9E0;
    border-radius: 6px;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 21px;
    font-weight: 500;
    transition: all 0.2s;
}

.logout-button:hover {
    background-color: #F6F8FA;
    border-color: #1F2328;
}

.welcome-section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 84px);
    text-align: center;
}

.welcome-content {
    max-width: 400px;
    background-color: #FFFFFF;
    border-radius: 6px;
    padding: 40px;
}

.welcome-logo {
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
}

.welcome-content h1 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #1F2328;
}

.welcome-content p {
    margin: 0 0 5px 0;
    color: #1F2328;
    line-height: 1.4;
}

.auth-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1F2328;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.auth-btn:hover {
    background-color: #30363D;
}

.container {
    margin-top: 68px;
    margin-bottom: 0;
    width: 100%;
    height: calc(100vh - 50px);
    overflow: hidden;
}

.main-layout {
    display: grid;
    grid-template-columns: 430px 1fr 430px;
    height: 100%;
    column-gap: 10px;
    padding: 35px 20px 20px 20px;
    align-items: start;
    overflow: hidden;
}

.left-column,
.right-column {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 110px);
    overflow-y: auto;
    overflow-x: hidden;
}

.left-column::-webkit-scrollbar,
.right-column::-webkit-scrollbar {
    width: 8px;
}

.left-column::-webkit-scrollbar-track,
.right-column::-webkit-scrollbar-track {
    background: transparent;
}

.left-column::-webkit-scrollbar-thumb,
.right-column::-webkit-scrollbar-thumb {
    background: #D1D9E0;
    border-radius: 4px;
}

.left-column::-webkit-scrollbar-thumb:hover,
.right-column::-webkit-scrollbar-thumb:hover {
    background: #656D76;
}

.center-column {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 110px);
    overflow: hidden;
    margin-top: 0px;
}

.chat-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #FFFFFF;
    border: 1px solid #D1D9E0;
    border-radius: 8px;
    padding-top: 15px;
    margin-top: 0;
    margin-bottom: 20px;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 5px;
}

.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #D1D9E0;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #656D76;
}

.message {
    padding: 10px 12px;
    margin: 10px 0;
    max-width: 100%;
    width: 100%;
    word-wrap: break-word;
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.2s ease;
    animation: message-appear 0.3s ease-out;
    position: relative;
    border-radius: 8px;
}

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

.typing-indicator {
    padding: 6px 12px;
    margin: 10px 0;
    max-width: 85%;
    background-color: transparent;
    border-radius: 8px;
    align-self: flex-start;
    animation: message-appear 0.3s ease-out;
}

.typing-dots {
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-dots span {
    width: 5px;
    height: 5px;
    background-color: #656D76;
    border-radius: 50%;
    display: inline-block;
    animation: typing 1.4s infinite;
}

.typing-dots span:nth-child(1) {
    animation-delay: 0s;
}

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

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

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Reminder pulse animation */
.reminder-pulse {
    width: 8px;
    height: 8px;
    background-color: #068487;
    border-radius: 50%;
    display: inline-block;
    -webkit-animation: pulse 1.5s ease-in-out infinite;
    animation: pulse 1.5s ease-in-out infinite;
}

@-webkit-keyframes pulse {
    0%, 100% {
        opacity: 1;
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    50% {
        opacity: 0.2;
        -webkit-transform: scale(1.3);
        transform: scale(1.3);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    50% {
        opacity: 0.2;
        -webkit-transform: scale(1.3);
        transform: scale(1.3);
    }
}

/* Overdue task pulse animation */
.overdue-pulse {
    display: inline-block !important;
    width: 8px !important;
    height: 8px !important;
    background-color: #d73a49 !important;
    border-radius: 50% !important;
    margin-right: 8px !important;
    vertical-align: middle;
    -webkit-animation: pulse-overdue 1s ease-in-out infinite !important;
    animation: pulse-overdue 1s ease-in-out infinite !important;
    animation-play-state: running !important;
    flex-shrink: 0;
}

@-webkit-keyframes pulse-overdue {
    0%, 100% {
        opacity: 1;
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    50% {
        opacity: 0.2;
        -webkit-transform: scale(1.3);
        transform: scale(1.3);
    }
}

@keyframes pulse-overdue {
    0%, 100% {
        opacity: 1;
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    50% {
        opacity: 0.2;
        -webkit-transform: scale(1.3);
        transform: scale(1.3);
    }
}

.message.user {
    background-color: transparent;
    color: #1F2328;
    align-self: flex-start;
    margin-right: auto;
    padding: 6px 12px;
}

.message.user .message-text {
    font-weight: 400;
    font-size: 14px;
    color: #656D76;
    text-align: justify;
}

.message.ai {
    background-color: transparent;
    color: #1F2328;
    align-self: flex-start;
}

.message.ai:hover {
    background-color: transparent;
    box-shadow: none;
}

.message.ai .message-text {
    font-weight: 400;
    font-size: 14px;
    color: #1F2328;
    line-height: 1.6;
    text-align: justify;
}

.message-text {
    word-wrap: break-word;
    line-height: 1.6;
    width: 100%;
    margin-bottom: 0;
}

.message-time {
    font-size: 12px;
    color: #8C959F;
    margin-top: 4px;
    opacity: 0.6;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
}

.message-time {
    font-size: 12px;
    margin-top: 6px;
    opacity: 0.7;
    font-weight: 400;
}

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

.quick-actions button {
    padding: 8px 12px;
    background-color: #FFFFFF;
    border: 1px solid #D1D9E0;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    color: #1F2328;
    transition: all 0.2s;
}

.quick-actions button:hover {
    background-color: #F6F8FA;
    border-color: #068487;
}

.chat-input {
    display: flex;
    gap: 10px;
    padding: 10px;
    background-color: #F6F8FA;
    border-top: 1px solid #D1D9E0;
}

.chat-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #D1D9E0;
    border-radius: 6px;
    background-color: #FFFFFF;
    color: #1F2328;
}

.chat-input input:focus {
    outline: none;
    border-color: #0969DA;
}

.chat-input button {
    padding: 10px 20px;
    background-color: #FFFFFF;
    color: #59636E;
    border: 1px solid #D1D9E0;
    border-radius: 6px;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    font-size: 14px;
    line-height: 21px;
    font-weight: 500;
    transition: all 0.2s;
}

.chat-input button:hover {
    background-color: #F6F8FA;
    border-color: #1F2328;
}

.context-section {
    padding: 12px;
    margin-bottom: -18px;
}

.context-section h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1F2328;
}

.context-item p {
    margin: 0 0 8px 0;
    color: #1F2328;
    line-height: 1.4;
}

.people-section {
    padding: 12px;
    border: none;
    border-radius: 8px;
    background-color: #FFFFFF;
    margin-top: 0;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: flex 0.3s ease;
}

.tasks-section {
    padding: 12px;
    border: none;
    border-radius: 8px;
    background-color: #FFFFFF;
    margin-top: 0;
    margin-bottom: 4px;
}

.task-stats-block {
    padding: 12px;
    border: none;
    border-radius: 8px;
    background-color: #FFFFFF;
    margin-bottom: -18px;
    margin-top: 0px;
}

.tasks-section-wrapper {
    padding: 12px;
    border: none;
    border-radius: 8px;
    background-color: #FFFFFF;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: flex 0.3s ease;
}

.tasks-section {
    /* Используем пагинацию */
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(100vh - 510px);
    scrollbar-width: thin;
    scrollbar-color: #D1D9E0 transparent;
    padding-top: 0;
}

.tasks-section::-webkit-scrollbar {
    width: 8px;
}

.tasks-section::-webkit-scrollbar-track {
    background: transparent;
}

.tasks-section::-webkit-scrollbar-thumb {
    background: #D1D9E0;
    border-radius: 4px;
}

.tasks-section::-webkit-scrollbar-thumb:hover {
    background: #656D76;
} */

.context-section {
    padding: 12px;
    border: none;
    border-radius: 0;
    background-color: transparent;
    margin-top: 0;
    margin-bottom: 4px;
    overflow-y: auto;
    box-shadow: none;
    transition: none;
}



.people-section h3,
.tasks-section h3 {
    margin: 0 0 15px 0;
    font-size: 14px;
    font-weight: 600;
    color: #1F2328;
    line-height: 21px;
}

.tasks-section ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.tasks-section li {
    padding: 10px 0;
}

.tasks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    margin-bottom: 12px;
    padding-bottom: 10px;
}

.tasks-header:hover {
    border-color: #1F2328;
    color: #1F2328;
}



.task-stats {
    padding: 10px;
    margin-bottom: 12px;
    background-color: transparent;
    border-radius: 0;
}

.stats-text {
    font-size: 12px;
    color: #656D76;
    margin-bottom: 6px;
}

.progress-bar {
    height: 6px;
    background-color: #D1D9E0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #068487;
    transition: width 0.3s ease;
}

.task-group {
    margin-bottom: 10px;
}

.task-group h4 {
    font-size: 13px;
    font-weight: 600;
    color: #1F2328;
    margin-bottom: 6px;
    padding-bottom: 4px;
}

.task-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 5px;
    margin-bottom: 0px;
    border-radius: 6px;
    border: none;
    background-color: transparent;
    transition: all 0.2s;
    gap: 8px;
}

.task-item:hover {
    background-color: transparent;
    transform: translateX(2px);
}

.task-content {
    flex: 1;
}

.task-title {
    font-size: 14px;
    font-weight: 400;
    color: #1F2328;
    margin: 0 0 2px 0;
    display: flex;
    align-items: center;
}

.task-meta {
    font-size: 12px;
    color: #656D76;
    line-height: 1.2;
}

.task-time {
    font-size: 12px;
    color: #656D76;
    margin: 0;
}

.task-status {
    font-size: 12px;
    color: #656D76;
    margin: 0;
}

.task-actions {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
    margin-left: 8px;
    flex-shrink: 0;
}

.quick-action {
    padding: 4px 8px;
    background-color: #FFFFFF;
    color: #59636E;
    border: 1px solid #D1D9E0;
    border-radius: 4px;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
    transition: all 0.2s;
    min-width: 24px;
    text-align: center;
}

.quick-action:hover {
    background-color: #F6F8FA;
    border-color: #1F2328;
}

.message-emoji {
    display: inline-block;
    padding: 2px 6px;
    background-color: #FFFFFF;
    border: 1px solid #D1D9E0;
    border-radius: 4px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    font-size: 14px;
    line-height: 18px;
    margin-right: 4px;
}


.people-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: calc(100vh - 510px);
    overflow-y: auto;
    overflow-x: hidden;
    transition: max-height 0.3s ease;
    scrollbar-width: thin;
    scrollbar-color: #D1D9E0 transparent;
    padding-right: 11px;
}

.people-list::-webkit-scrollbar {
    width: 8px;
}

.people-list::-webkit-scrollbar-track {
    background: transparent;
}

.people-list::-webkit-scrollbar-thumb {
    background-color: #D1D9E0;
    border-radius: 4px;
}

.people-list::-webkit-scrollbar-thumb:hover {
    background: #656D76;
}

.person-card {
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 6px;
    border: 1px solid #D1D9E0;
    background-color: #FFFFFF;
    transition: all 0.2s;
    cursor: default;
}

.person-card:hover {
    background-color: #F6F8FA;
    border-color: #068487;
    box-shadow: 0 1px 3px rgba(31, 35, 40, 0.12);
}

.person-card p {
    margin: 0;
    color: #1F2328;
    line-height: 1.5;
    font-size: 13px;
}

.person-card a {
    transition: color 0.2s;
}

.person-card a:hover {
    color: #0550ae !important;
    text-decoration: underline !important;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 10px;
    bottom: 0;
    width: 2px;
    background-color: #D1D9E0;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-item::after {
    display: none;
}

.timeline-marker {
    position: absolute;
    left: 9px;
    top: 10px;
    width: 12px;
    height: 12px;
    background-color: #068487;
    border-radius: 50%;
    border: 2px solid #FFFFFF;
    z-index: 1;
}

.timeline-content {
    background-color: #FFFFFF;
    padding: 10px 10px 10px 20px;
}

.task-item {
    padding: 0;
    margin-bottom: 0;
}

.task-item p {
    margin: 0 0 2px 0;
    color: #1F2328;
    line-height: 1.4;
}

.task-item small {
    color: #656D76;
    font-size: 14px;
}

@media (max-width: 768px) {
    body {
        font-size: 13px;
    }
    
    .app-header {
        padding: 12px 12px;
    }
    
    .header-content {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .logo {
        font-size: 16px;
    }
    
    #next-task-center {
        position: static !important;
        transform: none !important;
        left: auto !important;
        width: 100%;
        order: 3;
        justify-content: center;
        font-size: 12px;
        margin-top: 8px;
    }
    
    .header-info {
        font-size: 12px;
        white-space: normal;
    }
    
    .logout-btn {
        padding: 4px 8px;
        font-size: 12px;
    }
    
    .container {
        padding: 0 8px;
        margin-top: 100px;
    }
    
    .main-layout {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .left-column,
    .right-column {
        order: 2;
    }
    
    /* Скрыть чат в мобильной версии */
    .center-column {
        display: none !important;
    }
    
    .context-section,
    .people-section,
    .task-column {
        padding: 12px;
        max-height: none !important;
        overflow: visible !important;
    }
    
    .context-section h3,
    .people-section h3,
    .task-column h3 {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    /* Ограничить высоту для мобильных */
    .tasks-section,
    .people-list {
        max-height: calc(100vh - 510px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        scrollbar-width: thin !important;
        scrollbar-color: #D1D9E0 transparent !important;
    }
    
    .task-item {
        padding: 5px;
        margin-bottom: 4px;
    }
    
    .task-header h4 {
        font-size: 13px;
    }
    
    .task-actions {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .task-actions button {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .person-card {
        padding: 10px;
        margin-bottom: 8px;
    }
    
    .person-card p {
        font-size: 12px;
    }
    
    .message {
        padding: 8px;
        font-size: 12px;
        max-width: 90%;
    }
    
    .chat-input-container {
        padding: 8px;
    }
    
    #chat-input {
        font-size: 13px;
        padding: 8px;
    }
    
    .send-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}

.no-subscription-section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 84px);
    text-align: center;
}

.no-subscription-content {
    max-width: 400px;
    background-color: #FFFFFF;
    border-radius: 6px;
    padding: 40px;
}

.no-subscription-content h1 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #1F2328;
}

.no-subscription-content p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #656D76;
}

.no-subscription-content a {
    color: #656D76;
    text-decoration: none;
}

.no-subscription-content a:hover {
    text-decoration: underline;
}

.back-link {
    color: #068487;
    text-decoration: none;
}

.back-link:hover {
    color: #1F2328;
    text-decoration: none !important;
}

.button-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.auth-link {
    color: #656D76;
    font-size: 16px;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

.send-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #FFFFFF;
    color: #59636E !important;
    border: 1px solid #D1D9E0;
    border-radius: 6px;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 21px;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
}

.send-btn:hover {
    background-color: #F6F8FA;
    border-color: #1F2328;
    text-decoration: none;
}

.chat-action-btn {
    background-color: #FFFFFF;
    transition: all 0.2s;
}

.chat-action-btn:hover {
    background-color: #F6F8FA;
    border-color: #1F2328;
    box-shadow: 0 0 0 1px #1F2328;
}

.delete-btn {
    padding: 4px 8px;
    background-color: #FFFFFF;
    color: #59636E;
    border: 1px solid #D1D9E0;
    border-radius: 4px;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
    margin-left: 0;
    transition: all 0.2s;
    min-width: 24px;
    text-align: center;
}

.delete-btn:hover {
    background-color: #F6F8FA;
    border-color: #1F2328;
}

/* Rating Modal */
.rating-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(31, 35, 40, 0.7);
    align-items: center;
    justify-content: center;
}

.rating-modal-content {
    background-color: #FFFFFF;
    border-radius: 8px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 4px 16px rgba(31, 35, 40, 0.2);
}

.rating-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #D1D9E0;
}

.rating-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1F2328;
}

.rating-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #59636E;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.rating-close-btn:hover {
    background-color: #F6F8FA;
    color: #1F2328;
}

.rating-modal-body {
    padding: 20px;
}

.rating-modal-body p {
    margin: 0 0 8px 0;
    color: #1F2328;
    font-size: 14px;
}

.rating-slider-container {
    margin: 16px 0;
}

.rating-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, #D73A49 0%, #FB8500 50%, #068487 100%);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.rating-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 2px solid #068487;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(31, 35, 40, 0.2);
    transition: all 0.2s;
}

.rating-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(6, 132, 135, 0.4);
}

.rating-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 2px solid #068487;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(31, 35, 40, 0.2);
    transition: all 0.2s;
}

.rating-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(6, 132, 135, 0.4);
}

.rating-value-display {
    text-align: center;
    margin-top: 12px;
    font-size: 24px;
    font-weight: 600;
    color: #068487;
}

.rating-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.rating-cancel-btn,
.rating-submit-btn {
    flex: 1;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #D1D9E0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
}

.rating-cancel-btn {
    background-color: #FFFFFF;
    color: #59636E;
}

.rating-cancel-btn:hover {
    background-color: #F6F8FA;
    border-color: #1F2328;
}

.rating-submit-btn {
    background-color: #068487;
    color: #FFFFFF;
    border-color: #068487;
}

.rating-submit-btn:hover {
    background-color: #057578;
    border-color: #057578;
}

/* People list alignment: keep avatars left, text center, actions right */
.people-list .task-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 4px;
}

.people-list .task-item > div:first-child {
    flex-shrink: 0;
    margin-right: 12px;
}

.people-list .task-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Avatar fallback styles */
.avatar-fallback {
    display: none;
}